/* Emerging Writing Pad Solutions Ltd — site styles
   Colours come from the EWPS logo: navy #022366, gold #D6A02A, grey #979797. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand */
  --navy: #022366;
  --navy-deep: #011a4d;
  --navy-soft: #e8edf7;
  --gold: #d6a02a;
  --gold-bright: #e3b54a;
  --gold-text: #8a6311;   /* gold that passes contrast on light grounds */
  --gold-wash: #f6ecd6;
  --grey: #979797;

  /* Neutrals (warm, tinted toward the gold) */
  --paper: #faf7f1;
  --white: #ffffff;
  --ink: #0f1b33;
  --ink-2: #4a5570;
  --line: #e6e0d4;
  --line-strong: #d3cbbb;
  --on-navy: #ffffff;
  --on-navy-2: #c9d3e8;

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);

  /* Space and shape */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(2, 35, 102, 0.06), 0 12px 32px -12px rgba(2, 35, 102, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-text); }
::selection { background: var(--gold); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--line-strong) var(--paper); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 3px solid var(--paper); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--on-navy-2); }
.section--navy h2, .section--navy h3 { color: var(--on-navy); }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--gold); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 0.75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons */
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* Buttons */
.btn {
  --bg: var(--gold); --fg: var(--navy-deep);
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: 600 1rem/1.2 var(--font-body);
  color: var(--fg); background: var(--bg);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn:hover { --bg: var(--gold-bright); color: var(--fg); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(2, 35, 102, 0.45); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn .icon { transition: transform 0.25s var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--navy { --bg: var(--navy); --fg: #fff; }
.btn--navy:hover { --bg: var(--navy-deep); --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { --bg: var(--white); --fg: var(--navy); border-color: var(--navy); }
.btn--on-navy { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--on-navy:hover { --bg: rgba(255, 255, 255, 0.08); --fg: #fff; border-color: #fff; }
.btn--whatsapp .icon { width: 1.25em; height: 1.25em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; text-decoration: none; color: var(--navy); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size 0.3s var(--ease-out), color 0.2s; }
.text-link:hover { background-size: 100% 2px; color: var(--navy); }
.text-link .icon { transition: transform 0.25s var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

/* Top bar */
.topbar { background: var(--navy-deep); color: var(--on-navy-2); font-size: 0.875rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold-bright); }
.topbar__group { display: flex; align-items: center; gap: 1.5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.45em; }
.topbar .icon { color: var(--gold); width: 1em; height: 1em; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #3fbf7f; box-shadow: 0 0 0 3px rgba(63, 191, 127, 0.25); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(2, 35, 102, 0.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.55rem 0.8rem; border-radius: 8px; font-weight: 500; font-size: 0.98rem; color: var(--ink); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.nav__link:hover { color: var(--navy); background: var(--paper); }
.nav__link[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav__item--has-menu { position: relative; }
.nav__item--has-menu > .nav__link .icon { width: 0.9em; height: 0.9em; transition: transform 0.2s; }
.submenu { position: absolute; top: calc(100% + 8px); left: -0.5rem; width: 340px; padding: 0.5rem; list-style: none; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s; }
.submenu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item--has-menu:hover .submenu, .nav__item--has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.nav__item--has-menu:hover > .nav__link .icon { transform: rotate(180deg); }
.submenu a { display: block; padding: 0.65rem 0.8rem; border-radius: 8px; text-decoration: none; color: var(--ink); line-height: 1.35; }
.submenu a strong { display: block; font-weight: 600; color: var(--navy); }
.submenu a span { font-size: 0.875rem; color: var(--ink-2); }
.submenu a:hover { background: var(--paper); }
.header-cta { margin-left: 0.75rem; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--navy); cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon--close { display: none; }
.menu-open .menu-toggle .icon--open { display: none; }
.menu-open .menu-toggle .icon--close { display: block; }

@media (max-width: 1080px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem var(--gutter) 2rem; background: var(--white); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: flex; padding: 0.95rem 0.25rem; font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--gold-text); }
  .nav__item--has-menu > .nav__link .icon { display: none; }
  .submenu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0.25rem 0 0.5rem 0.75rem; }
  .submenu a { padding: 0.55rem 0.5rem; }
  .submenu a span { display: none; }
  .header-cta { margin: 0.5rem 0 0; justify-content: center; }
  body.menu-open { overflow: hidden; }
  body.menu-open .wa-float { opacity: 0; pointer-events: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .brand img { height: 44px; }
  .topbar__hide-sm { display: none !important; }
  .topbar .wrap { justify-content: center; }
}

/* Hero */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero h1 { max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--gold-text); }
.hero .lead { margin-bottom: 1.25rem; }
.hero__copy p:not(.lead) { color: var(--ink-2); max-width: 36em; }
.hero__copy .btn-row { margin-top: 2rem; }
.hero__note { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.75rem; font-size: 0.95rem; color: var(--ink-2); }
.hero__note span { display: inline-flex; align-items: center; gap: 0.45em; }
.hero__note .icon { color: var(--gold-text); }

.portrait { position: relative; justify-self: end; width: min(100%, 440px); }
.portrait__frame { position: relative; z-index: 1; margin: 0; aspect-ratio: 489 / 600; overflow: hidden; border-radius: 220px 220px var(--radius) var(--radius); background: var(--white); box-shadow: var(--shadow); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.portrait__arc { position: absolute; z-index: 0; inset: -7% -9% auto auto; width: 74%; color: var(--gold); pointer-events: none; }
.portrait__arc circle { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; }
.portrait__dot { position: absolute; z-index: 2; top: 2%; right: 4%; width: 22px; height: 22px; border-radius: 50%; background: var(--grey); }
.portrait__tag { position: absolute; z-index: 2; left: -1.5rem; bottom: 1.75rem; padding: 0.85rem 1.1rem; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); line-height: 1.3; }
.portrait__tag strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1rem; }
.portrait__tag span { font-size: 0.875rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { justify-self: center; width: min(82%, 380px); margin-top: 1rem; }
  .portrait__tag { left: -0.75rem; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); max-width: 18em; }
.page-hero .lead { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: 0.9rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* Split: heading column + content column */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h) + 2rem); }
.split__head p { color: var(--ink-2); }
.section--navy .split__head p { color: var(--on-navy-2); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__head { position: static; } }

/* Intro statement */
.statement { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.statement h2 { margin: 0; }
.statement__body p { color: var(--ink-2); font-size: 1.125rem; }
.statement__body p:first-child { color: var(--ink); font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Audience list */
.audiences { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.audience { border-bottom: 1px solid var(--line-strong); }
.audience a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 2rem; padding: 1.6rem 0; text-decoration: none; color: inherit; }
.audience h3 { margin: 0; font-size: var(--step-2); transition: color 0.2s; }
.audience p { grid-column: 1; margin: 0; color: var(--ink-2); max-width: 46em; }
.audience__go { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--navy); transition: background-color 0.25s var(--ease-out), border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out); }
.audience a:hover h3 { color: var(--gold-text); }
.audience a:hover .audience__go { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(-45deg); }

/* Services list */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 1.25rem; align-items: start; padding: 1.75rem 0; color: inherit; text-decoration: none; }
.service__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--gold-wash); color: var(--gold-text); transition: background-color 0.25s, color 0.25s; }
.service__icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.service h3 { margin: 0.2rem 0 0.35rem; transition: color 0.2s; }
.service p { margin: 0; color: var(--ink-2); }
.service .icon--arrow { margin-top: 0.35rem; color: var(--navy); transition: transform 0.25s var(--ease-out); }
.service a:hover .service__icon { background: var(--navy); color: var(--gold); }
.service a:hover h3 { color: var(--gold-text); }
.service a:hover .icon--arrow { transform: translateX(4px); }
@media (max-width: 560px) { .service a { grid-template-columns: 1fr auto; } .service__icon { grid-column: 1 / -1; width: 48px; height: 48px; } }

/* Promise band (navy) */
.promise { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.promise__item { padding: 1.75rem 1.5rem 0 0; }
.promise__item + .promise__item { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.promise__item h3 { font-size: 1.125rem; margin-bottom: 0.5rem; display: flex; gap: 0.5em; align-items: center; }
.promise__item h3 .icon { color: var(--gold); }
.promise__item p { margin: 0; font-size: 0.98rem; }
@media (max-width: 1080px) { .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); } .promise__item, .promise__item + .promise__item { padding: 1.5rem 1.5rem 1.5rem 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); } }
@media (max-width: 560px) { .promise { grid-template-columns: 1fr; } }
.section--navy .quote { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.35; color: #fff; letter-spacing: -0.02em; max-width: 26em; margin: 0; }
.section--navy .quote span { color: var(--gold-bright); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.step { counter-increment: step; position: relative; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.step::before { content: counter(step); position: absolute; top: -2px; left: 0; padding-top: 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--gold-text); border-top: 2px solid var(--gold); width: 3rem; }
.step h3 { margin-top: 1.75rem; }
.step p { color: var(--ink-2); margin: 0 0 0.75em; }
.step p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .steps--two { grid-template-columns: 1fr; } }
.steps--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .steps--two { grid-template-columns: 1fr; } }
.steps--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .steps--two { grid-template-columns: 1fr; } }
.steps--compact { grid-template-columns: 1fr; } }

/* CTA band */
.cta { position: relative; background: var(--navy); color: var(--on-navy-2); overflow: hidden; }
.cta .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 2rem 4rem; align-items: center; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.cta h2 { color: #fff; font-size: var(--step-4); max-width: 12em; margin-bottom: 0.4em; }
.cta p { font-size: var(--step-1); max-width: 32em; margin: 0; }
.cta__actions { display: grid; gap: 0.75rem; justify-items: start; }
.cta__actions .small { color: var(--on-navy-2); margin-top: 0.25rem; }
.cta__arc { position: absolute; right: -140px; bottom: -220px; width: 560px; color: rgba(214, 160, 42, 0.22); pointer-events: none; }
.cta__arc circle { fill: none; stroke: currentColor; stroke-width: 18; }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.founder__photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.founder__name { font-family: var(--font-display); font-weight: 600; color: var(--navy); margin: 1.5rem 0 0; }
.founder__role { color: var(--ink-2); margin: 0; font-size: 0.95rem; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } .founder__photo { max-width: 420px; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; }
.value h3 { display: flex; align-items: center; gap: 0.6rem; }
.value h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.value p { color: var(--ink-2); margin: 0; }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }

/* Vision and mission */
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.vm__item { padding: 2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.vm__item h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-text); }
.vm__item p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
@media (max-width: 800px) { .vm { grid-template-columns: 1fr; } }

/* Service page detail */
.detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.15rem; }
.checklist li { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.checklist li .icon { margin-top: 0.2em; color: var(--gold-text); stroke-width: 2.25; }
.aside-card { position: sticky; top: calc(var(--header-h) + 2rem); padding: 2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.aside-card h2 { font-size: 1.35rem; }
.aside-card p { color: var(--ink-2); font-size: 0.98rem; }
.aside-card .btn { width: 100%; justify-content: center; text-align: center; }
.aside-card .btn + .btn { margin-top: 0.75rem; }
.aside-card dl { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.aside-card dt { font-weight: 600; color: var(--navy); }
.aside-card dd { margin: 0 0 0.75rem; color: var(--ink-2); }
.note { display: flex; gap: 0.85rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--navy-soft); color: var(--ink); font-size: 0.98rem; }
.note .icon { color: var(--navy); margin-top: 0.2em; }
.note p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin: 2.5rem 0; }
.facts h3 { font-size: 1.1rem; }
.facts p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .aside-card { position: static; } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* Services overview grid (index page) */
.svc-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; }
.svc-index .service:nth-last-child(2) { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .svc-index { grid-template-columns: 1fr; } .svc-index .service:nth-last-child(2) { border-bottom: 0; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; width: 22px; height: 22px; color: var(--gold-text); transition: transform 0.3s var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-text); }
.faq__answer { padding: 0 3rem 1.5rem 0; color: var(--ink-2); max-width: 70ch; }
.faq__answer p:last-child { margin-bottom: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23022366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 18px; padding-right: 2.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #6b7488; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(214, 160, 42, 0.35); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #b42318; }
.field .hint { font-size: 0.875rem; color: var(--ink-2); }
.consent { grid-column: 1 / -1; display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 0.15em; accent-color: var(--navy); flex: none; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form__actions .small { color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 1rem 1.15rem; border-radius: var(--radius-sm); font-size: 0.98rem; }
.form-status--error { background: #fdecea; color: #7a1b12; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.contact-card { padding: 2rem; border-radius: var(--radius); background: var(--navy); color: var(--on-navy-2); }
.contact-card h2 { color: #fff; font-size: 1.4rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 0.9rem; }
.contact-list .icon { color: var(--gold); margin-top: 0.25em; width: 20px; height: 20px; }
.contact-list strong { display: block; color: #fff; font-weight: 600; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--gold-bright); text-decoration: underline; }
.contact-card .btn { margin-top: 1.75rem; width: 100%; justify-content: center; }

/* Legal */
.legal-meta { color: var(--ink-2); font-size: 0.95rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.98rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.75rem; border-bottom: 1px solid var(--line); }
.legal th { color: var(--navy); font-weight: 600; background: var(--paper); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-2); font-size: 0.98rem; }
.site-footer a { color: var(--on-navy-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding: clamp(3.5rem, 6vw, 5rem) 0 3rem; }
.footer__brand img { height: 56px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 24em; }
.footer__tagline { font-family: var(--font-display); color: #fff; font-weight: 500; letter-spacing: -0.01em; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-bright); margin-bottom: 1.1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.9rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 60; display: inline-flex; align-items: center; gap: 0.6rem; height: 56px; padding: 0 1.25rem 0 1rem; border-radius: 999px; background: #1e8a4c; color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(1, 26, 77, 0.45); transition: transform 0.25s var(--ease-out), background-color 0.2s; }
.wa-float:hover { color: #fff; background: #187341; transform: translateY(-2px); }
.wa-float:active { transform: scale(0.97); }
.wa-float .icon { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Thank-you and 404 */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; background: var(--paper); }
.center-page .wrap { max-width: 720px; padding-top: 5rem; padding-bottom: 5rem; }
.center-page .btn-row { justify-content: center; margin-top: 2rem; }
.badge-check { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--gold-wash); color: var(--gold-text); }
.badge-check .icon { width: 34px; height: 34px; stroke-width: 2.25; }

/* Motion: the one authored moment is the hero arc drawing in. */
@media (prefers-reduced-motion: no-preference) {
  .js .portrait__arc circle { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw-arc 1.6s var(--ease-out) 0.25s forwards; }
  .js .portrait__dot { opacity: 0; transform: scale(0.4); animation: pop 0.6s var(--ease-out) 1.35s forwards; }
  .js .hero__copy > * { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease-out) forwards; }
  .js .hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
  .js .hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
  .js .hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
  .js .hero__copy > *:nth-child(5) { animation-delay: 0.32s; }
}
@keyframes draw-arc { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media print {
  .topbar, .site-header, .wa-float, .cta, .site-footer { display: none; }
  body { color: #000; }
}
