/* ==========================================================================
   California Title Company — Draft 3
   ========================================================================== */

:root {
  --navy:        #101d24;
  --steel:       #45555f;
  --steel-deep:  #2c3940;
  --steel-light: #7d8d96;
  --gold:        #b6924f;
  --gold-light:  #d9bc84;
  --gold-text:   #8a6d3b;
  --gray:        #c6cbcf;
  --cream:       #f8f6f1;
  --white:       #ffffff;
  --ink:         #1c2731;
  --text-muted:  #5b6770;
  --border:      #e3e0d8;

  --shadow-sm:  0 2px 10px rgba(16, 29, 36, 0.06);
  --shadow-md:  0 10px 30px rgba(16, 29, 36, 0.10);
  --shadow-lg:  0 24px 60px rgba(16, 29, 36, 0.18);
  --shadow-gold: 0 10px 30px rgba(182, 146, 79, 0.25);

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-h: 92px;
  --header-h-scrolled: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--navy); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }
.reveal-delay-4.in-view { transition-delay: 0.4s; }
.reveal-delay-5.in-view { transition-delay: 0.5s; }
.reveal-delay-6.in-view { transition-delay: 0.6s; }
.reveal-delay-7.in-view { transition-delay: 0.7s; }

/* ==========================================================================
   Eyebrow / section labels
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--gold-light); }

.section-head {
  max-width: 640px;
  margin: 0 0 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  margin-top: 14px;
  font-weight: 500;
}
.section-head p {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(182, 146, 79, 0.35); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.9); transform: translateY(-3px); }

/* For button labels too long to safely stay on one line at every width (.btn
   defaults to white-space:nowrap) - lets the text wrap instead of overflowing. */
.btn-wrap { white-space: normal; text-align: center; }

.btn-steel {
  background: var(--steel);
  color: var(--white);
}
.btn-steel:hover { background: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn-outline-steel {
  background: transparent;
  color: var(--steel);
  border-color: var(--border);
}
.btn-outline-steel:hover { border-color: var(--steel); background: var(--cream); transform: translateY(-3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,29,36,0.55) 0%, rgba(16,29,36,0) 100%);
  opacity: 1;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.site-header.scrolled {
  height: var(--header-h-scrolled);
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
}
.site-header.scrolled::before { opacity: 0; }

.header-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 42px; width: auto; flex-shrink: 0; transition: height 0.4s var(--ease), opacity 0.3s ease; }
.site-header.scrolled .site-logo img { height: 36px; }
.logo-light, .logo-dark { display: block; }
.logo-dark { display: none; }
.site-header.scrolled .logo-light { display: none; }
.site-header.scrolled .logo-dark { display: block; }

.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  border-radius: 100px;
  transition: color 0.3s ease, background 0.3s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.site-header.scrolled .main-nav a { color: var(--steel-deep); text-shadow: none; }
.main-nav li.active > a,
.main-nav a:hover { background: rgba(255,255,255,0.14); color: var(--white); }
.site-header.scrolled .main-nav li.active > a,
.site-header.scrolled .main-nav a:hover { background: var(--cream); color: var(--navy); }

.main-nav li.has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.main-nav li.has-dropdown:hover .nav-dropdown,
.main-nav li.has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-wide { min-width: 230px; right: auto; }
.nav-dropdown a {
  color: var(--steel-deep) !important;
  text-shadow: none !important;
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
}
.nav-dropdown a:hover { background: var(--cream) !important; color: var(--navy) !important; }
.nav-dropdown-overview { display: none; }

.nav-dropdown-arrow {
  display: none;
  background: none; border: none; padding: 8px;
  color: inherit;
}
.nav-dropdown-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }

.nav-close { display: none; }

.nav-cta a {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy) !important;
  text-shadow: none !important;
  padding: 11px 22px !important;
  box-shadow: 0 6px 18px rgba(182,146,79,0.3);
}
.nav-cta a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(182,146,79,0.4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  z-index: 600;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: all 0.35s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--steel-deep); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.open span { background: var(--white) !important; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 90svh;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy);
  /* Guaranteed minimum gap between .hero-content and .scroll-cue (a real gap,
     not an auto margin, so it never gets squeezed to near-zero under vertical
     space pressure the way the auto margins on those two elements can). */
  gap: 32px;
  /* .stats-wrap overlaps the hero from below via a negative top margin (see
     .stats-wrap), painting over this many px of the hero's bottom edge. Reserve
     that same amount here so the flex layout above never places hero-content or
     .scroll-cue underneath it, at any viewport height. Keep in sync with
     .stats-wrap's margin-top (both the base value and the @media 520px value). */
  padding-bottom: 104px;
}
.hero-slide {
  position: absolute;
  inset: -2% -2%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
  transform: scale(1);
}
.hero-slide.active { opacity: 1; }
.hero-slide.kenburns { animation: kenburns 14s ease-out forwards; }
/* Toggled on .hero by the pause button's click handler in site.js — freezes the
   zoom in place immediately, rather than only silently skipping the next photo
   swap (which the JS-driven interval alone wouldn't make visible for up to 7s). */
.hero.paused .hero-slide { animation-play-state: paused; }
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.11); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(16,29,36,0.15) 0%, rgba(16,29,36,0.55) 62%, rgba(16,29,36,0.88) 100%),
    linear-gradient(180deg, rgba(16,29,36,0.45) 0%, rgba(16,29,36,0.25) 30%, rgba(16,29,36,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto auto 0;
  padding: calc(var(--header-h) + 40px) 32px 0;
  text-align: center;
  color: var(--white);
}
.hero-content .eyebrow { color: var(--gold-light); margin-bottom: 22px; }
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-content h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}
.hero-tagline {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
.hero-tagline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}
.hero-sub {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: 17.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
}
.hero-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* In normal document flow (not absolutely positioned) so it can never overlap
   .hero-content: the fixed top/bottom margins below are a real, guaranteed gap,
   not one that can be squeezed to zero the way an absolute offset could collide
   with the vertically-centered content above it at some viewport heights. If the
   content + cue together ever exceed the hero's height, the hero (min-height,
   not a fixed height) simply grows to fit rather than clipping or overlapping. */
.scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: auto auto 48px;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue .chev { width: 14px; height: 14px; border-right: 1.5px solid rgba(255,255,255,0.75); border-bottom: 1.5px solid rgba(255,255,255,0.75); transform: rotate(45deg); animation: chevbounce 1.8s ease-in-out infinite; }

.hero-pause {
  position: absolute;
  bottom: 28px; right: 28px;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.hero-pause:hover { background: rgba(255,255,255,0.22); }
.hero-pause svg { width: 18px; height: 18px; }
.hero-pause .icon-play { display: none; }
.hero-pause.paused .icon-pause { display: none; }
.hero-pause.paused .icon-play { display: block; }
@media (max-width: 640px) {
  .hero-pause { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}
@keyframes chevbounce { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: .5; } 50% { transform: rotate(45deg) translate(4px,4px); opacity: 1; } }

/* ==========================================================================
   Stats card (overlaps hero)
   ========================================================================== */
.stats-wrap {
  position: relative;
  z-index: 5;
  margin-top: -104px;
  padding: 0 32px;
  /* This wrapper is full-width (only .stats-card inside it is centered/narrower),
     so its invisible padding area was sitting — via z-index:5 — on top of whatever
     the hero renders beneath it, including #hero-pause off to the side. It has no
     visible background and nothing clickable of its own, so let clicks pass through
     it and re-enable them on .stats-card, which is the only part actually meant to
     be interactive. */
  pointer-events: none;
}
.stats-card {
  pointer-events: auto;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px;
}
.stat {
  text-align: center;
  padding: 34px 20px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--navy);
  font-weight: 600;
}
.stat-num .unit { font-size: 0.55em; color: var(--gold-text); font-weight: 700; margin-left: 2px; }
.stat-label {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   Services (bento grid)
   ========================================================================== */
.services {
  padding: 140px 0 80px;
  background: var(--white);
}
.services-group + .services-group { margin-top: 56px; }
.services-group-title {
  font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy);
  text-align: center; margin-bottom: 26px;
}
.services-mobile-cta { display: none; text-align: center; margin-top: 36px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 26px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  background: var(--white);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.sc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background 0.4s ease, transform 0.4s var(--ease);
}
.service-card:hover .sc-icon { background: var(--navy); transform: scale(1.06); }
.sc-icon img { width: 28px; height: 28px; transition: filter 0.4s ease; }
.service-card:hover .sc-icon img { filter: brightness(0) invert(1); }
.sc-icon svg { width: 26px; height: 26px; color: var(--steel); transition: color 0.4s ease; }
.service-card:hover .sc-icon svg { color: var(--white); }

.tech-tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 780px; margin: 0 auto; }
@media (max-width: 640px) {
  .tech-tools-grid { grid-template-columns: 1fr; }
}

.sc-title { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.sc-desc { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }
.sc-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--steel);
}
.sc-arrow svg { width: 12px; height: 12px; transition: transform 0.35s var(--ease); }
.service-card:hover .sc-arrow { color: var(--gold-text); }
.service-card:hover .sc-arrow svg { transform: translateX(4px); }

/* ==========================================================================
   About / split section
   ========================================================================== */
.about {
  position: relative;
  padding: 80px 0;
  background: var(--cream);
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 44px;
  align-items: center;
}
.about-media { position: relative; }
.about-media::before {
  content: "";
  position: absolute;
  top: -22px; left: -22px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold);
  border-radius: 18px;
  z-index: 0;
}
.about-media-inner {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.1;
}
.about-media-inner img { width: 100%; height: 100%; object-fit: cover; }

.about-badge {
  position: absolute;
  z-index: 2;
  right: -28px;
  bottom: -28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: var(--shadow-lg);
  max-width: 210px;
}
.about-badge .num { font-family: var(--serif); font-size: 2.1rem; color: var(--gold-light); font-weight: 600; line-height: 1; }
.about-badge .lbl { margin-top: 6px; font-size: 12px; letter-spacing: 0.05em; color: rgba(255,255,255,0.75); line-height: 1.5; }

.about-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.18; font-weight: 500; margin-top: 14px; }
.about-copy p { margin-top: 20px; font-size: 16px; line-height: 1.8; color: var(--text-muted); }
.about-copy .btn { margin-top: 30px; }

.underwriters {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.underwriters-label {
  font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy);
}
.underwriters-copy { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* ==========================================================================
   Offices
   ========================================================================== */
.offices { padding: 80px 0; background: var(--white); }
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.office-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.office-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.office-media { position: absolute; inset: 0; overflow: hidden; }
.office-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.office-card:hover .office-media img { transform: scale(1.1); }
.office-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,29,36,0.05) 0%, rgba(16,29,36,0.35) 55%, rgba(16,29,36,0.92) 100%);
}
.office-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 28px;
  color: var(--white);
  z-index: 2;
}
.office-content h3.office-tag {
  font-family: var(--serif); color: var(--white); font-size: 32px; font-weight: 600;
  letter-spacing: 0; text-transform: none; margin-bottom: 0; display: block;
}
.office-content address {
  font-style: normal; margin-top: 12px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.85);
}
.office-content .office-phone { display: block; margin-top: 10px; font-weight: 700; color: var(--white); font-size: 15px; }
.office-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 3px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.office-card:hover .office-link { border-color: var(--gold-light); color: var(--gold-light); }

/* ==========================================================================
   Underwriter trust strip
   ========================================================================== */
.trust-strip {
  position: relative;
  padding: 74px 0;
  background: linear-gradient(120deg, var(--navy) 0%, var(--steel-deep) 100%);
  overflow: hidden;
}
.trust-strip::before {
  content: "";
  position: absolute;
  right: -80px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px;
  background: url('/images/ctclogo_white_logoonlynotext.png') center / contain no-repeat;
  opacity: 0.05;
}
.trust-inner { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.trust-label { color: var(--gold-light); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.trust-heading {
  margin-top: 18px; color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 500;
}
.trust-copy { margin-top: 18px; color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.75; }

/* ==========================================================================
   Leadership
   ========================================================================== */
.leadership { padding: 80px 0; background: var(--cream); }
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.leader-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.leader-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.leader-photo {
  /* Rounded-rect crop (was circular) - bigger, portrait-oriented headshot
     framing, matching the ratio used for team photos elsewhere on the site. */
  width: 150px; height: 188px;
  border-radius: 18px;
  margin: 0 auto 22px;
  padding: 5px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.leader-photo img { width: 100%; height: 100%; border-radius: 13px; object-fit: cover; border: 3px solid var(--white); }
.leader-name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); }
.leader-title { margin-top: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); }
.leader-title strong { color: var(--navy); font-weight: 600; }
.leader-bio { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.leader-contact { margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.leader-contact a { color: var(--steel); }
.leaders-more { text-align: center; margin-top: 52px; }

/* ==========================================================================
   News & Press
   ========================================================================== */
.news-section { padding: 84px 0; background: var(--white); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.news-thumb {
  display: flex; align-items: center; justify-content: center;
  height: 120px;
  background: linear-gradient(135deg, var(--cream), var(--border));
}
.news-thumb svg { width: 34px; height: 34px; color: var(--gold); }
.news-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.news-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.news-tag-press     { background: rgba(69,85,95,0.10);   color: var(--steel-deep); }
.news-tag-company   { background: rgba(182,146,79,0.14); color: var(--gold-text); }
.news-tag-newsletter{ background: rgba(16,29,36,0.07);   color: var(--navy); }
.news-tag-industry  { background: rgba(125,141,150,0.16);color: var(--steel); }
.news-date { font-size: 12.5px; color: var(--text-muted); }
.news-title {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
.news-desc { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--text-muted); flex: 1; }
.news-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--steel-deep);
}
.news-link svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.news-card:hover .news-link { color: var(--gold-text); }
.news-card:hover .news-link svg { transform: translateX(4px); }
.news-more { text-align: center; margin-top: 46px; }

/* Press release article page */
.press-article { max-width: 760px; margin: 0 auto; }
.press-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.press-pdf-link {
  margin-left: auto;
  font-size: 13px; font-weight: 600; color: var(--steel);
  display: inline-flex; align-items: center; gap: 6px;
}
.press-pdf-link:hover { color: var(--gold-text); }
.press-article .region-main { margin-top: 8px; }
.press-nav { margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--border); }

/* ==========================================================================
   Quote band
   ========================================================================== */
.quote-band {
  position: relative;
  padding: 90px 32px;
  background: linear-gradient(rgba(16,29,36,0.82), rgba(16,29,36,0.88)), url('/images/office-oc-laguna.jpg') center / cover no-repeat;
  background-attachment: scroll;
  text-align: center;
}
.quote-mark { font-family: var(--serif); font-size: 6rem; color: var(--gold); opacity: 0.55; line-height: 1; }
.quote-band blockquote {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.4;
  color: var(--white);
}
.quote-cite { margin-top: 28px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  padding: 70px 32px;
  background: var(--white);
}
.cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 26px;
  padding: 48px 56px;
  background: linear-gradient(120deg, var(--steel) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  left: -60px; bottom: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182,146,79,0.35), transparent 70%);
}
.cta-text { position: relative; z-index: 1; }
.cta-text h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; }
.cta-text p { margin-top: 10px; color: rgba(255,255,255,0.75); font-size: 15.5px; max-width: 440px; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 84px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand > img { height: 40px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }
.footer-social img { height: 24px; width: 24px; margin: 0; border-radius: 50%; }

.footer-col h3 {
  color: var(--white); font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 22px;
}
.footer-col ul li { margin-bottom: 13px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.62); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.footer-col address strong { display: block; color: rgba(255,255,255,0.85); font-size: 13.5px; margin-bottom: 4px; }

.footer-bottom {
  padding: 26px 0 34px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ==========================================================================
   Regional pages (Los Angeles / Orange County / San Diego)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,29,36,0.55) 0%, rgba(16,29,36,0.35) 40%, rgba(16,29,36,0.94) 100%);
}
.page-hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding: calc(var(--header-h) + 60px) 32px 74px;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--white);
}
.page-hero-content .eyebrow { color: var(--gold-light); }
.page-hero-content h1 {
  color: var(--white);
  margin-top: 16px;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  max-width: 760px;
}
.page-hero-sub {
  margin-top: 18px;
  max-width: 600px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}
.page-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.region-content { padding: 75px 0 40px; background: var(--white); }
.region-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 44px;
  align-items: start;
}
.region-main h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
  margin-top: 44px;
}
.region-main h2:first-child { margin-top: 0; }
.region-main p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}
.region-callout {
  margin-top: 32px;
  padding: 28px 30px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
}
.region-callout h3 {
  font-size: 17px; font-weight: 600; color: var(--navy);
}
.region-callout p { margin-top: 10px; font-size: 14.5px; line-height: 1.75; color: var(--text-muted); }

.region-list { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.region-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; line-height: 1.6; color: var(--text-muted);
}
.region-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-top: 9px; flex-shrink: 0;
}
.region-list li span { color: var(--text-muted); opacity: 0.75; font-size: 14.5px; }

.rate-contact-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rate-contact-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
}
.rate-contact-card .region-card-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); display: block; margin-bottom: 10px; }

.buysell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
@media (max-width: 780px) {
  .buysell-grid { grid-template-columns: 1fr; }
}

.county-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
}
.county-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); }
.county-card-links { margin-top: 16px; display: flex; flex-direction: column; }
.county-card-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px; font-weight: 600; color: var(--navy);
  transition: color 0.3s ease;
}
.county-card-links a:last-child { border-bottom: none; }
.county-card-links a:hover { color: var(--steel); }
.county-card-links a svg { width: 14px; height: 14px; color: var(--steel-light); flex-shrink: 0; transition: transform 0.3s var(--ease), color 0.3s ease; }
.county-card-links a:hover svg { transform: translateX(3px); color: var(--gold); }

.county-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.county-picker-btn {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
}
.county-picker-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.county-picker-btn.active { background: var(--navy); border-color: var(--navy); }
.county-picker-name { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy); }
.county-picker-btn.active .county-picker-name { color: var(--white); }
.county-picker-cue { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--steel); }
.county-picker-btn.active .county-picker-cue { color: var(--gold-light); }

.county-empty-hint { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.county-empty-hint.hidden { display: none; }

.county-panels { margin-top: 8px; }
.county-panel { display: none; }
.county-panel.active { display: block; margin-top: 30px; }
.county-panel .county-card { max-width: 640px; margin: 0 auto; }

@media (max-width: 640px) {
  .county-picker { grid-template-columns: repeat(2, 1fr); }
}
.rate-contact-card .rate-phone { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); }
.rate-contact-card .rate-phone:hover { color: var(--steel); }
.rate-contact-card .rate-caption { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-muted); }

.region-aside { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 22px; }
.region-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
}
.region-card h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy);
}
.region-card .region-card-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text);
  margin-bottom: 8px; display: block;
}
.region-card address {
  font-style: normal; margin-top: 16px; font-size: 14.5px; line-height: 1.8; color: var(--text-muted);
}
.region-card-row { margin-top: 14px; font-size: 14px; }
.region-card-row strong { display: block; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.region-card-row a { color: var(--steel); font-weight: 600; }
.region-card .btn { margin-top: 22px; width: 100%; justify-content: center; }

.region-leader { text-align: center; }
.region-leader .leader-photo { width: 132px; height: 165px; margin: 0 auto 18px; }
.region-leader .leader-name { font-size: 17px; }
.region-leader .leader-title { margin-top: 4px; }
.region-leader .leader-contact { margin-top: 14px; }

.region-leaders { display: flex; flex-direction: column; gap: 20px; }
.region-leader-row { display: flex; align-items: center; gap: 14px; }
.region-leader-row + .region-leader-row { padding-top: 20px; border-top: 1px solid var(--border); }
.region-leader-photo { width: 64px; height: 80px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.region-leader-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.region-leader-name { font-family: var(--serif); font-size: 15.5px; font-weight: 600; color: var(--navy); }
.region-leader-title { margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--steel); }
.region-leader-title strong { color: var(--navy); font-weight: 600; }
.region-leader-row a { margin-top: 4px; display: inline-block; font-size: 12.5px; color: var(--steel); font-weight: 600; }
.region-leader-row a:hover { color: var(--gold-text); }

.region-crosslinks { padding: 40px 0 120px; background: var(--white); }
.region-crosslinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.region-crosslink {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  display: flex; align-items: flex-end;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.region-crosslink:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.region-crosslink img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.region-crosslink:hover img { transform: scale(1.08); }
.region-crosslink::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(16,29,36,0.05), rgba(16,29,36,0.85)); }
.region-crosslink-label { position: relative; z-index: 1; padding: 22px 24px; color: var(--white); }
.region-crosslink-label span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); display: block; margin-bottom: 4px; }
.region-crosslink-label h4 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--white); }

/* ==========================================================================
   Library / search pages (Title Library, Real Estate Library)
   ========================================================================== */
.tool-hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 32px 80px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--steel-deep) 100%);
  text-align: center;
  overflow: hidden;
}
.tool-hero::before {
  content: "";
  position: absolute;
  left: 50%; top: -120px; transform: translateX(-50%);
  width: 640px; height: 640px;
  background: url('/images/ctclogo_white_logoonlynotext.png') center / contain no-repeat;
  opacity: 0.05;
}
.tool-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.tool-hero h1 { color: var(--white); margin-top: 16px; font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 500; }
.tool-hero-sub { margin-top: 16px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.78); }

.lib-search-wrap { position: relative; z-index: 2; margin-top: -78px; padding: 0 32px; }
.lib-search-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
}
.lib-search-box { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.lib-search-box svg { width: 24px; height: 24px; color: var(--steel-light); flex-shrink: 0; }
.lib-search-box input {
  flex: 1;
  border: none; outline: none;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--navy);
  background: transparent;
}
.lib-search-box input::placeholder { color: var(--text-muted); }
.lib-search-count {
  flex-shrink: 0;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--steel); background: var(--cream); border-radius: 100px; padding: 6px 14px;
  white-space: nowrap;
}

.lib-content { padding: 70px 0 85px; background: var(--white); }
.lib-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 52px; }
.lib-chip {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--cream);
  font-size: 13px; font-weight: 600; color: var(--steel-deep);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.lib-chip:hover { border-color: var(--gold); color: var(--navy); }
.lib-chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.lib-meta { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.lib-meta strong { color: var(--navy); }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lib-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.lib-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); background: var(--white); border-color: transparent; }
.lib-item-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.lib-item-icon svg { width: 17px; height: 17px; color: var(--steel); }
.lib-item-body { flex: 1; min-width: 0; }
.lib-item-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.lib-item-cat { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lib-item-arrow { width: 14px; height: 14px; color: var(--steel-light); flex-shrink: 0; transition: transform 0.3s var(--ease), color 0.3s ease; }
.lib-item:hover .lib-item-arrow { transform: translateX(3px); color: var(--gold); }

.lib-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 15px; }
.lib-empty strong { display: block; margin-bottom: 8px; color: var(--navy); font-family: var(--serif); font-size: 20px; font-weight: 600; }

/* ==========================================================================
   Sales team grid (regional pages)
   ========================================================================== */
.sales-team { padding: 75px 0; background: var(--cream); }
.sales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.sales-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.sales-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.sales-photo {
  /* Rounded-rect crop (was circular) - bigger, portrait-oriented headshot
     framing, matching .leader-photo. */
  width: 148px; height: 185px;
  border-radius: 16px;
  margin: 0 auto 20px;
  padding: 4px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.sales-photo img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; border: 3px solid var(--white); }
.sales-photo-fallback {
  width: 100%; height: 100%;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 32px; font-weight: 600;
  border: 3px solid var(--white);
}
.sales-name { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--navy); }
.sales-contact { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--text-muted); }
.sales-contact a { color: var(--steel); font-weight: 600; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-section { padding: 75px 0 85px; background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 44px;
  align-items: start;
}
.contact-form-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px;
  overflow: hidden;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--steel-deep); margin-bottom: 9px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--navy);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.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(182,146,79,0.16);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.contact-submit { margin-top: 4px; width: 100%; justify-content: center; border: none; }

.form-success { display: none; text-align: center; padding: 50px 10px; }
.form-success.show { display: block; }
.form-success svg { width: 52px; height: 52px; color: var(--gold); margin-bottom: 18px; }
.form-success h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--navy); }
.form-success p { margin-top: 10px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }

.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-note { margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* ==========================================================================
   Open Order form
   ========================================================================== */
.oo-section { padding: 75px 0 85px; background: var(--cream); }
.oo-wrap { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }

.oo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 38px;
  box-shadow: var(--shadow-sm);
}
.oo-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.oo-card-head-text { display: flex; align-items: center; gap: 16px; }
.oo-card-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--cream); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.oo-card-icon svg { width: 21px; height: 21px; }
.oo-card-head h2 { font-size: 20px; font-weight: 600; }
.oo-card-head p { margin-top: 3px; font-size: 13.5px; color: var(--text-muted); }
.oo-required-flag { flex-shrink: 0; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; padding-top: 4px; }
.oo-required-flag em { color: var(--gold-text); font-style: normal; }
.oo-req { color: var(--gold-text); margin-right: 3px; }

.oo-card .form-row { margin-bottom: 0; }
.oo-card .form-group:last-child { margin-bottom: 0; }
.form-row-3 { display: grid; grid-template-columns: 1fr 90px 140px; gap: 20px; }

.oo-copies {
  margin-top: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.oo-copies-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.oo-copies-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.oo-copies-item { flex: 1; min-width: 84px; }
.oo-copies-item label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.oo-copies-item select { width: 100%; }
.oo-copies .form-group { margin: 16px 0 0; max-width: 260px; }

.oo-submit-card { text-align: center; padding: 42px 38px; }
.oo-submit-btn { width: 100%; justify-content: center; border: none; font-size: 16px; padding: 16px; }
.oo-note { margin-top: 22px; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.oo-note a { color: var(--steel); font-weight: 600; }

@media (max-width: 720px) {
  .oo-card { padding: 28px 24px; }
  .oo-card-head { flex-direction: column; }
  .form-row-3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Agent Tools / Title Advantage
   ========================================================================== */
.ta-section { padding: 75px 0 85px; background: var(--white); }
.ta-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 44px;
  align-items: start;
}

.ta-showcase-image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ta-showcase-image img { width: 100%; display: block; }

.feature-list { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.feature-row { display: flex; align-items: flex-start; gap: 16px; }
.feature-row .icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--cream); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--steel);
}
.feature-row .icon svg { width: 19px; height: 19px; }
.feature-row .text strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 16.5px; font-weight: 600; }
.feature-row .text span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

.login-card {
  position: sticky;
  top: 112px;
  background: linear-gradient(160deg, var(--navy), var(--steel-deep));
  border-radius: 22px;
  padding: 42px 36px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.login-card h2 { color: var(--white); font-size: 23px; font-weight: 500; }
.login-card p.login-sub { margin-top: 8px; color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; }
.login-card .form-group { margin-top: 22px; margin-bottom: 0; }
.login-card .form-group label { color: rgba(255,255,255,0.65); }
.login-card .form-group input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
}
.login-card .form-group input::placeholder { color: rgba(255,255,255,0.32); }
.login-card .form-group input:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(182,146,79,0.25);
}
.login-submit { margin-top: 26px; width: 100%; justify-content: center; border: none; }

.login-divider {
  margin: 30px 0 22px;
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.4); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.15); }

.login-links { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.login-links button {
  background: none; border: none; padding: 0;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.login-links button:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ==========================================================================
   Tool landing pages (Farm Focus, etc.)
   ========================================================================== */
.tool-logo { max-width: 420px; width: 70%; margin: 26px auto 0; display: block; }
.tool-tagline {
  margin-top: 30px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--gold-light);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.5;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}

.video-section { padding: 75px 0; background: var(--cream); }
.video-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ff-checklist-card {
  background: linear-gradient(160deg, var(--navy), var(--steel-deep));
  border-radius: 22px;
  padding: 40px 34px;
  color: var(--white);
}
.ff-checklist-card h3 { color: var(--white); font-size: 19px; font-weight: 600; }
.ff-checklist { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; padding: 0; }
.ff-checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.8);
  list-style: none;
}
.ff-checklist li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--gold-light); }

.ta-showcase-image.portrait { aspect-ratio: 4 / 5; }
.ta-showcase-image.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

.store-badges { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.store-badge img { height: 52px; width: auto; border-radius: 8px; transition: transform 0.3s var(--ease); }
.store-badge:hover img { transform: translateY(-3px); }
.qr-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; padding: 10px 16px;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.qr-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.14); }
.qr-card img { width: 60px; height: 60px; border-radius: 6px; background: var(--white); padding: 4px; flex-shrink: 0; }
.qr-card span { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,0.65); max-width: 110px; }

/* ==========================================================================
   My Rep (individual sales-rep profile page)
   ========================================================================== */
.rep-hero {
  position: relative;
  padding: 130px 0 70px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--steel-deep) 100%);
  overflow: hidden;
}
.rep-hero-inner { display: flex; align-items: center; gap: 46px; flex-wrap: wrap; }
.rep-photo {
  /* Trying a rounded-rect crop here instead of the site's usual circular
     headshot mask - portrait-oriented to match the 140x186-ish ratio used
     for team photos elsewhere. If this reads better, the circular masks
     elsewhere (.leader-photo, etc.) are candidates to follow suit. */
  width: 160px; height: 200px;
  flex-shrink: 0;
  border-radius: 20px;
  padding: 6px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.rep-photo img { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; border: 4px solid var(--navy); display: block; }
.rep-photo-initials {
  width: 100%; height: 100%;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  border: 4px solid var(--navy);
  font-family: var(--serif); font-size: 46px; font-weight: 600; color: var(--gold-light);
}
.rep-hero-info { flex: 1; min-width: 280px; color: var(--white); }
.rep-hero-info h1 { color: var(--white); margin-top: 12px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; }
.rep-role { margin-top: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--gold-light); }
.rep-office { margin-top: 4px; font-size: 14.5px; color: rgba(255,255,255,0.65); }
.rep-message { margin-top: 16px; font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.82); max-width: 560px; }
.rep-contact-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.rep-meta-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.rep-meta-item { font-size: 14.5px; color: rgba(255,255,255,0.85); display: inline-flex; align-items: baseline; gap: 6px; transition: color 0.25s ease; }
.rep-meta-item:hover { color: var(--gold-light); }
.rep-meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); }
.rep-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.rep-social-chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.rep-social-chip:hover { border-color: var(--gold-light); color: var(--gold-light); background: rgba(255,255,255,0.06); }
@media (max-width: 640px) {
  .rep-hero-inner { flex-direction: column; text-align: center; }
  .rep-contact-row, .rep-meta-row, .rep-social { justify-content: center; }
  .rep-message { max-width: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .leaders-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .news-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 90px 0; }
  .about-media { max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  .region-grid { grid-template-columns: 1fr; gap: 56px; }
  .region-aside { position: static; max-width: 460px; }

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

  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-aside { max-width: 460px; }

  .ta-grid { grid-template-columns: 1fr; gap: 56px; }
  .login-card { position: static; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 1050px) {
  .container { padding: 0 24px; }
  .rate-contact-grid { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed; inset: 0;
    background: linear-gradient(160deg, var(--navy), var(--steel-deep));
    display: flex; align-items: flex-start; justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--header-h) + 20px) 20px 40px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 550;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 6px; text-align: center; width: 100%; max-width: 420px; }
  .main-nav a { color: var(--white) !important; font-size: 16px; padding: 14px 20px; text-shadow: none; }
  .main-nav li.has-dropdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
  .main-nav li.has-dropdown > a { flex: 1 1 auto; }
  .main-nav .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; display: none; padding: 0; margin-top: 6px;
    width: 100%; flex-basis: 100%;
  }
  .main-nav li.has-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown a { color: rgba(255,255,255,0.65) !important; font-size: 14px; }
  .nav-dropdown-overview { display: block; }
  .nav-dropdown-overview a { font-weight: 700; color: rgba(255,255,255,0.9) !important; border-bottom: 1px solid rgba(255,255,255,0.15); border-radius: 0; margin-bottom: 6px; padding-bottom: 12px !important; }
  .nav-dropdown-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0;
    color: rgba(255,255,255,0.8);
  }
  .nav-dropdown-arrow[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav-toggle { display: flex; }
  .nav-cta { margin-top: 10px; }

  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 18px; right: 20px; z-index: 560;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 28px; line-height: 1;
  }

  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3), .stat:nth-child(4) { margin-top: 6px; border-top: 1px solid var(--border); }
  .stat:nth-child(3)::before { display: none; }

  .services { padding-top: 140px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-group-bs { display: none; }
  .services-mobile-cta { display: block; }
  .about-badge { position: static; margin-top: -50px; margin-left: auto; max-width: 220px; }
  .quote-band { padding: 100px 24px; }
  .cta-inner { padding: 44px 32px; justify-content: center; text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  .page-hero { min-height: 560px; }
  .region-crosslinks-grid { grid-template-columns: 1fr; }

  .tool-hero { padding: calc(var(--header-h) + 50px) 24px 110px; }
  .lib-grid { grid-template-columns: 1fr; }
  .lib-search-box { padding: 10px 12px; gap: 10px; }
  .lib-search-box input { font-size: 16px; }
  .lib-search-count { display: none; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form-card { padding: 30px 24px; }
  .sales-grid { grid-template-columns: repeat(2, 1fr); }
  .login-card { padding: 32px 26px; }
}

@media (max-width: 520px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { justify-content: center; }
  .scroll-cue { display: none; }
  .hero { padding-bottom: 70px; }
  .stats-wrap { margin-top: -70px; }
  .stat { padding: 22px 10px; }

  .page-hero-cta { flex-direction: column; align-items: stretch; }
  .page-hero-cta .btn { justify-content: center; }

  .sales-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}
