/* Coastal Mile Motel — main stylesheet */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800.woff2') format('woff2');
}

:root {
  --teal-900: #073b42;
  --teal-800: #0b5560;
  --teal-700: #0e6e79;
  --teal-600: #128494;
  --teal-100: #e4f3f4;
  --coral-600: #ff6f4d;
  --coral-700: #e85a39;
  --sand-100: #faf6ee;
  --sand-200: #f3ecdc;
  --ink-900: #172625;
  --ink-700: #3c4d4c;
  --ink-500: #6b7a79;
  --white: #ffffff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-md: 0 12px 30px -12px rgba(7, 59, 66, 0.28);
  --shadow-lg: 0 24px 60px -20px rgba(7, 59, 66, 0.35);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--sand-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--teal-900);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--sand-200); }
.section--dark { background: var(--teal-900); color: #dcebec; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-700);
  margin-bottom: 10px;
}
.section--dark .eyebrow { color: #ffb199; }
.lede {
  font-size: 1.1rem;
  color: var(--ink-700);
  max-width: 720px;
}
.section--dark .lede { color: #b9d4d6; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral-600); color: #fff; box-shadow: 0 10px 24px -8px rgba(232, 90, 57, 0.55); }
.btn-primary:hover { background: var(--coral-700); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; border-color: var(--teal-700); color: var(--teal-800); }
.btn-outline-dark:hover { background: var(--teal-100); }
.btn-ghost { background: var(--teal-100); color: var(--teal-800); }
.btn-ghost:hover { background: #d7ecee; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(7, 59, 66, 0.08);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--teal-900); }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-700); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-900);
  border-radius: 999px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active { background: var(--teal-100); color: var(--teal-800); }
.nav-item .caret { font-size: 0.6em; transition: transform 0.15s ease; }
.nav-item:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  list-style: none;
  z-index: 70;
}
.nav-item:hover .dropdown,
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-700);
}
.dropdown a:hover { background: var(--sand-200); color: var(--teal-800); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { font-weight: 700; color: var(--teal-800); font-size: 0.92rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 980px) {
  .nav { position: fixed; inset: 0; top: 70px; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 30px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s ease; }
  .nav.is-open { transform: translateX(0); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 14px 8px; border-bottom: 1px solid var(--sand-200); border-radius: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin-left: 12px; }
  .nav-item.is-open .dropdown { display: block; }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,44,49,0.35) 0%, rgba(7,44,49,0.55) 55%, rgba(6,29,32,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 52px;
  width: 100%;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.hero h1 { color: #fff; max-width: 780px; }
.hero-lede { font-size: 1.12rem; max-width: 640px; color: #e9f4f4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: #cfe6e7; }

.page-hero {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #fff;
  padding: 56px 0 48px;
}
.page-hero .eyebrow { color: #ffb199; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: #d7ecec; max-width: 720px; font-size: 1.05rem; }
.page-hero .hero-actions { margin-top: 22px; }

/* Notice banner */
.notice {
  background: #fff4e6;
  border: 1px solid #f4d9ad;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: -30px auto 0;
  max-width: var(--max-width);
  position: relative;
  z-index: 5;
}
.notice h3 { margin-bottom: 8px; font-size: 1.05rem; color: #8a5a12; }
.notice p { margin-bottom: 6px; color: #6b4a15; font-size: 0.95rem; }
.notice a { color: var(--teal-700); font-weight: 600; text-decoration: underline; }

/* Room type quick strip */
.room-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 34px; }
.room-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.room-chip strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.room-chip span { display: block; font-size: 0.82rem; color: #cfe6e7; margin-bottom: 10px; }
@media (max-width: 900px) { .room-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .room-strip { grid-template-columns: 1fr 1fr; } }

/* Grid utilities */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.card-body { padding: 22px 24px 26px; }
.card ul.tick-list { margin-top: 10px; }

.room-card { display: flex; flex-direction: column; }
.room-card .room-photo { height: 210px; background-size: cover; background-position: center; position: relative; }
.room-card .room-price {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--coral-600);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
}
.room-card .room-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7,59,66,0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.room-card h3 { margin-bottom: 6px; }
.room-meta { display: flex; gap: 14px; font-size: 0.85rem; color: var(--ink-500); margin-bottom: 10px; flex-wrap: wrap; }
.room-meta span { display: inline-flex; align-items: center; gap: 5px; }

.tick-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-700); }
.tick-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.tick-list.on-dark li { color: #d7ecec; }
.tick-list.on-dark li::before { background: rgba(255,255,255,0.16); color: #fff; }

.icon-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.icon-list li {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-800);
  box-shadow: var(--shadow-md);
}
.icon-list li .icon-emoji { display: block; font-size: 1.6rem; margin-bottom: 6px; }
@media (max-width: 700px) { .icon-list { grid-template-columns: repeat(2, 1fr); } }

/* Feature split */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; } }

/* Location list */
.chip-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.chip-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.95rem;
}
.chip-list li b { color: var(--teal-800); }
.chip-list .dist { color: var(--coral-700); font-weight: 700; white-space: nowrap; }

/* Stats */
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 28px; }
.stat b { display: block; font-family: 'Poppins', sans-serif; font-size: 2.1rem; color: var(--teal-800); }
.stat span { color: var(--ink-500); font-size: 0.9rem; }

/* Testimonial */
.quote-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 26px; }
.quote-card p { font-style: italic; color: var(--ink-700); }
.quote-card .stars { color: #f0a63a; margin-bottom: 10px; letter-spacing: 2px; }

/* FAQ accordion */
.faq-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.faq-tab {
  border: 1px solid rgba(7,59,66,0.18);
  background: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-800);
  cursor: pointer;
}
.faq-tab.is-active { background: var(--teal-800); color: #fff; border-color: var(--teal-800); }
.faq-group { display: none; flex-direction: column; gap: 12px; }
.faq-group.is-active { display: flex; }
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--teal-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 14px;
}
.faq-q .plus { font-size: 1.3rem; color: var(--coral-600); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease; color: var(--ink-700); font-size: 0.95rem; }
.faq-item.is-open .faq-a { padding: 0 22px 20px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid a { display: block; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid a:first-child { grid-column: span 2; aspect-ratio: 16/9; } }

.lightbox { position: fixed; inset: 0; background: rgba(6,20,22,0.92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.85rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--teal-800), var(--teal-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #d3ecec; margin-bottom: 0; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Form */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--teal-800); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #dde6e2;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fbfdfc;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); }
.form-note { font-size: 0.82rem; color: var(--ink-500); margin-top: 10px; }
.form-success, .form-error {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-success { background: #e6f6ea; color: #1c6b34; }
.form-error { background: #fde9e6; color: #a3341f; }

/* Contact info blocks */
.info-card { display: flex; gap: 16px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 20px; }
.info-card .info-icon { font-size: 1.5rem; }
.info-card h3 { margin-bottom: 4px; font-size: 1rem; }
.info-card p { margin-bottom: 0; font-size: 0.92rem; color: var(--ink-700); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
table.events-table { width: 100%; border-collapse: collapse; background: #fff; }
table.events-table th, table.events-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--sand-200); font-size: 0.92rem; }
table.events-table th { background: var(--teal-900); color: #fff; font-family: 'Poppins', sans-serif; }
table.events-table tr:last-child td { border-bottom: none; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: #cfe6e7; margin-bottom: 14px; }
.breadcrumb a { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--teal-900); color: #cfe1e2; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 38px; }
.footer-brand strong { font-family: 'Poppins', sans-serif; color: #fff; font-size: 1.05rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: #b9d4d6; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: #94b4b6; }
.footer-bottom a { color: #94b4b6; text-decoration: underline; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--coral-600);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  z-index: 90;
  font-size: 1.2rem;
}
.back-to-top.is-visible { display: flex; }

/* Sticky mobile book bar */
.mobile-book-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
  padding: 10px 16px;
  gap: 10px;
  z-index: 80;
}
@media (max-width: 720px) {
  .mobile-book-bar { display: flex; }
  body { padding-bottom: 66px; }
}

@media print { .site-header, .site-footer, .back-to-top, .mobile-book-bar { display: none; } }
