/* ============================================================
   Jason Grech, Video Editor & Videographer, Malta
   Green monotone / cinematic. Vanilla CSS, no framework.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg-900:  #0A0A0B;
  --bg-800:  #121214;
  --bg-700:  #17171A;
  --bg-600:  #1F1F22;
  --bg-card: #191919;

  --cream:   #ECE5DA;
  --cream-2: #E0D7C8;
  --cream-3: #D2C7B5;

  --text:      #F0F0F1;
  --text-dim:  #A2A2A6;
  --text-mute: #7C7C85;
  --ink:       #201A15;
  --ink-dim:   #52483F;

  --accent:        #D2382B;
  --accent-bright: #EC4C3E;
  /* Deeper/brighter red for the rare bit of small red *text* (eyebrows,
     inline links) so it clears AA where the flat --accent would not. */
  --accent-strong: #FF6155;
  --accent-deep:   #591712;
  --forest:        #171514;

  /* Text/icon colour that sits on top of an --accent fill */
  --on-accent: #FFFFFF;
  /* Scrolled header backdrop */
  --header-bg: rgba(10, 10, 11, 0.94);

  --line:      rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-ink:  rgba(32, 26, 21, 0.14);

  --font-display: "Bricolage Grotesque", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
  /* Entrance/reveal easing: a gentler ease-out than --ease, tuned to sit
     right with the slightly longer reveal duration (see .reveal). */
  --ease-reveal: cubic-bezier(0.33, 1, 0.68, 1);

  --header-h: 76px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-body);
  background: var(--bg-800);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

::selection { background: var(--accent); color: var(--on-accent); }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4.5rem, 11vw, 9rem);
  position: relative;
}
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

.section--light {
  background: var(--cream);
  color: var(--ink);
}
.section--light .text-dim { color: var(--ink-dim); }

.section--deep { background: var(--bg-900); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- Typography utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section--light .eyebrow { color: var(--accent-deep); }

.display {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  letter-spacing: -0.035em;
}
.h-xl { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.h-lg { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.h-md { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-dim);
  max-width: 46ch;
}
.section--light .lead { color: var(--ink-dim); }

.text-dim { color: var(--text-dim); }
.measure { max-width: 62ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-bright);
  box-shadow: 0 12px 34px -12px rgba(210, 56, 43, 0.6);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  --btn-bg: rgba(236, 76, 62, 0.08);
  border-color: var(--accent);
  box-shadow: none;
}
.section--light .btn--ghost { --btn-fg: var(--ink); border-color: var(--line-ink); }
.section--light .btn--ghost:hover { --btn-bg: rgba(90, 23, 18, 0.06); }

.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }

/* Centered call-to-action at the end of a section */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.75rem, 6vw, 4rem);
}
.section-cta .btn { min-width: 15rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--line);
}
.site-header .brand { margin-right: auto; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  z-index: 2;
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.9rem;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav__list {
  display: flex;
  gap: 1.9rem;
}
.nav__list a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--text); }
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  z-index: 2;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg-900);
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.55s var(--ease), visibility 0s linear 0.55s;
}
body.nav-open .mobile-nav {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.55s var(--ease);
}
.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__list a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
}
body.nav-open .mobile-nav__list a {
  animation: navItemIn 0.5s var(--ease) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.06s);
}
@keyframes navItemIn { to { opacity: 1; transform: translateY(0); } }
.mobile-nav__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.mobile-nav__social { display: flex; gap: 1.4rem; }
.mobile-nav__social a { color: var(--text-dim); }
.mobile-nav__social a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 9vw, 7rem));
  padding-bottom: clamp(3rem, 9vw, 7rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--forest);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Face sits in the top third of this crop; keep it framed on wide,
     short viewports where cover would otherwise crop from the top. */
  object-position: 50% 15%;
  opacity: 0.34;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 15% 10%, rgba(210, 56, 43,0.14), transparent 55%),
    linear-gradient(180deg, rgba(8,12,10,0.55) 0%, rgba(8,12,10,0.35) 40%, var(--hero-fade, var(--bg-800)) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 60rem; }
.hero h1 {
  margin-top: 1.6rem;
  font-size: clamp(2.9rem, 8.5vw, 6rem);
  letter-spacing: -0.04em;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub {
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-dim);
  max-width: 44ch;
}
.hero__cta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__tags {
  margin-top: 3.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
}
.hero__tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-dim);
}
.hero__tags li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.4rem;
  overflow: hidden;
  background: var(--bg-700);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 860px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 2rem 3rem; }
  .section-head--split .section-head__aside { text-align: right; }
}
.section-head h2 { max-width: 18ch; }

/* ---------- Cards / services ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 56, 43,0.4);
  background: var(--bg-600);
}
.card__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--text-dim); font-size: 0.96rem; }
.card ul { display: flex; flex-direction: column; gap: 0.5rem; }
.card li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 1.4rem;
  position: relative;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.section--light .card {
  background: #fff;
  border-color: var(--line-ink);
}
.section--light .card:hover { background: var(--cream-2); }
.section--light .card p,
.section--light .card li { color: var(--ink-dim); }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(210, 56, 43,0.12);
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  border-radius: var(--radius-lg);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--ratio { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1; }

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.4rem;
}
.portfolio-grid--home {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1040px) {
  .portfolio-grid--home { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .portfolio-grid--home { grid-template-columns: 1fr; }
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.portfolio-item.is-hidden {
  display: none;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.portfolio-item__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(to top, rgba(6,10,8,0.9) 10%, rgba(6,10,8,0.25) 70%, transparent);
  z-index: 2;
}
.portfolio-item__cat {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.portfolio-item h3 {
  font-size: 1.15rem;
  margin-top: 0.2rem;
  color: #fff;
}
.portfolio-item__view {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.portfolio-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}
.portfolio-item:hover .portfolio-item__view {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: rotate(45deg);
}
.portfolio-item__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 10, 8, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.lightbox__inner {
  max-width: 900px;
  width: 100%;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}
.lightbox.open .lightbox__inner { transform: scale(1); }
.lightbox img { width: 100%; border-radius: var(--radius); }
.lightbox__cap {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.lightbox__close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text);
}
.lightbox__close:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
}
.split__body { display: flex; flex-direction: column; gap: 1.3rem; align-items: flex-start; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg-800);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.stat__num .unit { color: var(--accent); }
.stat__label { font-size: 0.85rem; color: var(--text-mute); letter-spacing: 0.04em; }
.section--light .stat { background: var(--cream); }
.section--light .stat__num { color: var(--ink); }

/* ---------- Process timeline ---------- */
.timeline { display: grid; gap: 0; counter-reset: step; }
.timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-strong);
  padding-top: 0.35rem;
}
.timeline__item h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.timeline__item p { color: var(--text-dim); max-width: 60ch; }
.section--light .timeline__item { border-color: var(--line-ink); }
.section--light .timeline__item p { color: var(--ink-dim); }
@media (min-width: 760px) {
  .timeline__item { grid-template-columns: 120px 1fr; gap: 2.5rem; }
}

/* ---------- Packages ---------- */
.packages {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}
.package {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.package:hover { transform: translateY(-5px); border-color: rgba(210, 56, 43,0.35); }
.package--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(210, 56, 43,0.09), var(--bg-card) 40%);
}
.package__tag {
  position: absolute;
  top: -0.75rem;
  left: clamp(1.6rem, 3vw, 2.3rem);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}
.package__name { font-size: 1.5rem; }
.package__for { font-size: 0.9rem; color: var(--text-mute); margin-top: 0.2rem; }
.package__price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-dim);
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}
.package__price strong { color: var(--text); font-size: 1.15rem; }
.package__list { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.package__list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.package__list svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 0.15rem; }

/* ---------- Accordion / FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--text);
}
.accordion__icon {
  flex: none;
  width: 26px;
  height: 26px;
  position: relative;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.accordion__icon::before { inset: 12px 0; height: 2px; }
.accordion__icon::after { inset: 0 12px; width: 2px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); opacity: 0; }
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease);
}
.accordion__panel-inner { padding-bottom: 1.5rem; color: var(--text-dim); max-width: 68ch; }
.section--light .accordion,
.section--light .accordion__item { border-color: var(--line-ink); }
.section--light .accordion__trigger { color: var(--ink); }
.section--light .accordion__panel-inner { color: var(--ink-dim); }

/* ---------- Gear list ---------- */
.spec-panel {
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.spec-list { display: grid; gap: 0; }
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
}
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--text-dim); }
.spec-list dd { color: var(--text); text-align: right; font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--accent-deep), var(--forest));
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 120%;
  background: radial-gradient(circle at 30% 20%, rgba(236, 76, 62,0.25), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.cta-band p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-600);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23D2382B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.6rem; }
.form-note { font-size: 0.85rem; color: var(--text-mute); margin-top: 0.5rem; }

.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.contact-card:hover { border-color: var(--accent); transform: translateX(3px); }
.contact-card svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 0.2rem; }
.contact-card h3 { font-size: 1rem; }
.contact-card p, .contact-card a { font-size: 0.92rem; color: var(--text-dim); }
.contact-card a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-900);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 780px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand p { color: var(--text-dim); max-width: 34ch; margin-top: 1rem; font-size: 0.94rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-dim); font-size: 0.94rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.social-row { display: flex; gap: 1rem; }
.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: all 0.35s var(--ease);
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  z-index: 80;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.3s;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.5);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--accent-bright); }

/* ---------- WhatsApp chat widget ---------- */
.wa-widget {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  /* The container spans a large empty box in the corner; never let it
     swallow taps meant for buttons/links underneath it. Only the visible
     pill and the open panel are interactive. */
  pointer-events: none;
}
.wa-widget__toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem 0.7rem 0.8rem;
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.wa-widget__toggle:hover { transform: translateY(-3px); border-color: var(--accent); }
.wa-widget__toggle svg { width: 20px; height: 20px; color: var(--accent); }

.wa-widget__panel {
  width: min(320px, calc(100vw - 2.5rem));
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.6);
  transform-origin: bottom left;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.wa-widget.open .wa-widget__panel {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.wa-widget__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(140deg, var(--accent-deep), var(--forest));
}
.wa-widget__avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
}
.wa-widget__head strong { display: block; font-size: 0.95rem; }
.wa-widget__head span { display: block; font-size: 0.75rem; color: var(--text-dim); }
.wa-widget__close {
  margin-left: auto;
  align-self: flex-start;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}
.wa-widget__close:hover { background: rgba(255,255,255,0.12); }
.wa-widget__body { padding: 1.2rem 1.1rem; }
.wa-widget__bubble {
  background: var(--bg-600);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 0.8rem 0.95rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.wa-widget__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 1.1rem 1.1rem;
  padding: 0.8rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease);
}
.wa-widget__cta:hover { background: var(--accent-bright); }
.wa-widget__cta svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .wa-widget__toggle span { display: none; } .wa-widget__toggle { padding: 0.8rem; } }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s var(--ease-reveal), transform 0.95s var(--ease-reveal);
  transition-delay: calc(var(--i, 0) * 0.085s);
}
.reveal.is-visible { opacity: 1; transform: none; }


/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -0.035em;
  margin-top: 1.2rem;
  max-width: 16ch;
}
.page-hero p { margin-top: 1.4rem; }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Misc ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.divider { height: 1px; background: var(--line); border: 0; }

.value-list { display: grid; gap: 1.5rem; }
.value-list > div { display: flex; flex-direction: column; gap: 0.4rem; padding-left: 1.5rem; border-left: 2px solid var(--accent); }
.value-list h3 { font-size: 1.1rem; }
.value-list p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Responsive nav ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Touch devices: no hover states ---------- */
/* Without this, iOS Safari can treat the first tap on a hover-styled
   control as "reveal hover" and need a second tap to actually activate. */
@media (hover: none) {
  .btn:hover,
  .btn--ghost:hover,
  .nav__list a:hover,
  .card:hover,
  .package:hover,
  .contact-card:hover,
  .social-row a:hover,
  .filter-btn:hover,
  .to-top:hover,
  .wa-widget__toggle:hover,
  .portfolio-item:hover img,
  .portfolio-item:hover .portfolio-item__view {
    transform: none;
  }
  .btn:hover { background: var(--btn-bg); box-shadow: none; }
}

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

/* ============================================================
   Theme toggle + light theme
   ============================================================ */

/* ---------- Toggle control ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Smooth cross-fade while switching (added briefly by JS) */
.theme-anim, .theme-anim * {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, fill 0.35s ease !important;
}

/* ---------- Light theme tokens ---------- */
:root[data-theme="light"] {
  color-scheme: light;

  --bg-900:  #ECE3D6;
  --bg-800:  #F5EFE6;
  --bg-700:  #EFE7DB;
  --bg-600:  #E6DDCD;
  --bg-card: #FFFFFF;

  --cream:   #E7DECF;
  --cream-2: #DDD3C1;
  --cream-3: #D0C5B0;

  --text:      #221C17;
  --text-dim:  #6A5D4E;
  --text-mute: #776A57;
  --ink:       #221C17;
  --ink-dim:   #574B3F;

  --accent:        #D2382B;
  --accent-bright: #AE2E22;
  --accent-strong: #AE2E22;
  --accent-deep:   #591712;

  --on-accent: #FFFFFF;
  --header-bg: rgba(245, 239, 230, 0.92);
  --hero-fade: #0A0A0B;

  --line:      rgba(60, 44, 30, 0.16);
  --line-soft: rgba(60, 44, 30, 0.09);
  --line-ink:  rgba(34, 28, 23, 0.14);
}

/* Header is solid from the top in light mode (no dark hero to sit over) */
:root[data-theme="light"] .site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line-soft);
}
:root[data-theme="light"] .site-header.scrolled { border-bottom-color: var(--line); }

/* Card-icon tint reads better a touch stronger on white */
:root[data-theme="light"] .card-icon { background: rgba(210, 56, 43, 0.10); }

/* Featured package wash */
:root[data-theme="light"] .package--featured {
  background: linear-gradient(180deg, rgba(210, 56, 43, 0.07), var(--bg-card) 42%);
}

/* Form controls */
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea { background: #fff; }
:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field select:focus,
:root[data-theme="light"] .field textarea:focus { background: #fff; }

/* Keep the hero fade meeting the marquee cleanly */
:root[data-theme="light"] .hero__bg::after {
  background:
    radial-gradient(120% 80% at 15% 10%, rgba(210,56,43,0.16), transparent 55%),
    linear-gradient(180deg, rgba(9,9,10,0.62) 0%, rgba(9,9,10,0.5) 45%, rgba(9,9,10,0.8) 100%);
}

/* ============================================================
   Regions that stay dark in every theme, pin their colours
   ============================================================ */
/* --accent (#D2382B) is identical in both themes, so var(--accent) needs
   no pin here; only the colours that flip with the theme do. */
.hero__inner { color: #F0F0F1; }
.hero .eyebrow { color: #FF6155; }
.hero__sub,
.hero__tags li { color: #B4A99E; }
.hero__tags { border-top-color: rgba(255, 255, 255, 0.14); }
.hero .btn--ghost { --btn-fg: #F0F0F1; border-color: rgba(240, 240, 241, 0.28); }
.hero .btn--ghost:hover { --btn-bg: rgba(210, 56, 43, 0.14); border-color: #EC4C3E; }

.cta-band { color: #F5F0EA; }
.cta-band p { color: #C9BEB2; }
.cta-band .btn--ghost { --btn-fg: #F5F0EA; border-color: rgba(245, 240, 234, 0.30); }
.cta-band .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.1); border-color: #F5F0EA; }

.portfolio-item__cat { color: #FF6155; }

.lightbox__cap { color: #B4A99E; }
.lightbox__close { color: #F0F0F1; }

.wa-widget__head { color: #F5F0EA; }
.wa-widget__head span { color: #C9BEB2; }
.wa-widget__head .wa-widget__close { color: #F5F0EA; }
