/* ============================================================
   SIMEX — Simple Solutions
   Shared stylesheet for all pages
   Palette: client-supplied teal + grey scale on white
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand teal */
  --teal:        #1d948e;   /* brand primary */
  --teal-bright: #25bfb7;   /* highlights, gradients, hovers */
  --teal-deep:   #15807a;   /* accessible buttons + links (AA on white) */
  --teal-darker: #0f615d;   /* pressed / strong text on light teal */

  /* Neutrals (client palette) */
  --ink:        #404040;    /* headings (darker neutral, on-brand grey) */
  --gray-700:   #595959;    /* strong body text */
  --gray-600:   #737373;    /* body text */
  --gray-500:   #8c8c8c;    /* muted / secondary */
  --white:      #ffffff;

  /* Derived surfaces */
  --surface:        #ffffff;
  --surface-alt:    #f5f8f8;   /* very light teal-grey, section alternation */
  --surface-teal:   #f0faf9;   /* soft teal tint */
  --border:         #e4e9e9;
  --border-strong:  #d2dada;

  /* Semantic */
  --success: #1d948e;
  --error:   #c0392b;

  /* Type */
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing rhythm (8pt) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Radius + elevation */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 41, 0.06), 0 1px 3px rgba(16, 42, 41, 0.05);
  --shadow:    0 6px 18px rgba(16, 42, 41, 0.08);
  --shadow-lg: 0 18px 40px rgba(16, 42, 41, 0.12);

  /* Layout */
  --container: 1140px;
  --header-h: 142px;        /* top utility bar (40) + main logo row (102) */

  /* Z-index scale */
  --z-header: 100;
  --z-overlay: 90;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;            /* 16px */
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
iframe { border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; max-width: 68ch; }

a { color: var(--teal-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-darker); }

ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* ---------- Accessibility helpers ---------- */
:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--teal-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }
.section--alt { background: var(--surface-alt); }
.section--teal { background: var(--surface-teal); }

.section-head { max-width: 720px; margin: 0 auto var(--space-5); text-align: center; }
.section-head p { margin-inline: auto; color: var(--gray-600); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}

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

.grid { display: grid; gap: 1.75rem; }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .grid-2-900 { grid-template-columns: 1fr 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-align: center;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--teal-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-darker); color: #fff; box-shadow: var(--shadow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--teal-deep); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-teal); border-color: var(--teal); color: var(--teal-darker); }
.btn--white { background: #fff; color: var(--teal-darker); }
.btn--white:hover { background: #f0faf9; color: var(--teal-darker); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0;
  z-index: var(--z-header);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 102px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand:hover { color: inherit; }
.brand .mark { width: 38px; height: 38px; flex: none; }

/* Logo image (official brand asset) */
.brand-logo { height: 90px; width: auto; display: block; }
.brand-logo--footer { height: 56px; }
@media (max-width: 600px) { .brand-logo { height: 50px; } }

/* Two-tier header: top utility bar */
.topbar { background: var(--teal-deep); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; height: 40px; font-size: 0.85rem; }
.topbar a, .topbar span { color: #fff; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a.tb-item:hover { color: #cdf3ef; }
.topbar svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 600px) {
  .topbar-inner { justify-content: center; gap: 1rem; font-size: 0.78rem; height: 38px; }
  .topbar .tb-hide { display: none; }
}
@media (max-width: 860px) { :root { --header-h: 110px; } .nav { height: 70px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); letter-spacing: 0.04em;
}
.brand-tag { font-size: 0.72rem; color: var(--teal-deep); font-weight: 600; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--surface-teal); color: var(--teal-darker); }
.nav-links a[aria-current="page"] { color: var(--teal-deep); background: var(--surface-teal); }
.nav-cta { margin-left: 0.5rem; }
/* Keep the header CTA as a proper button (the generic .nav-links a rule
   was overriding its text colour, leaving grey text on the teal fill) */
.nav-links .nav-cta a.btn--primary { color: #fff; background: var(--teal-deep); }
.nav-links .nav-cta a.btn--primary:hover { color: #fff; background: var(--teal-darker); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem 1.5rem 1.25rem;
    transform: translateY(-130%);
    transition: transform .28s ease;
    z-index: var(--z-overlay);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.9rem 0.6rem; border-radius: var(--radius-sm); }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(37,191,183,0.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-teal) 100%);
  padding-block: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 span { color: var(--teal-deep); }
.hero p.lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.hero-assure {
  display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero-assure div { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--gray-700); font-weight: 600; }
.hero-assure svg { width: 22px; height: 22px; color: var(--teal); flex: none; }

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}
.hero-card h2 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.hero-card .tick-list { list-style: none; padding: 0; margin: 0; }
.hero-card .tick-list li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--border);
  color: var(--gray-700);
}
.hero-card .tick-list li:last-child { border-bottom: 0; }
.hero-card .tick-list svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 2px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--ink); color: #fff; }
.trust-strip .container { padding-block: 1.5rem; }
.trust-row {
  display: grid; gap: 1.25rem; text-align: center;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-row .num { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--teal-bright); }
.trust-row .lbl { font-size: 0.9rem; color: #d7dedd; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--gray-600); margin-bottom: 0; font-size: 0.97rem; }

.icon-badge {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--surface-teal);
  color: var(--teal-deep);
  margin-bottom: 1.1rem;
}
.icon-badge svg { width: 26px; height: 26px; }

.card-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1rem; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
}
.card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Sectors ---------- */
.sector-chip {
  display: flex; align-items: center; gap: 0.85rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.sector-chip svg { width: 26px; height: 26px; color: var(--teal); flex: none; }
.sector-chip strong { font-family: var(--font-head); color: var(--ink); display: block; }
.sector-chip span { font-size: 0.88rem; color: var(--gray-500); }

/* ---------- Service detail blocks ---------- */
.service-block {
  display: grid; gap: 2rem; align-items: start;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: 0; }
@media (min-width: 860px) {
  .service-block { grid-template-columns: 300px 1fr; gap: 3rem; }
  /* Sticky heading only makes sense in the two-column desktop layout.
     On mobile (single column) it would pin and overlap the body text. */
  .service-block .sb-head { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.service-block .icon-badge { width: 60px; height: 60px; }
.service-block .icon-badge svg { width: 30px; height: 30px; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature-list li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.45rem 0; color: var(--gray-700);
}
.feature-list svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }

/* ---------- Why-us / values ---------- */
.value {
  display: flex; gap: 1rem; align-items: flex-start;
}
.value .icon-badge { margin-bottom: 0; }
.value h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.value p { color: var(--gray-600); font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Quote / testimonial ---------- */
.quote {
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0 0 1rem; font-size: 1.1rem; color: var(--ink); font-family: var(--font-head); font-weight: 500; line-height: 1.5; }
.quote .cite { font-size: 0.9rem; color: var(--gray-500); }
.quote .cite strong { color: var(--teal-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 15% 120%, rgba(37,191,183,0.35), transparent 60%),
    linear-gradient(120deg, var(--teal-deep), var(--teal-darker));
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 60ch; }
.cta-band .container { text-align: center; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.92rem; color: var(--ink); margin-bottom: 0.4rem;
}
.field .req { color: var(--error); }
.field .hint { font-size: 0.82rem; color: var(--gray-500); margin-top: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink);
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37,191,183,0.18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--error);
}
.field-error { color: var(--error); font-size: 0.85rem; margin-top: 0.35rem; min-height: 1.1em; }
.form-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-status {
  margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; display: none;
}
.form-status.is-success { display: block; background: #eafaf8; border: 1px solid #b8e6e2; color: #0f615d; }
.form-status.is-error   { display: block; background: #fdecea; border: 1px solid #f3c5bf; color: #8e2b20; }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--gray-600); }
.consent input { width: auto; min-height: 0; margin-top: 0.25rem; flex: none; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact info list ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-list .icon-badge { margin-bottom: 0; flex: none; }
.contact-list .ci-label { font-family: var(--font-head); font-weight: 600; color: var(--ink); display: block; }
.contact-list a { font-size: 1.05rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 320px; display: block; filter: grayscale(0.1); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--surface-teal), #fff);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}
.page-hero .lead { max-width: 62ch; }
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--gray-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d1d0; padding-block: var(--space-6) var(--space-4); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: var(--teal-bright); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: #c9d1d0; }
.footer-links a:hover { color: #fff; }
.social-links { list-style: none; display: flex; gap: 0.6rem; padding: 0; margin: 1.25rem 0 0; }
.social-links a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.social-links a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }
.footer-contact a { color: #fff; }
.footer-bottom {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  font-size: 0.85rem; color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--gray-500); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
