/* =========================================================
   Conellian Beach House — shared stylesheet (all pages, all languages)
   ========================================================= */

:root {
  --ink: #2c2c2c;
  --muted: #5f5f5f;
  --soft: #f6f4f0;
  --line: #e6e1d8;
  --nav: #2f2f2f;
  --accent: #e05a00;
  --accent-dark: #b84a00;
  --sea: #1f5f7a;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: #333; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* ---------- Header / logo ---------- */
.site-header { background: var(--soft); border-bottom: 1px solid var(--line); }
.logo-link { display: block; width: max-content; margin: 0 auto; padding: 14px 0 10px; }
.logo-link img { height: clamp(86px, 13vw, 165px); width: auto; }

/* ---------- Navigation ---------- */
.navbar { background: var(--nav); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 16px;
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  position: relative;
}
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: nowrap; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a {
  display: block; color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 16px 11px; white-space: nowrap;
}
.menu a:hover, .menu a:focus-visible { color: #ffb37a; }
.menu a[aria-current="page"] { color: #ffb37a; box-shadow: inset 0 -3px 0 #ff8a3d; }
.sub-toggle {
  background: none; border: 0; color: #fff; cursor: pointer;
  padding: 16px 6px 16px 0; margin-left: -6px; font-size: .8rem; line-height: 1;
}
.sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.submenu {
  list-style: none; margin: 0; padding: 6px 0;
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border-radius: 0 0 8px 8px; box-shadow: var(--shadow);
  display: none; z-index: 110;
}
.submenu a { color: var(--ink); padding: 10px 18px; font-weight: 500; }
.submenu a:hover, .submenu a:focus-visible { background: var(--soft); color: var(--accent-dark); }
.submenu a[aria-current="page"] { color: var(--accent-dark); box-shadow: none; }
@media (hover: hover) and (min-width: 1241px) {
  .menu > li:hover > .submenu { display: block; }
}
.menu > li:focus-within > .submenu,
.menu > li.open > .submenu { display: block; }
.menu > li.open > .sub-toggle svg { transform: rotate(180deg); }

/* Language switcher */
.lang { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.lang a { display: block; line-height: 0; border-radius: 3px; opacity: .65; transition: opacity .2s, transform .2s; outline-offset: 3px; }
.lang a:hover, .lang a:focus-visible { opacity: 1; transform: translateY(-1px); }
.lang a[aria-current="true"] { opacity: 1; outline: 2px solid #ffb37a; }
.lang img { width: 27px; height: 18px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }

/* Hamburger */
.menu-toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer;
  padding: 10px 6px; align-items: center; gap: 10px; font: 600 .95rem var(--sans);
}
.burger, .burger::before, .burger::after {
  display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .25s, background .25s;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.nav-open .burger { background: transparent; }
.nav-open .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-inner { justify-content: space-between; }
  .menu-toggle { display: flex; }
  .menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--nav);
    max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto; border-top: 1px solid #444;
    box-shadow: 0 10px 20px rgba(0,0,0,.25);
  }
  .nav-open .menu { display: flex; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid #424242; }
  .menu > li > a { flex: 1; padding: 14px 20px; font-size: 1.02rem; }
  .menu a[aria-current="page"] { box-shadow: inset 4px 0 0 #ff8a3d; }
  .sub-toggle { padding: 14px 20px; margin: 0; border-left: 1px solid #424242; }
  .sub-toggle svg { width: 14px; height: 14px; }
  .submenu {
    position: static; width: 100%; min-width: 0; box-shadow: none; border-radius: 0;
    background: #262626; padding: 0;
  }
  .menu > li:focus-within > .submenu { display: none; }
  .menu > li.open > .submenu { display: block; }
  .submenu a { color: #e8e8e8; padding: 12px 20px 12px 38px; font-weight: 500; }
  .submenu a:hover, .submenu a:focus-visible { background: #333; color: #ffb37a; }
  .submenu a[aria-current="page"] { color: #ffb37a; }
  .lang { margin-left: 0; gap: 12px; }
  .lang img { width: 30px; height: 20px; }
}

/* ---------- Heroes ---------- */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; min-height: 72vh; min-height: 72svh; padding: 60px 20px;
  background: #555 var(--bg-sm, none) center / cover no-repeat;
}
@media (min-width: 721px) { .hero { background-image: var(--bg, none); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.5)); }
.hero > div { position: relative; z-index: 1; max-width: 860px; }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); margin-bottom: .3em; }
.hero p { font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin-bottom: 1.4em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero.small { min-height: 34vh; min-height: 34svh; padding: 48px 20px; }
.hero.small h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 0; }
.hero.small p { margin: .4em 0 0; font-size: clamp(1rem, 2vw, 1.25rem); }

/* ---------- Layout ---------- */
.container { width: min(1160px, 92%); margin: 0 auto; }
.narrow { width: min(820px, 92%); margin: 0 auto; }
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section.alt { background: var(--soft); }
.section-title { text-align: center; margin-bottom: .4em; }
.section-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 2.2em; }
.lead { font-size: 1.12rem; color: #444; }
.center { text-align: center; }
.muted { color: var(--muted); }
.breadcrumb { font-size: .9rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumb a { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card p { color: #4a4a4a; font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }

.feature { padding: 22px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.feature .ico { width: 42px; height: 42px; color: var(--sea); margin-bottom: 10px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

.split { display: grid; gap: clamp(22px, 4vw, 48px); align-items: center; grid-template-columns: 1fr 1fr; }
.split + .split { margin-top: clamp(36px, 6vw, 64px); }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.split.reverse > :first-child { order: 2; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.checklist { list-style: none; padding: 0; columns: 2 260px; column-gap: 32px; }
.checklist li { padding: 6px 0 6px 30px; position: relative; break-inside: avoid; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 13px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--sea); border-bottom: 2.5px solid var(--sea); transform: rotate(-45deg);
}

.note { background: #fff7ef; border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 6px; }

.place { padding: 20px 0; border-bottom: 1px solid var(--line); }
.place:last-child { border-bottom: 0; }
.place h3 { margin-bottom: .25em; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--sea); background: #e8f1f4; border-radius: 20px; padding: 2px 10px; margin-bottom: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font: 600 1rem var(--sans); padding: 13px 26px; border-radius: 40px; border: 2px solid var(--accent);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s; text-align: center;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.outline { background: transparent; color: var(--accent-dark); }
.btn.outline:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Rating / reviews ---------- */
.rating { text-align: center; }
.rating-number { display: inline-flex; align-items: center; gap: 10px; font: 700 clamp(3.6rem, 10vw, 5.6rem)/1 var(--serif); color: var(--accent); }
.rating-number img { height: clamp(64px, 12vw, 100px); width: auto; }
.rating h2 { margin: .4em 0 .2em; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-dark); margin-top: 6px; }
.badge img { height: 36px; width: auto; }

.quotes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0; position: relative; }
.quote::before { content: "\201C"; font: 700 3.6rem/1 var(--serif); color: #f0c7a6; position: absolute; top: 6px; left: 14px; }
.quote p { position: relative; margin: 14px 0 10px; color: #444; }
.quote cite { font-style: normal; font-weight: 600; color: var(--muted); font-size: .92rem; }

.year-group { margin-top: 38px; }
.year-group h2 { border-bottom: 2px solid var(--line); padding-bottom: 8px; }

/* ---------- Gallery ---------- */
.gallery-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.gallery-nav a { text-decoration: none; border: 1px solid var(--line); border-radius: 30px; padding: 6px 16px; font-weight: 600; font-size: .92rem; color: var(--ink); background: #fff; }
.gallery-nav a:hover { border-color: var(--accent); color: var(--accent-dark); }
.gallery-section { padding-top: 26px; scroll-margin-top: calc(var(--nav-h) + 10px); }
.gallery-section h2 { text-align: center; }
.mosaic {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-rows: 190px; grid-auto-flow: dense;
}
.mosaic a { display: block; overflow: hidden; border-radius: 8px; background: #eee; }
.mosaic a.tall { grid-row: span 2; }
.mosaic a.wide { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mosaic a:hover img { transform: scale(1.04); }
@media (max-width: 560px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 6px; }
  .mosaic a.wide { grid-column: span 2; }
}
.strip { display: grid; gap: 8px; grid-template-columns: repeat(6, 1fr); }
.strip a { border-radius: 8px; overflow: hidden; }
.strip img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .3s; }
.strip a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(3, 1fr); } }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(10,10,10,.94); z-index: 1000; display: none; align-items: center; justify-content: center; touch-action: pan-y; }
.lb.open { display: flex; }
.lb figure { margin: 0; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lb img { max-width: 94vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; user-select: none; }
.lb figcaption { color: #ddd; margin-top: 10px; font-size: .95rem; text-align: center; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 48px; padding: 0; }
.lb button:hover { background: rgba(255,255,255,.25); }
.lb .lb-close { top: 14px; right: 14px; }
.lb .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 16px; transform: none; } }
body.lb-lock { overflow: hidden; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 4px; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #cfc8bc; border-radius: 8px; background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--sea); margin-top: 4px; }
.contact-list a { word-break: break-word; }

/* ---------- CTA band ---------- */
.cta { background: var(--sea); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #e6f0f3; max-width: 640px; margin: 0 auto 1.4em; }
.cta .btn.ghost:hover { color: var(--sea); }

/* ---------- Footer ---------- */
.site-footer { background: #222; color: #bdbdbd; font-size: .95rem; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding: 46px 0 26px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8em; }
.site-footer a { color: #e3e3e3; text-decoration: none; }
.site-footer a:hover { color: #ffb37a; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .bottom { border-top: 1px solid #383838; padding: 16px 0 22px; text-align: center; font-size: .86rem; color: #9a9a9a; }
.site-footer .footer-logo { height: 70px; width: auto; filter: invert(1); opacity: .85; margin-bottom: 10px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.mosaic a.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 560px) { .mosaic a.big { grid-row: span 2; } }

/* ---------- WhatsApp ---------- */
.btn.wa { background: #1f9e55; border-color: #1f9e55; color: #fff; }
.btn.wa:hover, .btn.wa:focus-visible { background: #17803f; border-color: #17803f; color: #fff; }
.btn-ico { width: 20px; height: 20px; flex: none; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  display: inline-flex; align-items: center; gap: 8px;
  background: #1f9e55; color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 18px 12px 14px; border-radius: 40px; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s, background .2s;
}
.wa-float:hover { background: #17803f; color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .wa-float { padding: 14px; right: 14px; bottom: 14px; } .wa-float span { display: none; } }
body.lb-lock .wa-float { display: none; }

/* ---------- Compact header (small crest + wordmark in one bar) ---------- */
.navbar.compact { background: #fff; box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(0,0,0,.05); }
.navbar.compact .nav-inner { max-width: 1320px; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 40px; width: auto; }
.brand-name { display: block; font: 600 1.25rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: #2b2b2b; }
.brand-sub { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand:hover .brand-name { color: var(--accent-dark); }
.navbar.compact .menu a { color: var(--ink); }
.navbar.compact .menu > li > a { padding: 23px 10px; }
.navbar.compact .submenu a { padding: 10px 18px; }
.navbar.compact .menu a:hover, .navbar.compact .menu a:focus-visible, .navbar.compact .menu a[aria-current="page"] { color: var(--accent-dark); }
.navbar.compact .menu > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.navbar.compact .submenu a[aria-current="page"] { box-shadow: none; background: var(--soft); }
.navbar.compact .sub-toggle { color: var(--ink); padding: 23px 6px 23px 0; }
.navbar.compact .lang a { opacity: .55; }
.navbar.compact .lang a[aria-current="true"] { opacity: 1; outline-color: var(--accent); }
.navbar.compact .lang img { box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.navbar.compact .burger, .navbar.compact .burger::before, .navbar.compact .burger::after { background: var(--ink); }
.navbar.compact.nav-open .burger { background: transparent; }
.navbar.compact .menu-toggle { color: var(--ink); order: 3; }
.navbar.compact .menu-toggle > span:last-child { display: none; }
@media (max-width: 1240px) {
  .navbar.compact .menu { background: #fff; border-top: 1px solid var(--line); }
  .navbar.compact .menu > li { border-bottom: 1px solid var(--line); }
  .navbar.compact .menu > li > a { padding: 14px 20px; }
  .navbar.compact .menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); }
  .navbar.compact .submenu a { padding: 12px 20px 12px 38px; }
  .navbar.compact .sub-toggle { padding: 14px 20px; border-left: 1px solid var(--line); }
  .navbar.compact .submenu { background: var(--soft); }
  .navbar.compact .submenu a { color: var(--ink); }
  .navbar.compact .lang { margin-left: auto; margin-right: 6px; }
}
@media (max-width: 420px) {
  .brand img { height: 34px; }
  .brand-name { font-size: 1.05rem; letter-spacing: .1em; }
  .brand-sub { font-size: .6rem; letter-spacing: .1em; }
  .navbar.compact .lang { gap: 7px; }
  .navbar.compact .lang img { width: 24px; height: 16px; }
}
.navbar.compact { --nav-h: 68px; }
.navbar.nav-open ~ .wa-float { display: none; }
.gallery-section { padding-top: 34px; }
.gallery-section > h2 { border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 4px; }
.gallery-sub { font-size: 1.15rem; color: var(--muted); margin: 22px 0 12px; text-align: left; }
