:root {
  --ink: #0c1f2e;
  --ink-soft: #243847;
  --sea: #1a6b6a;
  --sea-deep: #0f4a4a;
  --sand: #f3efe6;
  --sand-deep: #e6dfd1;
  --gold: #c4a35a;
  --gold-bright: #d4b56a;
  --paper: #faf8f4;
  --white: #ffffff;
  --muted: #5a6b75;
  --line: rgba(12, 31, 46, 0.12);
  --shadow: 0 18px 50px rgba(12, 31, 46, 0.12);
  --radius: 4px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
}

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

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--sea-deep);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, var(--sea-deep), var(--sea));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-mark span {
  display: block;
  width: 58%;
  height: 3px;
  background: var(--gold-bright);
  border-radius: 2px;
  box-shadow: 0 -5px 0 var(--gold), 0 5px 0 var(--gold);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--sea);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(26, 107, 106, 0.28);
}

.btn-primary:hover {
  background: var(--sea-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-bright);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 31, 46, 0.88) 0%, rgba(12, 31, 46, 0.55) 48%, rgba(15, 74, 74, 0.35) 100%),
    linear-gradient(to top, rgba(12, 31, 46, 0.75), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 4.5rem;
  max-width: 38rem;
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  font-weight: 600;
  animation: fadeUp 0.9s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 22ch;
  animation: fadeUp 0.9s ease 0.12s both;
}

.hero-lead {
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34ch;
  animation: fadeUp 0.9s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: fadeUp 0.9s ease 0.32s both;
}

.hero-trust {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  animation: fadeUp 0.9s ease 0.42s both;
}

.hero-trust strong {
  color: var(--gold-bright);
  font-weight: 600;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.bg-sand {
  background: var(--sand);
}

.bg-ink {
  background: var(--ink);
  color: var(--white);
}

.bg-ink .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

/* Intro split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-visual {
  position: relative;
  overflow: hidden;
  border-radius: 0.35rem;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.split-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--sea);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--sea);
}

/* Types */
.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.type-block {
  padding: 1.6rem 1.4rem 1.5rem;
  border-top: 3px solid var(--sea);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.type-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
  font-weight: 600;
}

.type-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.type-meta {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--sea-deep);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: stretch;
}

.benefits-visual {
  border-radius: 0.35rem;
  overflow: hidden;
  min-height: 420px;
  position: relative;
}

.benefits-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.benefits-list {
  display: grid;
  gap: 1rem;
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.benefit:last-child {
  border-bottom: 0;
}

.benefit-num {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.4rem;
  line-height: 1;
  min-width: 2rem;
}

.benefit h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  text-align: left;
  padding: 1.2rem 0;
  border-top: 2px solid var(--gold);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Spain context */
.spain-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.spain-note {
  background: var(--white);
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  margin-top: 1.5rem;
}

.spain-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.3rem;
  position: relative;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(transparent, rgba(12, 31, 46, 0.75));
  color: var(--white);
  font-size: 0.8rem;
}

.gallery figure:first-child {
  grid-column: 1 / -1;
}

.gallery figure:first-child img {
  height: 260px;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background:
    linear-gradient(120deg, rgba(15, 74, 74, 0.92), rgba(12, 31, 46, 0.88)),
    url("../images/valencia-coast.jpg") center / cover;
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 0.8rem;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer */
.site-footer {
  background: #081722;
  color: rgba(255, 255, 255, 0.86);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h2,
.site-footer h3 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 1rem;
}

.site-footer h2 {
  font-size: 1.6rem;
}

.site-footer h3 {
  font-size: 1.15rem;
}

.addresses {
  display: grid;
  gap: 1.1rem;
}

.address-card address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.address-card strong {
  display: block;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.map-wrap {
  border-radius: 0.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 280px;
  background: #102433;
}

.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.contact-form select option {
  color: var(--ink);
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.form-success {
  display: none;
  padding: 0.9rem 1rem;
  background: rgba(26, 107, 106, 0.35);
  border: 1px solid rgba(196, 163, 90, 0.45);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.92rem;
}

.form-success.is-visible {
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (max-width: 960px) {
  .split,
  .benefits,
  .spain-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .types-grid,
  .steps,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }

  .nav-links.is-open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .types-grid,
  .steps,
  .stats,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery figure:first-child {
    grid-column: auto;
  }

  .hero-content {
    padding-top: 5.5rem;
  }

  section {
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
