@import url("../../fonts/fonts.css");

/* ---- tokens ----
   White/off-white editorial base with soft blue atmospheric accents.
   Thin borders, minimal radius, glass reserved for the sticky header. */
:root {
  --paper: #ffffff;
  --paper-dim: #f4f7fc;
  --ink: #12161f;
  --ink-soft: #545c6b;
  --ink-faint: #8891a1;
  --line: rgba(18, 22, 31, 0.1);
  --blue: #4e7fe0;
  --blue-deep: #2f4d9e;
  --blue-pale: #dbe6fb;
  --blue-mist: #eef3fc;

  --glass: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 20px 60px rgba(30, 45, 90, 0.1);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --container: 1280px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --nav-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@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; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* a faint grain keeps flat colour fields from looking like vector fills */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; margin: 0; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .wrap { padding-inline: 48px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--blue-deep);
}

/* plain outline numerals used as section/list markers instead of
   badge-style chips — a nod to contact-sheet frame numbers */
.num-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  min-width: 2.4ch;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.65;
}

/* ---- links / actions --------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.96rem;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.link-arrow svg { width: 15px; height: 11px; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.link-arrow:hover { gap: 14px; }
.link-arrow:hover svg { transform: translateX(2px); }
.link-arrow-light { color: #fff; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn-solid:hover { background: var(--blue-deep); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---- soft blue atmosphere, used behind hero/section content on the
   white base instead of flat color blocks ---- */
.blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-pale) 0%, rgba(219, 230, 251, 0) 72%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

/* ---- glass, used deliberately in a few places, not everywhere ---- */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ================================================================
   header / navigation
   ================================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 18px 20px 0;
}

.site-header .wrap {
  padding-inline: 0;
  max-width: 1240px;
}

.site-header .nav-shell {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 14px 18px;
  background: rgba(244, 247, 252, 0.78);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(30, 45, 90, 0.1);
  color: var(--ink);
  transition: box-shadow 0.4s ease, height 0.4s ease;
}

.site-header.is-solid .nav-shell {
  box-shadow: 0 16px 44px rgba(30, 45, 90, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.brand img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: 2px;
}

.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }

@media (max-width: 420px) {
  .brand small { display: none; }
}

.main-nav { display: none; }

@media (min-width: 1080px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .main-nav > li { position: relative; }
  .main-nav > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
  }
  .main-nav > li > a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 2px;
    height: 1px;
    background: currentColor;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .main-nav > li > a:hover::after, .main-nav > li > a.is-active::after { right: 0; }

  .main-nav .caret { width: 9px; height: 9px; opacity: 0.6; transition: transform 0.25s ease; }
  .main-nav li:hover .caret { transform: rotate(180deg); }

  .dropdown {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 250px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    color: var(--ink);
  }
  .main-nav li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .dropdown a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.89rem; line-height: 1.4; color: var(--ink-soft); }
  .dropdown a:hover, .dropdown a.is-active { background: var(--paper-dim); color: var(--blue-deep); }
}

.nav-cta { display: none; border-bottom: none; }
@media (min-width: 1080px) {
  .nav-cta { display: inline-flex; padding: 10px 0; }
}

.nav-burger {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1080px) { .nav-burger { display: none; } }
.nav-burger svg { width: 20px; height: 20px; }

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(20, 16, 10, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: var(--glass-strong);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-left: 1px solid var(--glass-border);
  padding: 26px 26px;
  overflow-y: auto;
  transform: translateX(24px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
}

.mobile-nav ul { margin-top: 22px; }
.mobile-nav > .mobile-nav-panel > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 15px 13px; font-size: 1.05rem; font-weight: 500; }
.mobile-nav a.is-active { color: var(--blue-deep); }
.mobile-nav .sub-toggle { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav .sub-list { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding-left: 10px; }
.mobile-nav .sub-list.open { max-height: 500px; }
.mobile-nav .sub-list a { font-size: 0.92rem; font-weight: 400; color: var(--ink-soft); padding: 11px 2px; }
.mobile-nav .contact-row { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.mobile-nav .contact-row .btn-solid { justify-content: center; }
.mobile-nav .contact-row a:last-child { color: var(--blue-deep); font-weight: 600; text-align: center; padding: 10px; }

/* ================================================================
   footer
   ================================================================ */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--paper-dim);
  padding: 90px 0 0;
  overflow: hidden;
}

.footer-top {
  position: relative;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247, 243, 236, 0.12);
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand .brand { color: var(--paper); }
.footer-brand .brand small { color: rgba(247, 243, 236, 0.5); }
.footer-brand p { margin-top: 14px; color: rgba(247, 243, 236, 0.6); max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(247, 243, 236, 0.25);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.footer-social a:hover { border-color: var(--blue); background: rgba(78, 127, 224, 0.15); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-mono); font-weight: 400; color: rgba(247, 243, 236, 0.45); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a, .footer-col address { color: rgba(247, 243, 236, 0.75); font-style: normal; font-size: 0.94rem; line-height: 1.55; }
.footer-col a:hover { color: var(--blue); }

.footer-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(247, 243, 236, 0.16);
  filter: grayscale(0.3) contrast(1.05);
}
.footer-map iframe { width: 100%; height: 260px; border: 0; display: block; }

.footer-bottom {
  position: relative;
  padding-block: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(247, 243, 236, 0.4);
}
.footer-bottom a { color: rgba(247, 243, 236, 0.55); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--blue); }

@media (max-width: 640px) {
  .footer-bottom { padding-bottom: 90px; }
}

/* ================================================================
   shared section rhythm
   ================================================================ */
body:not(.has-hero) main { padding-top: var(--nav-h); }

.section { padding: clamp(70px, 10vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; position: relative; }

.section-head { max-width: 620px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-top: 16px; }
.section-head .lede { margin-top: 18px; }

.section-alt { background: var(--paper-dim); }

/* used sparingly — not on every element */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(15, 12, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: min(92vw, 1100px); max-height: 86vh; box-shadow: 0 30px 80px rgba(0,0,0,0.5); transition: opacity 0.25s ease; }
.lightbox-img.is-switching { opacity: 0; }
.lightbox-count {
  position: absolute;
  left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.6rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* whatsapp float */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 180;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(28, 23, 18, 0.35);
}
.wa-float svg { width: 25px; height: 25px; fill: var(--paper); }
