/* Little Sand Bay Villas — site styles */

:root {
  --pine: #1f4d3a;
  --pine-dark: #16302a;
  --lake: #2a6f8f;
  --lake-deep: #1d5570;
  --sand: #f4ecdd;
  --sand-light: #faf6ec;
  --ink: #24312b;
  --ink-soft: #4d5a54;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 53, 41, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 11.5rem;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--pine-dark);
  color: var(--sand-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  transition: padding 0.2s ease;
}

.brand-mark {
  transition: width 0.2s ease, height 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 234px;
  height: 234px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--sand-light);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--pine) 0%, var(--lake-deep) 60%, var(--lake) 100%);
  color: var(--sand-light);
  text-align: center;
  padding: 5.5rem 0 6.5rem;
  overflow: hidden;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
}

.hero-wave path {
  fill: var(--white);
}

/* Page hero (individual pages) */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--pine) 0%, var(--lake-deep) 60%, var(--lake) 100%);
  color: var(--sand-light);
  text-align: center;
  padding: 3rem 0 4.25rem;
  overflow: hidden;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
}

.page-hero-sub {
  max-width: 620px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
  opacity: 0.92;
}

.page-hero .hero-wave {
  height: 44px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--sand);
  color: var(--pine-dark);
  box-shadow: var(--shadow);
}

.section .btn-primary {
  background: var(--pine);
  color: var(--sand-light);
}

.btn-ghost {
  border: 2px solid rgba(250, 246, 236, 0.7);
  color: var(--sand-light);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--sand-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--pine-dark);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--lake);
}

.section p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.section h3 {
  color: var(--pine-dark);
  margin-bottom: 0.5rem;
}

.section-center {
  text-align: center;
}

.section-center .section-title {
  padding-bottom: 0.75rem;
}

.section-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-center p {
  margin-left: auto;
  margin-right: auto;
}

.section-center .btn {
  margin-top: 0.5rem;
}

/* Prose (Markdown page bodies) */
.prose {
  max-width: 740px;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--pine-dark);
  margin: 2.25rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.4rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose a {
  color: var(--lake-deep);
  font-weight: 600;
}

.prose a.btn {
  color: var(--sand-light);
  text-decoration: none;
  margin: 0.25rem 0 1rem;
}

.prose blockquote {
  border-left: 4px solid var(--lake);
  padding: 0.5rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--sand-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(31, 77, 58, 0.15);
}

.prose th {
  background: var(--sand-light);
  color: var(--pine-dark);
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(31, 77, 58, 0.15);
  margin: 2rem 0;
}

/* Layouts */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(31, 77, 58, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card p {
  font-size: 0.95rem;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover,
.card h3 a:focus {
  color: var(--lake-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.card-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--lake-deep);
  margin-bottom: 0;
}

.fact-card {
  background: var(--sand-light);
  border: 1px solid rgba(31, 77, 58, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.fact-card ul {
  list-style: none;
}

.fact-card li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(31, 77, 58, 0.1);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.fact-card li:last-child {
  border-bottom: none;
}

.address-block {
  font-style: normal;
  background: var(--white);
  border-left: 4px solid var(--lake);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.7rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lake);
  font-weight: 700;
}

/* Contact */
.contact-details {
  margin-top: 1.5rem;
  display: inline-block;
  text-align: left;
  background: var(--sand-light);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}

.contact-details a {
  color: var(--lake-deep);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--pine-dark);
  color: var(--sand-light);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Footer Easter egg (PWA install hint) */
.egg-wrap {
  text-align: center;
  margin-top: 0.5rem;
}

.egg summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  font-size: 1.05rem;
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.egg summary::-webkit-details-marker {
  display: none;
}

.egg summary:hover,
.egg[open] summary {
  opacity: 1;
  transform: scale(1.15);
}

.egg-body {
  max-width: 560px;
  margin: 0.75rem auto 0.5rem;
  text-align: left;
  background: rgba(250, 246, 236, 0.07);
  border: 1px solid rgba(250, 246, 236, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.egg-body p {
  margin-bottom: 0.6rem;
}

.egg-body ul {
  list-style: none;
  margin: 0.5rem 0;
}

.egg-body li {
  padding: 0.3rem 0;
}

.egg-body em {
  color: var(--sand);
}

.egg-note {
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 8rem;
  }

  .brand-mark {
    width: 146px;
    height: 146px;
  }

  .brand {
    font-size: 1.1rem;
    gap: 0.75rem;
  }

  /* Compact sticky header once the page is scrolled */
  .site-header.scrolled .header-inner {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .site-header.scrolled .brand-mark {
    width: 52px;
    height: 52px;
  }

  .site-header.scrolled .brand {
    font-size: 1rem;
    gap: 0.6rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    padding: 4rem 0 5.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }
}
