:root {
  --navy-900: #0a1628;
  --navy-700: #162a4a;
  --navy-950: #060f1d;
  --gold-500: #c9a84c;
  --gold-300: #e2cc7e;
  --tile-bg: rgba(255, 255, 255, 0.03);
  --tile-border: rgba(226, 204, 126, 0.15);
  --tile-border-hover: rgba(226, 204, 126, 0.45);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --white: #ffffff;
  --cream: #f5f3ef;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --cta: #2d6a4f;
  --cta-hover: #1b4332;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

h1, h2 { font-family: var(--font-display); margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; }
h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.2; }
h3 { font-family: var(--font-display); font-size: clamp(21px, 3vw, 24px); margin: 0 0 10px; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 180px; height: 60px; border-radius: 0; object-fit: contain; object-position: right center; }
.site-header img[src*="qorri-script"] {
  filter: brightness(0) invert(1);
}
.logo span { color: var(--gold-300); font-weight: 600; letter-spacing: 0.04em; }

.header-wrap { position: relative; }
.menu-toggle { display: none; }
.nav { display: flex; flex-wrap: wrap; gap: 14px; color: var(--white); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.nav a { padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a.active { border-color: var(--gold-500); color: var(--gold-300); }
.nav .book-link { border: 1px solid rgba(201, 168, 76, 0.9); border-radius: 6px; padding: 8px 10px; }

.hero {
  min-height: 85vh;
  display: grid;
  align-items: center;
  background: linear-gradient(145deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 56px 0;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-actions { display: grid; gap: 10px; align-content: start; }
.hero-copy p { color: #d6ddec; margin: 0 0 14px; }
.hero-kicker { color: var(--gold-300); text-transform: uppercase; font-size: 12px; letter-spacing: 0.12em; font-weight: 600; margin-bottom: 10px; }
.hero-image img {
  width: 100%;
  max-width: 430px;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.hero-signature {
  margin: 8px 0 14px;
}
.hero-signature-right {
  display: flex;
  justify-content: flex-end;
}
.hero-signature img {
  width: 260px;
  max-width: 100%;
  height: auto;
  filter: none;
  opacity: 1;
}

.btn { display: inline-block; padding: 12px 18px; border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.btn-primary { background: var(--cta); color: var(--white); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-gold { background: var(--gold-500); color: #111; }

.micro-note { color: var(--gold-300); font-size: 13px; margin-top: 8px; }

.trust-bar { background: #0b1322; color: var(--gold-300); border-top: 1px solid rgba(201,168,76,.25); border-bottom: 1px solid rgba(201,168,76,.25); }
.trust-row { display: grid; gap: 8px; padding: 12px 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-align: center; }

.section { padding: 82px 0; }
.section.alt { background: var(--cream); }
.section.navy { background: var(--navy-900); color: var(--white); }
.section.navy p { color: #d6ddec; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.card { background: var(--white); border: 1px solid rgba(10,22,40,.14); border-radius: 8px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.card-link { display: block; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-link:hover { transform: translateY(-2px); border-color: rgba(201,168,76,.6); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.learn-more { display: inline-block; margin-top: 10px; color: var(--navy-700); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.section.navy .learn-more { color: var(--gold-300); }
.card.flagship { border: 1px solid var(--gold-500); }
.badge { display: inline-block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(201,168,76,.18); color: #7f6513; font-weight: 700; }
.list { margin: 10px 0 0; padding-left: 18px; }

.kpi { font-size: 30px; color: var(--white); font-weight: 700; }
.penalty-grid .card { background: #0d192c; color: var(--white); border-left: 4px solid var(--gold-500); }
.penalty-grid .card.high { border-left-color: #c0392b; }
.penalty-grid .amount { font-size: 30px; font-weight: 700; color: var(--white); }

.testimonial { background: var(--white); border: 1px solid rgba(201,168,76,.45); border-radius: 8px; padding: 18px; }
.testimonial .stars { color: var(--gold-500); }

.cta-band { background: var(--navy-900); color: var(--white); padding: 44px 0; border-top: 1px solid rgba(201,168,76,.35); }
.footer { background: var(--navy-950); color: #d5dce8; padding: 34px 0 16px; font-size: 13px; }
.footer-grid { display: grid; gap: 20px; }
.footer h4 { margin: 0 0 10px; color: var(--gold-300); }
.footer-mini { border-top: 1px solid rgba(201,168,76,.2); margin-top: 16px; padding-top: 12px; font-size: 12px; color: #9ca7bd; }
.footer .brand-mini { width: 34px; height: 34px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.footer .brand-mini.logo-big { width: 190px; height: 70px; border-radius: 0; object-fit: contain; object-position: center; }
.map-link { color: var(--gold-300); text-decoration: underline; text-underline-offset: 2px; }
.embed-frame { width: 100%; min-height: 620px; border: 1px solid rgba(201,168,76,.35); border-radius: 10px; background: #fff; }
.recaptcha-note { margin-top: 8px; font-size: 12px; color: #6b6b6b; }
.signature-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.signature-wrap img {
  width: 320px;
  max-width: 100%;
  height: auto;
}
.signature-caption { color: var(--muted); font-size: 13px; }

.blog-meta { color: #d6ddec; display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.blog-article { padding: 68px 0; }
.blog-article .post-wrap { max-width: 840px; margin: 0 auto; }
.blog-article .intro { font-size: 18px; color: #3b4964; }
.blog-article h2 { font-size: 30px; margin-top: 34px; }
.blog-article h3 { font-size: 23px; margin-top: 28px; }
.blog-article ul { padding-left: 22px; }
.blog-article .note-box { background: rgba(201,168,76,.12); border-left: 4px solid var(--gold-500); padding: 14px 16px; border-radius: 8px; margin: 18px 0; }

.todo-note { border: 1px dashed #c9a84c; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: #f5f3ef; margin-top: 10px; }
.case-card {
  border-left: 3px solid var(--gold-500);
  box-shadow: 0 10px 24px rgba(3, 10, 20, 0.08);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.case-pill {
  display: inline-block;
  border: 1px solid rgba(201, 168, 76, 0.65);
  color: #715814;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.case-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.case-kpi {
  background: #f7f7f7;
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
}
.case-kpi strong {
  display: block;
  color: var(--navy-900);
  font-size: 15px;
  line-height: 1.2;
}
.case-kpi span {
  font-size: 12px;
  color: var(--muted);
}

@media (min-width: 780px) {
  .hero-grid {
    grid-template-columns: 1.2fr .8fr;
    grid-template-areas:
      "copy image"
      "actions image";
    align-items: start;
  }
  .hero-copy { grid-area: copy; }
  .hero-image { grid-area: image; }
  .hero-actions { grid-area: actions; max-width: 700px; }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 980px) {
  .footer-grid { grid-template-columns: 1.1fr 0.9fr 1fr 1fr 1fr 1fr; }
}

.iconized .card h3 { display: flex; align-items: center; gap: 10px; }
.iconized .card h3::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10.5' stroke='%23c9a84c' stroke-width='2'/%3E%3Cpath d='M9 7l6 5-6 5' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav .book-link { position: relative; top: -4px; }
.nav .header-phone {
  border: 1px solid rgba(201, 168, 76, 0.9);
  border-radius: 6px;
  padding: 8px 10px;
  display: inline-block;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  top: -4px;
}

.tile,
.card,
.card-link,
.testimonial,
.case-kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(226, 204, 126, 0.15);
  border-radius: 10px;
}


/* Tile System Rebuild */
.tile,
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow:
    0 1px 0 rgba(226, 204, 126, 0.08) inset,
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.tile::before,
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(201, 168, 76, 0) 0%,
    rgba(226, 204, 126, 0.9) 50%,
    rgba(201, 168, 76, 0) 100%
  );
  border-radius: 10px 10px 0 0;
}

.tile-link,
.card-link {
  display: block;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.tile:hover,
.card:hover,
.tile-link:hover,
.card-link:hover {
  transform: translateY(-3px);
  border-color: var(--tile-border-hover);
  box-shadow:
    0 1px 0 rgba(226, 204, 126, 0.15) inset,
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.3);
}

.tile--flagship,
.card.flagship,
.tile.flagship {
  border-color: rgba(226, 204, 126, 0.35);
  background:
    radial-gradient(circle at top right, rgba(226, 204, 126, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.tile-tag,
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  border: 1px solid rgba(226, 204, 126, 0.4);
  border-radius: 999px;
  background: rgba(226, 204, 126, 0.06);
  margin-bottom: 14px;
  font-weight: 600;
}

.tile-tag--flagship,
.badge.flagship {
  color: var(--navy-900);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  border-color: var(--gold-500);
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(226, 204, 126, 0.4);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  margin-bottom: 16px;
}

.tile-icon svg {
  width: 20px;
  height: 20px;
}

/* Keep specialized dark penalty cards as-is */
.penalty-grid .card,
.penalty-grid .tile {
  background: #0d192c;
}

.iconized .tile h3,
.iconized .card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Typography System (Step 3) */
body {
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4,
.hero-title,
.pull-quote,
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1, .hero-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gold-300);
}

nav, button, .btn, .cta, .tile-tag, .trust-badge, input, textarea, select, label {
  font-family: var(--font-body);
}

.tile h3, .tile h4 {
  font-family: var(--font-display);
  font-weight: 600;
}

/* Readability Lock (Step 6): keep dense/technical content in Inter */
p,
li,
td,
th,
input,
textarea,
select,
label,
.blog-article,
.blog-article p,
.blog-article li,
.note-box,
.todo-note,
.footer,
.footer-mini,
.disclaimer,
.list,
.case-kpi span,
.penalty-grid .card p,
.penalty-grid .card li {
  font-family: var(--font-body);
}


/* Fortune Editorial Pull Quote (Task 4 fix) */
.section.navy .pull-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  color: var(--gold-300);
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 16px;
}

.pull-quote-attribution {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-family: var(--font-body);
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .section.navy .pull-quote {
    font-size: 24px;
  }
}


.trust-firm-name { white-space: nowrap; }


.hero-image-credit {
  font-size: 11px;
  color: var(--gold-300);
  opacity: 0.7;
  margin: 6px 0 0;
  text-align: right;
  font-style: italic;
}
.hero-image-credit a {
  color: inherit;
  text-decoration: underline;
}


/* Location hero images: preserve full landmark framing */
.locations-hero-full img {
  width: 100%;
  max-width: 380px;
  height: 460px;
  object-fit: cover !important;
  background: transparent;
}

@media (max-width: 779px) {
  .locations-hero-full img {
    max-width: 100%;
    height: auto;
  }
}

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid rgba(12, 29, 56, 0.08);
  border-left: 3px solid var(--gold-500);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: 0 4px 14px rgba(12,29,56,0.08); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-900);
  list-style: none;
  padding-right: 28px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-500);
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  content: 'â';
}
.faq details p {
  margin: 12px 0 4px;
  color: #4a5568;
  line-height: 1.65;
  font-size: 15px;
}
.faq details p:last-child { margin-bottom: 0; }
.section.navy .faq details {
  background: rgba(255,255,255,0.04);
  border-color: rgba(201,168,76,0.3);
  border-left-color: var(--gold-500);
}
.section.navy .faq summary { color: var(--white); }
.section.navy .faq details p { color: #d6ddec; }

/* Penalty-awareness callout inside tiles */
.penalty-note {
  margin-top: 14px;
  padding: 10px 12px 10px 14px;
  background: rgba(192, 57, 43, 0.06);
  border-left: 3px solid #c0392b;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy-900);
}
.penalty-note strong {
  display: block;
  color: #c0392b;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
  font-weight: 700;
}
.tile-link:hover .penalty-note,
.card-link:hover .penalty-note {
  background: rgba(192, 57, 43, 0.1);
}
.section.navy .penalty-note {
  background: rgba(192, 57, 43, 0.14);
  color: #f5e9e7;
}
.section.navy .penalty-note strong { color: #ff7d6f; }


/* ============================================================
   MOBILE / SMALL-SCREEN FIXES  (â¤ 779px)
   ============================================================ */
@media (max-width: 779px) {

  html { scroll-padding-top: 68px; }

  /* Header -------------------------------------------------- */
  .header-wrap {
    padding: 10px 0;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .logo img { width: 140px; height: 44px; }

  /* Hide desktop nav, reveal only when toggled open */
  .site-header .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: rgba(10, 22, 40, 0.98);
    border-bottom: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    font-size: 14px;
    letter-spacing: 0.06em;
  }
  .site-header .nav.is-open { display: flex; }
  .site-header .nav a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  }
  .site-header .nav a:last-child { border-bottom: none; }
  .site-header .nav a.active { color: var(--gold-300); }

  /* Buttons inside mobile nav: full width, no tiny boxes */
  .site-header .nav .book-link,
  .site-header .nav .header-phone {
    margin-top: 10px;
    padding: 12px 14px;
    text-align: center;
    border: 1px solid rgba(201, 168, 76, 0.9);
    border-radius: 6px;
    top: 0;
    position: static;
  }
  .site-header .nav .book-link {
    background: var(--gold-500);
    color: #111;
    border-color: var(--gold-500);
  }

  /* Hamburger toggle button --------------------------------- */
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.6);
    border-radius: 6px;
    color: var(--gold-300);
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
  }
  .menu-toggle svg { width: 22px; height: 22px; display: block; }
  .menu-toggle:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }

  /* Hero ----------------------------------------------------- */
  .hero {
    min-height: auto;
    padding: 36px 0 44px;
  }
  .hero-grid { gap: 20px; }
  .hero h1 { font-size: 30px; line-height: 1.15; }
  .hero-copy p { font-size: 15px; line-height: 1.55; }
  .hero-kicker { font-size: 11px; margin-bottom: 8px; }
  .hero-image { order: -1; display: flex; justify-content: center; }
  .hero-image img { max-width: 260px; height: auto; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-actions .micro-note { font-size: 12px; }

  .hero-signature img { width: 200px; }

  /* Section spacing ----------------------------------------- */
  .section { padding: 48px 0; }
  h1 { font-size: 30px; line-height: 1.18; }
  h2 { font-size: 24px; line-height: 1.22; }
  h3 { font-size: 19px; }
  .blog-article h2 { font-size: 24px; }
  .blog-article h3 { font-size: 19px; }

  /* Trust bar stays readable */
  .trust-row {
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1.45;
    padding: 14px 0;
    gap: 4px;
  }

  /* Grids stack cleanly */
  .grid-2, .grid-3, .grid-4 { gap: 14px; }
  .tile, .card { padding: 22px 18px; }

  /* Footer */
  .footer { padding: 28px 0 14px; }
  .footer-grid { gap: 18px; }
  .footer .brand-mini.logo-big { width: 160px; height: 56px; }

  /* Pull quote */
  .section.navy .pull-quote { font-size: 22px; }

  /* CTA band */
  .cta-band { padding: 34px 0; }

  /* Embedded forms */
  .embed-frame { min-height: 520px; }
}

/* Extra-small phones (â¤ 380px) -------------------------------- */
@media (max-width: 380px) {
  .logo img { width: 120px; height: 40px; }
  .hero h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .hero-image img { max-width: 230px; }
}
