:root {
  --navy: #06243f;
  --blue: #0c4f78;
  --deep: #031827;
  --sky: #dff3fb;
  --ice: #f4fbfe;
  --line: #d8e6ee;
  --text: #20313f;
  --muted: #627789;
  --white: #ffffff;
  --accent: #e85f4f;
  --gold: #c79a45;
  --shadow: 0 22px 60px rgba(4, 27, 45, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 { color: var(--deep); line-height: 1.05; margin: 0 0 1rem; letter-spacing: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; }
h1 { font-size: clamp(2.8rem, 7vw, 6.7rem); max-width: 920px; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
h3 { font-size: 1.15rem; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: .7rem 1rem;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 230, 238, .8);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { box-shadow: 0 12px 40px rgba(5, 35, 62, .08); background: rgba(255, 255, 255, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 800; color: var(--navy); }
.brand img { border-radius: 8px; }
.site-nav { display: flex; gap: .35rem; align-items: center; }
.site-nav a { padding: .7rem .9rem; border-radius: 999px; font-size: .92rem; font-weight: 700; color: var(--navy); }
.site-nav a:hover, .site-nav a:focus { background: var(--sky); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--navy); margin: 5px 0; }

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 24, 39, .9) 0%, rgba(3, 24, 39, .58) 46%, rgba(3, 24, 39, .14) 100%),
    linear-gradient(0deg, rgba(3, 24, 39, .6), transparent 48%),
    url("../img/rya-powerboat-level-2-alicante.jpg") center/cover no-repeat;
  transform: scale(1.02);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: end; padding: 9rem 0 5rem; }
.hero-copy h1, .hero-copy p { color: var(--white); }
.hero-text { max-width: 690px; font-size: 1.18rem; color: rgba(255, 255, 255, .86) !important; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 800; margin-bottom: .8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .85rem 1.15rem; border-radius: 8px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 14px 34px rgba(232, 95, 79, .28); }
.btn-secondary { color: var(--white); border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); }
.hero-highlight { display: inline-grid; gap: .2rem; padding: 1rem 1.2rem; border-left: 4px solid var(--gold); background: rgba(255, 255, 255, .1); color: var(--white); backdrop-filter: blur(12px); }
.hero-highlight span { color: var(--gold); font-size: .76rem; text-transform: uppercase; font-weight: 900; letter-spacing: .14em; }
.hero-highlight strong { font-size: 1.2rem; }
.hero-highlight em { color: rgba(255, 255, 255, .8); font-style: normal; }
.hero-panel { background: rgba(255, 255, 255, .92); padding: 1.4rem; border-radius: 8px; box-shadow: var(--shadow); }
.hero-panel img { width: 180px; margin-bottom: 1rem; }
.hero-panel p { color: var(--navy); font-weight: 700; margin: 0; }

.section { padding: 6rem 0; }
.section-soft { background: var(--ice); }
.section-blue { background: linear-gradient(135deg, var(--navy), #0a5f8f); }
.section-heading { max-width: 760px; margin: 0 auto 2.7rem; text-align: center; }
.section-heading.align-left { margin-left: 0; text-align: left; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.section-heading.light h1, .section-heading.light h2, .section-heading.light p { color: var(--white); }
.section-heading.light .eyebrow { color: #8ee2ff; }

.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.feature-card, .course-card, .person-card, .testimonial, .contact-form, .accordion-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(3, 24, 39, .07);
}
.feature-card { padding: 1.3rem; min-height: 230px; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 8px; background: var(--navy); color: var(--white); font-weight: 900; margin-bottom: 1rem; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.course-card { overflow: hidden; display: flex; flex-direction: column; }
.course-card.best { border: 2px solid var(--gold); transform: translateY(-6px); }
.course-image { aspect-ratio: 16 / 10; background: var(--sky); overflow: hidden; }
.course-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.course-card:hover .course-image img { transform: scale(1.04); }
.course-body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.badge { align-self: flex-start; color: var(--deep); background: #ffe2a8; border-radius: 999px; padding: .25rem .7rem; font-weight: 900; font-size: .75rem; margin-bottom: .8rem; }
.course-body p, .feature-card p, .person-card p, .testimonial p { color: var(--muted); }
.course-note { padding: .75rem; border-left: 3px solid var(--gold); background: #fff7e7; color: var(--navy) !important; font-weight: 700; }
.course-body ul { margin: .2rem 0 1rem; padding-left: 1.2rem; color: var(--text); font-size: .92rem; }
.course-footer { margin-top: auto; display: grid; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.course-footer strong { color: var(--navy); font-size: 1.9rem; }
.course-footer div { display: flex; flex-wrap: wrap; gap: .55rem; }
.course-footer a { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; font-weight: 800; font-size: .86rem; }
.course-footer a:last-child { background: var(--navy); color: var(--white); border-color: var(--navy); }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
.rya-mark { width: 220px; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 8px; }
.accordion { display: grid; gap: .8rem; }
.accordion-item { overflow: hidden; }
.accordion-item button { width: 100%; border: 0; background: var(--white); text-align: left; padding: 1.1rem 1.2rem; color: var(--navy); font-weight: 900; font-size: 1rem; cursor: pointer; }
.accordion-content { display: none; padding: 0 1.2rem 1.2rem; color: var(--muted); }
.accordion-item.open .accordion-content { display: block; }
.accordion-content ul { margin: 0; padding-left: 1.2rem; }

.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.person-card { display: grid; grid-template-columns: 190px 1fr; gap: 1.2rem; padding: 1rem; }
.person-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 8px; }
.role { color: var(--accent) !important; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 900; margin-bottom: .35rem; }

.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.area-image img { border-radius: 8px; box-shadow: var(--shadow); }
.area-copy p { color: var(--muted); }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.testimonial { padding: 1.5rem; }
.testimonial img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; margin-bottom: 1rem; }
.testimonial strong { display: block; color: var(--navy); }
.testimonial span { color: var(--accent); font-size: .9rem; font-weight: 800; }

.contact-section { background: var(--ice); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
address { font-style: normal; color: var(--muted); margin-bottom: 1.5rem; }
.contact-copy a { color: var(--blue); font-weight: 800; }
.contact-form { padding: 1.2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-row { display: grid; gap: .35rem; }
.form-row.full, .contact-form .full { grid-column: 1 / -1; }
label { font-weight: 800; color: var(--navy); font-size: .9rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .85rem;
  font: inherit;
  color: var(--text);
  background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(12, 79, 120, .18); border-color: var(--blue); }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; margin: 0; }
.booking-summary {
  margin: 0;
  padding: .9rem 1rem;
  border-radius: 8px;
  background: var(--sky);
  color: var(--navy);
  font-weight: 800;
}
.course-requirement {
  margin: 0;
  padding: .9rem 1rem;
  border-radius: 8px;
  background: #fff7e7;
  color: var(--navy);
  font-weight: 800;
  border: 1px solid #f2d391;
}
.course-requirement a { color: var(--blue); text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.form-actions .btn { flex: 1 1 220px; }
.contact-form .btn-secondary { color: var(--navy); border-color: var(--line); background: var(--white); }

.site-footer { background: var(--deep); color: rgba(255, 255, 255, .75); padding: 2.5rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; align-items: start; }
.footer-brand, .footer-brand span { color: var(--white); }
.site-footer nav { display: grid; gap: .45rem; }
.site-footer a:hover { color: var(--sky); }
.copyright { margin: 0; font-size: .9rem; }
.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--white);
  background: #25d366;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 420px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 4rem 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: 76px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .7rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: 8px; }
  .hero { min-height: auto; }
  .hero-grid { padding: 7rem 0 3rem; }
  .hero-actions { display: grid; }
  .feature-grid, .course-grid, .people-grid, .testimonial-grid, .footer-grid { grid-template-columns: 1fr; }
  .course-card.best { transform: none; }
  .person-card { grid-template-columns: 1fr; }
  .person-card img { height: 280px; min-height: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .brand span { font-size: .95rem; }
}
