/* ============================================================
   Knick Salon & Spa — main stylesheet (mobile-first)
   Design system per Knick-Site-Mockup.html:
   sage / cream / ink, system fonts, 18px radius
   ============================================================ */

:root {
  --sage:      #7c9a72;
  --sage-dark: #5d7a54;
  --cream:     #f7f5ef;
  --ink:       #2b2f2a;
  --ink-soft:  #5c6359;
  --white:     #ffffff;
  --gold:      #f4b942;
  --line:      #e4e2d8;
  --footer-bg: #232821;
  --danger:    #a4442f;
  --ok:        #4a7856;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43,47,42,.08);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
a:hover:not(.btn) { color: var(--sage-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 840px; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.eyebrow {
  color: var(--sage-dark);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage-dark);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
  text-decoration: none !important;
}
.btn--primary { background: var(--sage); color: #fff; }
.btn--primary:hover { background: var(--sage-dark); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--sage-dark); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn--ghost {
  background: transparent;
  color: var(--sage-dark);
  border: 2px solid var(--sage-dark);
}
.btn--ghost:hover { background: rgba(124,154,114,0.12); }
.hero .btn--ghost, .band .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.8);
}
.hero .btn--ghost:hover, .band .btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,245,239,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: inline-block; }
.brand-logo {
  width: 190px; /* same size as the footer logo */
  max-width: 100%;
  height: auto;
  aspect-ratio: 17 / 6; /* 340:120 viewBox */
  display: block;
}
.brand-main { font-size: 1.35rem; font-weight: 800; letter-spacing: .5px; color: var(--ink); }
.brand-accent { font-size: 1.05rem; font-weight: 700; color: var(--sage); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--cream);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  padding: 12px 24px;
  z-index: 99;
}
.main-nav.is-open { display: flex; }
.main-nav a {
  font-weight: 500;
  color: var(--ink-soft);
  padding: 14px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.main-nav a.is-active,
.main-nav a:hover { color: var(--sage-dark); text-decoration: none; }
.main-nav .btn--book { margin-top: 14px; border-bottom: 0 !important; color: #fff; }
.main-nav .btn--book:hover { color: #fff; }

.btn--book-mobile { display: inline-block; padding: 10px 22px; font-size: 0.9rem; }
.btn--book { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(30,34,28,.55), rgba(30,34,28,.55)),
    linear-gradient(135deg, var(--sage-dark), var(--sage)) center/cover no-repeat;
  padding: 96px 0;
}
.hero-content { color: #fff; max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: .95; }
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-cta, .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta.center, .hero-actions.center { justify-content: center; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section--tall { padding: 120px 0; }
.section--tint { background: var(--white); }
.section-title { text-align: center; }
.section-intro {
  text-align: center;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 42px;
  font-size: 1.08rem;
}
.section-title--sm { text-align: left; font-size: 1.5rem; margin-top: 2em; }

.page-hero {
  background: linear-gradient(180deg, #e8eee5, var(--cream));
  padding: 64px 0 58px;
  text-align: center;
}
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; margin: 0 auto; }

/* ---------- Card grids ---------- */

.card-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
.card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
.card-grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Image service cards (home) */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); text-decoration: none; }
.service-card img { height: 220px; width: 100%; object-fit: cover; }
.service-card-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card-body h3 { margin: 0; }
.service-card-body p { color: var(--ink-soft); margin: 0; flex: 1; }
.service-card-link { color: var(--sage-dark); font-weight: 600; }

/* Icon-only service cards (fallback / no image) */
.service-card:has(> .service-card-body:only-child) img { display: none; }
.service-card-icon { font-size: 1.9rem; color: var(--sage); }

/* ---------- Why choose us ---------- */

.why { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 48px;
}
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .dot {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feature h4 { margin-bottom: 4px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Featured quote ---------- */

.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 20px;
}
.quote cite { color: var(--ink-soft); font-style: normal; font-weight: 600; }
.stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 3px; margin-bottom: 14px; }

/* ---------- CTA band ---------- */

.band {
  background: var(--sage);
  color: #fff;
  text-align: center;
}
.band h2 { color: #fff; }
/* Keep the Book Now and phone buttons the same size */
.band .hero-cta .btn {
  flex: 1 1 0;
  max-width: 240px;
  text-align: center;
}

/* ---------- Pricing ---------- */

.pricing-block { margin-bottom: 54px; }
.pricing-category {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 8px;
}
.pricing-category::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--sage);
}
.pricing-table {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.pricing-row:last-child { border-bottom: 0; }
.pricing-row-main { flex: 1; min-width: 0; }
.pricing-row-main h3 { margin: 0 0 4px; font-size: 1.2rem; }
.pricing-row-main p { margin: 0 0 6px; color: var(--ink-soft); font-size: 0.92rem; }
.pricing-duration { font-size: 0.85rem; color: var(--sage-dark); font-weight: 500; }
.pricing-dots {
  flex: 0 0 24px;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-6px);
}
.pricing-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sage-dark);
  white-space: nowrap;
}

/* ---------- Testimonials ---------- */

.testimonial-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.testimonial-card {
  flex: 0 0 min(86%, 380px);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  margin: 0;
}
.testimonial-card blockquote {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
}
.testimonial-card figcaption { color: var(--sage-dark); font-weight: 600; font-size: 0.9rem; }

.review-list { display: grid; gap: 20px; }
.review-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.review-card blockquote {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
}
.review-card figcaption { color: var(--sage-dark); font-weight: 600; font-size: 0.9rem; }

/* ---------- Specials ---------- */

.special-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  margin-bottom: 26px;
}
.special-card h2 { font-size: 1.7rem; }
.special-dates {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.special-card .btn { margin-top: 6px; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--white);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 10px;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(30, 30, 26, 0.65));
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 24, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: #eee;
  font-size: 0.95rem;
  margin: 0;
  padding: 0 60px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- About / Team ---------- */

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 24px;
  text-align: center;
}
.team-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid #e8eee5;
}
.team-photo--placeholder {
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 2.6rem;
  font-weight: 600;
}
.team-role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.team-card p:last-child { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
/* "Bio only" mode: the photo is hidden, so the name/role/bio block is
   centered vertically and the text fills the card instead of sitting under
   a (now absent) image. */
.team-card--bio-only {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-card--bio-only h3 { margin: 0 0 8px; }

/* FAQ (About page) — an accessible accordion of Q&A items */
.faq-list { display: grid; gap: 12px; margin-top: 28px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.faq-answer p { margin: 0 0 0.7em; }
.faq-answer p:last-child { margin: 0; }

/* "Our Policies" (bottom of the About page) — stacked policy cards, styled to
   match the FAQ accordion cards above. */
/* Anchor target for the footer "Policies" quick link: the offset keeps the
   section clear of the sticky header when navigating to #our-policies. */
#our-policies { scroll-margin-top: 88px; }
.policy-list { display: grid; gap: 14px; margin-top: 28px; }
.policy-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.policy-item h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: var(--ink);
}
.policy-body { color: var(--ink-soft); line-height: 1.6; }
.policy-body p { margin: 0 0 0.7em; }
.policy-body p:last-child { margin: 0; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.contact-line { font-size: 1.05rem; }
.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}
.hours-list li span { color: var(--ink-soft); }
.hours-list li strong { font-weight: 600; color: var(--ink); }
.hours-list--footer li { padding: 5px 0; font-size: 0.9rem; }

/* ---------- Forms (contact page) ---------- */

.form { display: grid; gap: 14px; }
.form label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 0;
  border-color: var(--sage);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
}

/* ---------- CTA box ---------- */

.section--cta { padding-top: 0; }
.cta-box {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(255,255,255,0.08), transparent 50%),
    var(--sage-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 52px 34px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-box h2 { color: var(--cream); }
.cta-box p { color: rgba(255, 255, 255, 0.85); max-width: 48ch; margin: 0 auto 24px; }
.cta-box .btn--ghost { color: var(--cream); border-color: var(--cream); }
.cta-box .btn--ghost:hover { background: rgba(255,255,255,0.12); }
.cta-box .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-box--inline { background: #e8eee5; box-shadow: none; margin-top: 30px; }
.cta-box--inline h2 { color: var(--ink); }
.cta-box--inline p { color: var(--ink-soft); }
.cta-box--inline .btn--ghost { color: var(--sage-dark); border-color: var(--sage-dark); }

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 44px 26px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: #c9cec5;
  margin-top: 0;
  padding: 64px 0 32px;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer a { color: #c9cec5; display: inline-block; margin-bottom: 10px; }
.site-footer a:hover { color: var(--sage); text-decoration: none; }
.site-footer .hours-list,
.site-footer .footer-links { border: 0; }
.site-footer .hours-list li { border: 0; padding: 4px 0; color: #c9cec5; }
.site-footer .hours-list li span { color: rgba(255,255,255,0.55); }
.site-footer .hours-list li strong { color: #c9cec5; }
.site-footer .footer-links li { padding: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 0 24px;
}
.footer-col--brand .brand-main { color: #fff; }
.footer-col--brand .brand-accent { color: var(--sage); }
.footer-logo {
  display: inline-block;
  width: 190px;
  max-width: 100%;
  height: auto;
  margin-bottom: 4px;
}
.footer-col--brand p { font-size: 0.95rem; color: rgba(255,255,255,0.6); margin-top: 14px; }
/* Social icons (Facebook / Instagram) in the footer brand column */
.footer-socials { display: flex; gap: 14px; }
.footer-socials .social-link { display: inline-flex; }
.footer-socials .social-link img { width: 22px; height: 22px; opacity: 0.75; transition: opacity 0.15s ease; }
.footer-socials .social-link:hover img { opacity: 1; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 24px 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 0; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.6); margin: 0; }

/* ---------- Sticky mobile book bar ---------- */

.sticky-book { display: none; }
@media (max-width: 767px) {
  .sticky-book {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
    padding: 12px 24px;
  }
  .sticky-book .btn { width: 100%; text-align: center; }
  /* The floating Book Now bar is visible here — hide the header's Book Now */
  .btn--book-mobile { display: none; }
  /* CTA band buttons: size to their content so text never wraps */
  .band .hero-cta .btn { flex: 0 1 auto; }
  body { padding-bottom: 72px; }
  section { padding: 64px 0; }
}

/* ---------- Flash (site) ---------- */

.flash {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  z-index: 120;
  max-width: min(92vw, 520px);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  animation: flash-in 0.3s ease;
}
.flash--success { background: var(--ok); color: #fff; }
.flash--error { background: var(--danger); color: #fff; }
@keyframes flash-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Responsive: tablet & up (768px) ---------- */

@media (min-width: 768px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  /* Centered card flow: leftover cards in the last row center themselves */
  .card-grid--auto {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .card-grid--auto > * {
    flex: 0 1 calc(50% - 14px); /* 2 per row, 1 gap of 28px */
    max-width: calc(50% - 14px);
  }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
}

/* ---------- Responsive: desktop (1024px) ---------- */

@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid--auto > * {
    flex-basis: calc((100% - 56px) / 3); /* 3 per row, 2 gaps of 28px */
    max-width: calc((100% - 56px) / 3);
  }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

  /* Desktop navigation */
  .nav-toggle { display: none; }
  .btn--book-mobile { display: none; }
  .btn--book { display: inline-block; }
  .main-nav {
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0 0 0 28px;
    transform: none;
  }
  .main-nav a {
    border-bottom: 0;
    padding: 8px 12px;
    font-size: 0.95rem;
    width: auto;
    text-align: left;
  }
  .main-nav .btn--book { margin: 0 0 0 14px; }
  .main-nav:not(.is-open) { display: flex; }
}