/* ============================================================
   Valmera Charters Malta — styles
   Palette: deep navy, Mediterranean teal, warm sand
   ============================================================ */
:root {
  --navy: #0f2c4c;
  --navy-2: #143a63;
  --teal: #1b8a9c;
  --teal-2: #16a0b0;
  --sand: #f4ead9;
  --sand-2: #efe2cd;
  --ink: #12212f;
  --muted: #5b6b78;
  --paper: #ffffff;
  --paper-2: #f7f9fb;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --shadow: 0 10px 30px rgba(15, 44, 76, 0.12);
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 600; color: var(--teal); margin: 0 0 .6rem;
}
.eyebrow.center { display: block; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper-2); }
.section-intro { max-width: 620px; margin: 0 auto 2.5rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .8rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); }
.btn-whatsapp { background: var(--whatsapp); color: #06301f; }
.btn-whatsapp:hover { background: #1fc15c; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { color: var(--navy); background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(15,44,76,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(15,44,76,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand-mark { font-size: 1.6rem; }
.brand-text {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.25rem; color: var(--navy);
  display: flex; flex-direction: column; line-height: 1;
}
.brand-text small { font-family: "Inter", sans-serif; font-weight: 500; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-top: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(15,44,76,.2); border-radius: 999px;
  background: var(--paper-2); color: var(--navy);
  font: inherit; font-size: .85rem; font-weight: 600;
  padding: .45rem 1.6rem .45rem .8rem; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230f2c4c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center;
}
.lang-switch select:hover { border-color: var(--teal); }
.nav { display: none; gap: 1.4rem; }
.nav a { color: var(--navy); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--teal); }
.header-cta { display: flex; gap: .5rem; align-items: center; }
.header-cta .btn-ghost { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta .btn-ghost { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,44,76,.5), rgba(15,44,76,.72)),
    url('/assets/img/hero.jpg') center 35% / cover no-repeat,
    linear-gradient(160deg, #0f2c4c 0%, #143a63 40%, #1b8a9c 100%);
}
.hero-content { position: relative; padding-top: clamp(4rem, 12vw, 8rem); padding-bottom: clamp(3.5rem, 9vw, 6rem); max-width: 760px; }
.hero .eyebrow { color: #9fe3ec; }
.hero h1 { color: #fff; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: rgba(255,255,255,.92); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; list-style: none; padding: 0; margin: 0; }
.hero-trust li { color: rgba(255,255,255,.85); font-size: .95rem; }
.hero-trust strong { color: #fff; display: block; font-family: "Fraunces", serif; font-size: 1.4rem; }

/* ---------- Reviews badge (placeholder — enable with Business Profile) ---------- */
.reviews-badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: .5rem 1.1rem; color: #fff; font-size: .9rem;
}
.reviews-badge .stars { color: #ffd166; letter-spacing: .1em; }
.reviews-badge a { color: #9fe3ec; text-decoration: underline; }

/* ---------- Split ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; color: var(--ink); }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--teal); font-size: .95rem; top: 1px; }

/* ---------- Media placeholders ---------- */
.split-media { min-height: 340px; }
.media-placeholder {
  width: 100%; height: 100%; min-height: 220px; border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(27,138,156,.10) 0 12px, rgba(27,138,156,.04) 12px 24px),
    linear-gradient(160deg, var(--sand), var(--sand-2));
  border: 1px dashed rgba(15,44,76,.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(15,44,76,.45); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow);
}
.media-placeholder::after { content: attr(data-label) " · add photo"; }

/* ---------- Specs ---------- */
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
@media (min-width: 680px) { .specs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .specs-grid { grid-template-columns: repeat(6, 1fr); } }
.spec { background: var(--paper); border: 1px solid rgba(15,44,76,.08); border-radius: var(--radius); padding: 1.2rem 1rem; text-align: center; box-shadow: var(--shadow); }
.spec-num { display: block; font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--navy); }
.spec-label { display: block; font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(15,44,76,.06); }
.card-media { height: 190px; background: linear-gradient(160deg, var(--teal), var(--navy)); position: relative; }
.card-media::after { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-weight: 600; letter-spacing: .04em; }
.card-body { padding: 1.25rem 1.35rem 1.6rem; }
.card-body p { color: var(--muted); margin: 0; }

/* ---------- Included ---------- */
.included-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; max-width: 900px; margin: 1.5rem auto 0; }
@media (min-width: 760px) { .included-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.included-col { background: var(--paper); border: 1px solid rgba(15,44,76,.08); border-radius: var(--radius); padding: 1.75rem 1.75rem 1.25rem; box-shadow: var(--shadow); }
.included-col h3 { margin-bottom: 1rem; }
.included-col .ticks li { margin-bottom: .8rem; }

/* ---------- Calendar ---------- */
.calendar { max-width: 640px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; border: 1px solid rgba(15,44,76,.06); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-title { margin: 0; font-size: 1.3rem; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(15,44,76,.15); background: var(--paper-2); font-size: 1.3rem; color: var(--navy); cursor: pointer; line-height: 1; }
.cal-nav:hover:not(:disabled) { background: var(--teal); color: #fff; border-color: var(--teal); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1rem; font-size: .82rem; color: var(--muted); }
.cal-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.dot-open { background: var(--whatsapp); }
.dot-busy { background: #d9534f; }
.dot-past { background: #cbd4dc; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.cal-dow { margin-bottom: .35rem; }
.cal-dow div { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cal-cell { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: .95rem; font-weight: 500; position: relative; }
.cal-cell.empty { background: transparent; }
.cal-cell.open { background: rgba(37,211,102,.14); color: #0b6b3a; border: 1px solid rgba(37,211,102,.35); }
.cal-cell.busy { background: rgba(217,83,79,.12); color: #a23b38; border: 1px solid rgba(217,83,79,.3); text-decoration: line-through; }
.cal-cell.past { background: var(--paper-2); color: #aab6c0; }
.cal-cell.today { outline: 2px solid var(--teal); outline-offset: 1px; }
.cal-cell.open.clickable { cursor: pointer; }
.cal-cell.open.clickable:hover { background: var(--whatsapp); color: #06301f; }
.cal-note { text-align: center; color: var(--muted); font-size: .82rem; margin: 1rem 0 0; }
.cal-note.error { color: #a23b38; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 720px; margin: 1rem auto 0; }
@media (min-width: 680px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card { position: relative; background: var(--paper); border: 1px solid rgba(15,44,76,.1); border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: var(--shadow); text-align: center; }
.price-card.featured { border-color: var(--teal); border-width: 2px; }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: .72rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.price { font-family: "Fraunces", serif; font-size: 2.6rem; color: var(--navy); margin: .5rem 0 .1rem; }
.price-from { font-size: .9rem; color: var(--muted); font-family: "Inter", sans-serif; vertical-align: middle; margin-right: .25rem; }
.price-unit { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.price-card .ticks { text-align: left; display: inline-block; margin-bottom: 1.5rem; }
.fineprint { color: var(--muted); font-size: .82rem; margin-top: 1.5rem; }
.price-request { font-size: 1.8rem; padding: .35rem 0; }
.contact-email { margin-top: 1.25rem; }
.contact-email a { color: #9fe3ec; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid .media-placeholder { aspect-ratio: 4 / 3; min-height: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #9fe3ec; }
.contact .section-intro { color: rgba(255,255,255,.85); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0b2138; color: rgba(255,255,255,.75); padding: 2.5rem 0 6rem; }
.footer-inner { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } .footer-copy { grid-column: 1 / -1; } }
.footer-brand { color: #fff; }
.footer-brand small { color: #9fe3ec; }
.footer-tag { margin: .5rem 0 0; font-size: .9rem; }
.footer-contact { display: flex; flex-direction: column; gap: .35rem; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(15,44,76,.1);
}
.mobile-bar .btn { flex: 1; justify-content: center; }
@media (min-width: 900px) { .mobile-bar { display: none; } .site-footer { padding-bottom: 2.5rem; } }
