/* RamSurfCoach — design system */

:root {
  --ink: #0a1628;
  --ink-soft: #142338;
  --foam: #f3f6f8;
  --foam-muted: #d7e0e6;
  --sea: #1c7a8c;
  --sea-bright: #2a9aaf;
  --sun: #d4a017;
  --sun-hover: #e0b12e;
  --white: #ffffff;
  --text: #1a2433;
  --text-muted: #5a6a7a;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--foam);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sun);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.25rem;
  border: 1.5px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--sun);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--sun-hover);
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--foam);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-nav {
  padding: 0.55rem 1rem;
  background: var(--sun);
  color: var(--ink);
  border-radius: 0.25rem;
}

.btn-nav:hover {
  background: var(--sun-hover);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}

.site-nav a:not(.btn):hover {
  color: var(--white);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.25rem;
  padding: 0.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch a {
  font-family: var(--font-body) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55) !important;
  padding: 0.35rem 0.55rem !important;
  border-radius: 0.15rem;
  line-height: 1;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--white) !important;
}

.lang-switch a.is-active {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Tall portrait shot — keep the rider in frame across aspect ratios */
  object-position: 55% 52%;
  transform: scale(1.06);
  animation: hero-zoom 18s var(--ease) forwards;
}

@media (min-aspect-ratio: 16/10) {
  .hero-img {
    object-position: 58% 55%;
  }
}

@media (max-aspect-ratio: 3/4) {
  .hero-img {
    object-position: 50% 40%;
  }
}

@keyframes hero-zoom {
  to { transform: scale(1); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.45) 0%, rgba(10, 22, 40, 0.2) 35%, rgba(10, 22, 40, 0.75) 100%),
    linear-gradient(90deg, rgba(10, 22, 40, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter) * 2, 38rem);
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  margin-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.15rem, 6vw, 4rem);
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 28rem;
  margin-bottom: 1.35rem;
}

@media (max-height: 720px) {
  .hero-content {
    padding-bottom: 2.5rem;
  }

  .brand-mark {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 5.5vh, 2.75rem);
  }

  .hero-lead {
    margin-bottom: 1rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1.5rem;
  height: 2.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  padding-top: 0.4rem;
}

.scroll-hint span {
  width: 3px;
  height: 6px;
  background: var(--white);
  border-radius: 2px;
  animation: scroll-dot 1.6s var(--ease) infinite;
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* About */

.about {
  background: var(--foam);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-copy p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

.about-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: end;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 0.15rem;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.about-photo--main img {
  aspect-ratio: 3 / 4;
  min-height: 22rem;
}

.about-photo--side {
  margin-bottom: 2.5rem;
}

.about-photo--side img {
  aspect-ratio: 3 / 4;
  min-height: 14rem;
}

/* Offerings */

.offerings {
  background: var(--ink);
  color: var(--foam-muted);
}

.offerings h2,
.offerings .offer-body h3 {
  color: var(--white);
}

.offerings .eyebrow {
  color: var(--sea-bright);
}

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.offer {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: clamp(1.75rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.offer-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--sun);
  padding-top: 0.15rem;
}

.offer-body p {
  margin: 0;
  max-width: 40rem;
  color: var(--foam-muted);
}

.section-head .section-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

/* Morocco */

.morocco {
  background:
    linear-gradient(180deg, #eef3f5 0%, var(--foam) 100%);
}

.morocco-stage {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.morocco-copy {
  max-width: 28rem;
}

.morocco-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 0.75rem;
}

.morocco-copy h3 {
  margin-bottom: 0.85rem;
  min-height: 2.6em;
}

.morocco-copy p[data-morocco-text] {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  min-height: 5.5em;
}

.morocco-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.morocco-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid rgba(10, 22, 40, 0.2);
  background: transparent;
  color: var(--ink);
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.morocco-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--foam);
}

.morocco-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
}

.morocco-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.22);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.morocco-dot.is-active {
  background: var(--sea);
  transform: scale(1.25);
}

.morocco-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 0.15rem;
  aspect-ratio: 4 / 5;
  max-height: min(36rem, 70vh);
  background: var(--ink-soft);
}

.morocco-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.morocco-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}

.morocco-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.morocco-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery */

.gallery {
  padding-bottom: clamp(3rem, 6vw, 4rem);
  overflow: hidden;
}

.gallery .container {
  margin-bottom: 0;
}

.gallery-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 1rem;
  margin-top: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sea) transparent;
}

.gallery-item {
  flex: 0 0 min(72vw, 18rem);
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 0.15rem;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Book */

.book {
  background:
    linear-gradient(160deg, var(--ink-soft) 0%, var(--ink) 55%, #0d2a36 100%);
  color: var(--foam);
}

.book-panel {
  max-width: 42rem;
  text-align: center;
  margin-inline: auto;
}

.book h2 {
  color: var(--white);
}

.book .eyebrow {
  color: var(--sun);
}

.book-lead {
  color: var(--foam-muted);
  margin-bottom: 1.75rem;
}

.book-form {
  text-align: left;
}

.book-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}

.book-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.book-field--full {
  grid-column: 1 / -1;
}

.book-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--foam-muted);
}

.book-field input,
.book-field select,
.book-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.25rem;
  padding: 0.75rem 0.85rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.book-field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.book-field input::placeholder,
.book-field textarea::placeholder {
  color: rgba(215, 224, 230, 0.45);
}

.book-field input:focus,
.book-field select:focus,
.book-field textarea:focus {
  outline: none;
  border-color: var(--sun);
  background: rgba(255, 255, 255, 0.1);
}

.book-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d7e0e6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

.book-field select option {
  color: var(--ink);
  background: var(--foam);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.book-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(215, 224, 230, 0.65);
}

.book .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.book .btn-secondary:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.book .btn-primary {
  border: 0;
  cursor: pointer;
}

@media (max-width: 640px) {
  .book-form-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */

.faq-list {
  max-width: 40rem;
}

.faq-item {
  border-bottom: 1px solid rgba(10, 22, 40, 0.12);
  padding: 0.25rem 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.15rem 1.75rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--sea);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  padding-right: 1.5rem;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--foam-muted);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand .brand {
  margin-bottom: 0.5rem;
  display: inline-block;
}

.footer-brand p:last-child {
  margin: 0;
  max-width: 22rem;
}

.footer-contact a {
  color: var(--white);
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--sun);
}

.footer-contact p {
  margin: 0 0 0.35rem;
}

.footer-copy {
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(215, 224, 230, 0.55);
}

/* Motion */

.reveal-hero {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal-hero.delay-1 { animation-delay: 0.15s; }
.reveal-hero.delay-2 { animation-delay: 0.3s; }
.reveal-hero.delay-3 { animation-delay: 0.45s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; transform: none; }
  .reveal-hero,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .scroll-hint span { animation: none; }
}

/* Responsive */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photos {
    max-width: 28rem;
  }

  .offer {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }

  .morocco-stage {
    grid-template-columns: 1fr;
  }

  .morocco-viewport {
    order: -1;
    max-height: min(28rem, 55vh);
    aspect-ratio: 5 / 4;
  }

  .morocco-copy h3,
  .morocco-copy p[data-morocco-text] {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a:not(.btn) {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
  }

  .lang-switch {
    margin: 0.75rem 0 1.25rem;
    width: fit-content;
  }

  .lang-switch a {
    font-size: 0.95rem !important;
    padding: 0.55rem 0.85rem !important;
  }

  .btn-nav {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .hero-content {
    margin-left: var(--gutter);
    max-width: none;
    width: calc(100% - var(--gutter) * 2);
  }

  .about-photo--side {
    margin-bottom: 1rem;
  }

  .scroll-hint {
    display: none;
  }
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}
