/* ============================================================================
   Pagona Software — styles.
   ----------------------------------------------------------------------------
   Palette "Peacock Jewel": deep teal-navy base, teal accent, a whisper of gold.
   All colours and key sizes are defined once below as variables, so you can
   adjust the whole site from one place. To change a colour, edit its value here.
   ========================================================================== */

:root {
  /* Colours */
  --bg:          #08222E; /* base background (deep teal-navy) */
  --bg-alt:      #0A2835; /* slightly lighter, for alternating sections */
  --surface:     #0E2E3B; /* cards */
  --surface-2:   #143A49; /* cards on hover / raised */
  --line:        rgba(234, 241, 242, 0.10); /* hairline borders */
  --line-strong: rgba(234, 241, 242, 0.18);
  --text:        #EAF1F2; /* main text */
  --muted:       #9FB4BD; /* secondary text */
  --teal:        #1FB89C; /* primary accent */
  --teal-2:      #15A18C; /* deeper teal, used in gradients */
  --petrol:      #14788A; /* deep petrol */
  --gold:        #C9A24B; /* tiny premium accents only */
  --ink:         #062029; /* dark text on light/teal buttons */

  /* Type */
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & motion */
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1140px;
  --ease:      cubic-bezier(0.2, 0.65, 0.25, 1);
  --header-h:  72px;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;     /* 17px */
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; } /* used when the mobile menu is open */

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--teal); color: var(--ink); }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link (jumps straight to the content) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--muted); }

strong { color: var(--text); font-weight: 600; }

/* ---- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--alt { background: var(--bg-alt); }
.section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Eyebrow: small label above a heading, carrying the peacock-eye mark */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* The gem mark (a small diamond), echoing the "Peacock Jewel" palette.
   Used as the premium marker on eyebrows, the "how we work" points and chips. */
.eye { width: 16px; height: 16px; flex: none; }
.eye .lens { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linejoin: round; }
.eye .pupil { fill: var(--gold); }

.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { font-size: 1.1rem; margin-top: 0.75rem; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* Highlighted word inside a heading */
.hl { color: var(--teal); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal);
  color: var(--ink);
  box-shadow: 0 8px 24px -12px rgba(31, 184, 156, 0.8);
}
.btn-primary:hover {
  background: #29c9ac;
  box-shadow: 0 14px 30px -12px rgba(31, 184, 156, 0.9);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--teal); background: rgba(31, 184, 156, 0.08); }

.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }

/* ---- Header / navigation ------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 34, 46, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 34, 46, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { height: 30px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  position: relative;
  padding-block: 0.25rem;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-current { color: var(--teal); }

/* Language switch (RO | EN) */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang button.is-active { background: var(--teal); color: var(--ink); }

/* Hamburger (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
/* Iridescent peacock sheen behind the hero (teal glow + a faint gold one) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 78% 18%, rgba(31, 184, 156, 0.18), transparent 60%),
    radial-gradient(50% 60% at 90% 80%, rgba(201, 162, 75, 0.10), transparent 55%),
    radial-gradient(55% 70% at 12% 90%, rgba(20, 120, 138, 0.16), transparent 60%);
  pointer-events: none;
}
/* Large, very faint peacock watermark on the right */
.hero-mark {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(42vw, 540px);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.hero-inner { position: relative; max-width: 56rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 44ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* ---- How we think ------------------------------------------------------- */
.think-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.think-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 16ch;
}
.think-body { font-size: 1.12rem; max-width: 52ch; }

/* ---- Services ----------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(31, 184, 156, 0.12);
  border: 1px solid rgba(31, 184, 156, 0.25);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; stroke-width: 1.7; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.98rem; }

/* Featured service (the core one) spans the full width and sits horizontally */
.card-featured {
  background:
    linear-gradient(135deg, rgba(31, 184, 156, 0.14), rgba(20, 120, 138, 0.06) 55%, transparent),
    var(--surface);
  border-color: rgba(31, 184, 156, 0.30);
}
.card-featured .card-tag {
  display: inline-block;
  align-self: flex-start;   /* wrap tightly around the text, do not stretch */
  width: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 999px;
  padding: 0.34rem 0.9rem;
  margin-bottom: 1rem;
}
.card-featured h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.card-featured p { font-size: 1.05rem; max-width: 60ch; }

/* ---- Sectors ------------------------------------------------------------ */
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.sector {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.sector:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}
.sector-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.sector-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.sector:hover .sector-photo img { transform: scale(1.05); }
/* Tint the photo toward the palette so the three feel like one set */
.sector-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 34, 46, 0.05), rgba(8, 34, 46, 0.55));
}
.sector-body { padding: 1.3rem clamp(1.2rem, 2vw, 1.6rem) 1.6rem; }
.sector-body h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.sector-body p { font-size: 0.97rem; }

/* ---- How we work -------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
.work-point {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.work-point .eye { width: 30px; height: 30px; margin-bottom: 1rem; }
.work-point h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.work-point p { font-size: 0.98rem; }

/* ---- About -------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-text p { font-size: 1.1rem; max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
}
.chip .eye { width: 15px; height: 15px; }
/* Decorative peacock medallion */
.about-mark {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 360px;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(31, 184, 156, 0.18), transparent 62%),
    var(--surface);
  border: 1px solid var(--line);
}
.about-mark img { width: 64%; opacity: 0.92; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--teal-2), var(--petrol));
}
.cta-band::after { /* subtle peacock sheen */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 120% at 85% 10%, rgba(201, 162, 75, 0.22), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, 0.88); font-size: 1.12rem; margin: 1rem 0 2rem; }
.cta-band .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta-band .btn-primary:hover { background: #eafffb; }

/* ---- Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-direct { margin-top: 1.8rem; display: grid; gap: 1rem; }
.contact-line { display: flex; align-items: center; gap: 0.8rem; }
.contact-line .ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: rgba(31, 184, 156, 0.12);
  border: 1px solid rgba(31, 184, 156, 0.25);
}
.contact-line .ic svg { width: 20px; height: 20px; stroke: var(--teal); fill: none; stroke-width: 1.7; }
.contact-line .label { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-line a { font-size: 1.08rem; font-weight: 500; color: var(--text); }
.contact-line a:hover { color: var(--teal); }

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #6f8993; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 184, 156, 0.18);
}
.field textarea { min-height: 130px; resize: vertical; }

/* Honeypot: hidden from people, tempting to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.2rem; }
.consent input { margin-top: 0.25rem; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.consent label { font-size: 0.88rem; color: var(--muted); }
.consent a { color: var(--teal); text-decoration: underline; }

.form-card .btn-primary { width: 100%; }

.form-status { margin-top: 1rem; font-size: 0.95rem; min-height: 1.2em; }
.form-status[data-state="ok"] { color: var(--teal); }
.form-status[data-state="error"] { color: #ff9b8a; }
.form-status[data-state="info"] { color: var(--muted); }

/* ---- Footer ------------------------------------------------------------- */
.footer {
  background: #061a24;
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 30ch; font-size: 0.96rem; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a, .footer-col li { font-size: 0.95rem; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.company-details { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.company-details strong { color: var(--text); display: block; margin-bottom: 0.2rem; }
.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Cookie banner ------------------------------------------------------ */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 540px;
  margin-inline: auto;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.cookie.is-visible { transform: translateY(0); opacity: 1; }
.cookie p { font-size: 0.9rem; flex: 1 1 240px; margin: 0; color: var(--text); }
.cookie a { color: var(--teal); text-decoration: underline; }
.cookie .btn { padding: 0.6rem 1.2rem; }

/* ---- Legal pages (privacy / cookies) ------------------------------------ */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.legal .updated { font-size: 0.9rem; color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 0.7rem; }
.legal h3 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.legal li { position: relative; padding-left: 1.5rem; }
.legal li::before { /* small teal gem bullet */
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.68em;
  width: 7px;
  height: 7px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--teal);
  border-radius: 1px;
}
.legal a { color: var(--teal); text-decoration: underline; }
.legal .back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 2.5rem; color: var(--teal); font-weight: 500;
}

/* ---- Scroll reveal ------------------------------------------------------ */
/* Progressive enhancement: elements only start hidden when JavaScript is on
   (the <html> tag gets a "js" class). Without JS, everything is visible. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger children of a grid a little */
.reveal-stagger > * { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal-stagger > * { opacity: 0; transform: translateY(22px); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================================
   RESPONSIVE — small screens first above, larger screens below.
   ========================================================================== */
@media (max-width: 899px) {
  /* Turn the top menu into a dropdown panel opened by the hamburger */
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem clamp(1.1rem, 4vw, 2rem) 2.5rem;
    background: #0A2532; /* fully opaque so the page never shows through */
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav-links a { font-size: 1.1rem; }
  .nav .lang { align-self: flex-start; }
  .nav .btn { width: 100%; }
}

@media (min-width: 700px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    padding: clamp(1.8rem, 3vw, 2.6rem);
  }
  .card-featured .card-featured-head { display: flex; flex-direction: column; }
}

@media (min-width: 860px) {
  .think-grid { grid-template-columns: 1fr 1.3fr; }
  .about-grid { grid-template-columns: 1.3fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-top { grid-template-columns: 1.2fr 2fr; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Respect "reduce motion" ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .sector:hover { transform: none; }
  .sector:hover .sector-photo img { transform: none; }
}
