/* Casa Miúda — House Guide (editorial / news-style) */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #8a8a85;
  --line: rgba(0, 0, 0, 0.1);
  --soft: #f4f3f0;
  --accent: #000;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --pad: clamp(18px, 3vw, 36px);
  --max: 1280px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "Switzer", "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Offset for fixed nav — applied via padding on first section, not body */
body { padding-top: 60px; }
@media (max-width: 700px) { body { padding-top: 48px; } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.display { font-weight: 500; letter-spacing: -0.02em; line-height: 1.0; }
.label { font-size: 13px; font-weight: 500; letter-spacing: 0; }

/* ---------- Nav (mirrors the main site) ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  background: #fff;
}
.nav .logo { font-weight: 600; font-size: 16px; line-height: 1; }
.nav nav { font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap; }
.nav nav a { transition: opacity 0.3s; }
.nav nav a:hover { opacity: 0.5; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right .back { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.3s; }
.nav-right .back:hover { color: var(--fg); }
.book-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff !important; border-radius: 100px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; line-height: 1;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.book-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.book-btn { white-space: nowrap; }
.nav .logo { white-space: nowrap; }

/* Hamburger — visible only on mobile */
.menu-toggle { display: none; background: none; border: none; color: inherit; font-size: 22px; cursor: pointer; padding: 4px 0 4px 4px; line-height: 1; transition: opacity 0.3s; margin-left: -4px; }
.menu-toggle:hover { opacity: 0.6; }
/* Mobile full-screen overlay — sits above nav */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 101; background: rgba(255,255,255,0.98); flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: var(--pad); text-align: center; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { font-size: 22px; font-weight: 600; padding: 14px 0; letter-spacing: -0.01em; transition: opacity 0.3s; display: block; color: #0a0a0a; }
.mobile-menu a:hover { opacity: 0.5; }
.mobile-menu .menu-close { position: absolute; top: 18px; right: var(--pad); font-size: 26px; background: none; border: none; cursor: pointer; color: #0a0a0a; padding: 10px; line-height: 1; z-index: 1; }
@media (max-width: 700px) {
  header.nav { align-items: center; padding: 16px var(--pad); }
  .nav nav { display: none; }            /* section links live in the footer on mobile */
  .nav-right { gap: 14px; }
  .nav-right .back { display: none; }   /* logo links home; keep the bar uncluttered */
  .book-btn { padding: 8px 14px; font-size: 13px; }
  .menu-toggle { display: block; }
}

/* shared shells */
.shell { padding: 0 var(--pad); }
.prose { max-width: 720px; margin: 0 auto; padding: 0 var(--pad); }

/* ================================================================
   HOUSE GUIDE INDEX — editorial gallery
   ================================================================ */
.gg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: clamp(40px,6vw,76px) var(--pad) clamp(26px,3vw,40px); }
.gg-head h1 { font-size: clamp(44px,8vw,120px); font-weight: 600; letter-spacing: -0.03em; line-height: 0.88; text-transform: uppercase; }
.gg-head h1 sup { font-size: 0.2em; vertical-align: super; margin-left: 8px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.gg-view { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }

.gg-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px,3vw,46px) clamp(14px,1.6vw,22px); padding: 0 var(--pad) clamp(70px,10vw,120px); }
.gcard { grid-column: span 4; display: flex; flex-direction: column; }
.gcard .gthumb { border-radius: 6px; overflow: hidden; background: var(--soft); aspect-ratio: 4/5; }
.gcard .gthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gcard:hover .gthumb img { transform: scale(1.04); }
.gcap { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-top: 14px; }
.gcap .gname { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.gcap .gnum { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; }
.gcard.wide { grid-column: span 8; }
.gcard.wide .gthumb { aspect-ratio: 16/10; }
@media (max-width: 820px) {
  .gg-grid { grid-template-columns: repeat(2, 1fr); }
  .gcard, .gcard.wide { grid-column: span 1; }
  .gcard .gthumb, .gcard.wide .gthumb { aspect-ratio: 4/5; }
}
@media (max-width: 480px) { .gg-grid { grid-template-columns: 1fr; } }

/* ================================================================
   GUIDE ARTICLE — split (image left, content right)
   ================================================================ */
.tut { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.tut-figure { overflow: hidden; background: var(--soft); }
.tut-figure img, .tut-figure video { width: 100%; height: 100%; min-height: 72vh; object-fit: cover; display: block; }
.tut-col { display: flex; flex-direction: column; padding: 0 var(--pad) clamp(48px,6vw,80px) clamp(32px,4vw,64px); }

.tut-head { min-height: calc(100vh - 150px); display: flex; flex-direction: column; justify-content: center; padding: clamp(40px,6vw,72px) 0; }
.tut-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.tut-head h1 { font-size: clamp(30px,3.4vw,54px); font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.04; margin: 18px 0 0; }
.tut-head .tut-sub { color: var(--muted); font-weight: 500; font-size: 15px; line-height: 1.55; margin-top: 18px; max-width: 42ch; }

.tut-meta { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: clamp(28px,3.5vw,44px); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.tut-prose { max-width: 660px; }
.tut-prose > p { font-size: 16px; line-height: 1.62; color: #3a3a3a; margin-bottom: 18px; }
.tut-prose > p:first-child { margin-top: 0; }
.tut-prose h2 { font-size: clamp(20px,1.9vw,25px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: clamp(34px,4vw,48px) 0 14px; }
.tut-prose em { color: var(--fg); font-style: italic; }

.tut-help { margin-top: clamp(36px,4.5vw,56px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 14px; line-height: 1.55; }
.tut-help a { color: var(--fg); border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .tut { grid-template-columns: 1fr; }
  .tut-figure img, .tut-figure video { min-height: 0; height: clamp(300px,52vh,520px); }
  .tut-col { padding: 0 var(--pad) clamp(40px,6vw,64px); }
  .tut-head { min-height: 0; padding: clamp(32px,7vw,52px) 0; }
}

/* steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: clamp(18px,2.6vw,26px); margin: clamp(6px,1.6vw,14px) 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start; }
.steps > li::before {
  content: counter(step); grid-row: 1 / span 3;
  width: 38px; height: 38px; border-radius: 100px; border: 1px solid var(--fg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px;
}
.steps h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.steps p { color: var(--muted); font-weight: 500; margin-top: 3px; font-size: 15px; line-height: 1.55; }
.steps .note { font-size: 13px; color: var(--accent); margin-top: 6px; font-weight: 500; }

/* info box */
.box { background: var(--soft); border-radius: 10px; padding: clamp(18px,2.4vw,26px); margin: clamp(24px,3vw,34px) 0; }
.box .row { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.box .row:last-child { border-bottom: 0; }
.box .k { color: var(--muted); font-weight: 500; font-size: 13px; max-width: 140px; }
.box .v { font-weight: 500; line-height: 1.4; min-width: 0; }
.box .v a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .box .row { grid-template-columns: 1fr; gap: 2px; }
  .box .k { max-width: none; }
}

/* blockquote-style callout */
.callout { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; margin: clamp(26px,3.5vw,36px) 0; font-size: clamp(17px,1.7vw,20px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.callout span { color: var(--muted); }

/* "More to read" — full-width grid of the other guides */
.more { padding: clamp(48px,6vw,80px) var(--pad) clamp(20px,3vw,40px); border-top: 1px solid var(--line); }
.more h2 { font-size: clamp(24px,3vw,40px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: clamp(26px,3vw,40px); }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px,2vw,24px); }
.more-card .mthumb { aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; background: var(--soft); }
.more-card .mthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.more-card:hover .mthumb img { transform: scale(1.04); }
.more-cat { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 0 6px; }
.more-card h3 { font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
@media (max-width: 820px) { .more-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer (mirrors the main site) ---------- */
footer.site { border-top: 1px solid var(--line); padding: clamp(40px,5vw,64px) var(--pad) 28px; margin-top: clamp(40px,6vw,80px); }
.foot-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; padding-bottom: clamp(50px,8vw,100px); }
.foot-top .brand { font-weight: 600; font-size: 15px; }
.foot-contact { font-size: 14px; font-weight: 500; }
.foot-contact span { color: var(--muted); }
.foot-links { justify-self: end; }
.foot-links a { display: block; font-size: 14px; font-weight: 500; padding: 3px 0; transition: opacity 0.3s; }
.foot-links a:hover { opacity: 0.5; }
.foot-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; font-size: 12px; color: var(--muted); }
.foot-bottom .mid { text-align: center; }
.foot-bottom .mid a { color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.foot-bottom .end { text-align: right; }
@media (max-width: 720px) {
  .foot-top, .foot-bottom { grid-template-columns: 1fr; }
  .foot-links { justify-self: start; }
  .foot-bottom .mid, .foot-bottom .end { text-align: left; }
}

/* ---------- Mobile hamburger menu (shared across all pages) ---------- */
.menu-toggle { display: none; background: none; border: none; color: inherit; font-size: 22px; cursor: pointer; padding: 4px 0 4px 4px; line-height: 1; transition: opacity 0.3s; margin-left: -4px; }
.menu-toggle:hover { opacity: 0.6; }
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 101; background: rgba(255,255,255,0.98); flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: var(--pad); text-align: center; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { font-size: 22px; font-weight: 600; padding: 14px 0; letter-spacing: -0.01em; transition: opacity 0.3s; display: block; color: #0a0a0a; }
.mobile-menu a:hover { opacity: 0.5; }
.mobile-menu .menu-close { position: absolute; top: 18px; right: var(--pad); font-size: 26px; background: none; border: none; cursor: pointer; color: #0a0a0a; padding: 10px; line-height: 1; z-index: 1; }
@media (max-width: 700px) {
  .menu-toggle { display: block; }
}
