:root {
  --primary:    #243C4B;
  --secondary:  #6F8793;
  --bg:         #F7F4EE;
  --text:       #20272B;
  --accent:     #DDDCD6;
  --white:      #FFFFFF;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --radius:     4px;
  --max:        1160px;
  --pad:        clamp(24px, 5vw, 80px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #1a2028;
    --text:  #E8E5DF;
    --accent:#2e3a44;
    --white: #1f2b34;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--primary);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--bg);
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--secondary);
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(247,244,238,0.7);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--bg); }

.nav-cta {
  background: var(--secondary);
  color: var(--bg) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 500 !important;
  opacity: 1 !important;
}

.nav-cta:hover { background: #7a93a0 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bg);
  transition: 0.3s;
}

/* ── HERO ── */
.hero {
  background: var(--primary);
  /* Height comes from content + padding, so the editor's padding sliders control it */
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 180px var(--pad) 140px;
  position: relative;
  overflow: hidden;
}

/* Photo fills the right ~75% of the hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 32%; right: 0;
  background-image: url("/images/hero-open-sign.jpg");
  background-size: cover;
  background-position: 0% 40%;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Blend photo into brand blue on the left, darken top for the nav */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(24,40,52,0.55) 0%, rgba(24,40,52,0) 22%),
    linear-gradient(90deg, #243C4B 0%, #243C4B 32%, rgba(36,60,75,0.85) 40%, rgba(36,60,75,0.45) 49%, rgba(36,60,75,0) 60%);
}

.hero .hero-headline, .hero-sub { text-shadow: 0 1px 18px rgba(15,25,32,0.45); }
.hero .hero-shape { display: none; }

/* Phones and tablets: photo stacks below the text */
@media (max-width: 1100px) {
  /* !important keeps the photo clear of the text even if desktop padding was changed in the editor */
  .hero { --hero-photo: clamp(300px, 50vw, 480px); align-items: flex-start; min-height: 0 !important; padding-bottom: calc(var(--hero-photo) + 24px) !important; }
  .hero::before { left: 0; top: auto; height: var(--hero-photo); background-position: 50% 38%; }
  .hero::after { top: auto; height: var(--hero-photo); background: linear-gradient(180deg, #243C4B 0%, rgba(36,60,75,0) 40%); }
  .hero-scroll { display: none !important; }
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.hero .hero-headline {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 500;
  color: var(--bg);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin-bottom: 32px;
}

.hero .hero-headline em {
  font-style: italic;
  color: var(--secondary);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(247,244,238,0.85);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: var(--bg);
  color: var(--primary);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background 0.2s;
  display: inline-block;
}

.btn-primary:hover { background: #e8e5df; }

.btn-ghost {
  color: rgba(247,244,238,0.75);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--bg); }

.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(247,244,238,0.35);
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(247,244,238,0.25);
}

/* ── SECTION WRAPPER ── */
.section {
  padding: clamp(64px, 10vw, 120px) var(--pad);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ── WHAT WE DO ── */
.services {
  background: var(--white);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--secondary);
}

.home-blog { background: var(--white); }
.home-blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.home-blog-head h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); font-weight: 500; color: var(--primary); line-height: 1.15; }
.home-blog-all { font-size: 14px; font-weight: 600; color: var(--primary); }
.home-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.home-blog-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--accent); border-radius: 6px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.home-blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(36,60,75,.12); }
.home-blog-card img, .home-blog-noimg { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.home-blog-body { padding: 20px 22px 24px; }
.home-blog-date { font-size: 12px; color: var(--secondary); margin-bottom: 8px; }
.home-blog-body h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; color: var(--primary); margin-bottom: 8px; }
.home-blog-body p:last-child { font-size: 15px; color: var(--text); opacity: .8; line-height: 1.6; }
@media (prefers-color-scheme: dark) { .home-blog-head h2, .home-blog-body h3, .home-blog-all { color: var(--text); } }

.services-header h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.services-header p {
  color: #555;
  line-height: 1.75;
  font-size: 15px;
  max-width: 400px;
  align-self: end;
}
/* Desktop: intro copy spans from the Brand Identity card to the Ongoing Support card, aligned with their text */
@media (min-width: 901px) {
  .services-header { grid-template-columns: repeat(4, 1fr); column-gap: 2px; }
  .services-header p { grid-column: 2 / 5; max-width: none; padding: 0 28px; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--accent);
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  transition: background 0.2s;
}

.service-card:hover { background: var(--bg); }

.service-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.service-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ── ABOUT / DIFFERENTIATOR ── */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 80px;
  align-items: center;
}

.about-content h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 16px;
  max-width: 520px;
}

.about-content p:last-of-type { margin-bottom: 36px; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-card {
  background: var(--primary);
  padding: 28px 32px;
}

.stat-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--bg);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--secondary);
  letter-spacing: 0.02em;
}

/* ── PORTFOLIO ── */
.portfolio {
  background: var(--primary);
  padding: clamp(64px, 10vw, 120px) var(--pad);
}

.portfolio-header {
  max-width: var(--max);
  margin: 0 auto 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.portfolio-header h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  color: var(--bg);
  line-height: 1.15;
}

.portfolio-header .section-label { color: rgba(111,135,147,0.9); }
.portfolio-header .section-label::before { background: rgba(111,135,147,0.9); }

.portfolio-link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(247,244,238,0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  white-space: nowrap;
}

.portfolio-link:hover { color: var(--bg); }

.portfolio-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  background: #1a2e3b;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.portfolio-card:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0.75;
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.03);
  opacity: 0.5;
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(to top, rgba(24,38,47,0.92) 0%, transparent 60%);
}

.portfolio-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 8px;
}

.portfolio-card h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 4px;
}

.portfolio-card p {
  font-size: 13px;
  color: rgba(247,244,238,0.55);
}

.portfolio-card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247,244,238,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.portfolio-card:hover .portfolio-card-arrow { opacity: 1; }

/* Portfolio placeholder images */
.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(247,244,238,0.2);
  letter-spacing: 0.08em;
}

.ph-midwest { background: linear-gradient(135deg, #1a3a4a 0%, #0d2533 100%); }
.ph-oshaughnessy { background: linear-gradient(135deg, #2a1a0e 0%, #1a0f08 100%); }
.ph-powderhog { background: linear-gradient(135deg, #1a2a1a 0%, #0d1a0d 100%); }

/* ── PROCESS ── */
.process {
  background: var(--white);
}

.process-header {
  margin-bottom: 56px;
}

.process-header h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  color: var(--primary);
  margin-top: 14px;
  max-width: 500px;
  line-height: 1.2;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--accent);
}

.process-step {
  padding: 36px 28px;
  border-right: 1px solid var(--accent);
  position: relative;
}

.process-step:last-child { border-right: none; }

.step-bar {
  width: 100%;
  height: 3px;
  background: var(--accent);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.step-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--secondary);
}

.step-bar.p25::after { width: 25%; }
.step-bar.p50::after { width: 50%; }
.step-bar.p75::after { width: 75%; }
.step-bar.p100::after { width: 100%; }

.step-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* ── PLATFORMS ── */
.platforms {
  background: var(--bg);
  padding: clamp(48px, 6vw, 80px) var(--pad);
}

.platforms-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.platforms-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #888;
  white-space: nowrap;
  font-weight: 500;
}

.platforms-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.platform-badge {
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.02em;
}

/* ── TESTIMONIALS / TRUST ── */
.trust {
  background: var(--primary);
  padding: clamp(64px, 10vw, 100px) var(--pad);
}

.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.trust-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 80px;
  color: var(--secondary);
  line-height: 0.5;
  margin-bottom: 24px;
  opacity: 0.5;
}

.trust-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--bg);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 28px;
}

.trust-attribution {
  font-size: 13px;
  color: var(--secondary);
  letter-spacing: 0.04em;
}

.trust-reasons {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trust-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.trust-item h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 13px;
  color: rgba(247,244,238,0.55);
  line-height: 1.6;
}

/* ── PRICING ── */
.pricing {
  background: var(--white);
}

.pricing h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  color: var(--primary);
  margin: 14px 0 8px;
  line-height: 1.2;
}

.pricing-sub {
  font-size: 15px;
  color: #666;
  margin-bottom: 52px;
  max-width: 480px;
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--accent);
}

.pricing-card {
  background: var(--white);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card > .btn-outline { margin-top: auto; }
.pricing-features li.pricing-plus { font-weight: 600; color: var(--primary); }
.pricing-features li.pricing-plus::before { content: none; }


/* Pricing: starting-price details, card notes, FAQ */
.pricing-sub { max-width: 640px; }
.pricing-from { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--secondary); letter-spacing: 0.02em; margin-right: 6px; vertical-align: 0.6em; }
.pricing-card .pricing-note { margin-bottom: 18px; }
.pricing-timeline { font-size: 12px; font-weight: 600; color: var(--primary); margin-bottom: 18px; }
.pricing-desc { font-size: 14px; line-height: 1.55; color: #555; margin-bottom: 24px; }
.pricing-card-note { font-size: 12.5px; line-height: 1.5; color: #777; font-style: italic; margin: -16px 0 28px; }
.pricing-faq { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px 64px; align-items: start; }
.pricing-faq-title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; color: var(--primary); line-height: 1.2; }
.pricing-faq-list { border-top: 1px solid var(--accent); }
.pricing-faq details { border-bottom: 1px solid var(--accent); }
.pricing-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 15px; font-weight: 600; color: var(--primary); }
.pricing-faq summary::-webkit-details-marker { display: none; }
.pricing-faq summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--secondary); transition: transform 0.2s; flex-shrink: 0; }
.pricing-faq details[open] summary::after { transform: rotate(45deg); }
.pricing-faq summary:focus-visible { outline: 2px solid var(--secondary); outline-offset: 4px; }
.pricing-faq details p { font-size: 14.5px; line-height: 1.65; color: #555; padding: 0 32px 20px 0; max-width: 68ch; }
@media (max-width: 900px) { .pricing-faq { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) {
  .pricing h2, .pricing .pricing-price, .pricing-timeline, .pricing .pricing-features li.pricing-plus,
  .pricing-faq-title, .pricing-faq summary { color: var(--text) !important; }
  .pricing .pricing-features li { color: rgba(232,229,223,0.72); }
  .pricing-desc, .pricing-faq details p, .pricing-card-note { color: rgba(232,229,223,0.72); }
  .btn-outline { border-color: var(--text); color: var(--text); }
}

/* Mobile pricing arrows (shown only when cards scroll sideways) */
.pricing-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.pricing-nav button {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.pricing-nav button:hover:not(:disabled) { background: var(--primary); color: var(--bg); }
.pricing-nav button:disabled { opacity: 0.25; cursor: default; }
.pricing-count { font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }

.pricing-card.featured {
  background: var(--primary);
}

.pricing-tier {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 16px;
}

.pricing-card.featured .pricing-tier { color: rgba(111,135,147,0.8); }

.pricing-price {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card.featured .pricing-price { color: var(--bg); }

.pricing-note {
  font-size: 12px;
  color: #999;
  margin-bottom: 28px;
}

.pricing-card.featured .pricing-note { color: rgba(247,244,238,0.4); }

.pricing-divider {
  height: 1px;
  background: var(--accent);
  margin-bottom: 28px;
}

.pricing-card.featured .pricing-divider { background: rgba(255,255,255,0.1); }

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}

.pricing-features li {
  font-size: 14px;
  color: #555;
  padding: 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.pricing-card.featured .pricing-features li { color: rgba(247,244,238,0.75); }

.pricing-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 13px;
}

.btn-outline {
  display: block;
  text-align: center;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg);
}

.btn-filled {
  display: block;
  text-align: center;
  background: var(--bg);
  color: var(--primary);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-filled:hover { background: #e4e1db; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--secondary);
  padding: clamp(64px, 8vw, 96px) var(--pad);
  text-align: center;
}

.cta-band-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}

.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.btn-cta:hover { background: #1a2e3b; }

/* ── FOOTER ── */
footer {
  background: var(--primary);
  padding: 60px var(--pad) 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 14px;
}

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

.footer-tagline {
  font-size: 14px;
  color: rgba(247,244,238,0.45);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-location {
  font-size: 12px;
  color: rgba(247,244,238,0.3);
  letter-spacing: 0.06em;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(247,244,238,0.35);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(247,244,238,0.6);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--bg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(247,244,238,0.25);
}

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

.footer-legal a {
  font-size: 12px;
  color: rgba(247,244,238,0.25);
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(247,244,238,0.5); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(247,244,238,0.2);
  color: rgba(247,244,238,0.6);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a:hover { color: var(--bg); border-color: var(--secondary); background: rgba(111,135,147,0.2); }
.footer-social svg { width: 16px; height: 16px; }
/* ── PRIVACY MODAL ── */
#privacyModal, #termsModal {
  border: none; padding: 0; border-radius: 8px;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  background: var(--bg); color: var(--text);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
#privacyModal::backdrop, #termsModal::backdrop { background: rgba(20,30,38,0.65); backdrop-filter: blur(3px); }
.pm-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; background: var(--primary); color: var(--bg);
}
.pm-head h2 { font-size: 20px; margin: 0; color: var(--bg); }
.pm-close {
  background: none; border: none; color: var(--bg); cursor: pointer;
  font-size: 28px; line-height: 1; padding: 4px 8px; opacity: 0.8;
}
.pm-close:hover { opacity: 1; }
.pm-body { padding: 24px 28px 32px; font-size: 15px; line-height: 1.65; }
.pm-body h3 { font-size: 16px; margin: 22px 0 6px; color: var(--primary); }
.pm-body p { margin: 0 0 10px; }
.pm-date { font-size: 13px; color: var(--secondary); }
.pm-body a { color: var(--primary); }

@media (max-width: 600px) {
  .pm-head { padding: 16px 20px; }
  .pm-body { padding: 20px 20px 28px; }
}

/* ── MOBILE NAV ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--primary);
  padding: 24px var(--pad);
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

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

.mobile-menu a {
  font-size: 15px;
  color: rgba(247,244,238,0.75);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-header { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { flex-direction: row; }
  .stat-card { flex: 1; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card:first-child { aspect-ratio: 16/9; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; }
  .trust-quote { grid-template-columns: 1fr; gap: 48px; }
  .pricing-grid {
    display: flex;
    gap: 16px;
    background: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: calc(-1 * var(--pad));
    padding-right: var(--pad);
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-card {
    flex: 0 0 min(82%, 340px);
    scroll-snap-align: start;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
  }
  .pricing-nav { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--accent); }
  .footer-top { grid-template-columns: 1fr; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; transform: none !important; }
}

/* ── WORK ROWS ── */
.work-list { max-width: var(--max); margin: 0 auto; }
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.work-media { display: block; overflow: hidden; border-radius: 4px; box-shadow: 0 20px 48px rgba(0,0,0,0.35); }
.work-img { display: block; width: 100%; height: auto; transition: transform 0.5s ease; }
a.work-media:hover .work-img { transform: scale(1.03); }
.work-text h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  color: var(--bg);
  line-height: 1.15;
  margin-bottom: 14px;
}
.work-desc { font-size: 15px; line-height: 1.7; color: rgba(247,244,238,0.7); margin-bottom: 22px; max-width: 44ch; }
.work-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--bg); border-bottom: 1px solid rgba(247,244,238,0.3); padding-bottom: 3px; transition: border-color 0.2s, gap 0.2s; }
.work-link:hover { border-color: var(--bg); gap: 12px; }
.work-divider {
  border: none;
  height: 1px;
  width: 60%;
  margin: clamp(48px, 7vw, 88px) auto;
  background: linear-gradient(90deg, transparent, rgba(247,244,238,0.28), transparent);
}
@media (max-width: 900px) {
  .work-row { grid-template-columns: 1fr; gap: 24px; }
  .work-desc { max-width: none; }
  .work-divider { width: 70%; margin: 48px auto; }
}

/* ── Work page (same look as the homepage portfolio) ── */
.portfolio-header h1 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 56px); font-weight: 500; color: var(--bg); line-height: 1.1; }
.portfolio-intro { font-size: 17px; line-height: 1.7; color: rgba(247,244,238,0.7); max-width: 560px; margin-top: 16px; }
.work-page .work-text h2 { white-space: nowrap; }
.work-text h2 { font-family: var(--serif); font-size: clamp(20px, 2.1vw, 30px); font-weight: 500; color: var(--bg); line-height: 1.15; margin-bottom: 14px; }
.subpage .portfolio.work-page { padding-top: calc(68px + clamp(64px, 8vw, 104px)); }

/* ── Pricing: Website projects / Monthly plans switch ── */
.pricing-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--accent); border-radius: 999px; margin: -20px 0 36px; }
.pricing-tabs button { border: none; background: none; font: 600 14px var(--sans); color: var(--secondary); padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.pricing-tabs button:hover { color: var(--primary); }
.pricing-tabs button.active { background: var(--primary); color: var(--bg); }
.pricing-tabs button:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.plans-intro { font-size: 15px; color: #666; margin: -12px 0 32px; max-width: 640px; line-height: 1.6; }
.plans-grid { grid-template-columns: repeat(4, 1fr); }
.pricing-per { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--secondary); margin-left: 4px; }
.custom-services { margin-top: 3px; background: var(--bg); padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 56px; align-items: start; }
.custom-services-title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; color: var(--primary); line-height: 1.2; margin-bottom: 10px; }
.custom-services-sub { font-size: 14px; color: #666; line-height: 1.6; }
.custom-services-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.custom-services-list li { font-size: 14px; color: #555; padding: 11px 0; border-bottom: 1px solid var(--accent); display: flex; gap: 10px; line-height: 1.4; }
.custom-services-list li::before { content: '+'; color: var(--secondary); font-weight: 600; }
.pricing-faq .faq-list { list-style: none; padding: 0 32px 20px 0; max-width: 68ch; }
.pricing-faq .faq-list li { font-size: 14.5px; line-height: 1.6; color: #555; padding: 4px 0 4px 18px; position: relative; }
.pricing-faq .faq-list li::before { content: '·'; position: absolute; left: 4px; color: var(--secondary); font-weight: 700; }
@media (max-width: 1100px) {
  .custom-services { grid-template-columns: 1fr; border-radius: var(--radius); margin-top: 24px; }
}
@media (max-width: 600px) {
  .pricing-tabs { display: flex; width: 100%; } .pricing-tabs button { flex: 1; padding: 10px 8px; }
  .custom-services-list { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
  .pricing-tabs { background: var(--bg); } .pricing-tabs button.active { background: var(--secondary); color: #fff; }
  .plans-intro, .custom-services-sub, .custom-services-list li, .pricing-faq .faq-list li { color: rgba(232,229,223,0.72); }
  .custom-services-title { color: var(--text); }
}

/* Reference text palette on dark sections; retain original light-section styling. */
body :is(nav,.mobile-menu,.hero,.portfolio-header,.oc-process,.oc-extra,.ec-hero,.ec-highlights,.ec-contents,.trust,footer) :is(h1,h2,h3,h4,p,a,li,blockquote,figcaption,dd,label,summary,button,small,span,strong,em) { color:#F7F4EE !important; }
body :is(.hero,.portfolio-header,.oc-process,.oc-extra,.ec-hero,.ec-highlights,.trust,footer) :is(.hero-eyebrow,.hero-headline em,.section-label,.rhd-switcher-label,.oc-label,.oc-number,.oc-icon,.ec-eyebrow,.stat-label,.trust-attribution,.footer-col h4),body .oc-process .oc-chapter-content h4,body .ec-meta dt { color:#E3BE82 !important; }
body .rhd-project-switcher a[role=tab][aria-selected=true],body .rhd-project-switcher a[role=tab]:hover { color:#E3BE82 !important; }
body .nav-logo,body .nav-logo span,body .footer-brand,body .footer-brand span { color:#F7F4EE !important; }
body .hero .hero-headline em { color:#E3BE82 !important; }

/* Gold River and Digital; ivory House in both wordmarks. */
body nav .nav-logo,body footer .footer-brand { color:#E3BE82 !important; }
body nav .nav-logo span,body footer .footer-brand span { color:#F7F4EE !important; }

/* Keep light hero button labels readable over the general hero text rule. */
body .hero a.btn-primary, body .hero a.btn-primary:visited, body .hero a.btn-primary:hover, body .hero a.btn-primary:focus-visible, body .hero a.btn-primary :is(span,strong,em){color:var(--primary) !important;}
