/* ============================================================
   Fairstone Valuations — style.css
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* === Design Tokens === */
:root {
  --navy-deep:   #0c1924;
  --navy:        #132236;
  --navy-mid:    #1a3050;
  --navy-light:  #264768;
  --gold:        #b8913a;
  --gold-hover:  #cfa040;
  --gold-rule:   rgba(184,145,58,0.4);
  --cream:       #faf7f2;
  --offwhite:    #f2f5f8;
  --white:       #ffffff;
  --border:      #dde5ee;
  --border-warm: #e5dfd6;
  --text:        #18293d;
  --text-muted:  #4f6375;
  --text-light:  #7a8fa2;
  --max-w:       1080px;
  --px:          40px;
  --section-v:   100px;
  --radius:      3px;
  --radius-md:   6px;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 400; }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

/* === Layout === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

section { padding: var(--section-v) 0; }

/* === Section label === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* === Skip link === */
.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  z-index: 300;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-brand-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
  display: block;
}

.nav-brand-main span { color: var(--gold); }

.nav-brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus { color: var(--white); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  padding: 9px 22px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  transition: background 0.2s !important;
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--gold-hover) !important;
  color: var(--navy-deep) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.65);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover,
.btn-primary:focus { background: var(--gold-hover); border-color: var(--gold-hover); }

.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.28);
}
.btn-secondary:hover,
.btn-secondary:focus {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy-light);
}
.btn-outline-navy:hover,
.btn-outline-navy:focus {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy-deep);
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -52deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.013) 60px,
    rgba(255,255,255,0.013) 61px
  );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 95% 50%, rgba(184,145,58,0.08) 0%, transparent 65%),
    linear-gradient(170deg, rgba(12,25,36,0.0) 0%, rgba(12,25,36,0.5) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: stretch;
}

.hero-accent-bar {
  width: 2px;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--gold) 15%,
    var(--gold) 85%,
    transparent 100%
  );
  opacity: 0.35;
  margin-right: 36px;
  border-radius: 1px;
}

.hero-content {
  max-width: 680px;
  padding: 8px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.08;
}

.hero-punchline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  line-height: 1.3;
  margin-bottom: 30px;
}

.hero-sub {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 600px;
}

.hero-rule {
  width: 36px;
  height: 1px;
  background: var(--gold-rule);
  border: none;
  margin: 28px 0;
}

.hero-body {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.85;
  max-width: 560px;
}

/* ============================================================
   WHO WE WORK WITH
   ============================================================ */
.for-section {
  background: var(--cream);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

.for-section h2 { margin-bottom: 14px; }

.for-section .lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
}

.for-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-warm);
  margin-top: 44px;
}

.for-list li {
  padding: 20px 0 20px 28px;
  border-bottom: 1px solid var(--border-warm);
  position: relative;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}

.for-list li:nth-child(odd) {
  border-right: 1px solid var(--border-warm);
  padding-right: 32px;
}
.for-list li:nth-child(even) {
  padding-left: 36px;
}

.for-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(20px + 0.75em);
  width: 16px;
  height: 1px;
  background: var(--gold);
}

.for-list li:nth-child(even)::before {
  left: 8px;
}

/* ============================================================
   PROTECT VALUE
   ============================================================ */
.protect-section { background: var(--white); }

.protect-section h2 { margin-bottom: 18px; }

.protect-section .lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.protect-section .lead-2 {
  font-size: 0.92rem;
  color: var(--text-light);
  max-width: 660px;
  line-height: 1.8;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.risk-item {
  background: var(--white);
  padding: 26px 26px 26px 48px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  transition: background 0.15s;
}

.risk-item:hover { background: var(--cream); }

.risk-item::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--navy); }

.services-section .section-label { color: var(--gold); }

.services-section h2 {
  color: var(--white);
  font-weight: 400;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  counter-reset: service-num;
}

.service-card {
  counter-increment: service-num;
  background: rgba(255,255,255,0.06);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.2s;
  border-top: 2px solid transparent;
  overflow: hidden;
}

.service-card:hover {
  background: rgba(255,255,255,0.07);
  border-top-color: var(--gold);
}

.service-card::before {
  content: counter(service-num, decimal-leading-zero);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  position: absolute;
  bottom: 12px;
  right: 16px;
  pointer-events: none;
  user-select: none;
}

.service-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.service-card p {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.services-boundary {
  margin-top: 44px;
  padding: 20px 24px;
  border-left: 2px solid var(--gold-rule);
  background: rgba(0,0,0,0.15);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.services-boundary p {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.32);
  font-style: italic;
  margin: 0;
  line-height: 1.65;
}

/* ============================================================
   CREDENTIALS
   ============================================================ */
.credentials-section {
  background: var(--cream);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

.credentials-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.credentials-intro h2 { margin-bottom: 20px; }

.credentials-intro .lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.credentials-intro .lead-2 {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.8;
}

.credentials-cta { margin-top: 36px; }

.credentials-proof { padding-top: 6px; }

.proof-list {
  list-style: none;
  border-top: 1px solid var(--border-warm);
}

.proof-list li {
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid var(--border-warm);
  position: relative;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}

.proof-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: var(--white); }

.faq-section h2 { margin-bottom: 40px; }

.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 22px 52px 22px 0;
  text-align: left;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  display: block;
  line-height: 1.3;
  transition: color 0.15s;
}

.faq-question:hover,
.faq-question:focus-visible { color: var(--navy-mid); }

.faq-question:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.faq-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--offwhite);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--navy-mid);
  border-radius: 1px;
  transition: transform 0.25s;
}

.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; }

.faq-item.open .faq-icon {
  background: var(--gold);
  border-color: var(--gold);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--navy-deep); }
.faq-item.open .faq-icon::after { transform: scaleY(0); }

.faq-answer {
  display: none;
  padding: 2px 52px 24px 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.85;
}

.faq-item.open .faq-answer { display: block; }

/* ============================================================
   CONTACT CTA
   ============================================================ */
.contact-section {
  background: var(--navy);
  text-align: center;
  padding: 44px 0;
}

.contact-section h2 {
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.contact-section .lead {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.75;
}

.contact-section .btn-group {
  justify-content: center;
  margin-top: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--px) 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.2;
}

.footer-brand-name span { color: var(--gold); }

.footer-brand-byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-top: 6px;
}

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

.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover,
.footer-link:focus { color: var(--gold); }

.footer-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-link[aria-current="page"] { color: rgba(255,255,255,0.6); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px var(--px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  align-items: center;
  justify-content: space-between;
}

.footer-note {
  font-size: 0.74rem;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  max-width: 560px;
  line-height: 1.6;
  font-style: italic;
}

.footer-copy {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-section {
  padding: 72px 0 88px;
  background: var(--white);
}

.privacy-header {
  padding-bottom: 28px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.privacy-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }

.privacy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.privacy-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.privacy-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
}

.privacy-body {
  max-width: 680px;
  padding-top: 36px;
}

.privacy-body section {
  padding: 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 28px;
}

.privacy-body section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.privacy-body h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
  margin-bottom: 10px;
}

.privacy-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.privacy-body p:last-child { margin-bottom: 0; }

.privacy-body a {
  color: var(--navy-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-body a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .credentials-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 720px) {
  :root {
    --section-v: 60px;
    --px: 20px;
  }

  .nav-inner { height: 60px; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 8px 0 16px;
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 20px; }
  .nav-links .nav-cta { margin: 10px 20px 0; text-align: center; display: block; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 68px 0 60px; }
  .hero-accent-bar { display: none; }

  .for-list { grid-template-columns: 1fr; }
  .for-list li:nth-child(odd) { border-right: none; padding-right: 0; }
  .for-list li:nth-child(even) { padding-left: 28px; }
  .for-list li:nth-child(even)::before { left: 0; }

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

  .services-grid { grid-template-columns: 1fr; }
  .service-card::before { font-size: 3.5rem; }

  .btn-group { flex-direction: column; align-items: flex-start; }
  .contact-section .btn-group { align-items: center; }

  .privacy-section { padding: 48px 0 60px; }

  .footer-top { flex-direction: column; padding-bottom: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-copy { white-space: normal; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .faq-question { font-size: 1rem; }
}
