/* ==========================================================================
   StayNúa — Where Life Renews
   Brand stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette pulled directly from the StayNúa logo */
  --teal: #2E8B96;
  --teal-deep: #1E6B75;
  --teal-darker: #144A52;
  --cream: #F5F1E8;
  --cream-soft: #FBF8F1;
  --sand: #E8D5B7;
  --sand-deep: #C9AE83;
  --coral: #E89B7C;
  --sunset: #F2B872;
  --charcoal: #2C3E40;
  --charcoal-soft: #4A5C5F;
  --gray-line: #E2DDD0;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 2px 8px rgba(20, 74, 82, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 74, 82, 0.12);
  --shadow-lg: 0 16px 48px rgba(20, 74, 82, 0.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-darker);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin-bottom: 1em; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.8rem;
  display: inline-block;
}
.lead { font-size: 1.18rem; color: var(--charcoal-soft); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-tight { padding: clamp(40px, 6vw, 70px) 0; }
.section-cream { background: var(--cream); }
.section-teal { background: var(--teal-darker); color: var(--cream-soft); }
.section-teal h1, .section-teal h2, .section-teal h3 { color: var(--cream-soft); }
.section-teal .eyebrow { color: var(--sand); }

.center { text-align: center; }
.divider {
  display: flex; align-items: center; justify-content: center;
  margin: 1rem auto 2rem;
}
.divider::before, .divider::after {
  content: ''; height: 1px; width: 60px; background: currentColor; opacity: 0.3;
}
.divider svg { margin: 0 14px; opacity: 0.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-weight: 600; font-size: 0.95rem;
  border-radius: 999px;
  transition: all .25s ease;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--cream-soft);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--teal-deep); color: var(--cream-soft);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-outline {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: transparent;
}
.btn-outline:hover { background: var(--teal); color: var(--cream-soft); }
.btn-light {
  background: var(--cream-soft); color: var(--teal-darker);
}
.btn-light:hover { background: var(--sand); color: var(--teal-darker); transform: translateY(-2px); }
.btn-ghost { color: var(--cream-soft); border-color: rgba(245, 241, 232, 0.4); }
.btn-ghost:hover { background: var(--cream-soft); color: var(--teal-darker); border-color: var(--cream-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(46, 139, 150, 0.12);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--teal-darker);
}
.brand-tag {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 4px;
  font-weight: 600;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--charcoal); font-weight: 500; font-size: 0.96rem;
  position: relative;
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a.active { color: var(--teal-deep); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.nav-cta { padding: 10px 20px !important; font-size: 0.88rem !important; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--teal-darker); border-radius: 2px;
  position: relative; transition: all .25s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--teal-darker); border-radius: 2px;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  color: var(--cream-soft);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background: url('../images/hero-sunset.jpg') center 60% / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,74,82,0.35) 0%, rgba(20,74,82,0.15) 40%, rgba(20,74,82,0.78) 100%);
}
.hero-content {
  max-width: 720px;
  padding: 100px 0 60px;
}
.hero h1 {
  color: #FFFFFF;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--sand); font-weight: 500; }
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-eyebrow {
  color: var(--sand) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-sub {
  position: relative;
  min-height: 50vh;
  color: var(--cream-soft);
  display: flex; align-items: center;
  isolation: isolate;
}
.hero-sub::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--bg-image, none) center / cover no-repeat;
}
.hero-sub::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,74,82,0.45), rgba(20,74,82,0.7));
}
.hero-sub .container { padding-top: 80px; padding-bottom: 60px; }
.hero-sub h1 { color: #FFFFFF; font-weight: 500; }
.hero-sub p { color: rgba(255,255,255,0.92); max-width: 640px; }

/* ---------- Property cards ---------- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 50px;
}
.property-card {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.property-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.property-card-img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.property-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.property-card:hover .property-card-img img { transform: scale(1.06); }
.property-card-badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--cream-soft);
  color: var(--teal-darker);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.property-card-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.property-card h3 { margin-bottom: 6px; }
.property-card .location {
  color: var(--teal); font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.property-card p { color: var(--charcoal-soft); margin-bottom: 18px; }
.property-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
  margin-bottom: 22px;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
}
.property-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
}
.property-meta svg { color: var(--teal); }
.property-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Feature trio ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  margin-top: 56px;
}
.feature {
  text-align: center;
  padding: 0 8px;
}
.feature-icon {
  width: 64px; height: 64px;
  background: var(--cream);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal);
  margin-bottom: 18px;
}
.section-teal .feature-icon { background: rgba(245, 241, 232, 0.12); color: var(--sand); }
.feature h3 { margin-bottom: 10px; font-size: 1.25rem; }
.feature p { font-size: 0.96rem; opacity: 0.85; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.two-col-img img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5; object-fit: cover;
}
.two-col-img.tall img { aspect-ratio: 4/5; }
.two-col-img.wide img { aspect-ratio: 5/4; }
.two-col h2 { margin-bottom: 1.2rem; }
.two-col p { color: var(--charcoal-soft); }

/* ---------- Property detail ---------- */
.property-hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}
.property-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin-bottom: 50px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.04); }
.gallery-grid .g-main {
  grid-row: span 2;
  aspect-ratio: 1/1;
}
.gallery-grid .g-sm { aspect-ratio: 1/1; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.detail-content h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.7rem; }
.detail-content h2:first-child { margin-top: 0; }
.detail-content p { color: var(--charcoal-soft); }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 24px;
  margin-top: 8px;
}
.amenities-grid li {
  list-style: none;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; color: var(--charcoal);
  padding: 6px 0;
}
.amenities-grid svg { color: var(--teal); flex-shrink: 0; }

.booking-card {
  background: var(--cream);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.booking-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.booking-card .price-line {
  font-size: 0.95rem; color: var(--charcoal-soft);
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-line);
}
.booking-card .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.booking-card .platform-note {
  font-size: 0.82rem; color: var(--charcoal-soft);
  text-align: center; margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.nearby {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.nearby-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: var(--cream-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-line);
}
.nearby-item-icon {
  width: 44px; height: 44px;
  background: var(--cream); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0;
}
.nearby-item strong { display: block; font-size: 0.96rem; color: var(--charcoal); }
.nearby-item span { font-size: 0.84rem; color: var(--charcoal-soft); }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 { font-size: 1.3rem; margin-bottom: 6px; margin-top: 28px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info a { color: var(--charcoal-soft); }
.contact-info a:hover { color: var(--teal-deep); }
.contact-info-item {
  display: flex; gap: 14px; margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info-item-icon {
  width: 42px; height: 42px;
  background: var(--cream); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0;
}
.contact-form {
  background: var(--cream);
  padding: 40px;
  border-radius: var(--radius-lg);
}
.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label {
  display: block;
  font-size: 0.84rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--teal-darker); margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-sm);
  background: var(--cream-soft);
  font: inherit; color: var(--charcoal);
  transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--teal);
}
.form-row textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-darker);
  color: rgba(245, 241, 232, 0.85);
  padding: 70px 0 30px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}
.footer-brand img { width: 120px; height: 120px; object-fit: contain; margin-bottom: 14px; }
.footer-brand p { font-size: 0.95rem; max-width: 320px; }
.footer-col h4 {
  color: var(--cream-soft);
  font-family: var(--font-body);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col p {
  color: rgba(245, 241, 232, 0.78);
  font-size: 0.94rem;
}
.footer-col a:hover { color: var(--sand); }
.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(245, 241, 232, 0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream-soft);
  transition: all .2s;
}
.social-row a:hover {
  background: var(--sand); color: var(--teal-darker);
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(245, 241, 232, 0.14);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 0.85rem;
  color: rgba(245, 241, 232, 0.6);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  text-align: center;
  color: var(--cream-soft);
  padding: clamp(60px, 9vw, 110px) 0;
  isolation: isolate;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('../images/clearwater-sunset.jpg') center / cover no-repeat;
}
.cta-banner::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(20,74,82,0.85), rgba(46,139,150,0.7));
}
.cta-banner h2 { color: var(--cream-soft); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 2rem; }

/* ---------- About page ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.story-grid img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  margin-top: 48px;
}
.value-card {
  text-align: left;
  padding: 36px 32px;
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-line);
}
.value-card .feature-icon { background: var(--cream); margin-bottom: 22px; }
.value-card h3 { margin-bottom: 12px; }
.value-card p { color: var(--charcoal-soft); margin-bottom: 0; }

/* ---------- Wave divider ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  fill: var(--cream);
}

/* ---------- Mobile ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 64px 0 0 0;
    flex-direction: column; gap: 0;
    background: var(--cream-soft);
    padding: 28px 0;
    transform: translateX(100%);
    transition: transform .3s ease;
    border-top: 1px solid var(--gray-line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li {
    width: 100%; padding: 16px 0;
    border-bottom: 1px solid var(--gray-line);
    text-align: center;
  }
  .nav-cta { margin-top: 14px; }
  .two-col { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-grid .g-main { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-main { grid-column: auto; }
  .nav-cta { display: none; }
  .brand-tag { display: none; }
}
