/* =========================================================
   Dose of Design — site styles
   Palette taken from the 2026 agency profile:
   black / white with a teal accent.
   ========================================================= */

:root {
  --black: #0b0b0b;
  --ink: #161616;
  --grey-900: #1f1f1f;
  --grey-700: #4a4a4a;
  --grey-500: #8a8a8a;
  --grey-200: #e6e6e6;
  --grey-100: #f4f4f4;
  --white: #ffffff;
  --teal: #08b8c8;
  --teal-light: #57d1d8;
  --teal-dark: #06909d;

  --font: "Jost", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);

  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--teal); color: var(--black); padding: 8px 12px; z-index: 1000;
}
.skip-link:focus { left: 8px; }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0 0 .5em; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); text-transform: uppercase; letter-spacing: .02em; max-width: 22ch; }
h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1em; }

.accent { color: var(--teal); }

.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em;
  color: var(--teal); margin-bottom: 18px;
}
.section-label::before { content: ""; width: 32px; height: 2px; background: currentColor; }

.section-intro { max-width: 60ch; font-size: 1.1rem; color: var(--grey-700); }
.section-dark .section-intro { color: #bdbdbd; }

.eyebrow {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .22em; font-weight: 500;
  color: var(--teal-light); margin-bottom: 20px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 58ch; color: #d8d8d8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em;
  border: 2px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: var(--black); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-light); border-color: var(--teal-light); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .35s, padding .35s, box-shadow .35s;
  color: var(--white);
}
.site-header.is-solid {
  background: rgba(11,11,11,.96);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark { height: 42px; width: auto; }
.brand-word { height: 12px; width: auto; margin-top: 4px; }
/* SVG logos use currentColor; <img> can't inherit, so we ship white via filter */
.site-header .brand-mark, .site-header .brand-word, .footer-logo { filter: invert(1); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em;
  position: relative; padding: 6px 0; opacity: .9;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--teal); transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { width: 100%; }
.nav .nav-cta {
  border: 1.5px solid var(--teal); color: var(--teal); padding: 8px 16px; border-radius: var(--radius);
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--teal); color: var(--black); }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; padding: 8px;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white);
  background: var(--black); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,11,.88) 0%, rgba(11,11,11,.6) 55%, rgba(11,11,11,.25) 100%),
    linear-gradient(0deg, rgba(11,11,11,.85) 0%, rgba(11,11,11,0) 45%);
}
.hero-content { position: relative; padding: 140px 0 120px; max-width: 900px; }
.hero h1 { max-width: 16ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--teal); border-radius: 2px; animation: hint 1.8s infinite;
}
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Stats ---------- */
.stats { background: var(--black); color: var(--white); border-top: 1px solid rgba(255,255,255,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 600; color: var(--teal); line-height: 1.1; }
.stat span { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #a9a9a9; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
section[id] { scroll-margin-top: 64px; }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-teal { background: var(--teal-light); color: var(--black); }
.section-teal .section-label { color: var(--black); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-text p { color: var(--grey-700); max-width: 58ch; }
.about-text p strong { color: var(--ink); }
.values { margin-top: 28px; display: grid; gap: 10px; }
.values li {
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
  padding-left: 22px; position: relative;
}
.values li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--teal); }

.about-media { position: relative; }
.about-media > img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-media-card {
  position: absolute; left: -24px; bottom: 32px; background: var(--black); color: var(--white);
  padding: 22px 26px; max-width: 260px; display: flex; gap: 16px; align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.about-mark { width: 44px; height: auto; flex: none; filter: invert(1); }
.about-media-card p { margin: 0; font-size: .95rem; line-height: 1.4; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px;
}
.service-card {
  position: relative; display: block; overflow: hidden; background: var(--grey-900);
  aspect-ratio: 4 / 5; color: var(--white);
}
.service-card img {
  width: 100%; height: 100%; object-fit: cover; opacity: .55;
  transition: transform .8s var(--ease), opacity .5s;
}
.service-card:hover img { transform: scale(1.06); opacity: .75; }
.service-body {
  position: absolute; inset: auto 0 0 0; padding: 26px;
  background: linear-gradient(0deg, rgba(11,11,11,.95) 0%, rgba(11,11,11,.6) 60%, rgba(11,11,11,0) 100%);
}
.service-num { font-size: .8rem; color: var(--teal); letter-spacing: .2em; font-weight: 600; }
.service-body h3 { margin: 8px 0 8px; font-size: 1.15rem; }
.service-body p { margin: 0; font-size: .92rem; color: #cfcfcf; max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.service-card:hover .service-body p, .service-card:focus-visible .service-body p { max-height: 120px; opacity: 1; }
.service-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--teal);
  transition: width .5s var(--ease);
}
.service-card:hover::after { width: 100%; }

/* ---------- Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 56px;
  counter-reset: step;
}
.process-step {
  padding: 28px 22px 32px; border-left: 1px solid rgba(0,0,0,.18); position: relative;
}
.process-step:first-child { border-left: 0; padding-left: 0; }
.process-step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--black);
}
.step-num { font-size: .8rem; font-weight: 600; letter-spacing: .2em; }
.process-step h3 { margin: 10px 0 14px; font-size: 1rem; }
.process-step ul { display: grid; gap: 6px; }
.process-step li { font-size: .88rem; line-height: 1.4; color: #1a1a1a; }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; }
.filter {
  background: none; border: 1.5px solid var(--grey-200); color: var(--grey-700);
  padding: 9px 16px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; transition: all .25s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--black); color: var(--white); border-color: var(--black); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card {
  position: relative; display: block; overflow: hidden; background: var(--grey-100);
  aspect-ratio: 4 / 3; text-align: left; border: 0; padding: 0; color: var(--white);
  transition: opacity .35s, transform .35s var(--ease);
}
.work-card.is-hidden { display: none; }
.work-card.is-wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover img { transform: scale(1.05); }
.work-card-body {
  position: absolute; inset: auto 0 0 0; padding: 22px;
  background: linear-gradient(0deg, rgba(11,11,11,.9) 0%, rgba(11,11,11,0) 100%);
}
.work-card-cat { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.work-card h3 { margin: 6px 0 2px; font-size: 1.05rem; }
.work-card-client { margin: 0; font-size: .85rem; color: #cfcfcf; }
.work-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Clients ---------- */
.client-list {
  display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 40px;
}
.client-list li {
  padding: 12px 20px; border: 1px solid rgba(255,255,255,.15);
  font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: #dcdcdc;
  transition: border-color .3s, color .3s;
}
.client-list li:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-text p { color: var(--grey-700); max-width: 48ch; }
.contact-details { margin-top: 32px; display: grid; gap: 18px; }
.contact-details li { display: grid; gap: 2px; }
.contact-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-500); font-weight: 600; }
.contact-details a { font-size: 1.15rem; font-weight: 500; }
.contact-details a:hover { color: var(--teal-dark); }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--grey-100); padding: clamp(24px, 3vw, 40px);
}
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--grey-700); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--grey-200); background: var(--white);
  border-radius: var(--radius); transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #d9534f; }
.form-note { margin: 12px 0 0; font-size: .85rem; color: var(--grey-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #bdbdbd; padding: 64px 0 32px; }
.footer-inner { display: grid; justify-items: center; text-align: center; gap: 18px; }
.footer-logo { width: 120px; height: auto; }
.footer-tagline { color: var(--white); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.footer-nav a { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--teal); }
.footer-copy { font-size: .8rem; margin: 18px 0 0; }

/* ---------- Floating contact buttons ---------- */
.float-contact {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.float-btn {
  display: inline-flex; align-items: center; gap: 0;
  height: 54px; padding: 0 14px; border-radius: 27px; color: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transition: transform .25s var(--ease), box-shadow .25s, gap .25s, padding .25s;
}
.float-btn svg { flex: none; }
.float-btn span {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: max-width .35s var(--ease), opacity .25s, margin .25s;
}
.float-btn:hover, .float-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.float-btn:hover span, .float-btn:focus-visible span { max-width: 120px; opacity: 1; margin-left: 10px; }
.float-whatsapp { background: #25d366; }
.float-whatsapp:hover { background: #1ebe5b; }
.float-call { background: var(--teal); color: var(--black); }
.float-call:hover { background: var(--teal-light); }
body.modal-open .float-contact { display: none; }
@media (max-width: 600px) {
  .float-contact { right: 14px; bottom: 14px; gap: 10px; }
  .float-btn { height: 50px; padding: 0 13px; }
  .float-btn span { display: none; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.modal-panel {
  position: relative; margin: 4vh auto; width: min(1100px, 94vw); max-height: 92vh; overflow: auto;
  background: var(--white); display: grid; grid-template-columns: 1.4fr 1fr;
  animation: modalIn .35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: var(--white); font-size: 26px; line-height: 1;
}
.modal-close:hover { background: var(--teal); color: var(--black); }
.modal-gallery { position: relative; background: var(--black); min-height: 320px; }
.modal-gallery img { width: 100%; height: 100%; max-height: 92vh; object-fit: contain; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px;
  border: 0; background: rgba(0,0,0,.45); color: var(--white); font-size: 34px; line-height: 1;
}
.gallery-nav:hover { background: var(--teal); color: var(--black); }
.gallery-prev { left: 0; } .gallery-next { right: 0; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.gallery-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; }
.gallery-dots button.is-active { background: var(--teal); }
.modal-body { padding: clamp(24px, 3vw, 40px); }
.modal-category { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-dark); font-weight: 600; margin-bottom: 8px; }
.modal-body h3 { font-size: 1.5rem; }
.modal-meta { color: var(--grey-500); font-size: .9rem; margin-bottom: 18px; }
.modal-body p { color: var(--grey-700); }
.modal-note { font-size: .82rem; color: var(--grey-500); font-style: italic; }
.modal-note:empty { display: none; }
body.modal-open { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .process-step:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0; background: rgba(11,11,11,.97); flex-direction: column; justify-content: center;
    gap: 28px; transform: translateY(-100%); visibility: hidden; opacity: 0;
    transition: transform .4s var(--ease), opacity .3s, visibility 0s .4s; z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; opacity: 1; transition: transform .4s var(--ease), opacity .3s, visibility 0s; }
  .nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .site-header { z-index: 100; }
  .site-header .header-inner { position: relative; z-index: 2; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.1); }
  .stat:nth-child(-n+2) { border-top: 0; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media-card { left: 16px; }
  .services-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card.is-wide { grid-column: span 2; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-gallery img { max-height: 55vh; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .work-card.is-wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .service-card { aspect-ratio: 16 / 10; }
  .service-body p { max-height: none; opacity: 1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-left: 0; padding-left: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .brand-word { display: none; }
  .hero-content { padding: 120px 0 100px; }
}
