/* ══════════════════════════════════════════════════════════════════════
   PHAROS THEME 2 — "Caspian night & lighthouse fire"
   Loaded last. Re-skins the whole site: palette, display serif, floating
   header, framed hero, cards, tiles, ticker, dark bands, footer.
   Remove this one <link> in includes/head.php to return to the old look.
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. Palette & shape tokens ─────────────────────────────────────── */
:root,
:root[data-theme="light"] {
  --navy: #052630;
  --navy2: #0c4a58;
  --gold: #c2661a;
  --gold2: #f4b65c;
  --stone: #f1f5f4;
  --stone2: #ffffff;
  --ink: #0a2029;
  --mut: #54686e;
  --line: #d9e4e4;
  --pomegranate: #b3262f;
  --teal: #0c6b78;
  --sh: 0 14px 40px rgba(5, 38, 48, .10);
  --sh-hover: 0 28px 60px rgba(5, 38, 48, .20);
  --r-md: 26px;
  --r-lg: 34px;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ph-orn: rgba(12, 107, 120, .16);
  --ph-glow-a: rgba(244, 182, 92, .22);
  --ph-glow-b: rgba(12, 107, 120, .16);
}
:root[data-theme="dark"] {
  --navy: #03151b;
  --navy2: #0a3a46;
  --gold: #f4b65c;
  --gold2: #ffd596;
  --stone: #041419;
  --stone2: #0a232c;
  --ink: #e9f2f0;
  --mut: #8fa9ad;
  --line: #17414c;
  --pomegranate: #c43641;
  --teal: #1f97a6;
  --sh: 0 14px 40px rgba(0, 0, 0, .5);
  --sh-hover: 0 28px 60px rgba(0, 0, 0, .7);
  --ph-orn: rgba(244, 182, 92, .12);
  --ph-glow-a: rgba(244, 182, 92, .10);
  --ph-glow-b: rgba(31, 151, 166, .18);
}

/* ── 2. Base: clean canvas, display serif headings ─────────────────── */
body { background-image: none; }
.bg-alt {
  background-image: none;
  background-color: color-mix(in srgb, var(--stone2) 70%, transparent);
  border-block: 1px solid var(--line);
}

html h1, html h2, html h3, html .h2, html .flogo, html .logo-title {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  letter-spacing: -.015em;
}
html h1 { font-weight: 800; line-height: 1.08; }
html h2, html .h2 { font-size: clamp(1.85rem, 4.4vw, 3.1rem); font-weight: 700; line-height: 1.14; }
html h3 { font-weight: 700; letter-spacing: -.01em; }
/* numbers and prices stay in the UI face for legibility */
html .pr b, html .ft b { font-family: var(--font-heading) !important; }

.lead { font-size: 1.1rem; max-width: 620px; }
.sec { padding-block: clamp(64px, 9vw, 120px); }

/* ── 3. Floating pill header ───────────────────────────────────────── */
header { padding: 14px 0; }
header.s { padding: 10px 0; }
header::before {
  inset: 6px 14px;
  border-radius: 99px;
  opacity: 1;
  background: rgba(3, 21, 27, .34);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, opacity .3s ease;
}
header.s::before {
  background: color-mix(in srgb, var(--stone2) 86%, transparent);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(5, 38, 48, .14);
}
header nav a { letter-spacing: .09em; font-size: .74rem; }
header nav a[aria-current="page"] { color: var(--gold2); }
html .logo-title { letter-spacing: .16em; font-weight: 800; }
@media (max-width: 720px) {
  header::before { inset: 4px 6px; border-radius: 22px; }
}

/* ── 4. Buttons: squircle instead of pill ──────────────────────────── */
.btn {
  border-radius: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .76rem;
  padding: 15px 26px;
}
header nav a.btn { padding: 11px 20px; border-radius: 99px; }
.btn.ghost { border-color: rgba(255, 255, 255, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ── 5. Home hero: framed, bottom-anchored, large serif ────────────── */
.hero { background: #03151b; }
.page-home .hero {
  margin: 10px;
  border-radius: 34px;
  min-height: calc(100svh - 20px);
  align-items: flex-end;
  padding: 150px 0 clamp(150px, 19vw, 250px);
  box-shadow: 0 30px 80px rgba(3, 21, 27, .28);
}
.page-home .hero-overlay {
  background:
    radial-gradient(80% 60% at 77% 100%, rgba(244, 182, 92, .22), transparent 62%),
    linear-gradient(180deg, rgba(3, 21, 27, .72) 0%, rgba(5, 38, 48, .30) 42%, rgba(3, 21, 27, .92) 100%);
}
.page-home .hero h1 {
  font-size: clamp(2.5rem, 6.6vw, 5.4rem);
  max-width: 920px;
  text-wrap: balance;
}
.page-home .hero h1 em { font-style: normal; }
.page-home .hero p {
  font-size: 1.12rem;
  max-width: 560px;
  padding-left: 18px;
  border-left: 2px solid var(--gold2);
  color: #d9e6e6;
}
.page-home .hero .eyebrow { letter-spacing: .3em; font-size: .7rem; margin-bottom: 18px; }
/* silhouette repainted in the new night colour; old page-coloured wave removed */
.mt [fill="#0d1b3a"] { fill: #03151b; }
.page-home .mt path[fill="var(--stone)"] { display: none; }
.page-home .mt { bottom: 0; }
/* Stats: dark glass strip with serif numerals */
.stats { margin-top: -72px; }
.sg {
  background: linear-gradient(135deg, rgba(5, 38, 48, .94), rgba(12, 74, 88, .90));
  border: 1px solid rgba(244, 182, 92, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(3, 21, 27, .35);
  padding-block: 24px;
}
html .st b {
  font-family: var(--font-heading) !important;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold2);
}
.st span { color: #b9cdcf; letter-spacing: .04em; }
.st + .st { border-left-color: rgba(255, 255, 255, .12); }

@media (max-width: 768px) {
  .page-home .hero {
    margin: 6px;
    border-radius: 22px;
    min-height: auto !important;
    padding: 108px 0 84px !important;
  }
  .page-home .hero h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.6rem) !important;
    line-height: 1.12 !important;
  }
  .page-home .hero p {
    font-size: 0.96rem !important;
    padding-left: 12px !important;
    margin: 14px 0 22px !important;
  }
  .page-home .hero .hero-scroll-btn {
    display: none !important;
  }
  .stats {
    margin-top: -28px !important;
  }
  .sg {
    padding: 18px 10px !important;
    border-radius: 20px !important;
  }
  html .st b {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
  }
}

/* ── 6. Ticker: sleek, compact luxury marquee bar ──────────────────── */
.tk {
  background: linear-gradient(90deg, rgba(3, 21, 27, .95), rgba(12, 74, 88, .90), rgba(3, 21, 27, .95));
  border-block: 1px solid rgba(244, 182, 92, .30);
  padding: 11px 0;
  margin-top: 22px;
  color: var(--gold2);
  box-shadow: 0 8px 24px rgba(3, 21, 27, .16);
}
.tk div {
  font: 600 clamp(.72rem, 1.4vw, .84rem)/1.35 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold2);
  -webkit-text-stroke: 0;
  animation-duration: 48s;
}

/* ── 7. Inner page heroes ──────────────────────────────────────────── */
.page-hero { border-radius: 0 0 32px 32px; }
.page-hero[style*="linear-gradient"] {
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(244, 182, 92, .30), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(179, 38, 47, .28), transparent 62%),
    linear-gradient(150deg, #03151b 0%, #0c4a58 100%) !important;
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); text-wrap: balance; }

/* ── 8. Tour cards & Case cards: framed photo, no carpet strip ─────── */
.card {
  border-radius: 26px;
  border-color: var(--line);
  box-shadow: var(--sh);
}
.card .rug { display: none; }
.card .img,
.card .case-figure {
  margin: 10px 10px 0;
  height: 235px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.card .case-figure {
  height: auto;
}
.card .case-figure img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  display: block;
}
.card .img::after { border-radius: inherit; }
.card .body { padding: 20px 22px 24px; }
.card h3 { font-size: 1.42rem; line-height: 1.15; }
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sh-hover);
    border-color: color-mix(in srgb, var(--gold2) 60%, transparent);
  }
}
.tag {
  background: rgba(255, 255, 255, .93);
  color: #0a2029;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .64rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.pr, .ft { padding-top: 14px; border-top: 1px dashed var(--line); }
.card .btn { padding: 12px 16px; font-size: .7rem; }

/* ── 9. Service tiles ──────────────────────────────────────────────── */
.three { counter-reset: sv; }
.sv {
  counter-increment: sv;
  text-align: left;
  padding: 28px 26px 26px;
  border-radius: 26px;
  background: color-mix(in srgb, var(--stone2) 88%, transparent);
}
.sv::before { display: none; }   /* old carpet strip */
.sv::after {
  content: "0" counter(sv);
  position: absolute;
  top: 14px;
  right: 22px;
  font: 700 3rem/1 var(--font-heading);
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--gold) 45%, transparent);
  pointer-events: none;
}
.sv-icon {
  width: 60px;
  height: 60px;
  margin: 0 0 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold2) 46%, transparent), color-mix(in srgb, var(--teal) 22%, transparent));
}
@media (hover: hover) and (pointer: fine) {
  .sv:hover { transform: translateY(-6px); border-color: var(--gold2); box-shadow: var(--sh-hover); }
}

/* ── 10. Chips, booking card ───────────────────────────────────────── */
.chip { border-radius: 12px; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.booking-card { border-radius: 28px; }

/* ── 11. Dark bands & footer ───────────────────────────────────────── */
section.dark {
  margin: 0 10px;
  border-radius: 34px;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(244, 182, 92, .22), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(179, 38, 47, .22), transparent 60%),
    linear-gradient(150deg, #03151b, #0c4a58);
  overflow: hidden;
}
footer {
  margin-top: 10px;
  background: linear-gradient(180deg, #03151b, #052630);
  overflow: hidden;
  position: relative;
}
footer .rug { opacity: .9; }
html .flogo { font-size: 1.5rem; letter-spacing: .1em; }
footer::after {
  content: "PHAROS";
  display: block;
  height: .64em;
  margin-top: 26px;
  overflow: hidden;
  text-align: center;
  font: 800 clamp(4.5rem, 21vw, 19rem)/.82 var(--font-heading);
  letter-spacing: .06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 182, 92, .26);
  pointer-events: none;
  user-select: none;
}
@media (max-width: 720px) {
  section.dark { margin: 0 6px; border-radius: 24px; }
}
