/* RBA Oportunidades — mobile-first, Proposal 5 palette */
:root {
  --bg: #f6f3ec;
  --bg-alt: #efebe1;
  --bg-card: #fbf9f4;
  --teal: #2f8f95;
  --teal-bright: #2f8f95;
  --teal-deep: #21686d;
  --charcoal: #2b2d2f;
  --silver: #4a4e52;
  --text: #2b2d2f;
  --muted: #6c6f72;
  --line: #d9d4c7;
  --shadow: 0 18px 40px -26px rgba(40, 45, 50, 0.45);
  --radius: 1rem;
  --font-s: "Inter", system-ui, "Segoe UI", sans-serif;
  --font-d: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --wrap: 70rem;
  --header: 5.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font-s);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-bright); text-underline-offset: 0.18em; }
a:hover { color: var(--teal-deep); }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.12; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.01em; color: #232527; }
h1 { font-size: clamp(2.25rem, 8vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.35rem; margin-bottom: 0.35em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(100% - 1.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap.slim { width: min(100% - 1.5rem, 52rem); }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 100;
  border-radius: 0.4rem;
}
.skip:focus { top: 0.75rem; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}
.brand img {
  width: auto;
  height: 4.6rem;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 0.4rem;
}
.nav-btn span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle:checked + .nav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-btn span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--teal-bright); outline-offset: 2px; }

.nav {
  display: none;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header);
  background: rgba(246, 243, 236, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1.25rem;
  gap: 0.25rem;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-d);
  font-weight: 500;
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.nav a:hover { color: var(--teal-bright); }
.nav-toggle:checked ~ .nav { display: flex; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-copy {
  width: min(100% - 1.5rem, 40rem);
  margin: 0 auto 0  auto;
  padding: 5.5rem 0 max(4.5rem, env(safe-area-inset-bottom) + 2.5rem);
}
.hero-logo {
  display: none;
  width: auto;
  height: 6.6rem;
  margin: 0 0 1rem;
}
.eyebrow {
  font-family: var(--font-d);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  font-style: italic;
  color: var(--teal-deep);
  margin: 0 0 0.7rem;
  font-weight: 500;
}
.lead {
  font-size: 1.125rem;
  color: var(--silver);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  min-height: 2.85rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
  box-shadow: 0 8px 24px -10px rgba(33, 104, 109, 0.55);
}
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

/* Sections */
.section { padding: 4.25rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.split {
  display: grid;
  gap: 1.5rem;
}
.prose { color: var(--silver); }
.prose strong { color: var(--text); font-weight: 600; }
.quem-photo {
  margin: 1.6rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.quem-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
}

.cards {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}
.card-soon { min-height: 11rem; }
.badge {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-bright);
  border: 1px solid rgba(47, 143, 149, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin: 0 0 0.85rem;
}
.badge-solid {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.place {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: -0.3rem;
}
.hours-mini, .note { color: var(--muted); font-size: 0.95rem; }
.note { margin-top: 0.6rem; }
.link-maps {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.store.featured { border-color: var(--teal); }

.hours-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.hours-row:last-child { border-bottom: 0; }
.hours-row span:first-child { font-weight: 600; font-family: var(--font-d); }
.hours-row span:last-child { color: var(--silver); text-align: right; }
.hours-note { margin-top: 1.2rem; color: var(--muted); }
.contact-actions { justify-content: flex-start; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.6rem;
  background: var(--bg-alt);
  color: var(--silver);
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.footer-logo { width: auto; height: 6.25rem; }
.muted { color: var(--muted); font-size: 0.88rem; margin-top: 0.4rem; }

@media (min-width: 800px) {
  :root { --header: 7.1rem; }
  .wrap { width: min(100% - 2.5rem, var(--wrap)); }
  .nav-btn { display: none; }
  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 1.4rem;
  }
  .nav a {
    border: 0;
    padding: 0.2rem 0;
    font-size: 0.95rem;
  }
  .hero {
    align-items: center;
    min-height: max(36rem, 100svh);
  }
  .hero-media img {
    object-position: right center;
  }
  .brand img { height: 6.4rem; }
  .site-header, .header-inner { min-height: 7.1rem; }
  .hero-logo { display: block; height: 8.5rem; margin-bottom: 1.15rem; }
  .hero-copy {
    width: min(100% - 2.5rem, var(--wrap));
    max-width: none;
    padding: 7rem 0 5rem;
  }
  .hero-copy h1,
  .hero-copy .lead,
  .hero-copy .eyebrow,
  .hero-copy .hero-actions {
    max-width: 26.5rem;
  }
  .split {
    grid-template-columns: 0.9fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .section { padding: 5.5rem 0; }
}

@media (min-width: 800px) and (max-width: 1040px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Header tools + language switcher */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.langs {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}
.langs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-d);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.28rem;
  border-radius: 0.3rem;
  line-height: 1;
}
.langs a svg {
  width: 1.2rem;
  height: 0.84rem;
  display: block;
  border-radius: 1px;
  box-shadow: 0 0 0 1px var(--line);
}
.langs a:hover { color: var(--text); }
.langs a[aria-current="page"] {
  color: var(--teal-deep);
}
.langs a[aria-current="page"] svg {
  box-shadow: 0 0 0 1px var(--teal-deep);
}

/* checkbox now lives inside .header-tools, so the nav is not a sibling */
.header-inner:has(.nav-toggle:checked) .nav { display: flex; }

@media (min-width: 800px) {
  .header-inner { display: flex; }
  .brand { margin-right: auto; }
  .nav { order: 2; margin-right: 1.25rem; }
  .header-tools { order: 3; }
}
@media (max-width: 380px) {
  .langs a { padding: 0.15rem 0.18rem; }
  .langs a svg { width: 1.05rem; height: 0.74rem; }
}
