:root {
  --bg: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-card: #f8fafc;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --teal: #0d9488;
  --teal-soft: rgba(13, 148, 136, 0.08);
  --on-accent: #ffffff;
  --shadow-color: rgba(15, 23, 42, 0.08);
  --container: 1320px;
  --section-pad: clamp(4rem, 10vw, 8rem);
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-elevated: #111a2c;
  --bg-card: #16213a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --shadow-color: rgba(0, 0, 0, 0.35);
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.section-head .label {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-head-center {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head-center p {
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px var(--shadow-color);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 20px -6px var(--accent-soft);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background-color 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-bottom-color: var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.logo .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  display: none;
}

@media (min-width: 860px) {
  .nav-cta {
    display: inline-flex;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.55rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: inline-flex;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.75rem;
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 40% at 20% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(ellipse 45% 35% at 90% 10%, var(--teal-soft), transparent 70%);
  pointer-events: none;
}

.hero .container > * {
  animation: hero-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .container > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero .container > *:nth-child(2) {
  animation-delay: 0.15s;
}
.hero .container > *:nth-child(3) {
  animation-delay: 0.28s;
}
.hero .container > *:nth-child(4) {
  animation-delay: 0.4s;
}
.hero .container > *:nth-child(5) {
  animation-delay: 0.52s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  color: var(--text-tertiary);
  animation: scroll-cue-bounce 2.2s ease-in-out infinite;
}

@keyframes scroll-cue-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  max-width: 18ch;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.hero-stat b {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-stat span {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1.5rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
  padding: 0 2rem;
}

.marquee-track span::after {
  content: "\2022";
  margin-left: 2rem;
  color: var(--teal);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 32px -16px var(--shadow-color);
}

.service-card .num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

/* ---------- Portfolio ---------- */
.tabs {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-btn.active {
  background: var(--accent);
  color: var(--on-accent);
}

.portfolio-grid {
  display: none;
  gap: 1.25rem;
}

.portfolio-grid.active {
  display: grid;
}

.portfolio-grid.short {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .portfolio-grid.short {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 960px) {
  .portfolio-grid.short {
    grid-template-columns: repeat(6, 1fr);
  }
}

.portfolio-grid.long {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .portfolio-grid.long {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 32px -18px var(--shadow-color);
}

.video-card.short {
  aspect-ratio: 9 / 16;
}

.video-card.long {
  aspect-ratio: 16 / 9;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover img {
  transform: scale(1.06);
}

.video-card .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.video-card:hover .play {
  opacity: 1;
}

.video-card .play span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.video-card:hover .play span {
  transform: scale(1);
}

.video-card .meta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
}

.video-card .tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  display: block;
  margin-bottom: 0.15rem;
}

.video-card .title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ---------- Video Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  overflow: auto;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  width: min(900px, calc(100vw - 2rem));
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
}

.modal-box.portrait {
  width: min(420px, calc(100vw - 2rem));
  height: auto;
  aspect-ratio: 9 / 16;
}

/* When height is the tighter dimension, size from the viewport height instead
   of the width. This keeps the whole player visible on short laptop windows
   and landscape phones without distorting either aspect ratio. */
@media (min-aspect-ratio: 16 / 9) {
  .modal-box {
    width: auto;
    height: min(506px, calc(100dvh - 2rem));
  }
}

@media (min-aspect-ratio: 9 / 16) {
  .modal-box.portrait {
    width: auto;
    height: min(760px, calc(100dvh - 2rem));
  }
}

#modalContent {
  width: 100%;
  height: 100%;
}

.modal-box iframe,
.modal-box video {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-box video {
  object-fit: contain;
}

.modal-linkout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.modal-linkout img {
  max-width: 100%;
  max-height: 60%;
  border-radius: 8px;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.process-step {
  background: var(--bg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  position: relative;
  transition: background-color 0.3s ease;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}

.process-step.in::before {
  transform: scaleY(1);
}

.process-step .step-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.process-step h3 {
  margin-bottom: 0.4rem;
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 5rem);
  transition: background-color 0.3s ease;
}

.cta-grid {
  display: grid;
  gap: 3rem;
  max-width: 560px;
  margin: 0 auto;
}

.cta-heading h2 {
  margin-bottom: 1rem;
}

.lead-form,
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-form input,
.lead-form textarea,
.booking-form input,
.booking-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--text-primary);
  font: inherit;
  transition: border-color 0.2s ease, background-color 0.3s ease;
}

.lead-form input:focus,
.lead-form textarea:focus,
.booking-form input:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.lead-form textarea,
.booking-form textarea {
  min-height: 100px;
  resize: vertical;
}

.form-msg {
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.form-msg.ok {
  color: var(--teal);
}

.form-msg.err {
  color: #dc2626;
}

/* ---------- Booking widget ---------- */
.booking-widget-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.booking-tz-note {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.booking-days {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}

.day-btn {
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  text-align: center;
  min-width: 76px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.day-btn span {
  display: block;
}

.day-btn .day-name {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 0.2rem;
}

.day-btn:hover {
  border-color: var(--border-strong);
}

.day-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.day-btn.active .day-name {
  color: var(--on-accent);
  opacity: 0.85;
}

.booking-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.6rem;
}

.time-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.time-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.time-btn.booked {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text-tertiary);
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
  cursor: not-allowed;
}

.time-btn.booked:hover {
  border-color: var(--border);
  color: var(--text-tertiary);
}

.booking-legend {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.booking-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.booking-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.booking-legend .dot.available {
  background: var(--accent);
}

.booking-legend .dot.booked {
  background: var(--text-tertiary);
}

.booking-empty {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.booking-selected {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.booking-form-actions {
  display: flex;
  gap: 0.75rem;
}

.booking-form-actions .btn {
  flex: 1;
  justify-content: center;
}

.booking-confirmed {
  text-align: center;
  padding: 1.5rem 0;
}

.booking-confirmed h3 {
  margin-bottom: 0.5rem;
  color: var(--teal);
}


/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 3rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  color: var(--text-secondary);
}

.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero {
    padding-top: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
