/* ==================================================================
   Tattu Intel Uganda Limited — site styles
   Palette: deep navy (trust) + amber accent (Ugandan warmth)
   ================================================================== */

:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #133b6b;
  --navy-600: #1d4f8a;

  --amber-500: #f4a300;
  --amber-400: #ffb92e;
  --amber-100: #fff3d9;

  --ink: #12233a;
  --body: #47566b;
  --muted: #6b7a90;

  --line: #e3e8ef;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --surface-3: #eef3f9;

  --green: #12a150;
  --red: #d64545;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 51, .06), 0 2px 8px rgba(7, 26, 51, .05);
  --shadow-md: 0 4px 12px rgba(7, 26, 51, .08), 0 12px 28px rgba(7, 26, 51, .07);
  --shadow-lg: 0 18px 48px rgba(7, 26, 51, .16);

  --wrap: 1180px;
  --header-h: 74px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.19rem; }

p { margin: 0 0 1rem; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-700); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ------------------------------ Buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .96rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease,
              color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--amber-500);
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(244, 163, 0, .32);
}
.btn-accent:hover {
  background: var(--amber-400);
  color: var(--navy-900);
  box-shadow: 0 8px 22px rgba(244, 163, 0, .42);
}

.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy-800); color: var(--navy-800); }

.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ------------------------------ Header ----------------------------- */

.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
}
.topbar-inner {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}
.topbar-item:hover { color: var(--amber-400); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
/* The logo is an SVG that carries its own rounded field and colours, so it
   needs no background or radius of its own. */
.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 1.13rem; color: var(--ink); letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--body);
  font-weight: 600;
  font-size: .95rem;
}
.nav-link:hover { background: var(--surface-2); color: var(--navy-800); }
.nav-link.is-active { color: var(--navy-800); background: var(--surface-3); }
.nav-cta { margin-left: 10px; padding: 10px 20px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------- Hero ----------------------------- */

.hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  /* Photo sits at the bottom of the stack; the gradients above it keep the
     white hero text readable (WCAG AA) no matter what the image contains. */
  background-image:
    radial-gradient(circle at 82% 18%, rgba(244, 163, 0, .18), transparent 45%),
    linear-gradient(105deg, rgba(7, 26, 51, .93) 0%, rgba(9, 32, 60, .80) 38%,
                            rgba(19, 59, 107, .55) 70%, rgba(19, 59, 107, .42) 100%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    url("/images/engineer-tower.webp");
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px, cover;
  background-position: center, center, center, center, 68% 30%;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
  padding: 78px 22px 88px;
}
.hero-copy h1 { color: #fff; margin-bottom: .35em; }
.hero-copy > p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .84);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(244, 163, 0, .14);
  border: 1px solid rgba(244, 163, 0, .34);
  color: var(--amber-400);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 2rem; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .8);
}
.hero-trust .icon { color: var(--amber-400); }

.hero-panel {
  background: rgba(7, 26, 51, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.panel-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  font-size: .93rem;
  color: rgba(255, 255, 255, .82);
}
.panel-row strong { margin-left: auto; color: #fff; font-size: 1.02rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-green { background: #35d07f; box-shadow: 0 0 0 4px rgba(53, 208, 127, .18); }
.dot-amber { background: var(--amber-500); box-shadow: 0 0 0 4px rgba(244, 163, 0, .18); }
.dot-blue  { background: #4aa3ff; box-shadow: 0 0 0 4px rgba(74, 163, 255, .18); }

.panel-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
  margin: 22px 0 10px;
}
.panel-chart span {
  flex: 1 1 0;
  min-width: 10px;
  align-self: flex-end;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--amber-400), rgba(244, 163, 0, .28));
  transform-origin: bottom center;
  animation: growBar .9s cubic-bezier(.2, .8, .3, 1) backwards;
}
/* Bar heights live here rather than in inline style attributes, which the
   Content-Security-Policy (style-src 'self') deliberately blocks. */
.panel-chart .bar-38 { height: 38%; }
.panel-chart .bar-55 { height: 55%; }
.panel-chart .bar-42 { height: 42%; }
.panel-chart .bar-68 { height: 68%; }
.panel-chart .bar-74 { height: 74%; }
.panel-chart .bar-61 { height: 61%; }
.panel-chart .bar-88 { height: 88%; }

.panel-chart span:nth-child(1) { animation-delay: .05s; }
.panel-chart span:nth-child(2) { animation-delay: .12s; }
.panel-chart span:nth-child(3) { animation-delay: .19s; }
.panel-chart span:nth-child(4) { animation-delay: .26s; }
.panel-chart span:nth-child(5) { animation-delay: .33s; }
.panel-chart span:nth-child(6) { animation-delay: .40s; }
.panel-chart span:nth-child(7) { animation-delay: .47s; }
@keyframes growBar {
  from { transform: scaleY(.05); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

.panel-caption {
  margin: 0;
  font-size: .81rem;
  color: rgba(255, 255, 255, .6);
  text-align: center;
}

/* ------------------------------- Stats ----------------------------- */

.stats { background: var(--navy-900); color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 34px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  color: var(--amber-500);
  line-height: 1.1;
}
.stat span { font-size: .89rem; color: rgba(255, 255, 255, .72); }

/* ------------------------------ Sections --------------------------- */

.section { padding: 82px 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }

/* A photo-backed band. Because the image forces a dark ground, this section
   flips to light-on-dark type rather than the usual dark-on-light. */
.section-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  border-block: none;
}
.section-photo > .wrap { position: relative; z-index: 1; }
.section-photo-iot {
  background-image:
    linear-gradient(135deg, rgba(7, 26, 51, .94), rgba(19, 59, 107, .86)),
    url("/images/iot-systems.jpg");
}
.section-photo .section-head h2,
.section-photo .section-head p { color: #fff; }
.section-photo .section-head p { color: rgba(255, 255, 255, .85); }
.section-photo .section-head .eyebrow {
  background: rgba(244, 163, 0, .16);
  border-color: rgba(244, 163, 0, .38);
  color: var(--amber-400);
}
.section-photo .process li {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}
.section-photo .process h3 { color: #fff; }
.section-photo .process p { color: rgba(255, 255, 255, .8); }
.section-photo .btn-primary { background: var(--amber-500); color: var(--navy-900); }
.section-photo .btn-primary:hover { background: var(--amber-400); color: var(--navy-900); }

.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  background: var(--amber-100);
  border-color: rgba(244, 163, 0, .35);
  color: #9a6600;
}
.section-head p { font-size: 1.05rem; margin-bottom: 0; }
.section-head-left { margin: 0; text-align: left; }
.section-foot { margin-top: 42px; text-align: center; }

.page-head {
  position: relative;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 62px 0 66px;
  text-align: center;
}
.page-head > .wrap { position: relative; z-index: 1; }
.page-head-tall { padding: 100px 0 110px; }

/* Photo-backed headers. The gradient is layered above the image in the same
   background stack, so the heading keeps its contrast on every screen. */
.page-head-photo { background-blend-mode: normal; }

.page-head-services {
  background-image:
    linear-gradient(150deg, rgba(7, 26, 51, .93), rgba(19, 59, 107, .82)),
    url("/images/network-mesh.webp");
}
.page-head-about {
  background-image:
    linear-gradient(150deg, rgba(7, 26, 51, .93), rgba(19, 59, 107, .82)),
    url("/images/global-connectivity.jpg");
}
.page-head-book {
  background-image:
    linear-gradient(150deg, rgba(7, 26, 51, .94), rgba(19, 59, 107, .84)),
    url("/images/iot-systems.jpg");
}
.page-head-contact {
  background-image:
    linear-gradient(150deg, rgba(7, 26, 51, .93), rgba(19, 59, 107, .82)),
    url("/images/tower-climber.webp");
}
.page-head h1 { color: #fff; }
.page-head p {
  max-width: 60ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, .84);
  font-size: 1.06rem;
}
.page-head .hero-actions { justify-content: center; margin-top: 2rem; margin-bottom: 0; }

/* ------------------------------- Grids ----------------------------- */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ------------------------------- Cards ----------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 79, 138, .25);
}

.card-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 13px;
  margin-bottom: 17px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: var(--amber-400);
}
.card-icon .icon { width: 24px; height: 24px; }

/* ---- Service card with a full-bleed photo background ----
   The card keeps its original shape and padding; the photo sits behind the
   whole tile and a heavy navy gradient over it carries the white text. */
.card.has-bg {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .12);
  background: var(--navy-900);
}
.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Softened so the photo reads as texture behind the text rather than
     competing with it. Scaled up because blur feathers the edges inward —
     without it, the corners would show a translucent halo. */
  filter: blur(3px);
  transform: scale(1.08);
  transition: transform .5s ease, filter .5s ease;
}
.card.has-bg:hover .card-bg { transform: scale(1.13); filter: blur(2px); }

/* The readability layer. Opacity is high on purpose: twelve stock photos with
   different brightness all have to carry small body text at AA contrast. */
.card.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(170deg, rgba(7, 26, 51, .52) 0%, rgba(9, 32, 60, .68) 42%,
                            rgba(7, 26, 51, .84) 100%);
}
.card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Insurance for the brightest photos, where the wash alone is not enough. */
  text-shadow: 0 1px 3px rgba(4, 15, 30, .55);
}

.card.has-bg h3 { color: #fff; }
.card.has-bg > .card-body > p { color: rgba(255, 255, 255, .86); }
.card.has-bg .tick-list li { color: rgba(255, 255, 255, .84); }
.card.has-bg .tick-list .icon { color: var(--amber-400); }
.card.has-bg .card-icon {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
}
.card.has-bg .card-link { color: var(--amber-400); }
.card.has-bg:hover {
  border-color: rgba(244, 163, 0, .45);
  box-shadow: var(--shadow-lg);
}

.card h3 { margin-bottom: .4em; }
.card > p,
.card > .card-body > p { font-size: .96rem; margin-bottom: 1rem; }

.tick-list { display: grid; gap: 9px; margin-bottom: 18px; }
.tick-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: .91rem;
  line-height: 1.5;
}
.tick-list .icon {
  color: var(--green);
  width: 17px; height: 17px;
  margin-top: .22em;
  stroke-width: 2.4;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-weight: 700;
  font-size: .93rem;
  color: var(--navy-700);
}
.card-link .icon { transition: transform .18s ease; }
.card:hover .card-link .icon { transform: translateX(4px); }

.feature-card .tick-list { margin-bottom: 0; }

.contact-card { text-align: center; align-items: center; }
.contact-card .card-icon { margin-inline: auto; }
.contact-card p { font-weight: 700; color: var(--ink); font-size: 1.02rem; margin-bottom: .35rem; }
.contact-card .card-link { color: var(--muted); font-weight: 500; font-size: .87rem; }

/* ------------------------------ Process ---------------------------- */

.process-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 52px;
  align-items: start;
}
.process { display: grid; gap: 16px; counter-reset: step; }
.process li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 22px 74px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute;
  left: 22px; top: 22px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--navy-900);
  font-weight: 800;
  font-size: .95rem;
}
.process h3 { margin-bottom: .25em; font-size: 1.08rem; }
.process p { margin: 0; font-size: .94rem; }

/* -------------------------------- FAQ ------------------------------ */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  padding: 16px 28px 16px 0;
  font-weight: 650;
  color: var(--ink);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--amber-500);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 16px; margin: 0; font-size: .96rem; }

/* ------------------------------ CTA band --------------------------- */

.cta-band {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 52px;
  padding-bottom: 52px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { color: rgba(255, 255, 255, .84); margin: 0; max-width: 52ch; }
.cta-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* -------------------------------- About ---------------------------- */

.about-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 48px; align-items: start; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.01rem; }

.prose-figure {
  margin: 2em 0 .5em;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  /* Tinted so the photo reads as part of the brand, not a dropped-in stock shot. */
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
}
.prose-figure img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 35%;
  mix-blend-mode: luminosity;
  opacity: .92;
}

.about-side, .form-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.side-card h3 { margin-bottom: .8em; }
.side-card-dark {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  border-color: transparent;
  color: rgba(255, 255, 255, .84);
}
.side-card-dark h3 { color: #fff; }
.side-card-dark a { color: #fff; }
.side-card-dark a:hover { color: var(--amber-400); }
.side-card-dark .icon { color: var(--amber-400); }
.side-card-dark .btn { margin-top: 16px; }

.mini-steps { display: grid; gap: 14px; }
.mini-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .93rem;
  line-height: 1.5;
}
.mini-steps span {
  flex: none;
  width: 25px; height: 25px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--navy-800);
  font-weight: 700;
  font-size: .8rem;
}

/* -------------------------------- Forms ---------------------------- */

.form-layout { display: grid; grid-template-columns: 1.5fr .85fr; gap: 44px; align-items: start; }
.form-title { margin-bottom: 1rem; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }

.field label { font-weight: 650; font-size: .92rem; color: var(--ink); }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; font-size: .86rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(29, 79, 138, .12);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: #fef7f7;
}
.field input[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(214, 69, 69, .13);
}
.field input::placeholder, .field textarea::placeholder { color: #a6b1c1; }

.field-error { color: var(--red); font-size: .85rem; font-weight: 600; }

.form-note { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }

/* Honeypot — visually hidden but not display:none, so bots still fill it. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.alert {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  border: 1.5px solid;
}
.alert p { margin: .25rem 0 0; font-size: .94rem; }
.alert-icon {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
}
.alert-success { background: #edfaf2; border-color: #b7e6cb; color: #0f6b39; }
.alert-success .alert-icon { background: var(--green); color: #fff; }
.alert-success strong { color: #0b5a2f; }
.alert-error { background: #fdf1f1; border-color: #f3c7c7; color: #8f2b2b; }
.alert-error .alert-icon { background: var(--red); color: #fff; }
.alert-error strong { color: #8f2b2b; }

/* ------------------------------- Footer ---------------------------- */

.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding-top: 62px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 46px;
}
.brand-footer { margin-bottom: 16px; }
.brand-footer .brand-text strong { color: #fff; }
.footer-brand p { font-size: .93rem; max-width: 40ch; }

.footer-col h3 {
  color: #fff;
  font-size: .84rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1.1em;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, .72); font-size: .93rem; }
.footer-col a:hover { color: var(--amber-400); }

.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; }
.footer-contact .icon { color: var(--amber-500); margin-top: .2em; }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.social {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
}
.social:hover { background: var(--amber-500); color: var(--navy-900); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .86rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom p { margin: 0; }

/* --------------------------- WhatsApp float ------------------------ */

.whatsapp-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .42);
  transition: transform .18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float .icon { width: 27px; height: 27px; }

/* -------------------------------- Admin ---------------------------- */

.admin-body { background: var(--surface-2); }
.admin-header { background: var(--navy-900); color: #fff; padding: 16px 0; }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.admin-header .brand-text strong { color: #fff; }
.admin-counts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.admin-main { padding: 34px 22px 60px; display: grid; gap: 40px; }
.admin-main h2 { margin-bottom: .7em; }
.admin-main h2 small { color: var(--muted); font-weight: 500; font-size: .6em; }

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 900px; }
.admin-table th {
  text-align: left;
  padding: 13px 15px;
  background: var(--surface-3);
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td { padding: 14px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafcfe; }
.admin-table code {
  background: var(--surface-3);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .88em;
  color: var(--navy-800);
  font-weight: 700;
}
.cell-details { max-width: 300px; white-space: pre-wrap; word-break: break-word; color: var(--body); }

.pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pill-new { background: var(--amber-100); color: #8a5c00; }
.pill-seen { background: #e4eefb; color: var(--navy-700); }
.pill-done { background: #e2f6ea; color: #0f6b39; }

.inline-form { display: inline; }
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--body);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.mini-btn:hover { border-color: var(--navy-600); color: var(--navy-700); }
.admin-counts .mini-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }

.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ------------------------------ Reveal ----------------------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-d0 { transition-delay: 0ms; }
.reveal-d1 { transition-delay: 60ms; }
.reveal-d2 { transition-delay: 120ms; }
.reveal-d3 { transition-delay: 180ms; }
.reveal-d4 { transition-delay: 240ms; }
.reveal-d5 { transition-delay: 300ms; }

/* ---------------------------- Responsive --------------------------- */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 58px 22px 66px; }
  .hero-panel { max-width: 460px; }
  .process-layout, .about-grid, .form-layout { grid-template-columns: 1fr; gap: 34px; }
  .about-side, .form-side { position: static; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 780px) {
  .topbar-hours { display: none; }
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 40px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 22px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .26s ease;
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateY(0); }
  .nav-link { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; }

  .section { padding: 58px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar-inner { justify-content: center; gap: 16px; font-size: .78rem; }
  .brand-text small { display: none; }
  .whatsapp-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .whatsapp-float, .cta-band, .btn { display: none !important; }
  body { color: #000; }
}
