/* === Del Mar Inn — Quiet Luxury landing prototype === */
:root {
  --c-bg: #FAF7F2;
  --c-bg-alt: #F2EEE6;
  --c-text: #2A2622;
  --c-text-soft: #6B6660;
  --c-accent: #1565C0;
  --c-accent-dark: #0D47A1;
  --c-line: rgba(0,0,0,.08);
  --c-white: #FFFFFF;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 76px;
  --maxw: 1280px;
  --pad: clamp(16px, 4vw, 40px);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--c-accent); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0);
  backdrop-filter: blur(0);
  transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--c-white);
  z-index: 2;
}
.header.scrolled .logo { color: var(--c-text); }
.logo-mark {
  font-size: 28px;
  color: var(--c-accent);
}

.nav-menu {
  display: flex;
  gap: 32px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-white);
}
.header.scrolled .nav-menu { color: var(--c-text); }
.nav-menu a {
  position: relative;
  padding: 8px 0;
  transition: color .2s ease;
}
.nav-menu a:hover { color: var(--c-accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-white);
}
.header.scrolled .phone { color: var(--c-text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(21,101,192,.3);
}
.btn-primary:hover {
  background: var(--c-accent-dark);
  color: var(--c-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21,101,192,.4);
}
.btn-lg { padding: 16px 32px; font-size: 15px; }

.btn-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: .04em;
}
.btn-link:hover { color: var(--c-accent-dark); }

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  transition: transform .3s ease, opacity .2s ease, background .2s ease;
}
.header.scrolled .hamburger span { background: var(--c-text); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--c-white);
  text-align: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: .9;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-sub {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: .02em;
  margin-bottom: 40px;
  opacity: .95;
}

.booking-widget {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 8px;
  max-width: 920px;
  margin: 0 auto 32px;
  box-shadow: var(--shadow-lg);
}
.bw-field {
  background: var(--c-white);
  padding: 12px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--radius);
}
.bw-field label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  font-weight: 500;
}
.bw-field input,
.bw-field select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-text);
  font-weight: 500;
  outline: none;
  width: 100%;
  min-height: 24px;
  cursor: pointer;
}
.booking-widget .btn { border-radius: var(--radius); }

.social-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  letter-spacing: .04em;
  opacity: .95;
}
.social-proof strong { font-weight: 600; }
.social-proof .dot { opacity: .5; }

/* === USP STRIP === */
.usp {
  background: var(--c-white);
  padding: 60px 0;
  border-bottom: 1px solid var(--c-line);
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.usp-item svg {
  margin: 0 auto 16px;
  color: var(--c-accent);
}
.usp-item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.usp-item p {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.5;
}

/* === SECTIONS === */
.section {
  padding: clamp(60px, 10vw, 120px) 0;
}
.section-light { background: var(--c-bg-alt); }

.section-eyebrow {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.section-eyebrow.light { color: rgba(255,255,255,.85); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 48px;
}
.section-title.light { color: var(--c-white); }

/* === ROOMS === */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.room-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.room-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.room-card:hover .room-img img { transform: scale(1.05); }
.room-body { padding: 24px; }
.room-body h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}
.room-meta {
  font-size: 13px;
  color: var(--c-text-soft);
  margin-bottom: 16px;
}
.room-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.room-price { font-size: 14px; color: var(--c-text-soft); }
.room-price strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-text);
  margin: 0 2px;
}

/* === SPLIT SECTIONS === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-img img,
.split-map iframe {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.split-text .section-title { margin-bottom: 20px; }
.split-text > p { margin-bottom: 24px; color: var(--c-text-soft); }

.check-list { display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-accent);
  font-weight: 600;
}

/* === BEACH === */
.beach {
  position: relative;
  overflow: hidden;
}
.beach-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.beach-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.beach-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,40,80,.5) 0%, rgba(0,30,60,.7) 100%);
}
.beach-content {
  position: relative;
  z-index: 1;
  color: var(--c-white);
  text-align: center;
}
.beach-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 18px;
  font-weight: 300;
  opacity: .95;
}
.beach-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.bf-item {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  font-size: 14px;
  letter-spacing: .03em;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.05);
}

/* === OFFERS === */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.offer-card {
  position: relative;
  background: var(--c-white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.offer-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: var(--c-white);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  box-shadow: 0 4px 12px rgba(21,101,192,.3);
}
.offer-card h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -.005em;
}
.offer-card > p {
  color: var(--c-text-soft);
  margin-bottom: 24px;
  font-size: 15px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.countdown > div {
  background: var(--c-bg-alt);
  padding: 12px 16px;
  border-radius: var(--radius);
  min-width: 64px;
}
.countdown span {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--c-accent);
  line-height: 1;
}
.countdown small {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-top: 4px;
}

/* === REVIEWS === */
.rating-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  font-size: 16px;
  color: var(--c-text-soft);
}
.rating-strip strong {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--c-text);
  margin-right: 6px;
}
.rating-strip .dot { opacity: .4; }

.reviews-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--c-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.review-card .stars {
  color: #F4A300;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.review-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--c-text);
}
.review-card footer {
  font-size: 13px;
  color: var(--c-text-soft);
  letter-spacing: .02em;
}

/* === LOCATION === */
.location-list {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}
.location-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
}
.contacts-block p {
  margin-bottom: 8px;
  font-size: 15px;
}
.contacts-block a { color: var(--c-accent); }
.split-map iframe { border: none; }

/* === FOOTER === */
.footer {
  background: #1A1815;
  color: rgba(255,255,255,.75);
  padding: 80px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.logo-light { color: var(--c-white); margin-bottom: 16px; }
.footer-tagline {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  font-style: italic;
}
.footer h4 {
  color: var(--c-white);
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-list { display: grid; gap: 10px; }
.footer-list a, .footer-list li { font-size: 14px; }
.footer-list a:hover { color: var(--c-white); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  transition: background .2s ease, border-color .2s ease;
}
.footer-social a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 12px;
}
.prototype-mark {
  font-style: italic;
  opacity: .7;
}

/* === STICKY MOBILE BAR === */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--c-white);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  z-index: 90;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sb-price {
  font-size: 14px;
  color: var(--c-text-soft);
}
.sb-price strong {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--c-text);
  font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .nav-menu { gap: 24px; }
  .phone-text { display: none; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--c-text);
    font-size: 22px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1;
  }
  .nav-menu.open { transform: translateX(0); }

  .hamburger { display: flex; z-index: 2; }
  .phone { display: none; }
  .header .btn-primary { display: none; }
  .header.scrolled { background: rgba(250, 247, 242, .96); }

  .hero { padding: calc(var(--header-h) + 24px) 0 60px; }
  .hero-title { font-size: clamp(40px, 13vw, 80px); }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }

  .booking-widget {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 8px;
  }
  .bw-field { padding: 10px 14px; }
  .booking-widget .btn { width: 100%; }

  .social-proof { font-size: 13px; gap: 8px; }
  .social-proof .dot { display: none; }

  .usp-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .usp-item h3 { font-size: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer { padding: 60px 0 24px; }

  .beach-features { grid-template-columns: repeat(2, 1fr); }

  .sticky-bar { display: flex; }

  body { padding-bottom: 76px; }
}

@media (max-width: 480px) {
  .usp-grid { grid-template-columns: 1fr; }
  .beach-features { grid-template-columns: 1fr; }
  .countdown > div { padding: 8px 10px; min-width: 52px; }
  .countdown span { font-size: 22px; }
  .room-body { padding: 20px; }
  .offer-card { padding: 32px 24px; }
}
