/* Shalom Estetica — shalom.ricarte.ai (eventually shalomestetica.co)
   One-page mobile-first site.
   Colors: green #4D911C primary, pink #ED175A accent, tan family for backgrounds.
   Typography: Roboto (titles + body) + Roboto Mono (subtitles). */

:root {
  --green:        #4D911C;
  --green-600:    #3F7917;
  --green-dark:   #2D5810;
  --pink:         #ED175A;
  --pink-600:     #D11451;
  --pink-light:   #F46F99;
  --tan-base:     #CEB19C;
  --tan-line:     #EADDD4;
  --tan-soft:     #F3ECE7;
  --paper:        #FDFBFA;
  --card:         #FFFFFF;
  --ink:          #2B2A26;
  --muted:        #8A857D;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* overflow-x stays on body only — putting it on html breaks position:fixed
   on iOS Safari (fixed elements scroll with the page). */
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 0;
}
/* .page top padding must match the negative margin-top on .header-bar at each
   breakpoint, otherwise the header gets pulled above the viewport and the
   logo gets clipped at the top. Keep these in sync. Bottom padding is 0 so
   the full-bleed footer hugs the viewport bottom with no trailing whitespace. */
@media (min-width: 760px)  { .page { padding: 48px 32px 0; } }
@media (min-width: 1100px) { .page { padding: 64px 40px 0; } }

/* ---------- TOP HEADER BAR ---------- */
/* Soft tan strip with the green logo on the left and the language toggle on
   the right. Breaks out of .page max-width and cancels its top padding. */
.header-bar {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -32px;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--tan-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-bar .logo {
  display: block;
  height: 32px;
  width: auto;
}
.header-bar .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 760px) {
  .header-bar { margin-top: -48px; padding: 16px 32px; }
  .header-bar .logo { height: 36px; }
}
/* Desktop: center the logo and pin the lang toggle to the right edge with
   absolute positioning. On smaller screens the logo stays left-aligned (via
   space-between above) so it doesn't visually compete with the toggle in a
   narrow bar. */
@media (min-width: 1100px) {
  .header-bar { margin-top: -64px; padding: 18px 40px; justify-content: center; }
  .header-bar .logo { height: 40px; }
  .header-bar .header-right {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ---------- LANGUAGE TOGGLE ---------- */
/* !important so these always beat any element-specific display rule (e.g.
   .founder-cue { display: block }), otherwise a more specific selector can
   re-show the hidden language and cause both ES + EN to render at once. */
.lang-es .en-only { display: none !important; }
.lang-en .es-only { display: none !important; }

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, .35);
  flex-shrink: 0;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  color: #ffffff;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[aria-pressed="true"] {
  background: #ffffff;
  color: var(--green);
}
.lang-toggle button[aria-pressed="true"]:hover { color: var(--green); }
.lang-toggle button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
@media (min-width: 760px) {
  .lang-toggle button { padding: 7px 16px; font-size: 14px; }
}

/* ---------- SECTION NAVIGATION (sticky) ---------- */
/* Sticky horizontal anchor nav across the four sections. Active section
   tracking handled in inline JS via IntersectionObserver. */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  background: rgba(243, 236, 231, .78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--tan-line);
}
.section-nav-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.section-nav-inner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, rgba(243, 236, 231, 0), rgba(243, 236, 231, .78));
  pointer-events: none;
  z-index: 2;
}
.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 32px 10px 20px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe center;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.section-nav ul::-webkit-scrollbar { display: none; }
.section-nav li { flex-shrink: 0; }
.section-nav a {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  padding: 4px 2px;
  display: inline-block;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .2s ease;
}
.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--ink);
  outline: none;
}
.section-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--green);
}
@media (min-width: 760px) {
  .section-nav ul { gap: 32px; padding: 12px 32px; }
  .section-nav a { font-size: 15px; }
}

/* ---------- SECTIONS ---------- */
/* Push anchor targets down by sticky nav height so clicks land below the bar. */
.section { scroll-margin-top: 64px; padding: 56px 0 24px; }
@media (min-width: 760px) { .section { scroll-margin-top: 72px; padding: 72px 0 32px; } }

.section-head {
  text-align: center;
  margin-bottom: 32px;
}
.section-head h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--green);
  margin: 0;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
/* Sub-tagline sits BELOW the section title, mirroring the logo lockup
   ("SHALOM" stacked over "estética"). Pink + monospace to keep the accent
   role and echo the wordmark's secondary line. */
.section-head .eyebrow {
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--pink);
  margin: 2px 0 0;
}
@media (min-width: 760px) {
  .section-head h2 { font-size: 48px; }
  .section-head .eyebrow { font-size: 14px; margin-top: 4px; }
}

/* ---------- BIENVENIDO (hero) ---------- */
.bienvenido .lede {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
@media (min-width: 760px) {
  .bienvenido .lede { font-size: 19px; }
}

/* ---------- BIO ---------- */
.bio-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  padding: 32px 28px;
  box-shadow: 0 6px 24px rgba(43, 42, 38, .06);
  border: 1px solid var(--tan-line);
}
.bio-card .founder {
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 18px;
}
.bio-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
}
.bio-card p:last-child { margin-bottom: 0; }
.bio-card .closing {
  margin-top: 22px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--green);
  line-height: 1.45;
}
/* Founder credit sits under the bio's closing line as a quiet credit cue. */
.bio-card .founder-line {
  margin-top: 16px;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.bio-card .founder-line strong {
  color: var(--pink);
  font-weight: 700;
}
@media (min-width: 760px) {
  .bio-card { padding: 44px 48px; }
  .bio-card p { font-size: 17px; }
  .bio-card .closing { font-size: 20px; }
}

/* ---------- SERVICIOS ---------- */
.services-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.service {
  background: var(--card);
  padding: 22px 24px;
  border: 1px solid var(--tan-line);
  box-shadow: 0 4px 16px rgba(43, 42, 38, .04);
}
.service .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.service .name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}
.service .price {
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--pink);
  white-space: nowrap;
  flex-shrink: 0;
}
.service .desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0 0;
}
.services-placeholder {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 32px;
  border: 1px dashed var(--tan-base);
  background: var(--tan-soft);
}
@media (min-width: 760px) {
  .services-list { gap: 22px; }
  .service { padding: 26px 32px; }
  .service .name { font-size: 21px; }
  .service .price { font-size: 16px; }
}

/* ---------- CONTACTO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
/* Desktop: cards sit flush (gap:0) and stretch to match the taller of the
   two heights so the bottom edges align. We strip the touching borders/
   shadows on the inner edge so they read as one panel split in half. */
@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    align-items: stretch;
    gap: 0;
  }
  .contact-grid .contact-info { border-right: 0; }
}

.contact-info {
  background: var(--card);
  padding: 24px 26px;
  border: 1px solid var(--tan-line);
  box-shadow: 0 4px 16px rgba(43, 42, 38, .04);
}
.contact-info h3 {
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 10px;
}
.contact-info .field + .field { margin-top: 22px; }
.contact-info p,
.contact-info a {
  margin: 2px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  text-decoration: none;
  display: block;
}
.contact-info a:hover { color: var(--green); }
.contact-info .address-link {
  color: var(--ink);
}
.contact-info .address-link:hover { color: var(--green); text-decoration: underline; }

/* Socials field heading stays left-aligned like the other field headings;
   only the icon row itself is centered (see .contact-info .socials below). */

/* Live open/closed status badge in the hours field */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-open      { background: rgba(46, 184, 92, .12); color: #2a8a4d; }
.status-opening   { background: rgba(224, 167, 53, .14); color: #a87217; }
.status-closing   { background: rgba(224, 167, 53, .14); color: #a87217; }
.status-closed    { background: rgba(199, 107, 96, .14); color: #a44b40; }

/* Socials row inside contact card */
.contact-info .socials {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
/* .contact-info-scoped because the parent's `.contact-info a { color: ink }`
   rule has higher specificity than a plain .social-btn selector and would
   otherwise force the SVG glyphs (fill: currentColor) to render near-black. */
.social-btn,
.contact-info .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--green);
  text-decoration: none;
  border: 1px solid var(--tan-line);
  box-shadow: 0 4px 12px rgba(43, 42, 38, .08);
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.social-btn:hover,
.contact-info .social-btn:hover {
  background: var(--pink);
  color: #ffffff;
  border-color: var(--pink);
  transform: translateY(-2px);
}
.social-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---------- LEAFLET MAP ---------- */
.contact-map {
  height: 320px;
  background: var(--card);
  border: 1px solid var(--tan-line);
  box-shadow: 0 4px 16px rgba(43, 42, 38, .04);
  overflow: hidden;
}
@media (min-width: 760px) {
  .contact-map { height: 100%; min-height: 420px; }
}
/* Custom pink map pin (overrides Leaflet's default divIcon white background) */
.contact-map .shalom-pin {
  background: transparent;
  border: 0;
}
.contact-map .shalom-pin svg {
  width: 30px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(43, 42, 38, .35));
}
.contact-map .leaflet-container {
  height: 100%;
  width: 100%;
  background: var(--paper);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}
.contact-map .leaflet-popup-content-wrapper { border-radius: 6px; }
.contact-map .leaflet-popup-content {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: var(--ink);
  margin: 10px 14px;
  line-height: 1.4;
}
.contact-map .leaflet-popup-content b {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--green);
  display: block;
  margin-bottom: 2px;
}
/* Popup status pill — same look as the contact-info .status-badge: light
   tinted background, currentColor for both the text and the leading dot. */
.contact-map .leaflet-popup-content .map-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Roboto Mono', ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact-map .leaflet-popup-content .map-status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.contact-map .leaflet-popup-content .map-status-open     { background: rgba(46, 184, 92, .12);  color: #2a8a4d; }
.contact-map .leaflet-popup-content .map-status-opening  { background: rgba(224, 167, 53, .14); color: #a87217; }
.contact-map .leaflet-popup-content .map-status-closing  { background: rgba(224, 167, 53, .14); color: #a87217; }
.contact-map .leaflet-popup-content .map-status-closed   { background: rgba(199, 107, 96, .14); color: #a44b40; }

/* ---------- FOOTER ---------- */
.foot {
  text-align: center;
  width: 100vw;
  margin: 80px calc(50% - 50vw) 0;
  padding: 32px 16px 24px;
  background: var(--tan-soft);
  border-top: 1px solid var(--tan-line);
}
.foot p {
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 8px;
}
.foot .credit {
  font-style: normal;
  font-size: 12px;
  letter-spacing: .02em;
  margin-top: 14px;
}
.foot .credit a { color: var(--green); text-decoration: none; }
.foot .credit a:hover { text-decoration: underline; }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(43, 42, 38, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background-color .15s ease;
  z-index: 50;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--pink); }
.back-to-top:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--green);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
@media (min-width: 760px) {
  .back-to-top { right: 28px; bottom: 28px; width: 52px; height: 52px; }
  .back-to-top svg { width: 22px; height: 22px; }
}
