/* ===========================================================
   Pousada de Santo Antônio — site
   Mobile-first
   =========================================================== */

:root {
  --blue: #0b255f;
  --blue-deep: #061843;
  --blue-soft: #1f3e8a;
  --blue-tint: #e5eaf3;
  --pearl: #f7f6f2;
  --gold: #b69256;
  --ink: #1a1f33;
  --muted: #6b7088;
  --line: #e6e8ee;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --pad-mob: 20px;
  --pad-tab: 32px;
  --pad-desk: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums tabular-nums;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--blue);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}

h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1.05; }
h3 { font-size: clamp(22px, 3.2vw, 30px); }
h4 { font-size: clamp(18px, 2.4vw, 22px); }

p { margin: 0; line-height: 1.6; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-mob);
  padding-right: var(--pad-mob);
}
@media (min-width: 720px) {
  .container { padding-left: var(--pad-tab); padding-right: var(--pad-tab); }
}
@media (min-width: 1024px) {
  .container { padding-left: var(--pad-desk); padding-right: var(--pad-desk); }
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-block;
}

.muted { color: var(--muted); }

/* ===========================================================
   HEADER + NAV (sticky, with mobile drawer)
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad-mob);
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 720px) {
  .header-inner { padding: 14px var(--pad-tab); }
}
@media (min-width: 1024px) {
  .header-inner { padding: 18px var(--pad-desk); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blue);
}
.brand img {
  height: 64px;
  display: block;
  max-width: 260px;
  object-fit: contain;
}
@media (min-width: 720px) { .brand img { height: 80px; max-width: 340px; } }
@media (min-width: 1024px) { .brand img { height: 88px; max-width: 380px; } }
@media (max-width: 380px) { .brand img { height: 52px; max-width: 200px; } }

/* Hamburger (mobile) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--blue);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--blue);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.nav-cta-mobile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-cta-mobile svg { width: 16px; height: 16px; fill: currentColor; }
.nav-actions-mobile { display: flex; gap: 8px; align-items: center; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-cta-mobile { display: none; }
}

.site-nav {
  display: none;
  position: fixed;
  top: 88px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 32px var(--pad-mob);
  overflow-y: auto;
  z-index: 40;
}
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-nav ul a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav ul a.active { color: var(--gold); }
.site-nav .nav-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.site-nav .nav-footer strong { color: var(--blue); display: block; font-size: 15px; margin-bottom: 4px; }

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    position: static;
    background: transparent;
    padding: 0;
    overflow: visible;
    align-items: center;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 28px;
    align-items: center;
  }
  .site-nav ul a {
    padding: 0;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
    border-bottom: 0;
  }
  .site-nav ul a:hover { color: var(--blue); }
  .site-nav ul a.active { color: var(--blue); position: relative; }
  .site-nav ul a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 2px;
    background: var(--gold);
  }
  .site-nav .nav-footer { display: none; }
}

.header-cta {
  display: none;
}
@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.2s ease;
  }
  .header-cta:hover { background: var(--blue-deep); }
  .header-cta svg { width: 14px; height: 14px; fill: currentColor; }
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 48px;
  justify-content: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: #fff; }
.btn-whats { background: var(--blue); color: #fff; }
.btn-whats:hover { background: var(--blue-deep); }
.btn-whats svg { width: 18px; height: 18px; fill: currentColor; }
.btn .arrow {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 75vh;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(6, 24, 67, 0.55) 0%,
    rgba(6, 24, 67, 0.35) 40%,
    rgba(6, 24, 67, 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px var(--pad-mob) 56px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 720px) {
  .hero-content { padding: 100px var(--pad-tab) 72px; }
}
@media (min-width: 1024px) {
  .hero-content { padding: 140px var(--pad-desk) 96px; }
}

.hero h1 {
  color: #fff;
  font-size: clamp(36px, 7.5vw, 72px);
  max-width: 18ch;
  margin-bottom: 18px;
}
.hero h1 .gold { color: var(--gold); }
.hero .place {
  font-family: var(--sans);
  font-size: clamp(13px, 1.6vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 24px;
}
.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* hero compact (interior pages) */
.hero-compact {
  background: var(--blue);
  color: #fff;
  padding: 100px var(--pad-mob) 56px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) {
  .hero-compact { padding: 120px var(--pad-tab) 72px; }
}
@media (min-width: 1024px) {
  .hero-compact { padding: 140px var(--pad-desk) 88px; }
}
.hero-compact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 600px at 90% -20%, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
}
.hero-compact .inner { position: relative; max-width: var(--container); margin: 0 auto; }
.hero-compact h1 { color: #fff; max-width: 18ch; }
.hero-compact .place {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-compact p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(15px, 1.8vw, 17px);
  max-width: 60ch;
  margin-top: 18px;
}

/* ===========================================================
   SECTION
   =========================================================== */
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 72px 0; } }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

.section-pearl { background: var(--pearl); }
.section-blue { background: var(--blue); color: #fff; }
.section-blue h2, .section-blue h3, .section-blue h4 { color: #fff; }
.section-blue .eyebrow { color: var(--gold); }

.section-head { margin-bottom: 32px; }
@media (min-width: 720px) { .section-head { margin-bottom: 48px; } }

.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 .it { font-style: italic; color: var(--blue-soft); }
.section-blue .section-head h2 .it { color: var(--gold); }

.section-head .lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--ink);
  max-width: 60ch;
  line-height: 1.6;
}
.section-blue .section-head .lead { color: rgba(255, 255, 255, 0.85); }

/* ===========================================================
   CARD GRID (rooms, gallery, etc)
   =========================================================== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-tint);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px; }
@media (min-width: 720px) { .card-body { padding: 28px; } }
.card-body h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 6px;
}
.card-body p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 600;
}
.tag.solid { background: var(--blue); color: #fff; }

.card-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-foot .link {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===========================================================
   FEATURE ROW (two columns: photo + text)
   =========================================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.feature .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-tint);
}
.feature .photo img { width: 100%; height: 100%; object-fit: cover; }
.feature .text h2 { margin-bottom: 16px; }
.feature .text p { margin-top: 14px; color: var(--ink); font-size: clamp(15px, 1.7vw, 17px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature.reverse .photo { order: 2; }
  .feature.reverse .text { order: 1; }
}

/* ===========================================================
   INFO STRIPS (facts row)
   =========================================================== */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.facts > div {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; }
.facts .l {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.facts .v {
  font-family: var(--serif);
  color: var(--blue);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 500;
  line-height: 1.2;
}
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts > div { border-bottom: 0; border-right: 1px solid var(--line); }
  .facts > div:last-child { border-right: 0; }
}

/* ===========================================================
   GALLERY (masonry-ish)
   =========================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background: var(--blue-tint);
}
.gallery .tall { grid-row: span 2; aspect-ratio: 1 / 2; }
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

/* ===========================================================
   EVENTS LIST
   =========================================================== */
.month-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) { .month-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .month-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.month {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px 24px;
}
.month h3 {
  font-size: 22px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.month h3 .yr {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  font-weight: 600;
}
.month ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.month li { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: baseline; font-size: 14px; line-height: 1.4; }
.month li .d {
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 600;
  font-size: 16px;
  font-variant-numeric: lining-nums;
}
.month li .e { color: var(--ink); }

.weekly {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--blue);
  color: #fff;
  padding: 0;
}
.weekly .row {
  display: grid;
  grid-template-columns: 90px 80px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.weekly .row:last-child { border-bottom: 0; }
.weekly .row .day {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
}
.weekly .row .time {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.weekly .row .name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
@media (max-width: 600px) {
  .weekly .row { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .weekly .row .day { font-size: 18px; }
  .weekly .row .name { font-size: 18px; }
}

/* ===========================================================
   CONTACT BLOCKS
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.contact-card .value {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  color: var(--blue);
  line-height: 1.2;
}
.contact-card .value a { color: inherit; text-decoration: none; }
.contact-card p { color: var(--muted); font-size: 14px; }

.map-frame {
  aspect-ratio: 16 / 9;
  background: var(--blue-tint);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--blue);
  color: #fff;
  padding: 56px var(--pad-mob) 32px;
}
@media (min-width: 720px) { .site-footer { padding: 72px var(--pad-tab) 32px; } }
@media (min-width: 1024px) { .site-footer { padding: 96px var(--pad-desk) 40px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }

.footer-grid .brand-block img { height: 56px; margin-bottom: 18px; background: transparent; }
.footer-grid .brand-block p { color: rgba(255, 255, 255, 0.75); font-size: 14px; max-width: 38ch; }

.footer-grid h4 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a, .footer-grid ul li { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 14px; }
.footer-grid ul a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--container);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}

/* Floating WhatsApp button (mobile + desktop) */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11, 37, 95, 0.28), 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-fab:hover { transform: scale(1.06); background: var(--blue-deep); }
.wa-fab svg { width: 26px; height: 26px; fill: currentColor; }
@media (min-width: 720px) {
  .wa-fab { right: 24px; bottom: 24px; width: 60px; height: 60px; }
}

/* prevent body scroll when nav open */
body.nav-locked { overflow: hidden; }
