/* San Teodoro Beach Villa v3 — shared: fonts, colours, header, footer, buttons.
   Loaded on every page. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --sv-ink: #0e2a3b;
  --sv-deep: #0b2533;
  --sv-deeper: #081c28;
  --sv-ground: #f3f8f7;
  --sv-white: #ffffff;
  --sv-mint: #ddf1ed;
  --sv-mint-ink: #0b5f61;
  --sv-sea: #0a7a7c;
  --sv-accent: #b8136c;
  --sv-accent-dark: #970f58;
  --sv-blush: #ffd9ec;
  --sv-blush-soft: #f7dceb;
  --sv-mist: #bfe3dd;
  --sv-pale: #d7e6ea;
  --sv-line: #b9ccd0;
  --sv-muted: #5b6f79;
  --sv-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sv-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sv-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --sv-gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sv-ground); color: var(--sv-ink); font-family: var(--sv-body); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; }
#book, #contact-form, #enquiry-status { scroll-margin-top: 24px; }

:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--sv-sea); outline-offset: 2px; }

.sv-skip { position: fixed; left: 10px; top: -100px; z-index: 9999; padding: 10px 16px; background: var(--sv-deep); color: #fff; border-radius: 8px; text-decoration: none; }
.sv-skip:focus { top: 10px; }

/* Buttons */
.sv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--sv-accent); color: #fff; font-family: var(--sv-body); font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.sv-btn:hover { background: var(--sv-accent-dark); color: #fff; transform: translateY(-1px); }
.sv-btn-small { min-height: 46px; padding: 0 22px; font-size: 15px; }
.sv-btn-big { min-height: 60px; padding: 0 34px; font-size: 18px; }

/* Header */
.sv-header { position: relative; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 18px var(--sv-gutter); background: var(--sv-ground); color: var(--sv-ink); }
.sv-header-over { position: absolute; top: 0; left: 0; right: 0; background: transparent; color: #fff; }
.admin-bar .sv-header-over { top: 32px; }
@media (max-width: 782px) { .admin-bar .sv-header-over { top: 46px; } }

.sv-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.sv-brand-mark { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; overflow: hidden; }
.sv-brand-mark img { width: 74px; height: 74px; max-width: none; margin: -6px 0 0 -11px; }
.sv-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.sv-brand-text strong { font-family: var(--sv-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.sv-brand-text small { font-size: 13px; opacity: .9; }

.sv-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.sv-nav a { padding: 12px 0; color: inherit; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.sv-nav a:hover { border-bottom-color: currentColor; }

.sv-actions { display: flex; align-items: center; gap: 14px; }
.sv-langs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--sv-line); background: var(--sv-white); }
.sv-langs a { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; border-radius: 999px; color: var(--sv-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.sv-langs a:hover { background: var(--sv-mint); }
.sv-langs a[aria-current] { background: var(--sv-ink); color: #fff; }
.sv-header-over .sv-langs { border-color: rgba(255, 255, 255, .35); background: rgba(8, 28, 40, .55); }
.sv-header-over .sv-langs a { color: #fff; }
.sv-header-over .sv-langs a:hover { background: rgba(255, 255, 255, .18); }
.sv-header-over .sv-langs a[aria-current] { background: #fff; color: var(--sv-ink); }

.sv-menu { display: none; position: relative; }
.sv-menu summary { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; padding: 0 12px; border-radius: 50%; border: 1px solid var(--sv-line); background: var(--sv-white); cursor: pointer; list-style: none; }
.sv-menu summary::-webkit-details-marker { display: none; }
.sv-menu summary span { display: block; height: 2px; border-radius: 2px; background: var(--sv-ink); transition: transform .2s, opacity .2s; }
.sv-menu[open] summary span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.sv-menu[open] summary span:nth-child(2) { opacity: 0; }
.sv-menu[open] summary span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.sv-menu-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(340px, calc(100vw - 32px)); padding: 22px; border-radius: 22px; background: var(--sv-white); color: var(--sv-ink); box-shadow: 0 30px 80px rgba(11, 37, 51, .28); display: flex; flex-direction: column; gap: 18px; }
.sv-menu-panel nav { display: flex; flex-direction: column; }
.sv-menu-panel nav a { padding: 12px 0; border-bottom: 1px solid var(--sv-line); color: var(--sv-ink); font-family: var(--sv-display); font-size: 20px; font-weight: 700; text-decoration: none; }
.sv-menu-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sv-menu-langs a { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 12px; background: var(--sv-ground); color: var(--sv-ink); font-size: 14px; text-decoration: none; }
.sv-menu-langs a[aria-current] { background: var(--sv-ink); color: #fff; }

@media (max-width: 1120px) {
  .sv-nav { display: none; }
  .sv-menu { display: block; }
}
@media (max-width: 720px) {
  .sv-header { padding-block: 14px; }
  .sv-langs, .sv-header-cta { display: none; }
  .sv-brand-mark { width: 46px; height: 46px; }
  .sv-brand-mark img { width: 66px; height: 66px; margin: -6px 0 0 -10px; }
  .sv-brand-text strong { font-size: 17px; }
  .sv-brand-text small { font-size: 12px; }
}

/* Footer (text carried over from v2) */
.sv-wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: clamp(20px, 3vw, 40px); }
.sv-footer { background: var(--sv-deeper); color: #fff; padding: 64px 0 32px; font-size: 15px; }
.sv-footer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.sv-footer a:hover { color: var(--sv-blush); text-decoration-color: currentColor; }
.sv-footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.sv-footer-main > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sv-footer-main > div > a { padding: 6px 0; }
.sv-footer-brand img { display: none; }
.sv-footer h3 { margin: 0 0 8px; font-family: var(--sv-display); font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.sv-footer h3 em { font-family: var(--sv-serif); font-style: italic; font-weight: 400; }
.sv-footer h4 { margin: 0 0 6px; font-family: var(--sv-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sv-mist); }
.sv-footer p { margin: 0 0 6px; line-height: 1.6; color: var(--sv-pale); }
.sv-footer .cin { margin-top: 6px; }
.sv-footer-bottom.sv-wrap { width: min(1200px, calc(100% - 2 * clamp(20px, 3vw, 40px))); padding-inline: 0; }
.sv-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 14px; color: var(--sv-pale); }
.sv-footer-bottom > span:nth-child(2) { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sv-footer-bottom > a:last-child { margin-left: auto; }
.sv-footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) { .sv-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sv-footer-main { grid-template-columns: minmax(0, 1fr); } }

/* Phone booking bar */
.sv-bar { display: none; }
@media (max-width: 720px) {
  .sv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--sv-deeper); color: #fff; box-shadow: 0 -10px 30px rgba(8, 28, 40, .25); }
  .sv-bar span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .sv-bar strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sv-bar small { font-size: 12px; color: var(--sv-pale); }
  .sv-bar .sv-btn { flex: none; }
  .sv-bar { transition: transform .25s ease; }
  .sv-bar.is-hidden { transform: translateY(110%); }
  body { padding-bottom: 72px; }
}

/* Form notices */
.sv-notice { margin: 0 0 20px; padding: 14px 18px; border-radius: 14px; font-weight: 500; }
.sv-notice-ok { background: #d9f2e3; color: #0c4a2c; }
.sv-notice-error { background: #fde2e2; color: #7a1414; }

/* Sections fade in as they are reached — only when scripts run. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sv-btn { transition: none; }
}

.sv-footer .cin { color: #fff; font-family: var(--sv-body); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
