/* Cloudonize — site styles
   Palette: ocean / sea-foam / lagoon / salt (Salinas de Cabo Rojo) */
:root {
  --ocean: #10283a;
  --ocean-deep: #0a1c2a;
  --foam: #f4f6f5;
  --foam-2: #e9eeec;
  --lagoon: #2e8b9a;
  --lagoon-deep: #1f6b78;
  --salt: #f0a3b0;
  --salt-deep: #d9798c;
  --sand: #e8dcc4;
  --ink: #10283a;
  --ink-2: #3b4d59;
  --muted: #647682;
  --line: #d3dbd9;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.9rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--lagoon-deep); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--ocean); }
ul { padding-left: 1.2em; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--salt-deep); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(var(--measure), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--foam) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.brand .mark { width: 22px; height: 22px; display: inline-block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: 0.95rem; text-decoration: none;
  color: var(--ink-2); padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { color: var(--ink); background: var(--foam-2); }
.nav .cta { margin-left: 8px; }
.nav a.btn { color: #fff; background: var(--ocean); }
.nav a.btn:hover { background: var(--ocean-deep); color: #fff; }

.btn {
  font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 8px; border: 1.5px solid var(--ocean);
  background: var(--ocean); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ocean-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--foam-2); }
.btn.salt { background: var(--salt); border-color: var(--salt); color: var(--ocean-deep); }
.btn.salt:hover { background: var(--salt-deep); border-color: var(--salt-deep); color: var(--ocean-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: var(--display); font-weight: 600; cursor: pointer; color: var(--ink); }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--foam); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav .cta { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Horizon band (the one memorable element) ---------- */
.horizon {
  display: grid;
  grid-template-rows: 6fr 2.4fr 1.6fr 1.2fr 0.8fr 2fr;
  height: clamp(110px, 15vw, 180px);
  overflow: hidden;
}
.horizon > i { display: block; transform-origin: left; }
.horizon .sky   { background: var(--ocean-deep); }
.horizon .dusk  { background: linear-gradient(180deg, var(--ocean), var(--lagoon-deep)); }
.horizon .lagoon{ background: var(--lagoon); }
.horizon .salt  { background: var(--salt); }
.horizon .sand  { background: var(--sand); }
.horizon .water { background: var(--ocean); }

@media (prefers-reduced-motion: no-preference) {
  .horizon > i { animation: sweep 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .horizon > i:nth-child(2) { animation-delay: .08s; }
  .horizon > i:nth-child(3) { animation-delay: .16s; }
  .horizon > i:nth-child(4) { animation-delay: .24s; }
  .horizon > i:nth-child(5) { animation-delay: .32s; }
  .horizon > i:nth-child(6) { animation-delay: .40s; }
  @keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { max-width: 18ch; text-wrap: balance; }
.hero .lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin-bottom: 1.6em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .where {
  font-family: var(--display); font-size: 0.95rem; color: var(--muted); line-height: 1.5;
  border-left: 3px solid var(--salt); padding-left: 16px; max-width: 34ch;
}
.hero .where b { color: var(--ink); font-weight: 600; display: block; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .where { margin-top: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); margin-bottom: clamp(32px, 4vw, 56px); align-items: start; }
.section-head p { font-size: 1.1rem; color: var(--ink-2); margin: 0.3em 0 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Services — a ruled list, not cards */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ocean); }
.services > li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 56px);
  padding: clamp(24px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line);
}
.services h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.services h3 small { display: block; font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.services p { margin-bottom: 0.9em; }
.services .typical { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.services .typical li {
  font-family: var(--display); font-size: 0.86rem; font-weight: 500; color: var(--ink-2);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
@media (max-width: 760px) { .services > li { grid-template-columns: 1fr; gap: 12px; } }

/* About — dark */
.about { background: var(--ocean); color: #d9e3e6; border-top: 0; }
.about h2, .about h3 { color: #fff; }
.about .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); }
.about p { color: #c7d3d8; font-size: 1.1rem; }
.about p strong { color: #fff; }
.about .facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.about .facts li { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-family: var(--display); }
.about .facts b { display: block; color: #fff; font-weight: 600; font-size: 1.1rem; }
.about .facts span { color: #a9bac2; font-size: 0.95rem; }
.about .facts li:first-child b { color: var(--salt); }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } }

/* How it goes */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.how li { border-top: 2px solid var(--ocean); padding-top: 16px; }
.how h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.35em; }
.how p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--ocean); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--lagoon-deep); border-bottom: 2px solid var(--lagoon-deep);
  transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; max-width: 70ch; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.contact .details { font-family: var(--display); }
.contact .details p { font-family: var(--body); color: var(--ink-2); font-size: 1.1rem; }
.contact dl { margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 1rem; }
.contact dt { color: var(--muted); font-weight: 500; }
.contact dd { margin: 0; }
.contact dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--salt); }
.contact dd a:hover { border-bottom-color: var(--ocean); }

.form { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--display); font-weight: 500; font-size: 0.92rem; margin-bottom: 6px; color: var(--ink-2); }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lagoon) 20%, transparent); }
.field textarea { min-height: 160px; resize: vertical; }
.form .submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form .note { font-family: var(--display); font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-status { grid-column: 1 / -1; font-family: var(--display); font-weight: 500; padding: 14px 16px; border-radius: 8px; display: none; }
.form-status.ok { display: block; background: #e3f3ee; color: #155a47; border: 1px solid #b7e0d1; }
.form-status.err { display: block; background: #fdeaea; color: #8a1f1f; border: 1px solid #f3c4c4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ocean-deep); color: #a9bac2; padding: 40px 0 32px; font-family: var(--display); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: #d9e3e6; text-decoration: none; }
.site-footer a:hover { color: var(--salt); }
.site-footer .copy { width: 100%; margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Legal / article pages ---------- */
.article { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.4em; }
.article .meta { font-family: var(--display); color: var(--muted); margin-bottom: 2.5em; }
.article h2 { font-size: 1.4rem; margin-top: 2em; }
.article ul { margin: 0 0 1em; }
.article li { margin-bottom: 0.4em; }
.article .back { font-family: var(--display); font-weight: 500; text-decoration: none; display: inline-block; margin-bottom: 24px; }
