/*
Theme Name:  Buccifirm Theme
Theme URI:   https://buccifirm.com
Author:      Buccifirm
Author URI:  https://buccifirm.com
Description: Strict parity WordPress conversion of the approved Bucci Firm React design.
Version:     2.1.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buccifirm-theme
Tags:        custom-theme, law-firm, acf-ready
*/

:root {
  --bf-primary: #0d1f3c;
  --bf-accent: #c5a065;
  --bf-text: #1f2937;
  --bf-muted: #6b7280;
  --bf-bg: #ffffff;
  --bf-bg-muted: #f8fafc;
  --bf-border: #e5e7eb;
  --bf-heading: 'Playfair Display', Georgia, serif;
  --bf-body: 'Lato', Arial, sans-serif;
  --bf-max: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bf-body);
  color: var(--bf-text);
  background: var(--bf-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--bf-heading);
  color: var(--bf-primary);
  margin: 0 0 1rem;
  line-height: 1.12;
}

p {
  margin: 0 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--bf-max), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-muted {
  background: #f8fafc;
  border-top: 1px solid var(--bf-border);
  border-bottom: 1px solid var(--bf-border);
}

.section-navy {
  background: var(--bf-primary);
  color: #d8deea;
}

.section-navy h2,
.section-navy h3 {
  color: #fff;
}

.center {
  text-align: center;
}

.site-content {
  min-height: 58vh;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.45rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--bf-primary);
  color: #fff;
}

.btn-accent {
  background: var(--bf-accent);
  color: var(--bf-primary);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.btn-outline-dark {
  border-color: #cbd5e1;
  color: var(--bf-primary);
  background: #fff;
}

.btn-outline-accent {
  border-color: var(--bf-accent);
  color: var(--bf-accent);
  background: transparent;
}

.brand-wordmark {
  display: inline-block;
  font-family: var(--bf-heading);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.brand-bucci {
  color: var(--bf-primary);
}

.brand-firm {
  color: var(--bf-accent);
  font-weight: 400;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 300;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.07);
}

.nav-wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header.is-scrolled .nav-wrap {
  min-height: 80px;
}

.main-navigation {
  margin-left: auto;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: #4b5563;
  font-size: 0.93rem;
  font-weight: 700;
  padding: 0.55rem 0;
  display: block;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation a:hover {
  color: var(--bf-primary);
}

.main-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 255px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.15);
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.45rem;
}

.main-navigation li:hover > .sub-menu {
  display: flex;
}

.main-navigation .sub-menu a {
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-size: 0.88rem;
}

.main-navigation .sub-menu a:hover {
  background: #f8fafc;
}

.schedule-trigger.desktop {
  border: 0;
  border-radius: 3px;
  background: var(--bf-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.82rem 1.1rem;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 31, 60, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #d7dde7;
  background: #fff;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #475569;
}

.hero-home {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: url('assets/images/hero-sunset.avif');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 31, 60, 0.92) 0%, rgba(13, 31, 60, 0.74) 55%, rgba(13, 31, 60, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-top: 8.5rem;
  padding-bottom: 4rem;
}

.hero-eyebrow {
  color: var(--bf-accent);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.hero-home h1 {
  font-size: clamp(2.25rem, 5.7vw, 5rem);
  color: #fff;
  margin-bottom: 1.3rem;
  max-width: 840px;
}

.hero-home h1 span {
  color: #dde2ec;
}

.hero-copy {
  color: #d5dce8;
  max-width: 780px;
  font-size: 1.17rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 1.6rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}

.value-card {
  background: #fff;
  border: 1px solid transparent;
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(13, 31, 60, 0.06);
  margin-bottom: 1.2rem;
  position: relative;
}

.value-icon::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  background: var(--bf-primary);
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.value-card p {
  color: var(--bf-muted);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.3vw, 3.1rem);
}

.section-head p {
  color: var(--bf-muted);
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  gap: 2rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: #fff;
  border: 1px solid var(--bf-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 101, 0.4);
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.12);
}

.service-card h2,
.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--bf-muted);
  font-size: 0.97rem;
  margin-bottom: 1.1rem;
}

.service-link {
  color: var(--bf-accent);
  font-size: 0.93rem;
  font-weight: 700;
}

.about-preview {
  position: relative;
  overflow: hidden;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: 0;
  right: -8rem;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-18deg);
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-grid h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.about-grid p {
  color: #cfd6e4;
  font-size: 1.08rem;
}

.about-image-wrap {
  overflow: hidden;
  border-radius: 12px;
  border: 4px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 34px rgba(0, 0, 0, 0.28);
}

.cta-bottom h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.cta-bottom p {
  color: var(--bf-muted);
  font-size: 1.08rem;
}

.page-hero {
  position: relative;
  padding: 11rem 0 6rem;
  background-image: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero.page-hero-small {
  padding-bottom: 4.6rem;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 60, 0.9);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

.page-hero p {
  color: #d6dce8;
  margin: 0 auto;
  max-width: 780px;
  font-size: 1.08rem;
}

.legal-content {
  max-width: 960px;
}

.legal-content p,
.legal-content li {
  font-size: 1.02rem;
  color: #374151;
}

.site-footer {
  background: var(--bf-primary);
  color: #cfd6e4;
  padding: 4.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.1rem;
}

.footer-grid h3 {
  color: var(--bf-accent);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin: 0.56rem 0;
}

.footer-tagline {
  margin: 1rem 0;
  color: #cfd6e4;
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-links a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.site-footer a,
.site-footer .link-button {
  color: #cfd6e4;
}

.site-footer a:hover,
.site-footer .link-button:hover {
  color: #fff;
}

.link-button {
  background: transparent;
  border: 0;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

.schedule-sticky-mobile {
  display: none;
  position: fixed;
  left: 0.95rem;
  right: 0.95rem;
  bottom: max(0.95rem, env(safe-area-inset-bottom));
  z-index: 320;
  border: 0;
  border-radius: 999px;
  background: var(--bf-primary);
  color: #fff;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(13, 31, 60, 0.36);
}

.scheduler-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
}

.scheduler-drawer.is-open {
  display: block;
}

.scheduler-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.scheduler-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  min-height: 76vh;
}

.scheduler-header {
  background: var(--bf-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.scheduler-header h2 {
  color: #fff;
  margin: 0;
  font-size: 1.08rem;
}

.scheduler-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
}

.scheduler-embed-wrap {
  height: calc(90vh - 54px);
}

.scheduler-embed {
  width: 100%;
  height: 100%;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

@media (max-width: 1200px) {
  .three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .schedule-trigger.desktop {
    display: none;
  }

  .main-navigation {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    max-height: calc(100dvh - 92px);
    overflow: auto;
    display: none;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    display: block;
  }

  .main-navigation .sub-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: auto;
  }

  .main-navigation li {
    margin-bottom: 0.35rem;
  }

  .main-navigation a {
    padding: 0.55rem 0.2rem;
  }

  .hero-content {
    text-align: left;
    padding-top: 7rem;
  }

  .schedule-sticky-mobile {
    display: block;
  }

  .site-footer {
    padding-bottom: 5.8rem;
  }
}

@media (max-width: 640px) {
  .three-up,
  .value-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
