/* ============================================================
   Royalty Escapes — Mediterranean design system
   Palette: Aegean deep blue · sea azure · warm sand · sun coral
   Type: Cormorant Garamond (display) + Inter (body)
   Signature: arched "Santorini window" cards
   ============================================================ */

:root {
  /* Color */
  --aegean:      #0f3b4a;   /* deep sea blue — text & dark sections */
  --aegean-soft: #1d5468;
  --azure:       #2f8fab;   /* sea / links */
  --azure-light: #cfe4ea;
  --sand:        #efe6d3;   /* warm sand background */
  --sand-deep:   #e4d6ba;
  --plaster:     #fbf8f1;   /* off-white */
  --coral:       #db6a44;   /* sun accent — used sparingly */
  --coral-deep:  #c4552f;
  --ink:         #16282f;
  --muted:       #5e7480;

  /* Type */
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.2rem, 4vw, 3rem);
  --radius: 14px;

  --shadow: 0 14px 40px -18px rgba(15, 59, 74, 0.45);
  --shadow-soft: 0 6px 22px -14px rgba(15, 59, 74, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--plaster);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--azure); text-decoration: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; color: var(--aegean); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--coral-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  cursor: pointer; border: none; transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--plaster); border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--aegean); border: 1.5px solid var(--aegean); }
.btn-outline:hover { background: var(--aegean); color: #fff; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-deep);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.9rem; gap: 1rem;
}
.brand { display: flex; align-items: baseline; gap: 0.55rem; }
.brand .mark { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--aegean); letter-spacing: .01em; }
.brand .sub { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; list-style: none; }
.nav-links a { color: var(--aegean); font-weight: 500; font-size: 0.94rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--coral); transition: width .22s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--aegean); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: min(82vh, 720px);
  display: flex; align-items: flex-end;
  color: var(--plaster); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(15,59,74,.25), rgba(15,59,74,.85)),
              url("https://images.unsplash.com/photo-1533105079780-92b9be482077?q=80&w=2000&auto=format&fit=crop") center/cover;
  transform: scale(1.04);
}
.hero-inner { position: relative; padding-bottom: clamp(3rem, 8vw, 6rem); padding-top: 6rem; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--azure-light); }
.hero p { font-size: clamp(1.05rem, 2.5vw, 1.3rem); margin-top: 1.2rem; max-width: 46ch; color: rgba(255,255,255,.9); }
.hero .actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .eyebrow { color: var(--azure-light); }

/* thin coastline divider — the signature horizon line */
.horizon {
  height: 0; border: none; position: relative; margin: 0;
}
.horizon::before {
  content: ""; display: block; height: 38px;
  background: var(--plaster);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 L0,20 C150,5 350,35 600,18 C850,2 1050,30 1200,16 L1200,40 Z' fill='black'/%3E%3C/svg%3E") bottom/100% 40px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 L0,20 C150,5 350,35 600,18 C850,2 1050,30 1200,16 L1200,40 Z' fill='black'/%3E%3C/svg%3E") bottom/100% 40px no-repeat;
  margin-top: -38px;
}

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 620px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 0.6rem; }
.section-head p { color: var(--muted); margin-top: 0.8rem; }

/* ============================================================
   Package cards — arched "window" signature
   ============================================================ */
.card-grid {
  display: grid; gap: 1.8rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.pkg-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
  border: 1px solid var(--sand-deep);
}
.pkg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pkg-media {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  /* the arched top — Cycladic doorway/window */
  border-radius: 140px 140px 0 0;
  margin: 10px 10px 0;
}
.pkg-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pkg-card:hover .pkg-media img { transform: scale(1.06); }
.pkg-tag {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  background: rgba(251,248,241,.92); color: var(--aegean);
  font-size: 0.72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 999px;
}
.pkg-body { padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; text-align: center; }
.pkg-body h3 { font-size: 1.45rem; }
.pkg-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.pkg-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pkg-summary { color: var(--ink); margin-top: 0.8rem; font-size: 0.95rem; flex: 1; }
.pkg-card .btn { margin-top: 1.2rem; align-self: center; }

/* ============================================================
   Steps / how it works
   ============================================================ */
.steps { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  background: var(--plaster); border: 1px solid var(--sand-deep);
  border-radius: var(--radius); padding: 2rem 1.6rem;
}
.step .num {
  font-family: var(--display); font-size: 2.4rem; color: var(--coral); font-weight: 600;
  line-height: 1;
}
.step h3 { font-size: 1.3rem; margin-top: 0.6rem; }
.step p { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }

/* ============================================================
   Trust band (dark Aegean)
   ============================================================ */
.band { background: var(--aegean); color: var(--plaster); }
.band h2 { color: #fff; }
.band .section-head p { color: rgba(255,255,255,.78); }
.band-grid { display: grid; gap: 2rem; grid-template-columns: 1.1fr 1fr; align-items: center; }
.band-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-top: 1.8rem; }
.band-stats .stat .n { font-family: var(--display); font-size: 2.8rem; color: var(--azure-light); }
.band-stats .stat .l { font-size: 0.85rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.band-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.band-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Categories
   ============================================================ */
.cat-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.cat {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-soft);
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(15,59,74,.8)); }
.cat span { position: relative; z-index: 1; padding: 1.3rem; font-family: var(--display); font-size: 1.5rem; }
.cat:hover img { transform: scale(1.07); }

/* ============================================================
   CTA contact strip
   ============================================================ */
.contact-cta {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff; text-align: center; border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
}
.contact-cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact-cta p { margin-top: .8rem; opacity: .92; }
.contact-cta .actions { margin-top: 1.8rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-cta .btn-primary { background: #fff; color: var(--coral-deep); }
.contact-cta .btn-primary:hover { background: var(--plaster); }
.contact-cta .btn-ghost { border-color: rgba(255,255,255,.8); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--aegean); color: rgba(255,255,255,.8); padding-block: 3rem 2rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h4 { font-family: var(--body); color: #fff; font-size: 0.95rem; letter-spacing: .04em; margin-bottom: .9rem; text-transform: uppercase; }
.site-footer a { color: var(--azure-light); }
.site-footer .mark { font-family: var(--display); font-size: 1.6rem; color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.4rem; padding-top: 1.4rem; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   Package detail page
   ============================================================ */
.detail-hero { position: relative; min-height: 56vh; display: flex; align-items: flex-end; color: #fff; }
.detail-hero .hero-bg { background-position: center; }
.detail-hero .crumb { color: var(--azure-light); font-size: .85rem; }
.detail-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: .5rem; }
.detail-meta { display: flex; gap: 1.4rem; margin-top: 1rem; flex-wrap: wrap; font-size: .95rem; color: rgba(255,255,255,.9); }

.detail-body { display: grid; gap: 3rem; grid-template-columns: 1.7fr 1fr; align-items: start; }
.detail-main h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.detail-main h2:not(:first-child) { margin-top: 2.4rem; }
.list-check { list-style: none; display: grid; gap: .6rem; }
.list-check li { position: relative; padding-left: 1.7rem; }
.list-check li::before { content: "✦"; position: absolute; left: 0; color: var(--coral); }
.list-x li::before { content: "—"; color: var(--muted); }

.itin { display: grid; gap: 0; margin-top: .6rem; }
.itin-item { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--sand-deep); }
.itin-day { font-family: var(--display); font-weight: 600; color: var(--coral); font-size: 1.1rem; white-space: nowrap; }
.itin-item h4 { font-family: var(--body); font-size: 1.05rem; color: var(--aegean); }
.itin-item p { color: var(--muted); font-size: .94rem; margin-top: .2rem; }

.detail-aside {
  position: sticky; top: 90px;
  background: #fff; border: 1px solid var(--sand-deep); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-soft);
}
.detail-aside h3 { font-size: 1.4rem; }
.detail-aside .price { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.detail-aside .deps { margin-top: 1.2rem; display: grid; gap: .4rem; }
.detail-aside .deps span { background: var(--sand); border-radius: 8px; padding: .4rem .7rem; font-size: .9rem; }
.detail-aside .btn { width: 100%; justify-content: center; margin-top: 1.2rem; }
.detail-aside .small { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .8rem; }

/* ============================================================
   Filters (packages page)
   ============================================================ */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.filter {
  border: 1.5px solid var(--sand-deep); background: #fff; color: var(--aegean);
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 500;
  transition: all .18s ease;
}
.filter:hover { border-color: var(--coral); }
.filter.active { background: var(--aegean); color: #fff; border-color: var(--aegean); }

/* ============================================================
   Loading / empty
   ============================================================ */
.state { text-align: center; color: var(--muted); padding: 3rem 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .band-grid, .detail-body { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .detail-aside { position: static; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--plaster); flex-direction: column; align-items: flex-start;
    padding: 1.2rem var(--gutter); gap: 1rem; border-bottom: 1px solid var(--sand-deep);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

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

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
