/* ============================================================
   Nolan Rauscher — nolanrauscher.com
   Shared Stylesheet
   Font pairing: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Reset & Box Model ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── CSS Variables ── */
:root {
  /* Brand Colors */
  --primary:    #2D3436;
  --secondary:  #D4AF37;
  --accent:     #A8BBA1;
  --background: #F9F9F9;
  --surface:    #FFFFFF;
  --text:       #2D3436;
  --text-muted: #636e72;
  --border:     #E0E0E0;
  --white:      #FFFFFF;

  /* Derived */
  --secondary-dark:  #B8962E;
  --primary-light:   #3d4547;
  --background-alt:  #F1F1EE;

  /* Typography */
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --pad-section:        100px;
  --pad-x:              80px;
  --pad-section-mobile: 60px;
  --pad-x-mobile:       24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 24px 64px rgba(0,0,0,0.06);
  --shadow-gold: 0 4px 20px rgba(212,175,55,0.25), 0 8px 40px rgba(212,175,55,0.12);

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-med:  0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav height */
  --nav-h: 72px;
}

/* ── Base Typography ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.78;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--primary);
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Focus Styles ── */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* ── State A: top of page — dark bg, light text ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--primary);        /* #2D3436 dark — State A */
  box-shadow: none;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow  0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── State B: scrolled > 50px — light bg, dark text ── */
.site-nav.scrolled {
  background: rgba(249,249,249,0.97);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  /* State A: white text over dark bg */
  color: var(--white);
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--t-fast);
}

.site-nav.scrolled .nav-logo-name {
  /* State B: dark text over light bg */
  color: var(--primary);
}

.nav-logo:hover .nav-logo-name {
  opacity: 0.75;
}

#navMenu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

#navMenu li a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  /* State A: white text */
  color: var(--white);
  position: relative;
  padding-bottom: 2px;
  transition: color  0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--t-fast);
}

.site-nav.scrolled #navMenu li a {
  /* State B: dark text */
  color: var(--primary);
}

#navMenu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--secondary);
  transition: width var(--t-med);
}

#navMenu li a:hover::after,
#navMenu li a.active::after {
  width: 100%;
}

#navMenu li a:hover {
  opacity: 0.7;
}

#navMenu li a.active {
  color: var(--secondary);
}

/* Nav CTA */
#navMenu li a.nav-cta {
  background: var(--secondary);
  color: var(--primary);
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

#navMenu li a.nav-cta::after { display: none; }

#navMenu li a.nav-cta:hover {
  opacity: 1;
  background: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* Hamburger */
#menuToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

#menuToggle span {
  display: block;
  width: 22px;
  height: 2px;
  /* State A: white bars */
  background: var(--white);
  border-radius: 2px;
  transition: transform   var(--t-med),
              opacity     var(--t-fast),
              background  0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav.scrolled #menuToggle span {
  /* State B: dark bars */
  background: var(--primary);
}

#menuToggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menuToggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
#menuToggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 60px var(--pad-x) 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}

.footer-brand .footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
  transition: opacity var(--t-fast);
}

.footer-brand .footer-email:hover { opacity: 0.8; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

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

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--t-fast);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), opacity var(--t-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212,175,55,0.35), 0 10px 48px rgba(212,175,55,0.15);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}

/* ============================================================
   SECTIONS — Shared Layout
   ============================================================ */

.section {
  padding: var(--pad-section) var(--pad-x);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--background-alt);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-label-light {
  color: var(--accent);
}

.section-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.78;
  max-width: 520px;
}

/* ============================================================
   HERO — Homepage
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Layered radial gradients for depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 50%, rgba(212,175,55,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(168,187,161,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle grain texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.hero-content {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 24px;
}

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

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 28px;
}

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

.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  margin-bottom: 40px;
}

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

/* Hero right panel — headshot frame */
.hero-visual {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  bottom: 16px;
  left: 16px;
  border: 2px solid rgba(212,175,55,0.35);
  border-radius: 6px;
  z-index: 0;
}

.hero-photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  z-index: 1;
}

.hero-scroll-line {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

/* ============================================================
   PAIN AGITATE section
   ============================================================ */

.pain-section {
  padding: var(--pad-section) var(--pad-x);
  background: var(--background-alt);
}

.pain-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 6px;
  border-left: 3px solid var(--secondary);
  box-shadow: var(--shadow-sm);
}

.pain-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--secondary);
  margin-top: 2px;
}

.pain-item-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.pain-item-text strong {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

/* ============================================================
   PROOF POINTS / STATS
   ============================================================ */

.stats-section {
  padding: 70px var(--pad-x);
  background: var(--primary);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.stat-item {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ============================================================
   WORK PREVIEW (Homepage)
   ============================================================ */

.work-preview-section {
  padding: var(--pad-section) var(--pad-x);
}

.work-preview-header {
  max-width: 1200px;
  margin: 0 auto 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.work-preview-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ============================================================
   WORK CARDS (shared — homepage preview + work.html)
   ============================================================ */

.work-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 32px 80px rgba(0,0,0,0.07);
}

.work-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.work-card-body {
  padding: 24px 28px 28px;
}

.work-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.work-card-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 6px;
}

.work-card-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.work-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.work-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1.5px solid var(--secondary);
  padding-bottom: 2px;
  transition: color var(--t-fast), gap var(--t-fast);
}

.work-card-link:hover {
  color: var(--secondary-dark);
  gap: 10px;
}

.work-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast);
}

.work-card-link:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   HOW IT WORKS (Homepage brief + Services full)
   ============================================================ */

.how-section {
  padding: var(--pad-section) var(--pad-x);
  background: var(--background-alt);
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.how-step {
  position: relative;
}

.how-step-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(212,175,55,0.18);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.how-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 10px;
}

.how-step p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Connector line between steps */
.how-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -16px;
  width: 32px;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band {
  padding: 96px var(--pad-x);
  background: var(--primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(212,175,55,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 100% 60% at 80% 20%, rgba(168,187,161,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 18px;
}

.cta-band h2 em {
  font-style: italic;
  color: var(--secondary);
}

.cta-band p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 36px;
}

.cta-band .cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  padding: calc(var(--nav-h) + 72px) var(--pad-x) 72px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(212,175,55,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(168,187,161,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 700px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 0;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--secondary);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--secondary);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.pricing-block {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 56px 64px;
  background: var(--primary);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.pricing-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(212,175,55,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.pricing-block h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.pricing-block p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 480px;
}

/* ============================================================
   BLOG PAGE
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid transparent;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-fast);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--secondary);
}

.blog-card-date {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-dark);
  transition: gap var(--t-fast);
}

.blog-card-read:hover { gap: 10px; }

.blog-card-read svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast);
}

.blog-card-read:hover svg { transform: translateX(3px); }

/* ============================================================
   BLOG POST (article page)
   ============================================================ */

.post-breadcrumb {
  padding: calc(var(--nav-h) + 32px) var(--pad-x) 0;
  max-width: calc(1200px + var(--pad-x) * 2);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.breadcrumb a:hover { color: var(--secondary-dark); }

.breadcrumb-sep {
  color: var(--border);
}

.post-layout {
  padding: 48px var(--pad-x) var(--pad-section);
}

.post-inner {
  max-width: 740px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 48px;
}

.post-header h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-meta-sep { color: var(--border); }

.post-body h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.post-body h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.post-body p {
  font-size: 1.025rem;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 1.4em;
}

.post-body ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.post-body ul li {
  font-size: 1.025rem;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 0.4em;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-layout {
  padding: var(--pad-section) var(--pad-x);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.contact-info .contact-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-detail a {
  color: var(--primary);
  font-weight: 500;
  transition: color var(--t-fast);
}

.contact-detail a:hover { color: var(--secondary-dark); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  padding: 48px 44px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.95rem 1.75rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin: 0 auto 16px;
}

.form-success h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================================
   ANIMATIONS — Fade-up on scroll
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   SCROLL OBSERVER INIT
   ============================================================ */

/* Applied via JS — observer targets .fade-up */

/* ============================================================
   RESPONSIVE — Tablet (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --pad-x: 48px;
    --pad-section: 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr 340px;
    gap: 48px;
  }

  .pain-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .how-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .how-step:nth-child(2)::after {
    display: none;
  }

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

  .pricing-block {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px;
  }

  .pricing-block p {
    max-width: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (max 768px)
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --pad-x: var(--pad-x-mobile);
    --pad-section: var(--pad-section-mobile);
  }

  /* Nav mobile */
  #menuToggle {
    display: flex;
    z-index: 10;
  }

  #navMenu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-med), box-shadow var(--t-fast);
    box-shadow: none;
    z-index: 999;
  }

  #navMenu.open {
    max-height: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  }

  #navMenu li a {
    display: block;
    padding: 14px var(--pad-x-mobile);
    font-size: 1rem;
    color: var(--primary) !important;
    border-bottom: 1px solid var(--border);
  }

  #navMenu li a::after { display: none; }

  #navMenu li a.nav-cta {
    margin: 16px var(--pad-x-mobile);
    border-radius: 4px;
    text-align: center;
    border-bottom: none;
  }

  /* Hero mobile */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-photo-frame {
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-photo-frame::before {
    top: -10px;
    right: -10px;
    bottom: 10px;
    left: 10px;
  }

  .hero-scroll-hint {
    display: none;
  }

  /* Stats */
  .stats-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-item + .stat-item::before {
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
  }

  /* Work grids */
  .work-preview-grid {
    grid-template-columns: 1fr;
  }

  .work-preview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }

  /* How it works */
  .how-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how-step::after { display: none; }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Contact */
  .contact-form-wrap {
    padding: 32px 24px;
  }

  /* Post breadcrumb */
  .post-breadcrumb {
    padding-left: var(--pad-x-mobile);
    padding-right: var(--pad-x-mobile);
  }

  .post-layout {
    padding-left: var(--pad-x-mobile);
    padding-right: var(--pad-x-mobile);
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (max 480px)
   ============================================================ */

@media (max-width: 480px) {
  .hero-h1 {
    font-size: clamp(2.1rem, 8vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .btn-lg {
    padding: 0.9rem 1.5rem;
  }

  .cta-band .cta-actions {
    flex-direction: column;
  }

  .pricing-block {
    padding: 36px 24px;
  }
}
