/* ==========================================================================
   AQUINO & CO. LAW FIRM — MAIN STYLESHEET
   Developer: Joyce Ann Gonzales Yap (Tech Steward Digital AI)
   Architecture: Clean CSS Design System
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0D1B3E;
  --navy-mid:   #162448;
  --navy-light: #1E3163;
  --gold:       #C9A027;
  --gold-light: #E2B93B;
  --gold-mist:  #F5EDD0;
  --gold-pale:  #FDFAF3;
  --white:      #FFFFFF;
  --steel:      #8A96A8;
  --steel-lt:   #C2CAD6;
  --ink:        #1C2B4A;
  --muted:      #5C6880;
  --border:     #E5D9B6;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--gold-pale);
  color: var(--navy);
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(13, 27, 62, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 160, 39, 0.2);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.nav-seal {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-name {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
}

.nav-name span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--steel-lt);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  color: var(--steel-lt);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown > a::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--steel-lt);
  transition: transform 0.2s;
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
  border-top-color: var(--gold);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(201, 160, 39, 0.25);
  border-radius: 6px;
  min-width: 160px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(201, 160, 39, 0.25);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 12px;
  color: var(--steel-lt);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: none;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown-menu a:hover {
  color: var(--gold);
  background: rgba(201, 160, 39, 0.07);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* Mobile Hamburger Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--steel-lt);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 199;
  background: rgba(13, 27, 62, 0.99);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 160, 39, 0.2);
  padding: 20px 5%;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 14px;
  color: var(--steel-lt);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-menu .m-cta {
  margin-top: 12px;
  padding: 12px;
  text-align: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: none;
}

/* ══════════════════════════════════════════
   SECTION BASE UTILITIES
══════════════════════════════════════════ */
section {
  scroll-margin-top: 68px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-title-light {
  color: var(--white);
}

.section-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 16px;
}

/* ══════════════════════════════════════════
   HOME — HERO
══════════════════════════════════════════ */
#home {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 160, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 160, 39, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: 35%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 160, 39, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-copy {
  padding: 5% 7% 5% 8%;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.14;
  margin-bottom: 10px;
}

.hero-h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0;
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--steel-lt);
  max-width: 600px;
  margin-bottom: 36px;
  text-align: justify;
}

.hero-sub strong {
  color: var(--white);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid rgba(201, 160, 39, 0.4);
  color: var(--white);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 160, 39, 0.06);
}

.trust-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--steel-lt);
  font-weight: 400;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.trust-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Hero right booking panel */
.hero-panel {
  padding: 5% 8% 5% 4%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.consult-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 160, 39, 0.25);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.card-header {
  background: rgba(201, 160, 39, 0.12);
  border-bottom: 1px solid rgba(201, 160, 39, 0.2);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #5FD68A;
  font-weight: 500;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5FD68A;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mode-toggle {
  display: flex;
  margin: 20px 20px 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
}

.mode-btn {
  flex: 1;
  padding: 9px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mode-btn.active {
  background: var(--gold);
  color: var(--navy);
}

.mode-btn svg {
  width: 14px;
  height: 14px;
}

.mode-panels {
  padding: 20px;
}

.mode-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.mode-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-label {
  font-size: 10px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.panel-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--steel-lt);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin-bottom: 14px;
}

.panel-location svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex-shrink: 0;
}

.panel-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid rgba(201, 160, 39, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.slot:hover {
  background: rgba(201, 160, 39, 0.08);
}

.slot.selected {
  background: rgba(201, 160, 39, 0.14);
  border-color: var(--gold);
}

.slot-time {
  font-size: 13px;
  color: var(--white);
  font-weight: 400;
}

.slot-avail {
  font-size: 10px;
  color: #5FD68A;
  font-weight: 500;
}

.slot-avail.few {
  color: #F5A623;
}

.card-book-btn {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.card-book-btn:hover {
  background: var(--gold-light);
}

.card-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.atty-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #8A6B00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
}

.atty-name {
  font-size: 12px;
  color: var(--white);
  font-weight: 500;
}

.atty-cred {
  font-size: 10px;
  color: var(--steel);
  margin-top: 1px;
}

/* ══════════════════════════════════════════
   ATTORNEY PROFILE
══════════════════════════════════════════ */
.atty-section {
  background: var(--gold-pale);
  padding: 72px 8%;
  margin-top: 64px;
}

.section-heading {
  text-align: center;
  margin-bottom: 52px;
}

.section-heading .section-eyebrow {
  margin-bottom: 10px;
}

.section-heading .section-title {
  font-size: 34px;
}

.section-heading .section-rule {
  margin: 16px auto 0;
}

.atty-profile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.atty-card {
  background: var(--white);
  border: 1px solid #E5D9B6;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.atty-photo-area {
  background: var(--navy);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 3px solid var(--gold);
}

.atty-initials {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 38px;
  color: var(--gold);
  font-weight: 700;
  background: rgba(201, 160, 39, 0.1);
}

.atty-photo-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 10px;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(13, 27, 62, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
}

.atty-card-body {
  padding: 20px;
}

.atty-fullname {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  font-weight: 700;
}

.atty-title-line {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 3px 0 16px;
}

.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  padding: 8px 10px;
  background: var(--gold-pale);
  border-radius: 6px;
  border-left: 2px solid var(--gold);
}

.cred-item strong {
  color: var(--navy);
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.availability-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #E8F8F0;
  border: 1px solid #B2DEC8;
  font-size: 12px;
  color: #0E5C30;
  font-weight: 500;
  margin-bottom: 14px;
}

.availability-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ECC71;
  flex-shrink: 0;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.atty-card-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.atty-card-btn:hover {
  background: var(--gold-light);
}

/* Floating review badge */
.review-badge {
  position: absolute;
  bottom: 30px;
  left: 200px;
  background: rgba(13, 27, 62, 0.95);
  border: 1px solid rgba(201, 160, 39, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.review-stars {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
}

.review-text {
  font-size: 10px;
  color: var(--steel-lt);
  line-height: 1.4;
}

.review-text strong {
  color: var(--white);
  display: block;
  font-size: 12px;
}

/* Trust strip */
.trust-strip {
  background: var(--white);
  border-top: 3px solid var(--gold);
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid #E8E0CC;
}

.trust-stat {
  padding: 28px 32px;
  border-right: 1px solid #E8E0CC;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s;
}

.trust-stat:hover {
  background: var(--gold-mist);
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gold-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

.ts-number {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.ts-label {
  font-size: 11px;
  color: #6B7280;
  margin-top: 3px;
  font-weight: 400;
  line-height: 1.3;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about {
  background: var(--gold-pale);
  padding: 80px 8%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.about-story {
  border-right: 1px solid #E5D9B6;
  padding-right: 48px;
}

.about-story p {
  font-size: 15px;
  line-height: 1.85;
  color: #4B5563;
  margin-bottom: 18px;
}

.about-story p strong {
  color: var(--navy);
  font-weight: 600;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(201, 160, 39, 0.12);
  border: 1px solid rgba(201, 160, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.value-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.value-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* Attorney card strip */
.atty-strip {
  margin-top: 60px;
  padding: 40px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.atty-strip::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 160, 39, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.atty-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #8A6B00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid rgba(201, 160, 39, 0.4);
}

.atty-details {
  flex: 1;
}

.atty-details h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--white);
  font-weight: 600;
}

.atty-details .atty-role {
  font-size: 13px;
  color: var(--gold);
  margin: 4px 0 14px;
  letter-spacing: 0.05em;
}

.atty-creds-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.atty-creds-list li {
  font-size: 12px;
  color: var(--steel-lt);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.atty-creds-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
}

.atty-strip-cta {
  flex-shrink: 0;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
#services {
  background: var(--navy);
  padding: 80px 8%;
  position: relative;
}

#svc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#services > *:not(#svc-canvas) {
  position: relative;
  z-index: 1;
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.service-item {
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
  text-decoration: none;
  display: block;
}

.service-item:hover {
  background: rgba(201, 160, 39, 0.08);
}

.si-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.si-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
}

.si-law {
  font-size: 11px;
  color: var(--steel);
  line-height: 1.5;
}

.si-arrow {
  font-size: 12px;
  color: var(--gold);
  margin-top: 14px;
  display: block;
}

/* Notary strip inside services */
.notary-strip {
  margin-top: 40px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.notary-strip h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 6px;
}

.notary-strip p {
  font-size: 13px;
  color: #374151;
  margin-bottom: 20px;
  line-height: 1.7;
}

.notary-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.notary-doc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--navy);
  padding: 9px 12px;
  background: #F9FAFB;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.notary-doc::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

/* Practice area stacking cards */
.pa-stack-wrap {
  position: relative;
  margin-bottom: 52px;
}

.pa-stack-item {
  position: sticky;
  top: calc(72px + var(--i, 0) * 10px);
  margin-bottom: 14px;
  transform-origin: top center;
  will-change: transform, opacity;
}

.pa-card {
  background: #0f1e3e;
  border: 1px solid rgba(201, 160, 39, 0.18);
  border-radius: 12px;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 28px;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 6px 40px rgba(255, 255, 255, 0.08);
}

.pa-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 4px;
}

.pa-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.9;
}

.pa-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  border-radius: 4px;
  padding: 2px 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pa-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.25;
}

.pa-law {
  font-size: 12px;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 13px;
  font-style: italic;
  line-height: 1.5;
}

.pa-desc {
  font-size: 14px;
  color: var(--steel-lt);
  line-height: 1.8;
}

@media (max-width: 640px) {
  .pa-card {
    grid-template-columns: 1fr;
    gap: 8px 0;
    padding: 20px 18px;
  }
  .pa-stack-item {
    top: calc(60px + var(--i, 0) * 6px);
  }
}

/* Service accordion */
.svc-accordion {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.svc-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.svc-item:last-child {
  border-bottom: none;
}

.svc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  border: none;
  text-align: left;
  transition: background 0.2s;
  gap: 16px;
}

.svc-trigger:hover {
  background: rgba(201, 160, 39, 0.06);
}

.svc-trigger.open {
  background: rgba(201, 160, 39, 0.08);
  border-bottom: 1px solid rgba(201, 160, 39, 0.15);
}

.svc-trigger-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.svc-trigger.open .svc-trigger-title {
  color: var(--gold);
}

.svc-chevron {
  width: 16px;
  height: 16px;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.svc-trigger.open .svc-chevron {
  transform: rotate(180deg);
}

.svc-body {
  display: none;
  padding: 26px 26px 28px;
  background: rgba(0, 0, 0, 0.1);
}

.svc-body.open {
  display: block;
  background: #fff;
}

.svc-body p {
  font-size: 15px;
  color: var(--steel-lt);
  line-height: 1.8;
  margin-bottom: 10px;
}

.svc-body.open p {
  color: #374151;
}

.svc-body h4 {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 20px 0 8px;
}

.svc-body.open h4 {
  color: var(--navy);
}

.svc-body h4:first-child {
  margin-top: 0;
}

.svc-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.svc-body ul li {
  font-size: 14px;
  color: var(--steel-lt);
  line-height: 1.75;
  padding: 3px 0 3px 18px;
  position: relative;
}

.svc-body.open ul li {
  color: #374151;
}

.svc-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 10px;
  top: 6px;
}

.svc-body.open ul li::before {
  color: var(--navy);
}

.svc-footer-note {
  font-size: 11.5px;
  color: var(--steel);
  line-height: 1.7;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-top: 32px;
  font-style: italic;
}

@media (max-width: 640px) {
  .svc-trigger { padding: 16px 18px; }
  .svc-body { padding: 18px; }
}

/* ══════════════════════════════════════════
   LEGAL FEES SECTION
══════════════════════════════════════════ */
#fees {
  background: var(--gold-pale);
  padding: 80px 8%;
}

.fees-intro {
  max-width: 680px;
  margin-bottom: 48px;
}

.fees-intro p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 12px;
}

.cpra-notice {
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 160, 39, 0.08);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 48px;
}

.cpra-notice strong {
  color: var(--navy);
}

/* Consultation fee cards */
.consult-fees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.cf-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #E5D9B6;
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cf-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201, 160, 39, 0.1);
}

.cf-card.featured {
  border-color: var(--gold);
  background: var(--navy);
}

.cf-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.cf-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.cf-card.featured .cf-title {
  color: var(--white);
}

.cf-price {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin: 12px 0;
}

.cf-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cf-card.featured .cf-desc {
  color: var(--steel-lt);
}

.cf-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.cf-btn:hover {
  background: var(--gold-light);
}

/* Fee table */
.fee-section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.fee-section-title em {
  font-style: italic;
  color: var(--gold);
}

.fee-table-wrap {
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: 8px;
  border: 1px solid #E5D9B6;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.fee-table thead {
  background: var(--navy);
}

.fee-table thead th {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  text-align: left;
  letter-spacing: 0.05em;
}

.fee-table tbody tr {
  border-bottom: 1px solid #F0E8D0;
  transition: background 0.15s;
}

.fee-table tbody tr:hover {
  background: var(--gold-mist);
}

.fee-table tbody tr:last-child {
  border-bottom: none;
}

.fee-table td {
  padding: 13px 18px;
  font-size: 13px;
  color: var(--navy);
}

.fee-table td:last-child {
  color: var(--gold);
  font-weight: 600;
  font-family: var(--serif);
}

.fee-range {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  font-family: var(--sans);
  margin-top: 2px;
}

.fee-table .section-divider-row td {
  background: var(--gold-pale);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ══════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════ */
#contact {
  background: var(--white);
  padding: 80px 8%;
  position: relative;
  overflow: hidden;
}

/* Logo watermark */
#contact::before {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: url('../images/logo.png') center/contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  position: relative;
  z-index: 1;
}

/* Contact intro + large map (top row) */
.contact-intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 64px;
}

.contact-intro h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 38px);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.contact-intro > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.map-embed-lg {
  height: 400px;
}

/* Office gallery */
.office-gallery {
  margin-bottom: 36px;
}

.gallery-main {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(201, 160, 39, 0.2);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
  border: 1px solid rgba(201, 160, 39, 0.15);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

/* Office info */
.contact-info {
  margin-bottom: 32px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
}

.contact-info h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info .sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-icon {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.info-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.info-value {
  font-size: 13px;
  color: #3A4560;
  line-height: 1.6;
  font-weight: 400;
}

.info-value a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.info-value a:hover {
  text-decoration: underline;
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 3px 0;
}

.hours-row .day {
  color: #3A4560;
  font-weight: 400;
}

.hours-row .time {
  color: var(--navy);
  font-weight: 600;
}

.hours-row.closed .day,
.hours-row.closed .time {
  color: var(--steel);
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--navy);
  text-decoration: none;
  margin-top: 12px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.maps-link:hover {
  background: var(--gold-mist);
  border-color: var(--gold);
  color: var(--gold);
}

.map-embed-wrap {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(13, 27, 62, 0.08);
}

.map-embed {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
}

/* Contact form */
.contact-form-wrap {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}

.contact-form-wrap h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-form-wrap .form-sub {
  font-size: 10px;
  color: #9CA3AF;
  margin-bottom: 24px;
  line-height: 1.7;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  text-align: justify;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--white);
  border: 1.5px solid #C8BAA0;
  border-radius: 6px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9AA0AE;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 160, 39, 0.12);
}

.form-group select option {
  background: var(--white);
  color: var(--navy);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}

.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.form-disclaimer {
  font-size: 10px;
  color: var(--steel);
  margin-top: 10px;
  line-height: 1.6;
  text-align: center;
}

.form-success {
  display: none;
  padding: 20px;
  border-radius: 8px;
  background: #EDFAF3;
  border: 1px solid #A8D9BC;
  text-align: center;
  margin-top: 14px;
}

.form-success .success-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: #0E5C30;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: #07112A;
  padding: 40px 8% 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(201, 160, 39, 0.15);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold);
}

.footer-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--steel);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.footer-copy {
  font-size: 11px;
  color: var(--steel);
  text-align: center;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 11px;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════ */
[data-sr] {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 0.72s;
  will-change: opacity, transform;
}

[data-sr="fade-up"]    { transform: translateY(44px); }
[data-sr="fade-down"]  { transform: translateY(-30px); }
[data-sr="fade-left"]  { transform: translateX(-52px); }
[data-sr="fade-right"] { transform: translateX(52px); }
[data-sr="scale"]      { transform: scale(0.86); }
[data-sr="zoom-fade"]  { transform: scale(1.07); filter: blur(5px); }
[data-sr="flip"]       { transform: perspective(600px) rotateX(16deg) translateY(20px); }

[data-sr].sr-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

[data-sr-delay="1"] { transition-delay: 0.07s; }
[data-sr-delay="2"] { transition-delay: 0.14s; }
[data-sr-delay="3"] { transition-delay: 0.21s; }
[data-sr-delay="4"] { transition-delay: 0.28s; }
[data-sr-delay="5"] { transition-delay: 0.35s; }
[data-sr-delay="6"] { transition-delay: 0.42s; }
[data-sr-delay="7"] { transition-delay: 0.49s; }
[data-sr-delay="8"] { transition-delay: 0.56s; }

.section-rule[data-sr] {
  transform: scaleX(0);
  transform-origin: left;
  opacity: 1;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.section-rule[data-sr].sr-visible {
  transform: scaleX(1);
}

@keyframes numPop {
  0%   { transform: scale(0.65) translateY(12px); opacity: 0; }
  65%  { transform: scale(1.14) translateY(-3px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}

.ts-number.sr-pop {
  animation: numPop 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hero — one-time entrance on load */
@keyframes srUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes srFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-eyebrow { animation: srUp 0.7s 0.10s both; }
.hero-h1      { animation: srUp 0.8s 0.25s both; }
.hero-rule    { animation: srFade 0.6s 0.48s both; }
.hero-sub     { animation: srUp 0.7s 0.55s both; }
.hero-actions { animation: srUp 0.7s 0.70s both; }
.trust-pills  { animation: srUp 0.7s 0.82s both; }
.hero-panel   { animation: srUp 0.9s 0.38s both; }

@media (prefers-reduced-motion: reduce) {
  [data-sr],
  .hero-eyebrow,
  .hero-h1,
  .hero-rule,
  .hero-sub,
  .hero-actions,
  .trust-pills,
  .hero-panel {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
══════════════════════════════════════════ */

/* ── Tablet (≤ 960px) ── */
@media (max-width: 960px) {
  #home {
    grid-template-columns: 1fr;
    padding: 96px 6% 52px;
  }
  .hero-copy {
    padding: 5% 6% 0;
  }
  .hero-panel {
    padding: 24px 6% 40px;
    justify-content: flex-start;
  }
  .consult-card {
    max-width: 100%;
  }
  .review-badge {
    display: none;
  }
  .trust-inner {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-story {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid #E5D9B6;
    padding-bottom: 40px;
  }
  .atty-profile {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 24px;
  }
  .atty-strip {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .atty-creds-list {
    align-items: center;
  }
  .atty-strip-cta {
    width: 100%;
  }
  .atty-strip-cta .btn-gold {
    width: 100%;
    justify-content: center;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-intro-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .map-embed-lg {
    height: 280px;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-cta {
    font-size: 11px;
    padding: 8px 16px;
  }
  #services, #fees, #about, #contact {
    padding: 64px 6%;
  }
  footer {
    padding: 32px 6% 24px;
  }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  #home {
    padding: 88px 5% 44px;
  }
  #about, #services, #fees, #contact {
    padding: 56px 5%;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-panel {
    padding: 20px 0 36px;
  }
  .hero-h1 {
    font-size: clamp(32px, 8vw, 44px);
  }
  .hero-sub {
    font-size: 14px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .trust-inner {
    grid-template-columns: 1fr 1fr;
    border-left: none;
  }
  .trust-stat {
    padding: 16px 12px;
    gap: 10px;
    border-left: 1px solid #E8E0CC;
  }
  .ts-number {
    font-size: 22px;
  }
  .ts-label {
    font-size: 10px;
  }
  .trust-icon {
    width: 34px;
    height: 34px;
  }
  .trust-icon svg {
    width: 16px;
    height: 16px;
  }
  .section-title {
    font-size: clamp(24px, 7vw, 34px);
  }
  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .services-header .btn-gold {
    width: 100%;
    justify-content: center;
  }
  .notary-docs-grid {
    grid-template-columns: 1fr;
  }
  .consult-fees {
    grid-template-columns: 1fr;
  }
  .fee-table-wrap {
    margin-left: -5%;
    margin-right: -5%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .gallery-main {
    height: 200px;
  }
  .gallery-thumb {
    height: 68px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .atty-strip {
    padding: 28px 20px;
  }
  .atty-avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 5% 20px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ── Small phone (≤ 420px) ── */
@media (max-width: 420px) {
  nav {
    padding: 0 4%;
  }
  .nav-cta {
    display: none;
  }
  .nav-name {
    font-size: 13px;
  }
  .trust-inner {
    grid-template-columns: 1fr 1fr;
  }
  .trust-stat {
    padding: 12px 10px;
  }
  .ts-number {
    font-size: 18px;
  }
  .trust-icon {
    width: 28px;
    height: 28px;
  }
  .trust-icon svg {
    width: 14px;
    height: 14px;
  }
  .mode-toggle {
    flex-direction: column;
    gap: 6px;
  }
  .mode-btn {
    justify-content: flex-start;
    padding: 10px 12px;
  }
  .panel-slots {
    gap: 8px;
  }
  .slot {
    padding: 10px 10px;
  }
  .slot-time {
    font-size: 12px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-thumb {
    height: 56px;
  }
  .fee-table td,
  .fee-table thead th {
    padding: 10px 12px;
    font-size: 12px;
  }
  .cf-price {
    font-size: 24px;
  }
  .contact-info h3 {
    font-size: 17px;
  }
}
