/* ==========================================================================
   EB Pharma Innovation — stylesheet
   --------------------------------------------------------------------------
   1. DESIGN TOKENS  <- edit this block to re-theme the entire site
   2. Base & reset
   3. Centred layout grid
   4. Components (buttons, cards, lists, brand, header)
   5. Sections
   6. Responsive
   7. Motion preferences
   --------------------------------------------------------------------------
   Geometry is derived from the master visual reference:
     container 67.4% of viewport   hero panel aspect 1.98
     portrait  36.5% of container  circle  38.9% of container
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   Change the values here and the whole site follows. Nothing below this
   block hard-codes a brand colour, radius, shadow or font.
   ========================================================================== */
:root {

  /* ---- Colour ---- */
  --color-primary:        #263f7f;  /* deep elegant navy — headings, CTAs   */
  --color-primary-hover:  #1c3163;  /* slightly darker navy                 */
  --color-primary-soft:   #eef3fb;  /* pale navy wash — header pill         */

  --color-background:     #ffffff;  /* clean white page                     */
  --color-hero:           #f6fafd;  /* very pale cool blue-grey panel       */
  --color-surface:        #ffffff;  /* cards                                */
  --color-surface-alt:    #f8fafd;  /* quiet band                           */

  --color-accent:         #fee8da;  /* soft peach / nude — hero circle      */
  --color-accent-2:       #fdf3ec;  /* secondary very subtle circle         */
  --color-accent-deep:    #e9a97f;  /* peach at text strength, used rarely  */

  --color-text:           #1f2b45;  /* deep navy charcoal                   */
  --color-heading:        var(--color-primary);
  --color-muted:          #5c6b7f;  /* restrained blue-grey                 */
  --color-border:         #e9eef6;  /* very subtle cool grey                */
  --color-border-strong:  #d9e2ef;

  --color-on-dark:        #f4f7fc;
  --color-on-dark-muted:  #a9b7d6;
  --color-on-dark-border: rgba(255, 255, 255, 0.16);

  /* ---- Typography ---- */
  /* "Segoe UI Variable Text" sits ahead of static Segoe UI so the medium
     weights below resolve properly when Poppins is not installed. */
  --font-sans: "Poppins", "Montserrat", "Segoe UI Variable Text", "Segoe UI",
               system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* one ladder for the whole site: body < medium < heading < display */
  --weight-body:    500;   /* paragraphs, nav, meta — quietly confident */
  --weight-medium:  600;   /* buttons, labels, inline emphasis          */
  --weight-heading: 700;   /* h1–h3, card and section headings          */
  --weight-display: 800;   /* hero headline only                        */

  --fs-xs:   0.78rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.125rem;
  --fs-h3:   clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
  --fs-h2:   clamp(1.6rem, 1.15rem + 1.5vw, 2.25rem);
  --fs-h1:   clamp(1.95rem, 1.2rem + 2.3vw, 2.8rem);

  --lh-heading: 1.4;   /* the reference sets its headings generously open */
  --lh-body:    1.7;

  --tracking-btn: 0.06em;
  --tracking-eyebrow: 0.12em;

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --section-y:     clamp(3.5rem, 6vw, 6.5rem);
  --container-max: 1240px;                       /* professional max width  */
  --gutter:        clamp(1.25rem, 5.5vw, 6.5rem);/* breathing room, both sides */

  /* ---- Radius ---- */
  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    26px;
  --radius-panel: 40px;    /* hero / contact panels, large images */
  --radius-pill:  999px;

  /* ---- Shadow (very restrained) ---- */
  --shadow-sm:   0 1px 2px rgba(31, 43, 69, 0.04);
  --shadow-card: 0 12px 34px -22px rgba(31, 43, 69, 0.30);

  --border-hairline: 1px solid var(--color-border);
  --transition: 200ms ease;

  --header-height: 100px;
}


/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* short pages (Home) still push the footer to the bottom of the viewport */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--weight-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: var(--weight-heading);
  color: var(--color-heading);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.35; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

/* keeps inline emphasis clearly ahead of the stronger body weight */
strong, b { font-weight: var(--weight-heading); }

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
ul  { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary-hover); }

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 200;
  background: var(--color-primary);
  color: var(--color-on-dark);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--color-on-dark); }


/* ==========================================================================
   3. CENTRED LAYOUT GRID
   Every section — header, hero, services, about, why, contact, footer —
   uses this one container, so the whole page sits on a single centred grid.
   ========================================================================== */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

/* Centred section header (heading + lede), as in the reference */
.section-head {
  max-width: 40rem;
  margin: 0 auto clamp(2.5rem, 4vw, 3.75rem);
  text-align: center;
}
.section-head p {
  color: var(--color-muted);
  font-size: var(--fs-md);
  margin: 0;
}

/* Reveal-on-scroll, applied by JS only to content below the fold */
.js-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js-reveal.is-visible { opacity: 1; transform: none; }


/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.75em 2.3em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-btn);
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
}
.btn-arrow { width: 15px; height: 15px; stroke-width: 2; flex: none; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }

.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover { background: var(--color-primary-soft); color: var(--color-primary); }

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.4vw, 2.25rem);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-card); border-color: var(--color-border-strong); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-primary);
}
.card-icon svg { width: 25px; height: 25px; }

/* ---- Check lists (the reference's benefit list) ---- */
.check-list { display: grid; gap: var(--space-3); }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-muted);
  font-size: var(--fs-md);
}
.check-list li strong { color: var(--color-primary); font-weight: var(--weight-medium); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 1.1rem; height: 1.1rem;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263f7f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 5 5L19 7'/%3E%3C/svg%3E");
}
.check-list-sm li { font-size: var(--fs-sm); padding-left: 1.7rem; }
.check-list-sm li::before { width: 0.95rem; height: 0.95rem; top: 0.45em; }

/* ---- Brand ---- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--color-primary); }
.brand:hover { color: var(--color-primary); }
/* brand mark: assets/logo-mark.png — height-driven so the aspect never distorts */
.brand-mark { width: auto; height: 40px; flex: none; }
.brand-name {
  font-size: 1.3rem;
  font-weight: var(--weight-heading);
  letter-spacing: -0.02em;
  color: var(--color-primary);
  white-space: nowrap;
}
.brand-name span { font-weight: var(--weight-body); }

/* ---- Header: logo left · nav centred · CTA right ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-background);
  transition: box-shadow var(--transition);
}
.site-header.is-stuck { box-shadow: 0 6px 24px -20px rgba(31, 43, 69, 0.55); }

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* keeps the nav truly centred */
  align-items: center;
  gap: var(--space-4);
}

.nav { display: contents; }

.nav-list {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.75rem);
}
.nav-list a {
  position: relative;
  font-size: var(--fs-base);
  font-weight: var(--weight-body);
  color: var(--color-text);
  padding-block: 0.35rem;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-list a:hover, .nav-list a.is-active { color: var(--color-primary); font-weight: var(--weight-medium); }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }

/* language switch + phone pill share the right-hand cell */
.header-end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
}
.lang-btn {
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-btn);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.lang-btn:hover { color: var(--color-primary); }
.lang-btn.is-active { background: var(--color-primary); color: #fff; }

.header-cta {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  text-align: center;
  transition: background-color var(--transition);
}
.header-cta:hover { background: #e4ecf9; }
.header-cta-title { font-size: var(--fs-base); font-weight: var(--weight-heading); color: var(--color-primary); }
.header-cta-sub { font-size: var(--fs-xs); color: var(--color-muted); }

.nav-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 18px; margin-inline: auto; }
.nav-toggle-bars i {
  display: block; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle-bars i + i { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ==========================================================================
   5. SECTIONS
   ========================================================================== */

/* ---- Hero: one large rounded panel on the centred grid ---- */
.hero { padding-block: 0 var(--space-4); }

.hero-panel {
  position: relative;
  overflow: hidden;                       /* clips the portrait, as in the reference */
  border-radius: var(--radius-panel);
  background: var(--color-hero);
  min-height: clamp(480px, 44vw, 640px);  /* panel aspect ≈ 1.98 at desktop */
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) 6.1%;
}

/* soft peach circle — flat, behind the portrait */
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-panel::before {                     /* primary peach circle */
  width: 38.9%;
  aspect-ratio: 1;
  left: 72.5%;
  top: 46.3%;
  transform: translate(-50%, -50%);
  background: var(--color-accent);
}
.hero-panel::after {                      /* secondary, very subtle */
  width: 12%;
  aspect-ratio: 1;
  left: 91%;
  top: 32%;
  transform: translate(-50%, -50%);
  background: var(--color-accent-2);
}

.hero-copy { position: relative; z-index: 2; max-width: 42%; }
.hero-title {
  font-weight: var(--weight-display);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}
.hero-lede {
  color: var(--color-muted);
  max-width: 30rem;
  margin-bottom: var(--space-6);
}
.hero-note {
  display: block;
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
.hero-note strong { color: var(--color-primary); font-weight: var(--weight-medium); }

.hero-figure {
  position: absolute;
  z-index: 1;
  margin: 0;
  right: 7.4%;
  top: 14.5%;
  width: 36.5%;
}
.hero-figure img { width: 100%; height: auto; }

/* ---- Hero expertise strip: one navy band on the same centred grid ---- */
.hero-strip {
  --strip-gap: clamp(1.25rem, 3.2vw, 3.25rem);
  position: relative;
  z-index: 3;                                    /* rides over the panel it hugs */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2) var(--strip-gap);
  /* pulled up so the bar overlaps the hero panel and reads as one unit */
  margin-top: clamp(-2.25rem, -2.2vw, -1.5rem);
  /* deep, generous band — the copy sits centred with room to breathe */
  padding: clamp(1.9rem, 3.4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  color: var(--color-on-dark);
  font-size: clamp(0.8rem, 0.62rem + 0.3vw, 0.95rem);
  font-weight: var(--weight-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-strip li { display: flex; align-items: center; gap: var(--strip-gap); }
/* subtle dot separator, carried by every item after the first */
.hero-strip li + li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-on-dark-muted);
}

/* ---- Our Mission (home): editorial 3-column, no card boxes ---- */
.mission { background: var(--color-hero); }   /* quiet band, separates it from the hero */
.mission-head { max-width: 52rem; }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
/* square frame matches the source files, so the microscope, bulb and globe
   are never cropped — the three still render at identical size */
.mission-item { text-align: center; }
.mission-item img {
  width: 60%;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-4);
}
.mission-item h3 { margin-bottom: var(--space-3); }
.mission-item > p {
  max-width: 34ch;
  margin-inline: auto;
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

/* ---- About + mission ---- */
/* text-only section: one centred composition on a single axis */
.about { padding-block: clamp(3rem, 4.5vw, 4.5rem); }
.about-head {
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 2.2vw, 2rem);
}
.about-copy {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.about-copy h2 {
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.9rem);
  margin: 0 auto var(--space-4);
}
/* every line shares the same centre axis, on one even rhythm */
.about-copy > p {
  max-width: 860px;
  margin: 0 auto var(--space-4);
  color: var(--color-muted);
}
.about-copy > p:last-child { margin-bottom: 0; }

/* checkmark rows: bold label over lighter supporting line, left-aligned
   inside the centred column */
.about-points {
  display: grid;
  gap: var(--space-5);
  max-width: 790px;
  margin: clamp(1.5rem, 2.6vw, 2.25rem) auto 0;
  text-align: left;
}
.about-points li { position: relative; padding-left: 2.1rem; }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28em;
  width: 1.15rem; height: 1.15rem;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263f7f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 5 5L19 7'/%3E%3C/svg%3E");
}
.about-points h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-1);
}
.about-points p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--fs-sm);
}
.about-copy .check-list { margin: var(--space-6) 0 0; }


/* ---- Services ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
}
.service > p { color: var(--color-muted); font-size: var(--fs-sm); }
.service .check-list { margin-top: var(--space-5); }

/* ---- Services showcase: 3 editorial items, no card boxes ---- */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 4.5vw, 3.75rem);
}
.showcase-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;   /* keeps the subject in frame on portrait sources */
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}
.showcase-item h3 { margin-bottom: var(--space-3); }
.showcase-item > p { color: var(--color-muted); font-size: var(--fs-sm); }

/* ---- Services explorer: detail panel + vertical service tabs ---- */
.explorer { margin-top: clamp(3rem, 5vw, 4.5rem); }
.explorer-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

/* navigation left (25–30%), detail panel right — tops aligned */
.explorer-grid {
  display: grid;
  grid-template-columns: clamp(230px, 27%, 330px) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  align-items: start;
}

.explorer-panel {
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
}
.explorer-pane { display: none; }
.explorer-pane.is-active { display: block; }
.explorer-pane:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 6px; }
.explorer-pane h3 { margin-bottom: var(--space-3); }
.explorer-lede {
  max-width: 44rem;
  margin-bottom: var(--space-6);
  color: var(--color-muted);
  font-size: var(--fs-md);
}

.explorer-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) clamp(1.5rem, 3vw, 2.5rem);
}
.explorer-topic { padding-top: var(--space-4); border-top: 1px solid var(--color-accent); }
.explorer-topic h4 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-base);
  font-weight: var(--weight-heading);
  line-height: 1.4;
  color: var(--color-primary);
}
.explorer-topic p { margin: 0; color: var(--color-muted); font-size: var(--fs-sm); }

/* equal-height rows keep the four buttons on one rhythm;
   the group rides at the middle height of the detail panel */
.explorer-tabs {
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--space-3);
  align-self: center;
}
.explorer-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding: 0.9rem clamp(1rem, 1.6vw, 1.25rem);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-primary);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.explorer-tab:hover {
  background: var(--color-primary-soft);
  border-color: #c3d1e8;
}
.explorer-tab[aria-selected="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: var(--weight-heading);
}
/* small chevron marks the active item only */
.explorer-tab::after {
  content: "";
  display: none;
  flex: none;
  width: 1rem;
  height: 1rem;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.explorer-tab[aria-selected="true"]::after { display: block; }

/* ---- Navy divider band between Our Mission and Solutions ---- */
.bridge { padding-block: clamp(1.75rem, 3vw, 2.75rem); }
.bridge-panel {
  padding: clamp(2.5rem, 4.4vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-panel);
  background: var(--color-primary);
  text-align: center;
}
.bridge-head {
  max-width: 44rem;
  margin-bottom: 0;
}
.bridge-head h2 { color: #fff; margin-bottom: var(--space-4); }
.bridge-head p { color: var(--color-on-dark); }

/* ---- Solutions: three pillars + a light process line ---- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}
/* one shared crop keeps the three pillars visually level */
.solution img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}
.solution h3 { margin-bottom: var(--space-3); }
.solution > p { color: var(--color-muted); font-size: var(--fs-sm); }
.solution .check-list { margin-top: var(--space-5); }

.process {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) clamp(1rem, 2.4vw, 2rem);
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  border-top: var(--border-hairline);
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
}
.process li { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
/* peach arrow carries the eye from one step to the next */
.process li + li::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9a97f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ---- Home contact CTA: one navy panel on the centred grid ---- */
.cta { padding-top: 0; }          /* Solutions already supplies the gap above */
.cta-panel {
  padding: clamp(2rem, 3.6vw, 2.9rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-panel);
  background: var(--color-primary);
  color: var(--color-on-dark);
  text-align: center;
}
.cta-panel h2 { color: #fff; margin-bottom: clamp(1.1rem, 2vw, 1.6rem); }

/* two balanced groups on one centred row: email | phone · WhatsApp */
.cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-3) clamp(1.75rem, 4vw, 3.25rem);
  max-width: 820px;
  margin-inline: auto;
}
.cta-links li { display: flex; align-items: baseline; gap: 0.65rem; }
.cta-links a {
  color: #fff;
  font-size: var(--fs-md);
  font-weight: var(--weight-heading);
  transition: color var(--transition);
}
.cta-links a:hover { color: var(--color-accent); }
.cta-dot { color: var(--color-on-dark-muted); }
.cta-links .cta-wa { font-weight: var(--weight-medium); }

/* ---- Why us + who we work with ---- */
/* a rounded panel on the same grid, matching the hero and contact panels */
.why-panel {
  background: var(--color-surface-alt);
  border-radius: var(--radius-panel);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
}
.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) clamp(2rem, 5vw, 4rem);
  max-width: 60rem;
  margin-inline: auto;
}
.why-list li strong { display: block; font-size: var(--fs-md); }

.audiences {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: clamp(2rem, 3.5vw, 3rem);
  border-top: var(--border-hairline);
  text-align: center;
}
.audiences-title {
  font-size: var(--fs-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}
.audience-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.audience-row li {
  padding: 0.6rem 1.35rem;
  background: var(--color-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--color-primary);
}

/* ---- Contact: navy panel on the same centred grid ---- */
.contact { padding-bottom: var(--section-y); }
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  padding: clamp(2.25rem, 5vw, 4rem);
  border-radius: var(--radius-panel);
  background: var(--color-primary);
  color: var(--color-on-dark);
}
.contact-panel h2 { color: #fff; }
.contact-head > p { color: var(--color-on-dark-muted); margin-bottom: var(--space-6); }

.contact-details { display: grid; }
.contact-details li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-on-dark-border);
}
.contact-details li:first-child { border-top: 1px solid var(--color-on-dark-border); }
.contact-icon { flex: none; color: var(--color-on-dark-muted); }
.contact-icon svg { width: 21px; height: 21px; }
.contact-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
}
.contact-body a, .contact-body > span:last-child {
  color: #fff;
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}
.contact-body a { width: fit-content; border-bottom: 1px solid transparent; }
.contact-body a:hover { color: #fff; border-bottom-color: var(--color-accent-deep); }

/* ---- Footer ---- */
.site-footer {
  border-top: var(--border-hairline);
  color: var(--color-muted);
  padding-block: var(--space-6);
  font-size: var(--fs-sm);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.footer-inner p { margin: 0; }
.footer-brand strong { color: var(--color-primary); font-weight: var(--weight-heading); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-nav a { color: var(--color-muted); }
.footer-nav a:hover { color: var(--color-primary); }
.footer-copy { font-size: var(--fs-xs); }


/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */

/* Tablet — hero stacks, portrait stays prominent and centred */
@media (max-width: 940px) {
  .hero-panel {
    display: block;
    min-height: 0;
    padding: clamp(2.25rem, 6vw, 3rem) clamp(1.5rem, 6vw, 3rem) 0;
    text-align: left;
  }
  .hero-copy { max-width: none; }
  .hero-figure {
    position: relative;
    right: auto; top: auto;
    width: min(320px, 76%);
    margin: var(--space-6) auto 0;
  }
  .hero-panel::before { width: 68%; left: 50%; top: auto; bottom: 6%; transform: translateX(-50%); }
  .hero-panel::after  { width: 18%; left: 84%; top: auto; bottom: 42%; transform: translateX(-50%); }

  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-head { text-align: center; }
  .contact-head .btn { margin-inline: auto; }
}

/* Mobile navigation */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    display: flex;
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--color-surface);
    border-bottom: var(--border-hairline);
    box-shadow: 0 18px 40px -28px rgba(31, 43, 69, 0.6);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-list { grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: var(--border-hairline); }
  .nav-list a { display: block; padding: var(--space-4) 0; }
  .nav-list a::after { display: none; }

  .header-end {
    grid-column: auto;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    margin-top: var(--space-5);
  }
  .lang-switch { justify-content: center; }

  .header-cta {
    grid-column: auto;
    justify-self: stretch;
  }

  .service-grid,
  .solution-grid,
  .mission-grid,
  .showcase,
  .why-list { grid-template-columns: minmax(0, 1fr); }

  /* navigation stacks above the detail panel as a plain vertical list */
  .explorer-grid { grid-template-columns: minmax(0, 1fr); }
  .explorer-tabs { grid-auto-rows: auto; }
}

@media (max-width: 560px) {
  :root { --header-height: 76px; --radius-panel: 28px; }
  .brand-mark { height: 34px; }
  .brand-name { font-size: 1.12rem; }
  .hero-copy .btn { width: 100%; }
  /* fewer, cleaner rows rather than five cramped ones */
  .hero-strip {
    --strip-gap: 0.9rem;
    padding: 1.4rem 1rem;
  }

  .explorer-topics { grid-template-columns: minmax(0, 1fr); }
  /* two rows: email, then phone · WhatsApp still grouped together */
  .cta-links { flex-direction: column; }
}


/* ==========================================================================
   7. MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal { opacity: 1; transform: none; }
}
