/* =====================================================================
   KenSaMa — Portfolio & Services
   styles.css  •  "Earthy Aesthetic" design system (2026)
   Brown → khaki gradient · cream surfaces · warm amber conversion pop
   ===================================================================== */

/* ---------- 1. Design Tokens (brown / khaki aesthetic) ---------- */
:root {
  /* light surfaces (warm cream — natural, premium) */
  --bg: #FAF6EE;
  --bg-soft: #EFE6D2;
  --bg-card: #FFFFFF;

  /* ink (deep espresso — warm, grounded) */
  --ink: #2B1E12;
  --ink-soft: #3E2C1C;
  --muted: #7A6650;
  --muted-2: #A3907A;
  --line: rgba(43, 30, 18, .10);
  --line-2: rgba(43, 30, 18, .05);

  /* dark surfaces (deep coffee-black, warm not flat) */
  --dark: #241710;
  --dark-2: #2B1E12;
  --dark-3: #3E2C1C;
  --dark-card: rgba(255, 255, 255, .05);
  --dark-line: rgba(255, 255, 255, .10);
  --dark-text: rgba(255, 255, 255, .78);
  --dark-muted: rgba(255, 255, 255, .6);

  /* brand: brown → khaki (warm, earthy, aesthetic) */
  --primary: #7A4F2C;        /* coffee brown */
  --primary-2: #6B4423;      /* deep brown */
  --primary-3: #8B5E34;      /* caramel */
  --accent: #C9A876;         /* khaki / sand */
  --accent-2: #B8935A;       /* warm khaki gold */
  --pop: #B8893C;            /* amber — conversion highlight */
  --pop-2: #8B6420;          /* deep amber */
  --gold: #C9A876;

  --grad: linear-gradient(120deg, #5C3D2E 0%, #7A4F2C 50%, #8B5E34 100%);
  --grad-2: linear-gradient(120deg, #8B5E34 0%, #A47148 55%, #C9A876 100%);
  --grad-pop: linear-gradient(120deg, #B8893C 0%, #8B6420 100%);     /* amber conversion gradient */
  --grad-text: linear-gradient(115deg, #6B4423 0%, #A47148 100%);             /* on light bg */
  --grad-text-light: linear-gradient(115deg, #D4B896 0%, #E8DCC4 55%, #C9A876 100%); /* on dark bg */
  --grad-soft: linear-gradient(135deg, rgba(122, 79, 44, .12), rgba(201, 168, 118, .16));
  --mesh: radial-gradient(at 18% 18%, rgba(184, 137, 60, .32) 0px, transparent 50%),
          radial-gradient(at 84% 14%, rgba(164, 113, 72, .28) 0px, transparent 50%),
          radial-gradient(at 78% 82%, rgba(201, 168, 118, .22) 0px, transparent 50%),
          radial-gradient(at 22% 88%, rgba(122, 79, 44, .34) 0px, transparent 50%);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-xl: 38px;

  --shadow-xs: 0 1px 2px rgba(43, 30, 18, .06);
  --shadow-sm: 0 2px 8px rgba(43, 30, 18, .06), 0 12px 30px -10px rgba(107, 68, 35, .22);
  --shadow: 0 30px 60px -28px rgba(43, 30, 18, .34);
  --shadow-lg: 0 50px 90px -35px rgba(107, 68, 35, .45);
  --shadow-glow: 0 14px 38px -8px rgba(122, 79, 44, .55);
  --shadow-pop: 0 14px 38px -8px rgba(184, 137, 60, .55);

  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--muted);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

/* subtle grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.3rem, 5.8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

/* gradient text adapts to its background */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .gradient-text,
.page-hero .gradient-text,
.cta-banner .gradient-text {
  background: var(--grad-text-light);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

::selection { background: var(--primary); color: #fff; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding: 92px 0; position: relative; }
.section--alt { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { margin-top: 16px; font-size: 1.06rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--primary-2);
  background: var(--grad-soft); padding: 7px 15px; border-radius: 100px;
  border: 1px solid rgba(122, 79, 44, .22); margin-bottom: 20px;
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-pad-y: 14px; --btn-pad-x: 26px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: .95rem;
  padding: var(--btn-pad-y) var(--btn-pad-x); border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer; isolation: isolate;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--grad); background-size: 160% 160%; color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 22px 44px -12px rgba(122, 79, 44, .6); }

/* warm "pop" CTA — amber, maximum conversion attention */
.btn-pop { background: var(--grad-pop); background-size: 160% 160%; color: #fff; box-shadow: var(--shadow-pop); }
.btn-pop:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 22px 44px -12px rgba(184, 137, 60, .65); }

.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-outline:hover { transform: translateY(-3px); border-color: transparent; color: var(--primary-2); box-shadow: var(--shadow-sm); }
.btn-outline::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.btn-outline:hover::after { opacity: 1; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--primary-2); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; transform: translateY(-3px); }

.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 5. Header / Navbar (glass) ---------- */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 246, 238, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s, border-color .35s, background .35s;
}
#site-header.scrolled { box-shadow: 0 6px 30px -14px rgba(43, 30, 18, .14); border-color: var(--line); }

.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: 'Sora', sans-serif; font-weight: 700; color: var(--ink); font-size: 1.14rem; }
/* KSM logo mark — sized to fit three letters cleanly */
.brand__mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--grad); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 8px 20px -8px rgba(122, 79, 44, .9);
  position: relative;
}
.brand__mark::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 60%); }
.brand__text span { color: var(--primary-2); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; font-family: 'Sora', sans-serif; font-weight: 500; font-size: .94rem;
  color: var(--muted); padding: 9px 15px; border-radius: 100px;
  transition: color .25s, background .25s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width .3s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { width: 18px; }
.nav__links a.active { color: var(--ink); }

.nav__right { display: flex; align-items: center; gap: 14px; }

/* The in-menu CTA is only shown inside the mobile dropdown; desktop keeps the right button */
.nav__links .mobile-cta { display: none; }

.nav__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 13px; cursor: pointer; }
.nav__toggle span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero (dark coffee aurora) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark);
  color: var(--dark-text);
  padding: 110px 0 96px;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before {
  content: ''; position: absolute; inset: -20%;
  background: var(--mesh); background-size: 180% 180%;
  animation: meshFloat 18s ease-in-out infinite alternate;
  filter: blur(8px);
}
.hero__bg .grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 80%);
}
@keyframes meshFloat { 0% { transform: rotate(0deg) scale(1); } 100% { transform: rotate(6deg) scale(1.12); } }

.hero .eyebrow {
  color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}
.hero .eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 0 0 rgba(184, 137, 60, .8); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 137, 60, .7); } 70% { box-shadow: 0 0 0 9px rgba(184, 137, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 137, 60, 0); } }

.hero h1 { color: #fff; margin-bottom: 22px; font-weight: 800; letter-spacing: -.035em; }
.hero__lead { font-size: 1.16rem; max-width: 620px; margin-bottom: 34px; color: var(--dark-text); }
.hero .btn-row { margin-bottom: 44px; }

.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__trust-item { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--dark-text); font-weight: 500; }
.hero__trust-item .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.hero__trust-item .dot svg { width: 16px; height: 16px; }

/* browser mockup */
.hero-visual { position: relative; margin-top: 60px; z-index: 1; }
.hero-visual::before { content: ''; position: absolute; inset: -2px -2px 30% -2px; background: var(--grad); filter: blur(50px); opacity: .4; z-index: -1; border-radius: var(--radius-xl); }
.mockup {
  background: #fff; border: 1px solid var(--dark-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mockup__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbf9f4; }
.mockup__bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mockup__bar i:nth-child(1) { background: #ff5f57; } .mockup__bar i:nth-child(2) { background: #febc2e; } .mockup__bar i:nth-child(3) { background: #28c840; }
.mockup__bar .url { margin-left: 12px; font-size: .8rem; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 5px 14px; border-radius: 100px; }
.mockup__body { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 240px; }
.mockup__main { padding: 28px; border-right: 1px solid var(--line); }
.mockup__line { height: 11px; border-radius: 6px; background: #f0ead9; margin-bottom: 13px; }
.mockup__line.w-70 { width: 70%; } .mockup__line.w-50 { width: 50%; } .mockup__line.w-90 { width: 90%; }
.mockup__pill { display: inline-block; height: 26px; width: 120px; border-radius: 100px; background: var(--grad); margin-top: 10px; }
.mockup__side { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.mockup__card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; height: 64px; }
.mockup__card .t { height: 9px; width: 60%; background: #e3d9c0; border-radius: 5px; margin-bottom: 8px; }
.mockup__card .s { height: 7px; width: 80%; background: #f0ead9; border-radius: 5px; }

/* ---------- 7. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  position: relative; text-align: center; padding: 32px 18px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); transition: transform .4s var(--ease-out), box-shadow .4s;
}
.stat::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat:hover::before { opacity: 1; }
.stat__num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.3rem; color: var(--ink); letter-spacing: -.03em; }
.stat__num span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: .92rem; color: var(--muted); margin-top: 4px; }

/* ---------- 8. Cards & Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s; height: 100%;
}
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }

.icon-box {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: var(--grad-soft); color: var(--primary-2); margin-bottom: 20px;
  transition: transform .4s var(--ease-out);
}
.card:hover .icon-box { transform: scale(1.08) rotate(-4deg); }
.icon-box svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .97rem; }

.checklist { display: grid; gap: 12px; margin: 20px 0 4px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; font-size: .95rem; color: var(--muted); }
.checklist .tick { flex: 0 0 auto; width: 23px; height: 23px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; margin-top: 1px; box-shadow: 0 4px 10px -4px rgba(122, 79, 44, .8); }
.checklist .tick svg { width: 13px; height: 13px; }

.price-tag { display: flex; align-items: baseline; gap: 7px; margin: 20px 0; }
.price-tag .amount { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.1rem; color: var(--pop-2); letter-spacing: -.02em; }   /* amber pop on price = value draw */
.price-tag .sub { font-size: .92rem; color: var(--muted); }

.service-feature { display: flex; flex-direction: column; gap: 8px; }
.service-feature .head { display: flex; align-items: center; gap: 16px; }
.service-feature .head h3 { font-size: 1.5rem; }

/* ---------- 9. Marquee strip ---------- */
.marquee { overflow: hidden; padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 52px; width: max-content; animation: scrollX 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--ink-soft); white-space: nowrap; }
.marquee__item .star { color: var(--accent-2); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- 10. About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-portrait {
  border-radius: var(--radius-xl); padding: 44px; color: #fff;
  background: var(--dark); position: relative; overflow: hidden; min-height: 340px;
  box-shadow: var(--shadow-lg); isolation: isolate;
}
.about-portrait::before { content: ''; position: absolute; inset: -20%; background: var(--mesh); background-size: 200% 200%; z-index: -1; animation: meshFloat 20s ease-in-out infinite alternate; }
.about-portrait .initials { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 5rem; line-height: 1; letter-spacing: -.04em; }
.about-portrait .role { margin-top: 12px; font-size: 1.06rem; opacity: .9; }
.about-portrait .badge-float {
  position: absolute; right: 24px; bottom: 24px; background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 13px 18px;
}
.about-portrait .badge-float strong { display: block; font-family: 'Sora', sans-serif; }
.about-portrait .badge-float small { opacity: .85; }

.list-rows { display: grid; gap: 16px; }
.list-rows li { display: flex; gap: 15px; align-items: flex-start; }
.list-rows .num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: .92rem; box-shadow: 0 6px 14px -6px rgba(122, 79, 44, .8); }
.list-rows h4 { font-size: 1.03rem; margin-bottom: 2px; }
.list-rows p { font-size: .94rem; }

.trophy { display: flex; gap: 16px; align-items: flex-start; }
.trophy .ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; background: var(--grad-soft); color: var(--pop-2); display: grid; place-items: center; }
.trophy .ico svg { width: 25px; height: 25px; }

/* ---------- 11. CTA Banner ---------- */
.cta-banner {
  position: relative; overflow: hidden; background: var(--dark); color: #fff;
  border-radius: var(--radius-xl); padding: 64px 48px; text-align: center;
  box-shadow: var(--shadow-lg); isolation: isolate;
}
.cta-banner::before { content: ''; position: absolute; inset: -20%; background: var(--mesh); background-size: 200% 200%; opacity: .8; z-index: -1; animation: meshFloat 22s ease-in-out infinite alternate; }
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: var(--dark-text); max-width: 560px; margin: 16px auto 28px; position: relative; }
.cta-banner .btn-row { position: relative; }

/* ---------- 12. FAQ ---------- */
.faq-list { max-width: 840px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden; transition: border-color .35s, box-shadow .35s, transform .35s; }
.faq__item:hover { border-color: rgba(122, 79, 44, .25); }
.faq__item.open { border-color: transparent; box-shadow: var(--shadow); }
.faq__item::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.faq__item.open::before { opacity: 1; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 24px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq__icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; background: var(--grad-soft); color: var(--primary-2); display: grid; place-items: center; transition: transform .4s var(--ease-out), background .35s; position: relative; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; background: var(--primary-2); border-radius: 2px; transition: transform .4s var(--ease-out), opacity .35s; }
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; }
.faq__item.open .faq__icon { background: var(--grad); }
.faq__item.open .faq__icon::before, .faq__item.open .faq__icon::after { background: #fff; }
.faq__item.open .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.faq__a .inner { padding: 0 24px 24px; color: var(--muted); }

/* ---------- 13. Blog / Article ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.article__meta .tag { background: var(--grad-soft); color: var(--primary-2); padding: 6px 13px; border-radius: 100px; font-weight: 600; border: 1px solid rgba(122, 79, 44, .22); }
.article h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: 14px; }
.article .lead { font-size: 1.18rem; color: var(--muted); margin-bottom: 26px; }
.article h2 { font-size: 1.55rem; margin: 36px 0 13px; }
.article h3 { font-size: 1.18rem; margin: 24px 0 8px; }
.article p { margin-bottom: 16px; }
.article ul.bul { padding-left: 4px; display: grid; gap: 11px; margin-bottom: 18px; }
.article ul.bul li { position: relative; padding-left: 30px; color: var(--muted); }
.article ul.bul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 6px; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

.callout { background: var(--grad-soft); border: 1px solid rgba(122, 79, 44, .22); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 22px 24px; margin: 26px 0; }
.callout strong { color: var(--ink); }

.cost-table { width: 100%; border-collapse: collapse; margin: 18px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cost-table th, .cost-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
.cost-table thead th { background: var(--dark); color: #fff; font-family: 'Sora', sans-serif; font-size: .85rem; letter-spacing: .02em; }
.cost-table tbody tr { transition: background .25s; }
.cost-table tbody tr:hover { background: var(--bg-soft); }
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table td .price { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--primary-2); white-space: nowrap; }

.post-card { display: flex; flex-direction: column; }
.post-card__media { height: 160px; border-radius: 14px; background: var(--grad); margin-bottom: 18px; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; }
.post-card__media .emoji { font-size: 2.6rem; opacity: .95; }
.post-card .read { margin-top: auto; padding-top: 12px; font-family: 'Sora', sans-serif; font-weight: 600; color: var(--primary-2); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.post-card:hover .read svg { transform: translateX(3px); }

/* ---------- 14. Contact / Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.info-list { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); transition: transform .35s var(--ease-out), border-color .35s; position: relative; }
.info-card:hover { transform: translateY(-4px); border-color: rgba(122, 79, 44, .3); }
.info-card .ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(122, 79, 44, .8); }
.info-card .ico svg { width: 22px; height: 22px; }
.info-card h4 { font-size: 1.02rem; margin-bottom: 2px; }
.info-card a { color: var(--primary-2); font-weight: 600; word-break: break-word; }
.info-card--link { cursor: pointer; text-decoration: none; color: inherit; z-index: 2; pointer-events: auto; -webkit-tap-highlight-color: rgba(122, 79, 44, .15); touch-action: manipulation; }
.info-card--link:focus-visible { outline: 3px solid rgba(122, 79, 44, .5); outline-offset: 2px; }
.info-link { color: var(--primary-2); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.info-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.info-card--link:hover .info-link svg { transform: translate(2px, -2px); }

.form-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 38px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 19px; }
.form-group label { display: block; font-family: 'Sora', sans-serif; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.form-group label .req { color: var(--pop); }
.form-control { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 13px; font-family: inherit; font-size: .98rem; color: var(--ink); background: var(--bg); transition: border-color .25s, box-shadow .25s, background .25s; }
.form-control::placeholder { color: #b3a890; }
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(122, 79, 44, .15); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-group.invalid .form-control { border-color: #C0333A; box-shadow: 0 0 0 4px rgba(192, 51, 58, .12); }
.field-error { display: none; color: #C0333A; font-size: .84rem; margin-top: 7px; font-weight: 500; }
.form-group.invalid .field-error { display: block; }

/* success — soft natural sage to suit earthy palette */
.form-success { display: none; align-items: center; gap: 12px; background: #EBF0E0; border: 1px solid #C3D5A6; color: #4C6B2E; padding: 15px 17px; border-radius: 13px; margin-bottom: 19px; font-weight: 500; }
.form-success svg { color: #5E8536; }
.form-success.show { display: flex; }

/* ---------- 15. Footer ---------- */
.footer { background: var(--dark); color: var(--dark-text); padding: 72px 0 28px; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: var(--grad); opacity: .7; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.footer .brand { color: #fff; }
.footer__brand p { margin: 18px 0 20px; font-size: .94rem; max-width: 320px; color: var(--dark-muted); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--dark-line); border-radius: 100px; font-size: .86rem; color: #fff; transition: background .3s, border-color .3s, transform .3s; }
.footer__social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { font-size: .92rem; color: var(--dark-muted); transition: color .25s, padding-left .25s; }
.footer__col a:hover { color: #fff; padding-left: 5px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: .86rem; color: var(--dark-muted); }

/* ---------- 16. Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 14px; border: none; background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s, transform .35s, visibility .35s; z-index: 900; display: grid; place-items: center; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 17. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.from-left { transform: translateX(-34px); }
.reveal.from-right { transform: translateX(34px); }
.reveal.from-left.in, .reveal.from-right.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero__bg::before, .about-portrait::before, .cta-banner::before, .page-hero::before { animation: none; }
}

/* ---------- 18. Utilities ---------- */
.text-center { text-align: center; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 22px; } .mt-l { margin-top: 40px; }
.mb-s { margin-bottom: 12px; } .mb-m { margin-bottom: 22px; }
.muted { color: var(--muted); }

/* page hero (sub pages) — dark coffee aurora */
.page-hero { position: relative; overflow: hidden; background: var(--dark); padding: 80px 0 68px; text-align: center; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: -20%; background: var(--mesh); background-size: 200% 200%; opacity: .8; z-index: -1; animation: meshFloat 20s ease-in-out infinite alternate; }
.page-hero .eyebrow { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); margin-bottom: 16px; }
.page-hero h1 { color: #fff; font-weight: 800; letter-spacing: -.03em; }
.page-hero p { max-width: 620px; margin: 18px auto 0; font-size: 1.1rem; color: var(--dark-text); }
.breadcrumbs { font-size: .86rem; color: var(--dark-muted); margin-bottom: 20px; }
.breadcrumbs a { transition: color .2s; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: var(--dark-text); }

/* =====================================================================
   19. Responsive
   ===================================================================== */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mockup__body { grid-template-columns: 1fr; }
  .mockup__main { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(20px);
    padding: 18px 24px 28px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%); opacity: 0; visibility: hidden;
    transition: transform .45s var(--ease), opacity .35s, visibility .35s;
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__links a:hover, .nav__links a.active { background: var(--grad-soft); color: var(--primary-2); }
  .nav__links .mobile-cta { display: block; margin-top: 12px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; }
  .cta-banner { padding: 46px 26px; }
  .form-card { padding: 26px; }
  .service-feature .head h3 { font-size: 1.3rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero { padding: 72px 0 76px; }
  .container { padding-inline: 20px; }

  /* ---- Responsive cost table → stacked cards ---- */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }   /* safety net: never breaks layout */
  .cost-table thead { display: none; }                                    /* hide column headers on mobile */
  .cost-table, .cost-table tbody, .cost-table tr, .cost-table td { display: block; width: 100%; }
  .cost-table tr {
    margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-card); box-shadow: var(--shadow-xs); overflow: hidden;
  }
  .cost-table tr:last-child { margin-bottom: 0; }
  .cost-table td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    padding: 13px 16px; border-bottom: 1px solid var(--line-2); text-align: right;
  }
  .cost-table td:last-child { border-bottom: none; }
  .cost-table td::before {
    content: attr(data-label);
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: .8rem;
    letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: left;
  }
  /* the long "Best For" description stacks vertically for easy reading */
  .cost-table td[data-label="Best For"] { flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; }
  .cost-table td .price { white-space: normal; }   /* allow wrapping if very narrow */
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
}
