/* Charmrooms 2026 — tema WordPress
   Palette mediterranea, tipografia editoriale, layout fluido. */

:root {
  --ink: #1c1916;
  --ink-soft: #4f463d;
  --ink-mute: #7a7168;
  --paper: #f6f0e7;
  --paper-2: #eee4d6;
  --sand: #e3d0b8;
  --white: #fffdfa;
  --terracotta: #b44a2c;
  --terracotta-dark: #8a341c;
  --terracotta-soft: #d8a090;
  --sea: #1d4d5b;
  --sea-deep: #132f38;
  --sea-mist: #d7e4e6;
  --gold: #c4a36a;
  --gold-soft: #e8d7b0;
  --line: rgba(28, 25, 22, 0.12);
  --line-strong: rgba(28, 25, 22, 0.22);
  --shadow: 0 18px 50px rgba(28, 25, 22, 0.12);
  --radius: 18px;
  --header-h: 4.5rem;
  --banner-h: 0px;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sea-deep);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--sea-deep); color: #fff; padding: 0.6rem 1rem; z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Preview banner */
.preview-banner {
  position: sticky; top: 0; z-index: 60;
  height: var(--banner-h);
  display: block;
  background: var(--sea-deep); color: var(--gold-soft);
  font-size: 0.78rem; letter-spacing: 0.06em;
  text-align: center;
  padding: 0 0.8rem;
  line-height: var(--banner-h);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header */
.site-header {
  position: sticky;
  top: var(--banner-h);
  z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s;
}
.site-header .wrap {
  width: 100%;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  padding: 0 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
}
.logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.2rem;
}
.site-header, .site-header a { color: var(--ink); text-decoration: none; }
.site-header {
  background: rgba(246, 240, 231, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
body.home .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}
body.home .hero {
  margin-top: calc(-1 * var(--header-h));
}

.nav {
  display: flex; align-items: center; gap: 0.15rem 1.05rem;
}
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.86;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--gold);
  color: inherit;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--terracotta);
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  box-shadow: 0 8px 20px rgba(180, 74, 44, 0.22);
}
.btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); color: #fff !important; }
.btn-ghost {
  background: transparent;
  color: inherit !important;
  box-shadow: none;
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-sea { background: var(--sea); box-shadow: 0 8px 20px rgba(29, 77, 91, 0.22); }
.btn-sea:hover { background: var(--sea-deep); }
.btn-header { padding: 0.7rem 1.15rem; font-size: 0.78rem; }
body.home .site-header:not(.is-scrolled) .btn-header {
  background: #fff;
  color: var(--sea-deep) !important;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 2.6rem; height: 2.6rem;
  border: 0; background: transparent; cursor: pointer;
  position: relative; padding: 0;
}
.nav-toggle span {
  display: block; width: 1.35rem; height: 1.5px;
  background: currentColor; margin: 6px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  border-radius: 2px;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--banner-h));
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--sea-deep);
}
.hero img.bg, .hero .bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 47, 56, 0.15) 0%, rgba(19, 47, 56, 0.25) 40%, rgba(19, 47, 56, 0.78) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  padding: 8rem 1.4rem 4.5rem;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.8rem;
  font-weight: 400;
}
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 0.6rem; }
.hero .lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 38rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex; align-items: flex-end;
  color: #fff;
  background: var(--sea-deep);
  overflow: hidden;
}
.page-hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,47,56,0.2), rgba(19,47,56,0.72));
}
.page-hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: calc(var(--max) + 80px);
  margin: 0 auto; padding: 7rem 1.4rem 3rem;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.9); max-width: 40rem; margin: 0; font-size: 1.12rem; }

/* Sections */
.section { padding: 5rem 1.4rem; }
.section-narrow { padding: 4.2rem 1.4rem; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.7rem;
  font-weight: 500;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 44rem; }
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.center .lead, .center .kicker { margin-left: auto; margin-right: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); min-height: 320px; max-height: 520px; }
.split.alt { direction: rtl; }
.split.alt > * { direction: ltr; }

/* Cards */
.cards-2, .cards-3 {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
a.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(28,25,22,0.16); color: inherit; }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
a.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem;
  font-size: 0.82rem; color: var(--ink-mute); letter-spacing: 0.04em;
}
.card-body p { margin: 0.2rem 0 0.6rem; color: var(--ink-soft); flex: 1; }
.card-link {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 500;
}

/* Why / features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.2rem; }
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
  border: 1px solid var(--line);
}
.feature .icon {
  width: 2.4rem; height: 2.4rem; margin-bottom: 0.9rem;
  color: var(--terracotta);
}
.feature h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Location mosaic */
.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.9rem;
  min-height: 520px;
}
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); height: 100%; min-height: 200px; }
.mosaic figure:first-child { grid-row: 1 / 3; }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.4rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(19,47,56,0.75));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

/* CTA band */
.cta-band {
  background: var(--sea-deep);
  color: #fff;
  padding: 4.5rem 1.4rem;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 36rem; margin: 0 auto 1.6rem; }
.cta-band .btn { background: #fff; color: var(--sea-deep) !important; box-shadow: none; }
.cta-band .btn:hover { background: var(--gold-soft); }

/* Apartment facts */
.facts {
  display: flex; flex-wrap: wrap; gap: 0.7rem 0.8rem;
  margin: 1.2rem 0 1.8rem;
}
.fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.fact strong { color: var(--ink); font-weight: 500; }

.amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem 1.4rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.amenities li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.amenities li::before {
  content: "";
  position: absolute; left: 0; top: 0.55rem;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.photo-grid a {
  display: block; overflow: hidden; border-radius: 12px;
  aspect-ratio: 4/3; background: var(--sand);
}
.photo-grid a:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  aspect-ratio: auto;
  min-height: 100%;
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.photo-grid a:hover img { transform: scale(1.04); }

/* <picture> wrappers must fill the same boxes as a bare <img> */
.hero picture,
.page-hero picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}
.card-media picture,
.photo-grid picture,
.split picture,
.mosaic figure picture {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}
.mosaic figure picture {
  position: absolute;
  inset: 0;
}


/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 80;
  background: rgba(12, 16, 18, 0.94);
  color: #fff;
  align-items: center; justify-content: center;
  padding: 2rem 4rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox .lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: #fff;
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem 0.7rem; line-height: 1;
  opacity: 0.8;
}
.lightbox .lb-prev { left: 0.6rem; }
.lightbox .lb-next { right: 0.6rem; }
.lightbox .lb-close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: transparent; border: 0; color: #fff;
  font-size: 2rem; cursor: pointer;
}
.lightbox .lb-cap {
  position: absolute; bottom: 0.8rem; left: 0; right: 0;
  text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.75);
}

/* Rules */
.rules { display: grid; gap: 1rem; }
.rule {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
}
.rule h3 { margin-bottom: 0.4rem; font-size: 1.45rem; }
.rule p { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.2rem;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-top: 1.1rem; }
.contact-card h3:first-child { margin-top: 0; }
.contact-card a { color: var(--sea-deep); }
.whatsapp { color: #128c47 !important; font-weight: 500; }
.map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--line);
  background: var(--sea-mist);
}
.map iframe, .map, #map { width: 100%; height: 420px; border: 0; display: block; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.04em; margin-bottom: 0.35rem; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); margin: 0.6rem 0 1rem; }
.form-note, .form-success {
  font-size: 0.92rem;
  background: var(--sea-mist);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--sea-deep);
  margin-top: 0.8rem;
}
.form-success { display: none; background: #e6f0e6; color: #1d4a2a; }
.form-success.is-visible { display: block; }

.placeholder-box {
  background: var(--white);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  margin: 1.4rem 0;
}
.placeholder-box .badge {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--sea-deep);
  color: rgba(255,255,255,0.82);
  padding: 3.4rem 1.4rem 1.6rem;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid {
  max-width: var(--max);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
.site-footer .logo { color: #fff; font-size: 2rem; }
.site-footer .logo span { color: var(--gold-soft); opacity: 1; }
.cin {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  margin-top: 0.8rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.legal {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* Utility */
.mb-0 { margin-bottom: 0; }
.rating {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-mute);
}
.rating b { color: var(--ink); font-weight: 600; }

/* Responsive */
@media (max-width: 980px) {
  .split, .cards-2, .cards-3, .features, .contact-grid, .footer-grid, .mosaic {
    grid-template-columns: 1fr;
  }
  .mosaic { min-height: 0; }
  .mosaic figure:first-child { grid-row: auto; min-height: 280px; }
  .mosaic figure { min-height: 200px; }
  .features, .cards-3, .amenities { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid a:first-child { grid-column: 1 / 3; min-height: 240px; }
  .split.alt { direction: ltr; }
  .nav-toggle { display: block; color: inherit; z-index: 70; }
  .nav {
    position: fixed;
    top: var(--banner-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s var(--ease), visibility 0.4s;
    z-index: 55;
  }
  .nav-open .nav {
    visibility: visible;
    pointer-events: auto;
  }
  .nav a { font-size: 1.15rem; letter-spacing: 0.12em; color: var(--ink); }
  .nav .btn-header { margin-top: 0.6rem; color: #fff !important; }
  .nav-open .nav { transform: none; }
  body.nav-open { overflow: hidden; }
  form .row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .preview-banner { font-size: 0.7rem; letter-spacing: 0.02em; }
}
@media (max-width: 640px) {
  .features, .amenities, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .hero-inner { padding: 7rem 1.15rem 3rem; }
  .section { padding: 3.4rem 1.15rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 0.45rem; }
  .btn-header { display: none; } /* in header bar; still in menu */
  .nav .btn-header { display: inline-flex; }
  .lightbox { padding: 3rem 1rem; }
}


/* WordPress theme additions */

.preview-banner { display: none !important; height: 0 !important; }

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.site-header .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.site-header .custom-logo { max-height: 2.8rem; width: auto; }

/* Menu as list (wp_nav_menu + fallback) */
.nav .menu {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav .menu > li { position: relative; }
.nav .menu-item-has-children > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
  letter-spacing: 0;
}
.nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 14rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 0.45rem 0;
  z-index: 60;
  list-style: none;
  margin: 0;
  border: 1px solid var(--line);
}
.nav .menu-item-has-children:hover > .sub-menu,
.nav .menu-item-has-children:focus-within > .sub-menu,
.nav .menu-item-has-children.is-open > .sub-menu {
  display: block;
}
.nav .sub-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--ink) !important;
  border-bottom: 0;
  white-space: nowrap;
  opacity: 0.9;
  letter-spacing: 0.08em;
}
.nav .sub-menu a:hover,
.nav .sub-menu a[aria-current="page"] {
  background: var(--paper-2);
  opacity: 1;
  color: var(--sea-deep) !important;
}

/* Generic WordPress content */
.entry-content {
  color: var(--ink-soft);
  max-width: 46rem;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote {
  margin: 0 0 1em;
}
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content img, .entry-content figure, .entry-content iframe, .entry-content video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 0 1.2rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1.2rem; }
.entry-content .wp-caption-text, .entry-content figcaption {
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin-top: 0.4rem;
}
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.4em; }
.page-head {
  padding: 6.5rem 1.4rem 1.5rem;
}
.page-head h1 { margin-bottom: 0.4rem; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.form-error {
  font-size: 0.92rem;
  background: #f8e6e2;
  color: #7a2a18;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.8rem;
}
.form-success.is-visible, .form-success[data-visible="1"] { display: block; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.error-404 { text-align: center; padding: 7rem 1.4rem 5rem; }
.error-404 h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.error-404 p { max-width: 32rem; margin: 0 auto 1.6rem; color: var(--ink-soft); }

.posts-list { display: grid; gap: 1.6rem; margin-top: 2rem; }
.post-teaser {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.post-teaser h2 { margin-bottom: 0.35rem; }
.post-teaser h2 a { color: var(--sea-deep); text-decoration: none; }
.post-teaser h2 a:hover { color: var(--terracotta); }
.post-meta { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 0.6rem; }

@media (max-width: 980px) {
  .nav .menu {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
  }
  .nav .sub-menu {
    position: static;
    transform: none;
    display: block;
    background: transparent;
    box-shadow: none;
    border: 0;
    min-width: 0;
    padding: 0.2rem 0 0;
    text-align: center;
  }
  .nav .sub-menu a {
    color: var(--ink) !important;
    font-size: 1rem;
    padding: 0.25rem 0;
  }
  .admin-bar .nav { top: 32px; }
}
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}
