/* ==========================================================================
   Barrico Communications Ltd — barrico.biz
   Palette sampled directly from the brand lockup.
   ========================================================================== */

:root {
  --ink:          #123F3A;  /* wordmark on light */
  --ink-deep:     #0D2622;  /* dark lockup ground */
  --ink-soft:     #4A6360;
  --muted:        #7D908D;  /* tagline on light */
  --accent:       #0E8F84;  /* signal arc, light context */
  --accent-bright:#2EC4B6;  /* signal arc, dark context */
  --accent-pale:  #8ECAC4;
  --paper:        #F7FAF9;  /* light lockup ground */
  --white:        #FFFFFF;
  --line:         #DDE7E5;
  --line-dark:    #234540;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;

  --font-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow: 0 1px 2px rgba(18, 63, 58, .04), 0 12px 32px -18px rgba(18, 63, 58, .22);
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--white);
  padding: .75rem 1.25rem; border-radius: 0 0 8px 0; z-index: 200;
}
.skip:focus { left: 0; top: 0; }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 250, 249, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(18, 63, 58, .5);
}

.site-header .shell {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a:not(.btn) {
  font-size: .9375rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap;
}
.nav a:not(.btn):hover { color: var(--accent); }

@media (max-width: 800px) {
  .nav .nav-link { display: none; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .9375rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }

.btn-ghost { border-color: var(--line-dark); color: var(--paper); }
.btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-bright { background: var(--accent-bright); color: var(--ink-deep); }
.btn-bright:hover { background: var(--white); color: var(--ink-deep); }

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

section { padding: clamp(4rem, 9vw, 7rem) 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.on-dark .eyebrow { color: var(--accent-bright); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.section-head p { margin-top: 1.125rem; color: var(--ink-soft); font-size: 1.125rem; }

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

.hero {
  position: relative; overflow: hidden;
  background: var(--ink-deep); color: var(--paper);
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4.5rem, 10vw, 7.5rem);
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto;
  width: min(760px, 80vw); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(46, 196, 182, .16), transparent 62%);
  pointer-events: none;
}
.hero .shell { position: relative; z-index: 1; }

.hero-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--accent-bright); }

.hero-lead {
  margin-top: 1.5rem; max-width: 54ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: #B8CDC9;
}

.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .875rem; }

.hero-note {
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
  font-size: .875rem; color: #8FAAA5;
}
.hero-note span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-note span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright); flex: none;
}

.hero-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  border-radius: 20px; padding: clamp(1.75rem, 3vw, 2.25rem);
}
.hero-card h2 { font-size: 1.0625rem; color: var(--white); }
.hero-card ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.hero-card li {
  display: grid; grid-template-columns: auto 1fr; gap: .875rem;
  font-size: .9375rem; color: #B8CDC9; align-items: start;
}
.hero-card svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-bright); flex: none; }
.hero-card strong { display: block; color: var(--paper); font-weight: 600; }

/* --- Service cards -------------------------------------------------------- */

.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-pale);
  box-shadow: 0 1px 2px rgba(18,63,58,.05), 0 22px 44px -24px rgba(18,63,58,.34);
}

.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.25rem;
  background: rgba(14, 143, 132, .1); color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.1875rem; margin-bottom: .625rem; }
.card p { color: var(--ink-soft); font-size: .96875rem; }
.card ul {
  list-style: none; padding: 0;
  margin: 1.125rem 0 0; display: grid; gap: .5rem;
  font-size: .90625rem; color: var(--ink-soft);
}
.card li { display: grid; grid-template-columns: auto 1fr; gap: .625rem; align-items: start; }
.card li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-pale); margin-top: .55em;
}

/* --- Approach ------------------------------------------------------------- */

.approach { background: var(--white); border-block: 1px solid var(--line); }

.approach-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}
@media (max-width: 880px) { .approach-grid { grid-template-columns: 1fr; } }

.points { display: grid; gap: 1.75rem; }
.point { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.point-num {
  font-family: var(--font-display); font-weight: 600; font-size: .8125rem;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  border: 1px solid var(--accent-pale); color: var(--accent);
}
.point h3 { font-size: 1.0625rem; margin-bottom: .375rem; }
.point p { color: var(--ink-soft); font-size: .96875rem; }


/* --- Strapline band ------------------------------------------------------- */

.strapline {
  background: linear-gradient(180deg, rgba(14, 143, 132, .05), rgba(14, 143, 132, .10));
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3.25rem, 6.5vw, 5rem);
  text-align: center;
}
.strapline .shell { --shell: 44rem; }   /* narrower measure than the page grid */

.strapline-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.625rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.strapline-quote em { font-style: normal; color: var(--accent); }

.strapline-sub {
  margin: 1.25rem auto 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

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

.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

.about-copy p + p { margin-top: 1.125rem; }
.about-copy p { color: var(--ink-soft); }

.facts {
  margin: 0; padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; gap: 1.375rem;
}
.facts div { display: grid; gap: .25rem; }
.facts dt {
  font-family: var(--font-display); font-size: .6875rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.facts dd { margin: 0; font-size: 1rem; color: var(--ink); font-weight: 500; }

/* --- Contact -------------------------------------------------------------- */

.contact { background: var(--ink-deep); color: var(--paper); }
.contact .section-head p { color: #B8CDC9; }

.contact-grid {
  display: grid; gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  display: grid; gap: .5rem; align-content: start;
}
.contact-card h3 {
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-bright);
}
.contact-card a, .contact-card p {
  font-size: 1.0625rem; color: var(--paper); text-decoration: none; font-weight: 500;
  overflow-wrap: anywhere;
}
.contact-card a:hover { color: var(--accent-bright); text-decoration: underline; }
.contact-card small { color: #8FAAA5; font-size: .875rem; font-weight: 400; }

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

.site-footer {
  background: var(--ink-deep); color: #8FAAA5;
  border-top: 1px solid var(--line-dark);
  padding: clamp(3rem, 6vw, 4rem) 0 2.5rem;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: start; justify-content: space-between;
  padding-bottom: 2.25rem; border-bottom: 1px solid var(--line-dark);
}
.site-footer img { height: 62px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; }
.footer-links a { color: #B8CDC9; text-decoration: none; font-size: .9375rem; }
.footer-links a:hover { color: var(--accent-bright); }

.footer-legal {
  margin-top: 2rem; display: flex; flex-wrap: wrap;
  gap: .5rem 2rem; justify-content: space-between;
  font-size: .8125rem; line-height: 1.7;
}
.footer-legal p { max-width: 68ch; }

/* --- Placeholder marker (remove once real details are filled in) ---------- */

.todo {
  background: rgba(214, 158, 46, .16);
  border-bottom: 1px dashed #D69E2E;
  padding: 0 .2em; border-radius: 3px;
}

/* --- Reveal on scroll ----------------------------------------------------- */

/* Gated on .js so content is never hidden when JavaScript doesn't run. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero::after { position: static; background: none; }
  body { background: #fff; }
}
