/* =============================================================================
   Pravesh Patel — main.css  v2.0
   Warm earthy personal brand for praveshpatel.com
   ============================================================================= */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400;1,9..144,600&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Palette */
  --soil:   #1A1208;
  --bark:   #3D2B1F;
  --terra:  #7C4A2D;
  --rust:   #B85C2C;
  --amber:  #D4843A;
  --wheat:  #E8C99A;
  --linen:  #F5EFE6;
  --cream:  #FAF7F2;
  --white:  #FFFFFF;
  --sage:   #6B7C5C;
  --stone:  #8C8070;
  --pebble: #C4B8A8;
  --ink:    #2A1F14;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Fluid type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.85rem + 0.13vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-md:   clamp(1.125rem, 1rem    + 0.63vw, 1.375rem);
  --text-lg:   clamp(1.375rem, 1.15rem + 1.13vw, 1.875rem);
  --text-xl:   clamp(1.75rem,  1.35rem + 2vw,    2.5rem);
  --text-2xl:  clamp(2.25rem,  1.5rem  + 3.75vw, 4rem);
  --text-3xl:  clamp(3rem,     1.8rem  + 6vw,    5.5rem);
  --text-disp: clamp(3.5rem,   2rem    + 7.5vw,  7rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --container: 1200px;
  --content:   760px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,18,8,.06), 0 4px 12px rgba(26,18,8,.08);
  --shadow-md: 0 4px 16px rgba(26,18,8,.10), 0 12px 32px rgba(26,18,8,.08);
  --shadow-lg: 0 8px 32px rgba(26,18,8,.15), 0 24px 64px rgba(26,18,8,.10);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --dur: 220ms;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--terra); }
::selection { background: var(--wheat); color: var(--bark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--linen); }
::-webkit-scrollbar-thumb { background: var(--pebble); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone); }

/* ── TYPOGRAPHY BASE ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--bark);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--terra); }
h6 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5em; }
strong { font-weight: 700; color: var(--bark); }
em { font-style: italic; }
code { font-family: var(--font-mono); font-size: .875em; background: var(--linen); padding: .15em .4em; border-radius: 3px; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-top: clamp(var(--sp-16), 8vw, var(--sp-32)); padding-bottom: clamp(var(--sp-16), 8vw, var(--sp-32)); }
.section--sm { padding-top: clamp(var(--sp-10), 5vw, var(--sp-20)); padding-bottom: clamp(var(--sp-10), 5vw, var(--sp-20)); }

/* ── SECTION LABEL ── */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.section-eyebrow__line {
  flex-shrink: 0;
  width: 40px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}
.section-eyebrow__text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--terra);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 150ms var(--ease-out), box-shadow var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--rust); color: var(--white); border-color: var(--rust); }
.btn--primary:hover { background: var(--terra); border-color: var(--terra); color: var(--white); box-shadow: 0 8px 24px rgba(184,92,44,.3); }
.btn--outline { background: transparent; color: var(--bark); border-color: var(--bark); }
.btn--outline:hover { background: var(--bark); color: var(--white); }
.btn--ghost-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost-white:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--amber { background: var(--amber); color: var(--soil); border-color: var(--amber); font-weight: 800; }
.btn--amber:hover { background: var(--wheat); border-color: var(--wheat); box-shadow: 0 8px 24px rgba(212,132,58,.35); }
.btn--sm { padding: .625rem 1.25rem; font-size: var(--text-xs); }

/* ── SKIP LINK ── */
.skip-link {
  position: fixed; top: -100%; left: 1.5rem;
  background: var(--rust); color: var(--white);
  padding: .75rem 1.5rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700; z-index: 1000; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pebble);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: 0 2px 28px rgba(26,18,8,.10); }

.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}

/* Brand */
.header-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
.header-brand__logo {
  width: 40px; height: 40px;
  background: var(--rust);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), transform 150ms var(--ease-out);
}
.header-brand:hover .header-brand__logo { background: var(--terra); transform: rotate(-3deg); }
.header-brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bark);
  line-height: 1;
  transition: color var(--dur) var(--ease);
}
.header-brand__name span { color: var(--rust); }
.header-brand:hover .header-brand__name { color: var(--rust); }

/* Nav */
.header-nav { display: flex; align-items: center; gap: var(--sp-8); flex: 1; justify-content: center; }
.header-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bark);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--dur) var(--ease);
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
  transform-origin: left;
}
.header-nav a:hover { color: var(--rust); }
.header-nav a:hover::after,
.header-nav a.active::after { transform: scaleX(1); }
.header-nav a.active { color: var(--rust); }

/* Header right */
.header-right { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }

/* Hamburger */
.header-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  transition: background var(--dur);
}
.header-hamburger:hover { background: var(--linen); }
.header-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--bark); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.header-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-hamburger.open span:nth-child(2) { opacity: 0; }
.header-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.header-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--cream);
  border-top: 1px solid var(--pebble);
  padding: var(--sp-4) 0;
}
.header-mobile-menu.open { display: flex; }
.header-mobile-menu a {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--bark);
  text-decoration: none;
  padding: var(--sp-3) clamp(1.25rem, 4vw, 2.5rem);
  border-left: 3px solid transparent;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.header-mobile-menu a:hover { color: var(--rust); border-left-color: var(--amber); background: var(--linen); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  padding-top: clamp(var(--sp-16), 10vw, var(--sp-32));
  padding-bottom: clamp(var(--sp-16), 10vw, var(--sp-32));
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -15%;
  width: 65vw; height: 65vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(ellipse, rgba(212,132,58,.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

/* Left — text */
.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--wheat);
  color: var(--terra);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: var(--sp-6);
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }
.hero-title {
  font-size: var(--text-disp);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--bark);
  margin-bottom: var(--sp-6);
}
.hero-title em { color: var(--rust); font-style: italic; }
.hero-subtitle {
  font-size: var(--text-md);
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: var(--sp-10);
  max-width: 480px;
}
.hero-actions { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; margin-bottom: var(--sp-12); }

/* Stats row */
.hero-stats {
  display: flex;
  gap: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--pebble);
}
.hero-stat {}
.hero-stat__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--bark);
  line-height: 1;
  display: block;
}
.hero-stat__label {
  font-size: var(--text-xs);
  color: var(--stone);
  line-height: 1.4;
  display: block;
  margin-top: var(--sp-1);
}

/* Right — image area */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.hero-image-frame img,
.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.hero-image-placeholder {
  background: linear-gradient(135deg, var(--linen) 0%, var(--wheat) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--pebble);
  font-style: italic;
}
.hero-badge-float {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: var(--amber);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 100px;
}
.hero-badge-float__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1;
  display: block;
}
.hero-badge-float__label { font-size: var(--text-xs); font-weight: 600; opacity: .9; display: block; margin-top: 2px; }

/* Decoration dots */
.hero-dots {
  position: absolute;
  top: 1rem; right: -1rem;
  display: grid;
  grid-template-columns: repeat(5, 6px);
  gap: 6px;
  pointer-events: none;
  opacity: .35;
}
.hero-dots span { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; display: block; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--linen); }
.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}
.services-header__left { max-width: 480px; }
.services-header__left h2 { margin-bottom: var(--sp-4); }
.services-header__right p { color: var(--stone); font-size: var(--text-base); line-height: 1.7; max-width: 360px; }

/* Services grid — 4 equal square-ish cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  cursor: default;
  aspect-ratio: 1 / 1.05;   /* nearly square */
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--wheat);
}
.service-card__icon {
  width: 52px; height: 52px;
  background: var(--linen);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease);
}
.service-card:hover .service-card__icon { background: var(--wheat); }
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--bark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--stone);
  line-height: 1.7;
  flex: 1;
}
.service-card__link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--rust);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
  margin-top: auto;
}
.service-card__link:hover { gap: .6rem; color: var(--terra); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--cream); }
.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* First card spans 2 cols — big featured card */
.portfolio-card {
  background: var(--linen);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--pebble);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.portfolio-card--featured { grid-column: span 2; flex-direction: row; }
.portfolio-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.portfolio-card--featured .portfolio-card__image { aspect-ratio: auto; flex: 1; min-height: 280px; }
.portfolio-card:hover .portfolio-card__image { transform: scale(1.04); }
.portfolio-card__image-wrap { overflow: hidden; }
.portfolio-card--featured .portfolio-card__image-wrap { flex: 1; }
.portfolio-card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.portfolio-card--featured .portfolio-card__body { flex: 0 0 42%; padding: var(--sp-8); justify-content: center; }
.portfolio-card__tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--terra);
}
.portfolio-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--bark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.portfolio-card--featured .portfolio-card__title { font-size: var(--text-xl); }
.portfolio-card__desc { font-size: var(--text-sm); color: var(--stone); line-height: 1.7; }
.portfolio-card__stat {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--pebble);
}
.portfolio-card__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--rust);
}
.portfolio-card__stat-label { font-size: var(--text-xs); color: var(--stone); }
.portfolio-card__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: var(--text-sm); font-weight: 700; color: var(--rust);
  text-decoration: none;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.portfolio-card__link:hover { gap: .6rem; color: var(--terra); }

/* Placeholder images */
.portfolio-card__image-placeholder {
  width: 100%;
  background: linear-gradient(135deg, var(--wheat) 0%, var(--linen) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; color: var(--pebble);
  font-size: var(--text-md);
}
.portfolio-card .portfolio-card__image-placeholder { aspect-ratio: 16/9; }
.portfolio-card--featured .portfolio-card__image-placeholder { aspect-ratio: auto; min-height: 280px; flex: 1; }

/* ============================================================
   LATEST POSTS
   ============================================================ */
.latest-posts { background: var(--linen); }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}
.post-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--pebble);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--wheat); }
.post-card__image-wrap { overflow: hidden; }
.post-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.post-card:hover .post-card__image { transform: scale(1.04); }
.post-card__image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--linen) 0%, var(--pebble) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; color: var(--stone); font-size: var(--text-md);
}
.post-card__body { padding: var(--sp-5) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.post-card__meta {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); color: var(--stone);
}
.post-card__cat {
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--terra);
  text-decoration: none; transition: color var(--dur);
}
.post-card__cat:hover { color: var(--rust); }
.post-card__dot { color: var(--pebble); }
.post-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--bark);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color var(--dur);
  display: block;
}
.post-card__title:hover { color: var(--rust); }
.post-card__excerpt { font-size: var(--text-sm); color: var(--stone); line-height: 1.7; flex: 1; }
.post-card__footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--pebble);
  display: flex; align-items: center; justify-content: space-between;
}
.post-card__read-more {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--rust); text-decoration: none;
  display: inline-flex; align-items: center; gap: .25rem;
  transition: gap var(--dur), color var(--dur);
}
.post-card__read-more:hover { gap: .5rem; color: var(--terra); }
.post-card__time { font-size: var(--text-xs); color: var(--stone); }

/* Posts section header */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--soil);
  color: var(--wheat);
  position: relative;
  overflow: hidden;
}

/* Top gradient accent */
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--terra), var(--amber), var(--rust));
}

/* Decorative blobs */
.site-footer::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(212,132,58,.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-top {
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: var(--sp-10);
  align-items: start;
}

/* Col 1 — brand */
.footer-brand {}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--wheat);
  line-height: 1;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}
.footer-brand__name span { color: var(--amber); }
.footer-brand__bio {
  font-size: var(--text-sm);
  color: var(--pebble);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
  max-width: 280px;
}
.footer-social {
  display: flex; gap: var(--sp-3);
}
.footer-social__link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--pebble);
  text-decoration: none;
  font-size: 1rem;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform 150ms var(--ease-out);
}
.footer-social__link:hover { background: rgba(255,255,255,.1); color: var(--wheat); border-color: rgba(255,255,255,.25); transform: translateY(-2px); }

/* Cols 2-4 — link columns */
.footer-col__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--amber);
  margin-bottom: var(--sp-5);
}
.footer-col__links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.footer-col__links a {
  font-size: var(--text-sm);
  color: var(--pebble);
  text-decoration: none;
  transition: color var(--dur), padding-left var(--dur);
  display: inline-block;
}
.footer-col__links a:hover { color: var(--wheat); padding-left: 4px; }

/* Col 5 — latest posts mini list */
.footer-posts { display: flex; flex-direction: column; gap: var(--sp-5); }
.footer-post {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.footer-post__img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--stone); font-size: .65rem; text-align: center;
  overflow: hidden;
}
.footer-post__img img { width: 100%; height: 100%; object-fit: cover; }
.footer-post__info {}
.footer-post__date { font-size: var(--text-xs); color: var(--stone); margin-bottom: 2px; }
.footer-post__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--pebble);
  line-height: 1.35;
  text-decoration: none;
  transition: color var(--dur);
  display: block;
}
.footer-post__title:hover { color: var(--wheat); }

/* Divider */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.07);
  margin: 0;
}

/* Footer bottom */
.footer-bottom {
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.footer-bottom__copy { font-size: var(--text-xs); color: var(--stone); }
.footer-bottom__links { display: flex; gap: var(--sp-6); }
.footer-bottom__links a { font-size: var(--text-xs); color: var(--stone); text-decoration: none; transition: color var(--dur); }
.footer-bottom__links a:hover { color: var(--pebble); }
.footer-bottom__made { font-size: var(--text-xs); color: var(--stone); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 99;
  width: 44px; height: 44px;
  background: var(--bark);
  color: var(--cream);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--rust); }

/* ============================================================
   INNER PAGES — BLOG
   ============================================================ */
.page-hero { background: var(--linen); padding: var(--sp-16) 0 var(--sp-12); border-bottom: 1px solid var(--pebble); }
.page-hero__eyebrow { margin-bottom: var(--sp-4); }
.page-hero__title { font-size: var(--text-2xl); margin-bottom: var(--sp-4); }
.page-hero__sub { font-size: var(--text-md); color: var(--stone); line-height: 1.65; }

/* Featured post */
.blog-featured { padding: var(--sp-12) 0 0; }
.featured-post-card {
  display: grid;
  grid-template-columns: 55% 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--pebble);
  background: var(--linen);
  transition: box-shadow var(--dur) var(--ease);
}
.featured-post-card:hover { box-shadow: var(--shadow-md); }
.featured-post-card__image-wrap { overflow: hidden; }
.featured-post-card__image {
  width: 100%; height: 100%; min-height: 340px;
  object-fit: cover; display: block;
  transition: transform .4s var(--ease);
}
.featured-post-card:hover .featured-post-card__image { transform: scale(1.04); }
.featured-post-card__body {
  padding: var(--sp-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
}
.featured-post-card__badge {
  display: inline-flex;
  background: var(--amber);
  color: var(--white);
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .75rem; border-radius: 100px;
  width: fit-content;
}
.featured-post-card__cat { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--terra); }
.featured-post-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 700;
  color: var(--bark); line-height: 1.2; letter-spacing: -0.015em;
  text-decoration: none; display: block;
  transition: color var(--dur);
}
.featured-post-card__title:hover { color: var(--rust); }
.featured-post-card__excerpt { font-size: var(--text-sm); color: var(--stone); line-height: 1.7; }
.featured-post-card__meta { font-size: var(--text-xs); color: var(--stone); }

/* Blog post grid */
.blog-grid-section { padding: var(--sp-12) 0 var(--sp-20); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-12);
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--pebble);
  color: var(--bark);
  font-size: var(--text-sm); font-weight: 500;
  text-decoration: none;
  background: var(--cream);
  transition: all var(--dur) var(--ease);
}
.pagination a:hover { background: var(--bark); color: var(--white); border-color: var(--bark); }
.pagination .current { background: var(--rust); color: var(--white); border-color: var(--rust); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header { background: var(--linen); padding: var(--sp-16) 0 var(--sp-12); border-bottom: 1px solid var(--pebble); }
.post-breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-xs); color: var(--stone); margin-bottom: var(--sp-5); }
.post-breadcrumb a { color: var(--stone); text-decoration: none; transition: color var(--dur); }
.post-breadcrumb a:hover { color: var(--rust); }
.post-breadcrumb__sep { color: var(--pebble); }
.post-cat { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--terra); margin-bottom: var(--sp-4); display: block; }
.post-title { font-size: var(--text-2xl); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: var(--sp-5); }
.post-meta-bar { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; font-size: var(--text-xs); color: var(--stone); }
.post-meta-bar strong { color: var(--bark); }
.post-meta-sep { color: var(--pebble); }

.post-featured-image { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.post-body { max-width: var(--content); margin: 0 auto; padding: var(--sp-12) clamp(1.25rem,4vw,2.5rem); }
.post-body h2,.post-body h3,.post-body h4 { margin-top: 2em; margin-bottom: .6em; }
.post-body p { margin-bottom: 1.5em; color: var(--ink); line-height: 1.8; }
.post-body a { color: var(--rust); text-decoration: underline; }
.post-body ul, .post-body ol { margin-bottom: 1.5em; }
.post-body li { margin-bottom: .4em; line-height: 1.7; }
.post-body blockquote { border-left: 4px solid var(--amber); padding-left: var(--sp-6); margin: var(--sp-8) 0; color: var(--terra); font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; line-height: 1.5; }
.post-body pre { background: var(--linen); border-radius: var(--radius); padding: var(--sp-5); overflow-x: auto; margin-bottom: 1.5em; }
.post-body code { background: var(--linen); }
.post-body img { border-radius: var(--radius); margin: var(--sp-6) 0; width: 100%; }

/* Reading progress */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 300;
  background: linear-gradient(to right, var(--amber), var(--rust));
  width: 0%; transition: width 100ms linear;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; } /* hide on small – or show stacked */
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-card--featured { grid-column: span 2; flex-direction: column; }
  .portfolio-card--featured .portfolio-card__body { flex: unset; padding: var(--sp-6); }
  .featured-post-card { grid-template-columns: 1fr; }
  .featured-post-card__image { min-height: 220px; max-height: 280px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .header-nav, .header-right .btn { display: none; }
  .header-hamburger { display: flex; }
  .hero-stats { gap: var(--sp-5); flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card { aspect-ratio: auto; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card--featured { grid-column: span 1; flex-direction: column; }
  .blog-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .back-to-top { bottom: 1rem; right: 1rem; }
}
