/* =========================
   Theme (EDIT HERE)
   ========================= */
:root{
  /* Base = clean, happy, spa-like background */
  --base: #eaf7f2;

  /* Accent = customizable highlight */
  --accent: #19b38f;

  --ink: #0c1f1a;
  --muted: rgba(12, 31, 26, .68);
  --card: rgba(255,255,255,.78);
  --card-strong: rgba(255,255,255,.90);

  --border: rgba(12,31,26,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.10);
  --shadow-soft: 0 12px 40px rgba(0,0,0,.08);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --container: 1100px;
}

/* =========================
   Base layout
   ========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background: linear-gradient(180deg, var(--base), #ffffff);
}

a{ color: inherit; text-decoration: none; }
.container{
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }
.grid{ display: grid; gap: 18px; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--card-strong);
  box-shadow: var(--shadow-soft);
  font-weight: 650;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); border-color: rgba(12,31,26,.16); }
.btn:active{ transform: translateY(0); }
.btn.primary{
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ffffff 30%));
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.btn.ghost{
  background: transparent;
  box-shadow: none;
}
.btn.small{ padding: 10px 12px; }
.btn.full{ width: 100%; }

.link{
  color: color-mix(in srgb, var(--accent) 85%, var(--ink) 15%);
  font-weight: 650;
}
.link:hover{ text-decoration: underline; }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.section{
  padding: 72px 0;
}
.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.65));
  border-top: 1px solid rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.section-head{
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.section-head h2{
  margin: 0;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.02em;
}
.section-head p{ margin: 0; }

/* =========================
   Header
   ========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--base) 75%, white 25%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.0) 55%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0c1f1a 45%));
  box-shadow: 0 12px 25px rgba(0,0,0,.16);
}
.brand-text{ display: grid; line-height: 1.1; }
.brand-name{ font-weight: 820; letter-spacing: -0.03em; }
.brand-tag{ font-size: 12px; color: var(--muted); font-weight: 620; }

.brand img.brand-logo{
  width: 64px !important;
  height: 64px !important;
  max-width: 64px;
  max-height: 64px;
  display: block;
  object-fit: contain;
  flex: 0 0 64px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a{
  color: rgba(12,31,26,.80);
  font-weight: 650;
  padding: 10px 10px;
  border-radius: 12px;
}
.nav a:hover{ background: rgba(255,255,255,.55); }
.nav-cta{
  background: color-mix(in srgb, var(--accent) 18%, white 82%);
  border: 1px solid rgba(0,0,0,.06);
}

.nav-toggle{
  display: none;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.65);
  border-radius: 14px;
  padding: 10px;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(12,31,26,.8);
  margin: 4px 0;
  border-radius: 99px;
}

/* =========================
   Hero
   ========================= */
.hero{
  position: relative;
  padding: 72px 0 54px;
  overflow: hidden;
}
.hero-bg{
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 15% 25%, color-mix(in srgb, var(--accent) 30%, white 70%), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255,255,255,.95), transparent 46%),
    radial-gradient(circle at 65% 75%, color-mix(in srgb, var(--accent) 18%, white 82%), transparent 50%),
    linear-gradient(180deg, var(--base), rgba(255,255,255,.7));
  filter: saturate(1.1);
}

.hero-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 22px;
  align-items: stretch;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  margin: 0 0 14px;
  font-weight: 650;
  color: rgba(12,31,26,.74);
}
.pill .dot{
  width: 10px; height: 10px; border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent 80%);
}

.hero-copy h1{
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.lead{
  margin: 0 0 18px;
  font-size: 16.5px;
  color: rgba(12,31,26,.72);
  line-height: 1.55;
  max-width: 54ch;
}
.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.trust-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-item{
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.06);
}
.trust-num{
  display: block;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.trust-label{
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}

.hero-card{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.hero-card-top{
  padding: 20px 20px 10px;
}
.hero-card h2{
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.hero-card p{ margin: 0; color: var(--muted); line-height: 1.55; }

.shine{
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.9), transparent 40%);
  transform: rotate(10deg);
  pointer-events: none;
}

.checklist{
  margin: 0;
  padding: 0 20px 6px;
  list-style: none;
  display: grid;
  gap: 10px;
}
.checklist li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(0,0,0,.06);
}
.checklist span{
  color: var(--accent);
  font-weight: 900;
}
.hero-card-bottom{
  padding: 14px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =========================
   Carousel
   ========================= */
.carousel{ display: grid; gap: 14px; }
.carousel-controls{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.carousel-hint{
  font-size: 13px;
  text-align: center;
  flex: 1;
}
.icon-btn{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  border-radius: 16px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}
.icon-btn:hover{ transform: translateY(-1px); }

.carousel-viewport{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.55);
  overflow: hidden;
  outline: none;
}
.carousel-viewport:focus{
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent 75%);
}

.carousel-track{
  display: flex;
  gap: 16px;
  padding: 18px;
  transition: transform .45s cubic-bezier(.2,.9,.15,1);
  will-change: transform;
}

.loc-card{
  min-width: calc((100% - 32px) / 3);
  max-width: calc((100% - 32px) / 3);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  grid-template-rows: 160px auto;
}
.thumb{
  background:
    linear-gradient(135deg, rgba(25,179,143,.22), rgba(255,255,255,.0)),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.9), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(0,0,0,.04));
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: grid;
  place-items: center;
}
.thumb-inner{
  font-weight: 800;
  color: rgba(12,31,26,.55);
  background: rgba(255,255,255,.65);
  border: 1px dashed rgba(12,31,26,.22);
  border-radius: 16px;
  padding: 10px 12px;
}
.loc-body{
  padding: 14px 14px 16px;
  display: grid;
  gap: 10px;
}
.loc-body h3{
  margin: 0;
  letter-spacing: -0.02em;
}
.loc-body p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.loc-meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip{
  font-size: 12px;
  font-weight: 700;
  color: rgba(12,31,26,.72);
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
  border: 1px solid rgba(0,0,0,.06);
  padding: 6px 10px;
  border-radius: 999px;
}

/* --- Card image cycling: stack images in the thumb --- */
.thumb{
  position: relative;
  overflow: hidden;
  place-items: stretch; /* overrides centering so images can fill */
}

/* All images are stacked */
.thumb img.img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  z-index: 0;
  transition: opacity .22s ease;
}

/* ✅ Fallback: if JS fails, at least show the first image */
.thumb:not(.has-active) img.img:first-child{
  opacity: 1;
}

/* Active image */
.thumb img.img.is-active{
  opacity: 1;
  z-index: 1;
}

/* Optional: make it feel clickable */
.loc-card { cursor: pointer; }

/* =========================
   Services
   ========================= */
.services-grid{
  grid-template-columns: repeat(3, 1fr);
}
.mini-card{
  padding: 18px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: var(--shadow-soft);
}
.mini-card h3{
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.mini-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.callout{
  margin-top: 18px;
  padding: 18px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.08);
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 18%, transparent 82%), transparent 45%),
    rgba(255,255,255,.70);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* =========================
   Contact
   ========================= */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.info-card{
  margin-top: 12px;
  padding: 16px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow-soft);
}
.info-card h3{ margin: 0 0 8px; }
.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.form{
  padding: 18px;
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field{
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: rgba(12,31,26,.78);
}
.field span{
  font-size: 12px;
  letter-spacing: .02em;
}
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
  font: inherit;
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
textarea{ resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus{
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(0,0,0,.1) 45%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent 80%);
}
.form-foot{
  margin: 12px 2px 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Theme demo */
.theme-demo{
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.theme-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.theme-row input[type="color"]{
  padding: 0;
  height: 42px;
  border-radius: 12px;
}

/* =========================
   Footer + toast
   ========================= */
.footer{
  padding: 28px 0;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.55);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(12,31,26,.92);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.show{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .loc-card{ min-width: calc((100% - 16px)/2); max-width: calc((100% - 16px)/2); }
}
@media (max-width: 720px){
  .nav{ display: none; }
  .nav-toggle{ display: inline-block; }
  .nav.open{
    display: flex;
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .form-row{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .loc-card{ min-width: 100%; max-width: 100%; }
  .carousel-hint{ display: none; }
}


/* =========================
   Fullscreen location overlay
   ========================= */
.loc-overlay{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none; /* toggled by JS */
}

.loc-overlay.is-open{
  display: block;
}

.loc-overlay__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 26, .55);
  backdrop-filter: blur(10px);
}

.loc-overlay__panel{
  position: relative;

  /* 👇 keeps a minimum 20px margin on all sides */
  width: calc(100vw - 40px);
  height: calc(100vh - 40px);
  max-width: 1200px;
  max-height: 900px;

  margin: 20px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);

  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  background: rgba(255,255,255,.10);
}

.loc-overlay__media{
  position: relative;
  background: rgba(255,255,255,.08);
  display: grid;
  grid-template-rows: 1fr auto;
}

.loc-overlay__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loc-overlay__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.75);
  border-radius: 16px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
  z-index: 2;
}

.loc-overlay__nav--prev{ left: 12px; }
.loc-overlay__nav--next{ right: 12px; }

.loc-overlay__thumbs{
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  background: rgba(255,255,255,.10);
  border-top: 1px solid rgba(255,255,255,.14);
}

.loc-overlay__thumbs button{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.60);
  border-radius: 14px;
  padding: 0;
  width: 78px;
  height: 54px;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
}

.loc-overlay__thumbs img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loc-overlay__thumbs button.is-active{
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent 45%);
  outline-offset: 2px;
}

.loc-overlay__side{
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(0,0,0,.08);

  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;

  /* 👇 keeps menu scrollable inside the panel */
  max-height: 100%;
  overflow-y: auto;
}

.loc-overlay__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.loc-overlay__title{
  margin: 0;
  letter-spacing: -0.02em;
  font-size: 22px;
}

.loc-overlay__subtitle{
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.loc-overlay__tags{
  padding: 14px;
  border-radius: var(--radius-lg);
}

.loc-overlay__tagsHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.loc-overlay__tagsLabel{
  font-weight: 850;
  letter-spacing: -0.01em;
}

.loc-overlay__tagList{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loc-overlay__tagList .chip{
  display: inline-flex;
}

@media (max-width: 900px){
  .loc-overlay__panel{
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .loc-overlay__side{
    border-left: none;
    border-top: 1px solid rgba(0,0,0,.08);
    max-height: 45vh; /* 👈 prevents it from swallowing the image */
  }
}