/* ============================================================
   The Crescent Beach Hotel & Leisure Resort — Baku
   Palette: Caspian deep-blue + teal, warm sand, gold accent
   ============================================================ */

:root {
  --deep:      #0a3d62;   /* Caspian deep blue */
  --sea:       #1f6f8b;   /* mid teal-blue */
  --sea-light: #6fb3c4;
  --sand:      #f4ece1;   /* warm off-white */
  --sand-deep: #e8dcc8;
  --gold:      #c9a14a;   /* accent */
  --gold-dark: #a8842f;
  --ink:       #1c2733;
  --muted:     #5b6b78;
  --white:     #ffffff;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(10, 61, 98, 0.45);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--deep); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }

a { color: var(--sea); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  border: 1.5px solid transparent;
}
.btn-book {
  background: var(--gold);
  color: var(--deep);
  box-shadow: 0 10px 24px -12px rgba(201, 161, 74, .9);
}
.btn-book:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); color: var(--white); transform: translateY(-2px); }

.eyebrow {
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: .8rem;
}

.link-arrow { font-weight: 500; letter-spacing: .02em; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-deep);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--deep); }
.crescent { color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--deep); }
.brand-sub { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--ink); font-size: .92rem; font-weight: 400; letter-spacing: .02em; }
.nav-links a:hover { color: var(--gold-dark); }
.nav-cta { color: var(--deep) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--deep); transition: .3s; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(ellipse at 70% 20%, rgba(111,179,196,.35), transparent 55%),
    linear-gradient(160deg, #062a45 0%, #0a3d62 45%, #1f6f8b 100%);
  overflow: hidden;
}
/* sun/moon glow */
.hero::before {
  content: ""; position: absolute; top: 12%; right: 14%;
  width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,161,74,.55), rgba(201,161,74,0) 70%);
  filter: blur(4px);
}
/* subtle water shimmer at the base */
.hero-overlay {
  position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(to top, rgba(6,42,69,.65), transparent);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 2rem 1.5rem; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: .4rem 0 1.2rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.25);
}
.hero .eyebrow { color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 300; max-width: 580px; margin: 0 auto 2rem; opacity: .95; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 1.5rem; z-index: 2;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ============ FACTS BAR ============ */
.facts {
  background: var(--deep);
  color: var(--white);
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center;
  max-width: var(--maxw);
  margin: -3.5rem auto 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative; z-index: 5;
  overflow: hidden;
}
.fact { padding: 1.8rem 1rem; border-right: 1px solid rgba(255,255,255,.12); }
.fact:last-child { border-right: 0; }
.fact-num { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--gold); }
.fact-label { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

/* ============ SECTIONS ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem; }
.section.alt { max-width: none; background: var(--white); }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-intro { color: var(--muted); margin-top: 1rem; }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-text p { margin-bottom: 1.1rem; color: var(--ink); }
.about-text .link-arrow { display: inline-block; margin-top: .6rem; }

/* ---------- image placeholders ---------- */
.img-placeholder {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    linear-gradient(160deg, var(--sea) 0%, var(--deep) 100%);
  min-height: 240px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.img-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px);
}
.img-placeholder::after {
  content: attr(data-caption);
  position: relative;
  padding: .7rem 1rem;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: linear-gradient(to top, rgba(6,42,69,.7), transparent);
  width: 100%;
}
.img-tall { min-height: 460px; }
.img-wide { min-height: 220px; }

/* ============ ROOMS ============ */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.room-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 14px 34px -22px rgba(10,61,98,.5);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.section.alt .room-card { background: var(--sand); }
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-card .img-placeholder { border-radius: 0; min-height: 180px; box-shadow: none; }
.room-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.room-body p { color: var(--muted); font-size: .95rem; }
.room-feats { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.room-feats li {
  font-size: .74rem; letter-spacing: .04em;
  background: rgba(31,111,139,.1); color: var(--sea);
  padding: .3rem .65rem; border-radius: 999px;
}

/* ============ LEISURE ============ */
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.amenity {
  background: var(--white); border: 1px solid var(--sand-deep);
  border-radius: var(--radius); padding: 1.8rem 1.4rem; text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.amenity:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.amenity-icon { font-size: 2rem; margin-bottom: .7rem; }
.amenity h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.amenity p { font-size: .9rem; color: var(--muted); }

/* ============ DINING ============ */
.dining-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.dining-card { border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: 0 14px 34px -22px rgba(10,61,98,.5); }
.dining-card .img-placeholder { border-radius: 0; box-shadow: none; }
.dining-body { padding: 1.4rem; }
.dining-body p { color: var(--muted); margin-top: .5rem; font-size: .95rem; }

/* ============ GALLERY ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid .img-placeholder { min-height: 230px; }

/* ============ CONTACT ============ */
.contact-list { list-style: none; margin: 1.6rem 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .7rem; }
.ci { flex: none; }
.contact-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.contact .btn-ghost { color: var(--deep); border-color: var(--deep); }
.contact .btn-ghost:hover { background: var(--deep); color: var(--white); }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ============ FOOTER ============ */
.site-footer { background: var(--deep); color: rgba(255,255,255,.85); padding: 3rem 1.5rem 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; display: grid; gap: 1.4rem; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; font-family: var(--serif); font-size: 1.2rem; color: var(--white); }
.footer-links { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.8); font-size: .9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-fine { font-size: .8rem; opacity: .65; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .card-grid, .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .dining-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .section-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .img-tall { min-height: 320px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--sand-deep);
    padding: .5rem 1.5rem 1.2rem;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--sand-deep); }
  .nav-cta { margin-top: .8rem; text-align: center; border-bottom: 0 !important; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: -2.5rem; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .card-grid, .amenity-grid, .dining-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
