/* ==========================================================================
   Andy Resort Inc.: site styles
   Palette: deep ocean teal, warm sand, coral sunset accent
   ========================================================================== */

:root {
  --teal-950: #0a2c30;
  --teal-900: #0f3d42;
  --teal-800: #164b50;
  --teal-700: #1d5e60;
  --teal-500: #3c8580;
  --teal-100: #e3efec;
  --sand-50: #fcf8f2;
  --sand-100: #f7efe2;
  --sand-200: #efe1ca;
  --sand-300: #e2cfae;
  --ink: #1d2b2d;
  --ink-soft: #4f5e5f;
  --ink-mute: #7a8687;
  --white: #ffffff;
  --coral: #e2725b;
  --coral-light: #ef8a6b;
  --coral-dark: #b9533e;
  --danger: #b4372b;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --shadow: 0 24px 48px -30px rgba(15, 61, 66, .45);
  --shadow-sm: 0 8px 24px -16px rgba(15, 61, 66, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--teal-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.32rem; font-weight: 500; }
p  { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--coral-light); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--coral); color: var(--white); padding: 10px 16px; font-weight: 600; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 840px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; line-height: 1.2;
  padding: 15px 26px; border-radius: 12px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { padding: 11px 18px; font-size: .88rem; border-radius: 10px; }
.btn-accent { background: var(--coral); color: var(--white); border-color: var(--coral); }
.btn-accent:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: var(--white); }
.btn-dark { background: var(--teal-900); color: var(--white); border-color: var(--teal-900); }
.btn-dark:hover { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); }
.btn-outline { color: var(--teal-900); border-color: var(--teal-900); background: transparent; }
.btn-outline:hover { background: var(--teal-900); color: var(--white); }
.btn-light { background: var(--sand-50); color: var(--teal-900); border-color: var(--sand-50); }
.btn-light:hover { background: var(--sand-200); border-color: var(--sand-200); color: var(--teal-900); }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.5); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 248, 242, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-900); }
.brand:hover { color: var(--teal-900); }
.brand-mark { display: block; width: 42px; height: 42px; flex: none; }
.brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.42rem; }
.brand-sub { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--coral-dark); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav ul a {
  position: relative; display: block; color: var(--ink-soft); text-decoration: none;
  font-size: .94rem; font-weight: 500; padding: 6px 0;
}
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--coral); transform: scaleX(0); transition: transform .2s; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--teal-900); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: transparent; border: 1.5px solid var(--sand-300);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle-bar { width: 18px; height: 2px; border-radius: 2px; background: var(--teal-900); display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand-50); border-bottom: 1px solid var(--sand-200);
    padding: 8px var(--gutter) 22px; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 14px 0; border-bottom: 1px solid var(--sand-200); }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--coral-dark); }
  .site-nav .btn { margin-top: 16px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-sand { background: var(--sand-100); }
.section-teal { background: var(--teal-900); color: rgba(255,255,255,.76); }
.section-teal h2, .section-teal h3 { color: var(--sand-50); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--coral-dark); margin-bottom: 14px;
}
.section-teal .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--coral-light); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head-row .section-head { margin-bottom: 0; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.section-teal .lead { color: rgba(255,255,255,.74); }

.intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.intro h2 { margin: 0; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  min-height: min(86vh, 720px); display: flex; align-items: flex-end;
  background: var(--teal-900);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,44,48,.55) 0%, rgba(10,44,48,.25) 40%, rgba(10,44,48,.75) 100%); }
.hero-inner { position: relative; text-align: center; padding-top: 120px; padding-bottom: clamp(64px, 10vw, 120px); max-width: 860px; }
.hero-company { font-size: .84rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--sand-100); margin-bottom: 18px; }
.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 30px rgba(10,44,48,.35); }
.hero .lead { color: rgba(255,255,255,.88); max-width: 620px; margin: 0 auto 32px; }
.hero .btn-row { justify-content: center; }

.page-hero {
  position: relative; overflow: hidden;
  background: var(--teal-900); color: rgba(255,255,255,.76);
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 100px);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 36px;
  background: var(--sand-50);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0,18 C240,36 480,0 720,16 C960,32 1200,4 1440,18 L1440,36 L0,36 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0,18 C240,36 480,0 720,16 C960,32 1200,4 1440,18 L1440,36 L0,36 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.page-hero h1 { color: var(--sand-50); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { max-width: 640px; font-size: 1.08rem; margin: 0; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature { padding: 30px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature h3 { margin-bottom: 8px; }
.feature p:last-child { margin-bottom: 0; }
.section-teal .feature { background: var(--teal-800); box-shadow: none; border-top: 3px solid var(--coral); border-radius: 4px 4px var(--radius) var(--radius); }

.step { padding: 32px 28px; background: var(--sand-50); border-radius: var(--radius); border: 1px solid var(--sand-200); }
.step-num { display: block; font-family: var(--font-display); font-size: 3rem; font-weight: 500; line-height: 1; color: var(--coral); margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; }

/* ---------- Accommodation cards ---------- */
.stay-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.stay-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.stay-media { position: relative; aspect-ratio: 3 / 2; background: var(--teal-900); overflow: hidden; }
.stay-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; }
.badge-sample { position: absolute; top: 14px; left: 14px; background: var(--sand-50); color: var(--teal-900); }
.stay-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.stay-category { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-dark); margin-bottom: 6px; }
.stay-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.stay-body p { font-size: .96rem; }
.stay-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.stay-tags li { font-size: .8rem; font-weight: 500; color: var(--teal-800); background: var(--teal-100); padding: 4px 11px; border-radius: 999px; }
.stay-body .btn { margin-top: auto; align-self: flex-start; }

.notice {
  border-radius: var(--radius); background: var(--sand-100); border: 1px solid var(--sand-200);
  padding: 16px 20px; font-size: .95rem; color: var(--ink-soft); margin-bottom: 36px;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 var(--section); }
.section-teal + .cta-band, .section-sand + .cta-band { padding-top: var(--section); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--sand-100); border: 1px solid var(--sand-200); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 60px);
  background-image: radial-gradient(500px 220px at 100% 0%, rgba(239,138,107,.22), transparent 70%);
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 560px; }

/* ---------- Two-column prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--coral-light); box-shadow: 0 0 0 4px rgba(239,138,107,.2); }
.check-list strong { color: var(--teal-900); }

/* ---------- Contact ---------- */
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 44px); box-shadow: var(--shadow-sm); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sand-200); }
.contact-list li:last-child { border-bottom: 0; }
.contact-label { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-dark); padding-top: 3px; }
.contact-list a { color: var(--teal-900); font-weight: 600; word-break: break-word; }
@media (max-width: 560px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(22px, 5vw, 46px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: .92rem; font-weight: 600; color: var(--teal-900); margin-bottom: 7px; }
.req { color: var(--coral-dark); }
.optional { font-weight: 400; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--sand-50); border: 1.5px solid var(--sand-300); border-radius: 12px;
  padding: 12px 14px; min-height: 50px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); background: var(--white); box-shadow: 0 0 0 4px rgba(60,133,128,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; margin: 6px 0 0; }
.hint { font-size: .86rem; color: var(--ink-mute); margin-top: 6px; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-section-title {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  color: var(--teal-900); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--sand-200);
}

/* SMS consent block: sits directly under the mobile phone number field */
fieldset.sms-consent {
  margin: 18px 0 0; padding: 20px 22px; min-width: 0;
  background: var(--teal-100); border: 1.5px solid #c9dfda; border-radius: var(--radius);
}
fieldset.sms-consent.has-error { border-color: var(--danger); }
fieldset.sms-consent > legend { float: left; width: 100%; padding: 0; }
fieldset.sms-consent > legend + * { clear: both; }
.sms-consent-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--teal-900); margin: 0 0 2px; }
.sms-consent-optional { font-size: .88rem; color: var(--ink-soft); margin: 0 0 14px; }
.sms-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.sms-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--teal-700); cursor: pointer; }
.sms-check span { font-size: .93rem; line-height: 1.6; color: var(--ink); }
.sms-sharing { font-size: .88rem; color: var(--ink-soft); margin: 12px 0 0 36px; }
.sms-links { font-size: .88rem; margin: 8px 0 0 36px; }
@media (max-width: 480px) { .sms-sharing, .sms-links { margin-left: 0; } fieldset.sms-consent { padding: 18px 16px; } }

.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions p { margin: 0; font-size: .88rem; color: var(--ink-mute); }
@media (max-width: 480px) { .form-actions .btn { width: 100%; } }

.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; border: 1px solid; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { background: #fcf0ee; border-color: #edc3bd; color: #74241c; }
.alert-success { background: #eef7f2; border-color: #bfdccc; color: #1c4a33; }

.confirmation { text-align: center; padding: clamp(34px, 6vw, 60px) clamp(20px, 5vw, 56px); }
.confirmation-mark { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); font-size: 1.6rem; font-weight: 700; }
.confirmation .ref { display: inline-block; font-family: var(--font-display); font-size: 1.45rem; color: var(--teal-900); background: var(--sand-100); border-radius: 12px; padding: 8px 16px; margin: 6px 0 20px; }

/* ---------- Legal pages ---------- */
.legal { padding: var(--section) 0; }
.legal h2 { font-size: 1.7rem; margin-top: 2em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.2rem; margin-top: 1.5em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.legal li { margin-bottom: .5em; }
.legal strong { color: var(--teal-900); }
.legal-meta { font-size: .92rem; color: var(--ink-mute); margin-bottom: 32px; }
.legal-callout { border-left: 4px solid var(--coral); background: var(--sand-100); padding: 16px 20px; margin: 0 0 1.4em; font-weight: 600; color: var(--teal-900); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
blockquote.legal-callout { margin-left: 0; margin-right: 0; }
.toc { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 24px; margin-bottom: 40px; }
.toc p { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--coral-dark); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { color: var(--teal-950); margin-top: 0; }
.footer-wave { line-height: 0; color: var(--teal-950); }
.footer-wave svg { display: block; width: 100%; height: 40px; }
.footer-body { background: var(--teal-950); color: rgba(255,255,255,.66); padding-top: 48px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-footer, .brand-footer:hover { color: var(--sand-50); }
.brand-footer .brand-sub { color: var(--coral-light); }
.footer-brand p { margin: 16px 0 20px; max-width: 290px; }
.footer-heading { font-family: var(--font-body); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sand-200); font-weight: 700; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 10px; word-break: break-word; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--coral-light); }
.site-footer .btn-accent { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-bottom p { margin: 0; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--ink-mute); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .stay-card:hover { transform: none; }
}
