/* ============================================================
   Olive Branch Web Studio — Main Stylesheet
   ============================================================ */

/* ---- 1. FONTS ---- */
/* Headings: Montaser Arabic (light/medium per Canva design) */
@font-face {
  font-family: "Montaser Arabic";
  src: url("../assets/fonts/36baf6be5ff9c194a585187f0950fa6e.woff")
    format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montaser Arabic";
  src: url("../assets/fonts/b7514d702bdd0efcf3b19e2b1c0845f7.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montaser Arabic";
  src: url("../assets/fonts/47530a03b3bcba9db6861d3d292893c7.woff")
    format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Body / UI: Clear Sans */
@font-face {
  font-family: "Clear Sans";
  src: url("../assets/fonts/7dfc83d5430d08833bf30ffde4cf57fa.woff")
    format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clear Sans";
  src: url("../assets/fonts/89b3b872a1cb7a7334b9530971126f58.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clear Sans";
  src: url("../assets/fonts/d180adb51d9e81b56545e7ad9d408177.woff")
    format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clear Sans";
  src: url("../assets/fonts/7328026576d3b37d51297f2f5e2a8c1e.woff")
    format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- 2. TOKENS ---- */
:root {
  --clr-bg: #151c15;
  --clr-surface: #1b2819;
  --clr-surface-h: #1f2e1c;
  --clr-sage: #a4ba8a;
  --clr-gold: #e4d09d;
  --clr-cream: #f5f5d5;
  --clr-white: #ffffff;
  --clr-btn-ink: #354a2f;

  --grad-text: linear-gradient(90deg, #a3b68a, #dcc798);
  --grad-text-v: linear-gradient(180deg, #a3b68a, #dcc798);
  --grad-cream: linear-gradient(90deg, #f5f5d5, #ecd8ab);
  --grad-surface: linear-gradient(135deg, #2a3726, #2f3b29);
  --grad-dark: linear-gradient(180deg, #1f281b, #31422a);

  --font-head: "Montaser Arabic", system-ui, sans-serif;
  --font-acc: "Montaser Arabic", system-ui, sans-serif;
  --font-body: "Clear Sans", system-ui, sans-serif;

  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --pad: 140px;
  --w: 1340px;
}

/* ---- 3. RESET ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--clr-bg);
  color: var(--clr-cream);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
  transition:
    color 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
figure {
  margin: 0;
}
strong {
  font-weight: 700;
}

/* ---- 4. LAYOUT ---- */
.container {
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 80px;
}
.section-pad {
  padding-block: var(--pad);
}
.text-center {
  text-align: center;
}

/* ---- 5. TYPOGRAPHY ---- */
.t-heading {
  font-family: var(--font-head);
  font-weight: 500;
}
.t-accent {
  font-family: var(--font-acc);
  font-weight: 500;
}
.clr-gold {
  color: var(--clr-gold);
}
.clr-sage {
  color: var(--clr-sage);
}

/* Sage→gold gradient text (Canva: #a3b68a → #dcc798) */
.t-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--clr-sage);
  margin-bottom: 18px;
}

/* Section headings — large and impactful to match Canva site */
.section-header h2 {
  font-family: var(--font-head);
  font-size: 5.6rem;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--clr-white);
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--clr-cream);
  line-height: 1.65;
}
.text-center .section-sub {
  max-width: 560px;
  margin-inline: auto;
}

/* ---- 6. BUTTONS ---- */
/* Canva design: rounded rectangles (~14px), not pills */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.006em;
  cursor: pointer;
  border: none;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.25s var(--ease),
    filter 0.3s var(--ease);
  white-space: nowrap;
}

/* Cream gradient + dark green ink (Start Your Project / Let's Build Together) */
.btn-cream {
  background: var(--grad-cream);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--clr-btn-ink);
  font-weight: 700;
}
.btn-cream:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Dark glass (View Our Work) */
.btn-ghost {
  background: var(--grad-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--clr-white);
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-ghost:hover {
  filter: brightness(1.15);
}

/* Outlined translucent (Email Us) */
.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--clr-white);
  font-weight: 700;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---- 7. DARK GLASS SPHERES ---- */
/* All spheres share this base — dark, semi-transparent, glass-like */
.sphere {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  /* Dark glass look: near-black core, subtle highlight */
  background: radial-gradient(
    circle at 32% 30%,
    rgba(80, 100, 70, 0.22) 0%,
    rgba(20, 28, 18, 0.65) 45%,
    rgba(8, 10, 8, 0.88) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
/* Subtle top-left glare */
.sphere::before {
  content: "";
  position: absolute;
  top: 14%;
  left: 18%;
  width: 28%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.12),
    transparent 70%
  );
}

/* Hero — large sphere clipped at top-right edge */
.sphere--lg {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -90px;
}
/* Hero — small sphere near laptop area */
.sphere--sm {
  width: 120px;
  height: 120px;
  bottom: 12%;
  right: 38%;
}
/* Section spheres — right side, partially clipped */
.sphere--section-r {
  width: 220px;
  height: 220px;
  bottom: 8%;
  right: -70px;
}
/* CTA card sphere */
.sphere--cta {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -40px;
}

/* ---- 8. HEADER / NAV ---- */
/* Floating rounded bar (Canva: gradient #1f281b→#31422a, thin light border) */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding-top: 22px;
  transition: padding 0.4s var(--ease);
}
.main-header.scrolled {
  padding-top: 10px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 15px 32px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(31, 40, 27, 0.92),
    rgba(49, 66, 42, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding 0.4s var(--ease);
}
.main-header.scrolled .navbar {
  padding-block: 11px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 300;
  letter-spacing: -0.044em;
  background: linear-gradient(90deg, #f5f5d5, #c7b793);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}
.nav-links a:not(.btn-nav) {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(245, 245, 213, 0.85);
}
.nav-links a:not(.btn-nav):hover {
  color: var(--clr-white);
}

.btn-nav {
  background: var(--grad-cream);
  color: var(--clr-btn-ink);
  padding: 11px 28px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.006em;
  transition:
    filter 0.3s var(--ease),
    transform 0.25s var(--ease);
}
.btn-nav:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

/* ---- 9. HERO ---- */
.hero-section {
  position: relative;
  min-height: min(100vh, 1080px);
  display: flex;
  align-items: center;
  padding-top: 100px;
  /* Rich dark-green radial gradient matching Canva design */
  background:
    radial-gradient(ellipse 80% 60% at 72% 8%, #2a3f24 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 12% 88%, #1d311a 0%, transparent 55%),
    var(--clr-bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
  padding-block: 50px;
}

.hero-title {
  margin-bottom: 30px;
  line-height: 1.02;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
/* "Building your" — Montaser light */
.hero-title .t-heading {
  display: block;
  font-size: 5.5rem;
  font-weight: 300;
  color: var(--clr-white);
  line-height: 1.02;
}
/* "Digital Future" — Montaser medium, sage→gold gradient.
   padding/negative-margin pair keeps descenders inside the clip box */
.hero-title .t-accent {
  display: block;
  font-size: 5.5rem;
  font-weight: 500;
  line-height: 1.02;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--clr-cream);
  margin-bottom: 40px;
  max-width: 540px;
}
.hero-sub strong {
  color: var(--clr-white);
  font-weight: 500;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-img {
  width: 100%;
  max-width: 600px;
  margin-inline-start: auto;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.6));
}

/* ---- 10. SERVICES ---- */
.services-section {
  position: relative;
  overflow: hidden;
}
.services-section .section-header {
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--grad-surface);
  border: 1px solid rgba(164, 186, 138, 0.08);
  border-radius: 24px;
  padding: 48px 44px;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    filter 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 208, 157, 0.2);
  filter: brightness(1.08);
}

/* Sage tile, dark glyph (Canva design) */
.card-icon {
  width: 60px;
  height: 60px;
  background: var(--clr-sage);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  flex-shrink: 0;
}
/* Black-on-white PNG icons → dark glyph on sage tile */
.card-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.85;
}

.service-card h3 {
  font-size: 1.9rem;
  color: var(--clr-white);
  margin-bottom: 14px;
  line-height: 1.2;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--clr-cream);
  line-height: 1.7;
  margin-bottom: 26px;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--clr-sage);
  transition:
    color 0.25s,
    gap 0.25s;
}
.learn-more:hover {
  color: var(--clr-gold);
  gap: 12px;
}

/* ---- 11. PORTFOLIO ---- */
.portfolio-section {
  position: relative;
  overflow: hidden;
}
.portfolio-section .section-header {
  margin-bottom: 52px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Card: image on top, info below on card surface (Canva design) */
.portfolio-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--grad-surface);
  border: 1px solid rgba(164, 186, 138, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 208, 157, 0.2);
}

.proj-img-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s var(--ease);
}
.portfolio-card:hover .proj-img-wrap img {
  transform: scale(1.03);
}

.proj-info {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.proj-category {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--clr-sage);
}
.proj-info h3 {
  font-size: 1.9rem;
  color: var(--clr-white);
  line-height: 1.15;
}
.view-project {
  display: inline-block;
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--clr-cream);
  transition: color 0.25s;
}
.view-project:hover {
  color: var(--clr-gold);
}

/* ---- 12. PROCESS (zigzag timeline) ---- */
/* Same page bg as every other section, with soft sage glows */
.process-section {
  background:
    radial-gradient(
      ellipse 45% 30% at 0% 38%,
      rgba(42, 55, 38, 0.9) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 28% at 100% 62%,
      rgba(42, 55, 38, 0.8) 0%,
      transparent 60%
    ),
    var(--clr-bg);
  position: relative;
  overflow: hidden;
}
.process-section .section-header {
  margin-bottom: 90px;
}

.process-timeline {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  z-index: 1;
}

/* Vertical centre line */
.process-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  bottom: 30px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(164, 186, 138, 0.3) 8%,
    rgba(164, 186, 138, 0.3) 92%,
    transparent
  );
}

.tl-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 68px;
  position: relative;
}
.tl-item:last-child {
  margin-bottom: 0;
}

.tl-left {
  justify-content: flex-start;
  padding-right: calc(50% + 50px);
}
.tl-right {
  justify-content: flex-end;
  padding-left: calc(50% + 50px);
}

/* Rounded-square node on the centre line — alternating sage / gold */
.tl-node {
  position: absolute;
  top: 30px;
  left: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--clr-sage);
  flex-shrink: 0;
}
.tl-right .tl-node {
  background: var(--clr-gold);
}

/* Translucent sage glass card */
.process-card {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(164, 186, 138, 0.12),
    rgba(164, 186, 138, 0.03)
  );
  border: 1px solid rgba(164, 186, 138, 0.18);
  border-radius: 16px;
  padding: 32px 32px 30px;
}

.step-meta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.step-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}
.step-head h3 {
  margin-bottom: 0;
}

/* Sage tile, dark glyph */
.step-icon {
  width: 50px;
  height: 50px;
  background: var(--clr-sage);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.85;
}

.step-label {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.006em;
}

.process-card h3 {
  font-size: 2.4rem;
  color: var(--clr-white);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.05;
}
.process-card p {
  font-size: 0.92rem;
  color: var(--clr-cream);
  line-height: 1.6;
}

/* ---- 13. CTA / CONTACT ---- */
.cta-section {
  position: relative;
}

.cta-card {
  position: relative;
  background: linear-gradient(180deg, #2a3726, #2f3b29);
  border: 1px solid rgba(164, 186, 138, 0.12);
  border-radius: 44px;
  padding: 96px 80px;
  overflow: hidden;
}

/* Centered content (Canva design) */
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.cta-title {
  margin-bottom: 28px;
  line-height: 0.93;
  letter-spacing: -0.03em;
}
.cta-title .t-heading {
  display: block;
  font-size: 5.4rem;
  font-weight: 500;
  color: var(--clr-white);
  line-height: 0.97;
}
/* "Something Amazing?" — vertical sage→gold gradient, wraps to 2 lines.
   padding-bottom + negative margin keep the clipped-background box tall
   enough for descenders (g, y) without shifting layout */
.cta-title .t-accent {
  display: block;
  font-size: 5.4rem;
  font-weight: 500;
  line-height: 0.97;
  max-width: 12ch;
  margin-inline: auto;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  background: var(--grad-text-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-sub {
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--clr-cream);
  max-width: 620px;
  margin-inline: auto;
}
.cta-sub strong {
  color: var(--clr-white);
  font-weight: 500;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  margin-bottom: 32px;
}

.cta-direct {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--clr-cream);
  line-height: 1.8;
}
.cta-email {
  font-size: 1.6rem;
  color: var(--clr-sage);
  font-weight: 500;
  transition: color 0.25s;
}
.cta-email:hover {
  color: var(--clr-gold);
}

/* ---- 14. FOOTER — copyright only ---- */
.main-footer {
  padding-block: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.main-footer p {
  font-size: 0.8rem;
  color: rgba(164, 186, 138, 0.38);
}

/* ---- 15. RESPONSIVE ---- */
@media (max-width: 1400px) {
  .hero-title .t-heading,
  .hero-title .t-accent {
    font-size: 4.8rem;
  }
  .section-header h2 {
    font-size: 5rem;
  }
}

@media (max-width: 1200px) {
  :root {
    --pad: 110px;
  }
  .container {
    padding-inline: 48px;
  }
  .section-header h2 {
    font-size: 4.4rem;
  }
  .hero-title .t-heading,
  .hero-title .t-accent {
    font-size: 4.2rem;
  }
  .cta-card {
    padding: 68px 56px;
  }
  .cta-title .t-heading,
  .cta-title .t-accent {
    font-size: 4.4rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --pad: 96px;
  }

  /* Hero: stack — image larger on tablet, aligned to top so headline stays in view */
  .hero-section {
    align-items: flex-start;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-content {
    order: 2;
  }
  .hero-visual {
    order: 1;
  }
  .hero-img {
    max-width: 500px;
    margin-inline: auto;
  }
  .hero-sub {
    margin-inline: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-title .t-heading,
  .hero-title .t-accent {
    font-size: 3.8rem;
  }

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

  /* Hide hero small orb when stacked */
  .sphere--sm {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 80px;
  }
  .container {
    padding-inline: 24px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }
  .navbar {
    padding: 12px 20px;
    /* Remove backdrop-filter so fixed-position .nav-links escapes to viewport */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 16, 11, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 1000;
  }
  .navbar .nav-links.nav-open {
    display: flex;
  }
  .nav-links a:not(.btn-nav) {
    font-size: 1.35rem;
  }
  .btn-nav {
    font-size: 1.05rem;
    padding: 12px 32px;
  }

  /* Hero: tighter on mobile, image pulled up */
  .hero-section {
    min-height: auto;
    padding-bottom: 80px;
  }
  .hero-img {
    max-width: 340px;
  }
  .hero-grid {
    gap: 20px;
  }

  /* Headings */
  .hero-title {
    white-space: normal;
  }
  .hero-title .t-heading,
  .hero-title .t-accent {
    font-size: 3rem;
  }
  .section-header h2 {
    font-size: 3.2rem;
  }

  /* Portfolio: single column */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Process: collapsed left-rail timeline */
  .process-timeline::before {
    left: 20px;
    transform: none;
  }
  .tl-item {
    flex-direction: column;
  }
  .tl-left,
  .tl-right {
    padding: 0 0 0 52px;
    justify-content: flex-start;
  }
  .tl-node {
    left: 14px;
    top: 28px;
  }

  /* CTA */
  .cta-card {
    padding: 52px 28px;
    border-radius: 32px;
  }
  .cta-title .t-heading,
  .cta-title .t-accent {
    font-size: 2.8rem;
  }
  .cta-email {
    font-size: 1.3rem;
  }

  /* Spheres: hide on small screens */
  .sphere {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title .t-heading,
  .hero-title .t-accent {
    font-size: 2.4rem;
  }
  .hero-img {
    max-width: 280px;
  }
  .section-header h2 {
    font-size: 2.6rem;
  }
  .service-card {
    padding: 40px 28px;
  }
  .cta-title .t-heading,
  .cta-title .t-accent {
    font-size: 2.2rem;
  }
}

/* ---- 16. SERVICE DETAIL PAGE ---- */
.svc-hero {
  position: relative;
  overflow: hidden;
  padding-top: 160px;
  padding-bottom: var(--pad);
  background:
    radial-gradient(ellipse 80% 60% at 72% 8%, #2a3f24 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 12% 88%, #1d311a 0%, transparent 55%),
    var(--clr-bg);
}

.svc-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 72px;
  position: relative;
  z-index: 1;
}

/* Image container — dark card, same border language as service-card */
.svc-visual {
  aspect-ratio: 4 / 3;
  background: var(--clr-surface);
  border: 1px solid rgba(164, 186, 138, 0.1);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

/* Subtle sage radial glow centered behind icon */
.svc-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(164, 186, 138, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.svc-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon PNGs: centered, inverted white, with breathing room */
.svc-img--icon {
  width: 38%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* Photos / illustrations: fill the card */
.svc-img--photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-content {
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--clr-sage);
  margin-bottom: 22px;
  transition:
    color 0.25s var(--ease),
    gap 0.25s var(--ease);
}
.back-link:hover {
  color: var(--clr-gold);
  gap: 10px;
}

.svc-title {
  font-size: 4.4rem;
  line-height: 1;
  color: var(--clr-white);
  margin-bottom: 14px;
}

.svc-subtitle {
  display: block;
  font-size: 2.3rem;
  line-height: 1.2;
  margin-bottom: 28px;
}

.svc-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 520px;
}

@media (max-width: 1400px) {
  .svc-title {
    font-size: 3.8rem;
  }
  .svc-subtitle {
    font-size: 2rem;
  }
}

@media (max-width: 1200px) {
  .svc-hero-grid {
    gap: 48px;
  }
  .svc-title {
    font-size: 3.2rem;
  }
  .svc-subtitle {
    font-size: 1.8rem;
  }
}

@media (max-width: 1024px) {
  .svc-hero {
    padding-top: calc(96px + 80px);
    padding-bottom: 96px;
  }
  .svc-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
  }
  .svc-visual {
    max-width: 340px;
    margin-inline: auto;
  }
  .back-link {
    width: fit-content;
    margin-inline: auto;
    display: flex;
  }
  .svc-desc {
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .svc-hero {
    padding-top: calc(80px + 80px);
    padding-bottom: 80px;
  }
  .svc-title {
    font-size: 2.8rem;
  }
  .svc-subtitle {
    font-size: 1.5rem;
  }
  .svc-visual {
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .svc-title {
    font-size: 2.2rem;
  }
  .svc-subtitle {
    font-size: 1.3rem;
  }
}
