/**
 * StayWork CDMX — shared styles for static SEO pillar pages.
 * Keep in sync with Tailwind theme in tailwind.config.js (stay-* colors).
 */
:root {
  --sw-forest: #0f172a;
  --sw-teal: #1e40af;
  --sw-cream: #f8fafc;
  --sw-ink: #111827;
  --sw-stone: #4b5563;
  --sw-white: #fff;
  --sw-gold: #d97706;
  --sw-line: rgba(15, 23, 42, 0.12);
}

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

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background-color: var(--sw-cream);
  color: var(--sw-ink);
  line-height: 1.7;
}

body.sw-pillar-no-scroll {
  overflow: hidden;
}

/* ----- Top bar — matches Hugo site-header.html exactly ----- */
.sw-pillar-top {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sw-pillar-bar {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (min-width: 768px) {
  .sw-pillar-bar {
    height: 5rem;
    padding: 0 2rem;
  }
}

/* Logo — matches Hugo site-header logo block */
.sw-pillar-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--sw-forest);
  flex-shrink: 0;
}

.sw-pillar-logo-icon {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--sw-forest);
  color: var(--sw-cream);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.sw-pillar-logo-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.sw-pillar-logo-text {
  min-width: 0;
}

.sw-pillar-logo-name {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sw-forest);
  white-space: nowrap;
}

.sw-pillar-logo-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sw-gold);
  margin-top: 0.15rem;
}

/* Nav links — matches Hugo nav */
.sw-pillar-nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

@media (min-width: 768px) {
  .sw-pillar-nav-desktop {
    display: flex;
  }
}

.sw-pillar-nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sw-stone);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.sw-pillar-nav-desktop a:hover {
  color: var(--sw-forest);
}

.sw-pillar-nav-desktop a[aria-current="page"] {
  color: var(--sw-forest);
  font-weight: 600;
}

/* Right-side actions */
.sw-pillar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* "Contact" text link (visible xl+) */
.sw-pillar-contact-link {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sw-stone);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.sw-pillar-contact-link:hover {
  color: var(--sw-forest);
}

@media (min-width: 1280px) {
  .sw-pillar-contact-link {
    display: inline-flex;
  }
}

/* "Check availability" gold button (visible lg+) */
.sw-pillar-cta {
  display: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--sw-gold);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sw-white);
  text-decoration: none;
  transition: filter 0.15s ease;
  white-space: nowrap;
}

.sw-pillar-cta:hover {
  filter: brightness(0.95);
}

@media (min-width: 1024px) {
  .sw-pillar-cta {
    display: inline-flex;
    align-items: center;
  }
}

.sw-pillar-menu-btn {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(209, 213, 219, 0.7);
  background: var(--sw-white);
  color: var(--sw-forest);
  cursor: pointer;
  flex-shrink: 0;
}

.sw-pillar-menu-btn:hover {
  background: var(--sw-cream);
}

@media (min-width: 768px) {
  .sw-pillar-menu-btn {
    display: none;
  }
}

.sw-pillar-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(248, 250, 252, 0.98);
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}

.sw-pillar-drawer[hidden] {
  display: none !important;
}

.sw-pillar-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--sw-white);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sw-forest);
  cursor: pointer;
}

.sw-pillar-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 28rem;
  margin: 0 auto;
}

.sw-pillar-drawer nav a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sw-forest);
  text-decoration: none;
}

.sw-pillar-drawer nav a:hover,
.sw-pillar-drawer nav a[aria-current="page"] {
  color: var(--sw-gold);
}


/* ----- Hero ----- (same content width as main .wrap.wide — one vertical column) */
.hero {
  padding: 3rem 1.25rem 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.hero .wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 2.25rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.hero.wide-top .wrap {
  max-width: 100%;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 600;
  color: var(--sw-forest);
  line-height: 1.12;
}

.hero h1 em {
  color: var(--sw-gold);
  font-style: normal;
  font-weight: 600;
}

.hero p,
.hero .lede {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--sw-stone);
  max-width: 40em;
  font-weight: 400;
}

.pill,
.tag {
  display: inline-block;
  margin-top: 1rem;
  background: rgba(217, 119, 6, 0.1);
  color: var(--sw-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.42rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.tag {
  letter-spacing: 0.12em;
}

.sw-breadcrumbs {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  color: var(--sw-stone);
  max-width: none;
}

.sw-breadcrumbs a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.sw-breadcrumbs a:hover {
  color: var(--sw-gold);
}

.sw-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  max-width: none;
}

.sw-link-row a {
  font-weight: 600;
}

/* ----- Main ----- (aligned with .hero: 72rem column) */
main,
.sw-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

main .wrap,
.sw-main .wrap {
  max-width: 100%;
  margin: 0 auto;
}

main .wrap.wide,
.sw-main .wrap.wide {
  max-width: 100%;
  padding: 2.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

main h2,
.sw-main h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  color: var(--sw-forest);
  margin: 2.5rem 0 0.75rem;
}

main h2:first-of-type,
.sw-main h2:first-of-type {
  margin-top: 0;
}

main h3,
.sw-main h3 {
  font-size: 1.08rem;
  color: var(--sw-forest);
  margin: 1.5rem 0 0.45rem;
  font-weight: 600;
}

main p,
.sw-main p {
  color: var(--sw-stone);
  margin-bottom: 1rem;
  font-weight: 400;
}

main ul,
.sw-main ul {
  margin: 0 0 1.25rem 1.2rem;
  color: var(--sw-stone);
}

main li,
.sw-main li {
  margin-bottom: 0.4rem;
}

.sw-card-list {
  margin: 0 0 1rem 1.1rem;
}

main a,
.sw-main a {
  color: var(--sw-forest);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 6, 0.35);
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

main a:hover,
.sw-main a:hover {
  color: var(--sw-gold);
}

.callout {
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid var(--sw-line);
  border-left: 4px solid var(--sw-gold);
  padding: 1.25rem 1.35rem;
  margin: 2rem 0;
  border-radius: 0 18px 18px 0;
}

.callout strong {
  color: var(--sw-ink);
}

.hero .grid,
main .grid,
.sw-main .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.hero .card,
main .card,
.sw-main .card,
main .feat,
.sw-main .feat {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 1.35rem;
  border: 1px solid var(--sw-line);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.hero .card h3,
main .card h3,
.sw-main .card h3,
main .feat strong,
.sw-main .feat strong {
  font-size: 1rem;
  color: var(--sw-forest);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

main .feat strong,
.sw-main .feat strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .card p,
main .card p,
.sw-main .card p,
main .feat p,
.sw-main .feat p {
  margin: 0;
  font-size: 0.92rem;
}

main .features,
.sw-main .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

main .gallery,
.sw-main .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2.25rem 0;
}

main figure,
.sw-main figure {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--sw-line);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

main figure img,
.sw-main figure img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

main figcaption,
.sw-main figcaption {
  font-size: 0.78rem;
  padding: 0.75rem;
  color: var(--sw-stone);
  line-height: 1.45;
}

/* ----- CTA ----- */
main .cta,
.sw-main .cta {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2.4rem;
  background: var(--sw-forest);
  color: var(--sw-cream);
  border-radius: 32px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

main .cta p,
.sw-main .cta p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.88);
}

main .cta a,
.sw-main .cta a {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.8rem 1.6rem;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
}

main .cta a.primary,
main .cta a:not(.secondary):not(.line),
.sw-main .cta a.primary,
.sw-main .cta a:not(.secondary):not(.line) {
  background: var(--sw-gold);
  color: #fff !important;
}

main .cta a.secondary,
main .cta a.line,
.sw-main .cta a.secondary,
.sw-main .cta a.line {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff !important;
  background: transparent;
}

/* ----- Footer ----- */
footer:not([data-static-site-footer]) {
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.82rem;
  color: var(--sw-stone);
  background: transparent;
}

footer:not([data-static-site-footer]) a {
  color: var(--sw-forest);
  font-weight: 600;
  transition: color 0.15s ease;
}

footer:not([data-static-site-footer]) a:hover {
  color: var(--sw-gold);
}

footer[data-static-site-footer] .site-footer-grid {
  display: grid;
  gap: 2.5rem;
  margin: 0;
}

footer[data-static-site-footer] .site-footer-links {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}

footer[data-static-site-footer] .site-footer-column {
  min-width: 0;
}

footer[data-static-site-footer] .site-footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
}

footer[data-static-site-footer] .site-footer-menu {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}

footer[data-static-site-footer] .site-footer-menu li + li {
  margin-top: 0.5rem;
}

footer[data-static-site-footer] .site-footer-menu a {
  transition: color 0.15s ease;
}

footer[data-static-site-footer] .site-footer-menu a:hover {
  color: #fff;
}

footer[data-static-site-footer] ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

footer[data-static-site-footer] li {
  margin: 0;
}

@media (min-width: 640px) {
  footer[data-static-site-footer] .site-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  footer[data-static-site-footer] .site-footer-grid {
    grid-template-columns: 1.15fr minmax(0, 0.9fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

/* Hero: same cream page background as Hugo (no white “card” band) */
section.hero,
header.hero {
  padding: 2.25rem 0 2rem;
  background: transparent;
  border-bottom: none;
}

section.hero .wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.25rem;
}

section.hero .wrap > .tag:first-child,
section.hero .wrap > .pill:first-child {
  margin-top: 0;
}

header.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.25rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

section.hero h1,
header.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sw-forest);
  letter-spacing: -0.02em;
}

header.hero h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--sw-gold);
}

section.hero .lede,
header.hero p {
  margin-top: 1rem;
  color: var(--sw-stone);
  font-size: 1.05rem;
  max-width: 40em;
}

header.hero .pill,
header.hero .tag {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

section.hero + main {
  padding-top: 0.5rem;
}

body > main {
  padding-top: 0.5rem;
}

/* Floating WhatsApp (static pillars — injected by pillar-nav.js; keep number in sync with hugo.toml) */
.sw-wa-float {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sw-wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.sw-wa-float:focus {
  outline: none;
}
.sw-wa-float:focus-visible {
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.45), 0 10px 25px rgba(0, 0, 0, 0.18);
}
.sw-wa-float svg {
  width: 1.75rem;
  height: 1.75rem;
}
@media (min-width: 768px) {
  .sw-wa-float {
    bottom: 2rem;
    left: 2rem;
  }
}
