/* Dhee Yogalayam: one header, menu and footer for every page (30 Sep 2026).
   The markup lives in each page (so it works without JavaScript and is read by search engines);
   these rules make it look the same everywhere. site-nav.js opens the phone menu and marks the
   current page. Change the header or footer in every page together, or the site test fails. */

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 248, 243, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line, rgba(63, 50, 59, 0.1));
  box-shadow: 0 4px 20px rgba(43, 35, 40, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 16px;
}
.site-header .header-nav { display: flex; gap: 26px; align-items: center; flex: 1; }
.site-header .header-nav a {
  color: var(--ink-soft, #5C4D53);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}
.site-header .header-nav a:hover,
.site-header .header-nav a[aria-current="page"] { color: var(--terracotta, #87241A); }
.site-header .header-nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; border-radius: 2px;
}
.site-header .header-logo-center {
  display: flex; flex-direction: column; align-items: center; text-decoration: none; text-align: center; flex-shrink: 0;
}
.site-header .logo-flame { width: 15px; height: 15px; margin-bottom: 2px; fill: var(--terracotta, #87241A); }
.site-header .logo-sub { font-size: 9px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--ink-muted, #8C7A82); font-weight: 600; margin-bottom: 1px; }
.site-header .logo-brand { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; letter-spacing: 3px; color: var(--terracotta-dark, #6B1A12); line-height: 1; }
.site-header .header-actions { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.site-header .header-actions .btn-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 40px;
  background: var(--terracotta, #87241A); color: #FFF; text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: 0.3px; white-space: nowrap; border: 1.5px solid transparent; box-shadow: 0 4px 14px rgba(135, 36, 26, 0.18);
  transition: background 0.25s ease, transform 0.25s ease;
}
.site-header .header-actions .btn-pill:hover { background: var(--terracotta-dark, #6B1A12); transform: translateY(-1px); }
.site-header .pill-short { display: none; }
.nav-menu-btn {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong, rgba(135, 36, 26, 0.2));
  background: transparent; color: var(--ink, #2B2328);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; padding: 0;
}
.nav-menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.25s ease; }
.nav-menu-btn:focus-visible { outline: 2px solid var(--terracotta, #87241A); outline-offset: 2px; }

/* Home page: the header floats over the photo until the visitor scrolls (index.html adds
   .header-scrolled after 70 px). */
header.site-header[data-transparent] { position: fixed; background: rgba(20, 14, 17, 0.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
header.site-header[data-transparent]:not(.header-scrolled) .header-nav a { color: rgba(255, 255, 255, 0.92); }
header.site-header[data-transparent]:not(.header-scrolled) .header-nav a:hover { color: #FFF; }
header.site-header[data-transparent]:not(.header-scrolled) .logo-flame { fill: #C9A97D; }
header.site-header[data-transparent]:not(.header-scrolled) .logo-sub { color: rgba(255, 255, 255, 0.72); }
header.site-header[data-transparent]:not(.header-scrolled) .logo-brand { color: #FFF; }
header.site-header[data-transparent]:not(.header-scrolled) .nav-menu-btn { color: #FFF; border-color: rgba(255, 255, 255, 0.4); }
header.site-header[data-transparent].header-scrolled { background: rgba(253, 248, 243, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line, rgba(63, 50, 59, 0.1)); box-shadow: 0 4px 20px rgba(43, 35, 40, 0.06); }

@media (max-width: 1020px) {
  .site-header .header-nav { gap: 18px; }
  .site-header .header-nav a { font-size: 12px; letter-spacing: 1px; }
}
@media (max-width: 900px) {
  header.site-header .wrap { height: 64px; padding: 0 16px; }
  .site-header .header-nav { display: none; }
  .site-header .header-logo-center { align-items: flex-start; text-align: left; }
  .site-header .logo-brand { font-size: 20px; letter-spacing: 2px; }
  .site-header .logo-sub { font-size: 8px; letter-spacing: 1.5px; }
  .site-header .header-actions { gap: 8px; }
  .site-header .header-actions .btn-pill { padding: 8px 14px; font-size: 12.5px; box-shadow: none; }
  .site-header .pill-long { display: none; }
  .site-header .pill-short { display: inline; }
  .nav-menu-btn { display: inline-flex; }
}

/* ---------- Phone menu ---------- */
.site-menu {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--paper, #FDF8F3);
  display: flex; flex-direction: column;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.site-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.site-menu-top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--line, rgba(63, 50, 59, 0.1)); }
.site-menu-top .logo-brand { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; letter-spacing: 2px; color: var(--terracotta-dark, #6B1A12); text-decoration: none; }
.site-menu-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong, rgba(135, 36, 26, 0.2)); background: transparent; color: var(--ink, #2B2328); font-size: 18px; cursor: pointer; }
.site-menu-list { list-style: none; margin: 8px 0 0; padding: 0 16px; }
.site-menu-list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line, rgba(63, 50, 59, 0.1)); text-decoration: none; color: var(--ink, #2B2328); }
.site-menu-list a b { display: block; font-family: 'Fraunces', serif; font-weight: 500; font-size: 21px; line-height: 1.2; color: var(--terracotta-dark, #6B1A12); }
.site-menu-list a span { display: block; font-size: 13px; color: var(--ink-muted, #8C7A82); margin-top: 2px; }
.site-menu-list a[aria-current="page"] b { color: var(--terracotta, #87241A); }
.site-menu-list a[aria-current="page"] b::after { content: ' \2022'; color: var(--gold-sacred, #A67C38); }
.site-menu-cta { margin: 22px 16px 0; display: grid; gap: 10px; }
.site-menu-cta a { display: flex; justify-content: center; align-items: center; gap: 8px; height: 50px; border-radius: 40px; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.site-menu-cta .primary { background: var(--terracotta, #87241A); color: #FFF; }
.site-menu-cta .wa { border: 1.5px solid var(--line-strong, rgba(135, 36, 26, 0.2)); color: var(--ink, #2B2328); }
.site-menu-foot { margin: 20px 16px 0; font-size: 12.5px; color: var(--ink-muted, #8C7A82); line-height: 1.5; }
body.menu-open { overflow: hidden; }
@media (min-width: 901px) { .site-menu { display: none; } }
@media (prefers-reduced-motion: reduce) { .site-menu, .site-menu.open { transition: none; transform: none; } }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--paper-warm, #F8F3ED); border-top: 1px solid var(--line, rgba(63, 50, 59, 0.1)); padding: 64px 0 32px; color: var(--ink-soft, #5C4D53); font-size: 14px; text-align: left; }
footer.site-footer .wrap { display: block; max-width: 1100px; margin: 0 auto; padding: 0 28px; }
footer.site-footer a { color: inherit; text-decoration: none; }
footer.site-footer a:hover { color: var(--terracotta, #87241A); text-decoration: none; }
.site-footer .sf-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr; gap: 32px; margin-bottom: 40px; }
.site-footer .sf-brand b { display: block; font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; letter-spacing: 3px; color: var(--terracotta-dark, #6B1A12); line-height: 1; }
.site-footer .sf-brand small { display: block; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-muted, #8C7A82); font-weight: 600; margin: 6px 0 12px; }
.site-footer .sf-brand p { font-size: 13.5px; line-height: 1.6; max-width: 260px; }
.site-footer h5 { font-family: 'DM Sans', sans-serif; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--terracotta, #87241A); font-weight: 700; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 13.5px; }
.site-footer .sf-connect p { font-size: 13.5px; line-height: 1.6; margin: 0 0 8px; }
.site-footer .sf-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 9px 18px; border-radius: 40px; background: var(--wa-green, #25A55F); color: #FFF !important; font-weight: 600; font-size: 13px; }
.site-footer .sf-bottom { border-top: 1px solid var(--line, rgba(63, 50, 59, 0.1)); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-muted, #8C7A82); }
@media (max-width: 1000px) { .site-footer .sf-grid { grid-template-columns: 1fr 1fr 1fr; } .site-footer .sf-brand, .site-footer .sf-connect { grid-column: span 3; } }
@media (max-width: 600px) {
  footer.site-footer { padding: 48px 0 28px; }
  footer.site-footer .wrap { padding: 0 20px; }
  .site-footer .sf-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .site-footer .sf-brand, .site-footer .sf-connect { grid-column: span 2; }
}
