/* ==========================================================================
   Artistic Dimension — Layout
   Header, navigation, mobile drawer, footer
   ========================================================================== */

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

.ad-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ad-page);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--ad-t) var(--ad-ease),
    box-shadow var(--ad-t) var(--ad-ease),
    border-color var(--ad-t) var(--ad-ease);
}

.ad-header.is-stuck {
  background: rgba(247, 244, 239, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--ad-line-soft);
  box-shadow: 0 6px 26px rgba(51, 39, 30, .05);
}

.ad-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2rem);
  min-height: var(--ad-header-h);
  padding-block: .55rem;
}

/* --------------------------------------------------------------------------
   Primary navigation
   -------------------------------------------------------------------------- */

.ad-nav {
  margin-inline: auto;
  display: flex;
}

.ad-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.9vw, 2.15rem);
}

.ad-nav__item { position: relative; }

.ad-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .55rem 0;
  font-family: var(--ad-font-sans);
  font-size: var(--ad-fs-small);
  font-weight: 400;
  letter-spacing: .015em;
  color: var(--ad-ink-soft);
  white-space: nowrap;
}

.ad-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .18rem;
  height: 1px;
  background: var(--ad-ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--ad-t) var(--ad-ease-out);
}

.ad-nav__link:hover { color: var(--ad-ink); }
.ad-nav__link:hover::after { transform: scaleX(1); }

.ad-nav__item.is-current > .ad-nav__link { color: var(--ad-ink); font-weight: 500; }
.ad-nav__item.is-current > .ad-nav__link::after { transform: scaleX(1); }

.ad-nav__caret {
  width: .72em;
  height: .72em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--ad-t-fast) var(--ad-ease);
  opacity: .75;
}

.ad-nav__item:hover .ad-nav__caret,
.ad-nav__item:focus-within .ad-nav__caret { transform: rotate(180deg); }

/* Dropdown */
.ad-nav__sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 232px;
  padding: .55rem;
  background: var(--ad-surface);
  border: 1px solid var(--ad-line-soft);
  border-radius: var(--ad-r);
  box-shadow: var(--ad-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity var(--ad-t) var(--ad-ease),
    transform var(--ad-t) var(--ad-ease-out),
    visibility var(--ad-t);
}

.ad-nav__item:hover > .ad-nav__sub,
.ad-nav__item:focus-within > .ad-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ad-nav__sub a {
  display: block;
  padding: .5rem .8rem;
  border-radius: var(--ad-r-sm);
  font-size: var(--ad-fs-small);
  color: var(--ad-body);
  transition: background-color var(--ad-t-fast) var(--ad-ease), color var(--ad-t-fast) var(--ad-ease);
}

.ad-nav__sub a:hover { background: var(--ad-surface-2); color: var(--ad-ink); }

/* --------------------------------------------------------------------------
   Header actions
   -------------------------------------------------------------------------- */

.ad-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, .9vw, .8rem);
  flex: none;
}

.ad-header__cta { border-radius: var(--ad-r-pill); }

/* The full navigation is visible on desktop, so the burger is a tablet and
   mobile control only. It is revealed alongside the nav collapse at 1024px. */
.ad-burger {
  display: none;
  place-items: center;
  width: clamp(38px, 3.2vw, 44px);
  aspect-ratio: 1;
  border: 1px solid var(--ad-line);
  border-radius: 50%;
  background: var(--ad-surface);
  color: var(--ad-ink);
  transition: background-color var(--ad-t-fast) var(--ad-ease), color var(--ad-t-fast) var(--ad-ease), transform var(--ad-t-fast) var(--ad-ease);
}

.ad-burger:hover { background: var(--ad-brown); color: #fff; }
.ad-burger:active { transform: scale(.95); }

.ad-burger__box {
  position: relative;
  width: 17px;
  height: 11px;
}

.ad-burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.4px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--ad-t) var(--ad-ease-out), opacity var(--ad-t-fast) var(--ad-ease);
}

.ad-burger__box span:nth-child(1) { top: 0; }
.ad-burger__box span:nth-child(2) { top: 50%; translate: 0 -50%; }
.ad-burger__box span:nth-child(3) { bottom: 0; }

.ad-burger[aria-expanded="true"] .ad-burger__box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.ad-burger[aria-expanded="true"] .ad-burger__box span:nth-child(2) { opacity: 0; }
.ad-burger[aria-expanded="true"] .ad-burger__box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */

.ad-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
}

.ad-drawer.is-open { visibility: visible; pointer-events: auto; }

.ad-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(31, 24, 18, .42);
  opacity: 0;
  transition: opacity var(--ad-t) var(--ad-ease);
  backdrop-filter: blur(2px);
}

.ad-drawer.is-open .ad-drawer__scrim { opacity: 1; }

.ad-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 88vw);
  height: 100%;
  background: var(--ad-page);
  border-left: 1px solid var(--ad-line-soft);
  box-shadow: -20px 0 60px rgba(51, 39, 30, .14);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s var(--ad-ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ad-drawer.is-open .ad-drawer__panel { transform: none; }

.ad-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 3vw, 1.8rem);
  border-bottom: 1px solid var(--ad-line-soft);
}

.ad-drawer__close {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid var(--ad-line);
  border-radius: 50%;
  color: var(--ad-ink);
  transition: background-color var(--ad-t-fast) var(--ad-ease), color var(--ad-t-fast) var(--ad-ease);
}

.ad-drawer__close:hover { background: var(--ad-brown); color: #fff; }
.ad-drawer__close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }

.ad-drawer__body {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  flex: 1;
}

.ad-drawer__nav { display: flex; flex-direction: column; }

.ad-drawer__nav > li { border-bottom: 1px solid var(--ad-line-soft); }

.ad-drawer__nav a {
  display: block;
  padding: .92rem 0;
  font-family: var(--ad-font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ad-ink);
  transition: color var(--ad-t-fast) var(--ad-ease), padding-left var(--ad-t) var(--ad-ease-out);
}

.ad-drawer__nav a:hover { color: var(--ad-gold); padding-left: .5rem; }

.ad-drawer__nav .ad-drawer__sub a {
  font-family: var(--ad-font-sans);
  font-size: var(--ad-fs-small);
  font-weight: 300;
  color: var(--ad-body);
  padding: .42rem 0 .42rem .95rem;
}

.ad-drawer__sub { padding-bottom: .55rem; }

.ad-drawer__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  font-size: var(--ad-fs-small);
  color: var(--ad-body);
}

.ad-drawer__meta a { display: flex; align-items: center; gap: .6rem; }
.ad-drawer__meta a:hover { color: var(--ad-gold); }
.ad-drawer__meta svg { width: 15px; height: 15px; stroke: var(--ad-gold); fill: none; stroke-width: 1.4; flex: none; }

body.ad-no-scroll { overflow: hidden; }

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

.ad-footer {
  position: relative;
  background: var(--ad-page);
  border-top: 1px solid var(--ad-line);
  overflow: hidden;
}

.ad-footer__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(120px, .82fr)) minmax(210px, 1.15fr);
  gap: clamp(1.4rem, 2.4vw, 2.6rem);
  padding-block: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem) clamp(1.4rem, 2vw, 2rem);
}

.ad-footer__brand { display: flex; flex-direction: column; gap: 1rem; max-width: 30ch; }

.ad-footer__about {
  font-size: var(--ad-fs-small);
  line-height: 1.85;
  color: var(--ad-body);
}

.ad-footer__socials { display: flex; gap: .55rem; margin-top: .2rem; }

.ad-social {
  display: grid;
  place-items: center;
  width: 33px;
  aspect-ratio: 1;
  border: 1px solid var(--ad-line);
  border-radius: 50%;
  color: var(--ad-ink-soft);
  transition: background-color var(--ad-t-fast) var(--ad-ease), color var(--ad-t-fast) var(--ad-ease), transform var(--ad-t-fast) var(--ad-ease), border-color var(--ad-t-fast) var(--ad-ease);
}

.ad-social:hover {
  background: var(--ad-brown);
  border-color: var(--ad-brown);
  color: #fff;
  transform: translateY(-2px);
}

.ad-social svg { width: 14px; height: 14px; fill: currentColor; }

.ad-footer__col { display: flex; flex-direction: column; gap: .55rem; }

.ad-footer__heading {
  font-family: var(--ad-font-sans);
  font-size: var(--ad-fs-small);
  font-weight: 500;
  color: var(--ad-ink);
  letter-spacing: .03em;
  margin-bottom: .35rem;
}

.ad-footer__list { display: flex; flex-direction: column; gap: .42rem; }

.ad-footer__list a,
.ad-footer__list li {
  font-size: var(--ad-fs-label);
  line-height: 1.7;
  color: var(--ad-body);
}

.ad-footer__list a:hover { color: var(--ad-gold); }
.ad-footer__list a.is-current { color: var(--ad-gold); }

.ad-footer__contact { display: flex; flex-direction: column; gap: .7rem; }

.ad-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: var(--ad-fs-label);
  line-height: 1.7;
  color: var(--ad-body);
}

.ad-footer__contact svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: .28em;
  stroke: var(--ad-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ad-footer__contact a:hover { color: var(--ad-gold); }

.ad-footer__lotus {
  position: absolute;
  right: clamp(-30px, -1vw, 0px);
  bottom: 8px;
  width: clamp(120px, 13vw, 190px);
  z-index: 1;
  opacity: .55;
  color: var(--ad-line);
  pointer-events: none;
}

.ad-footer__bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--ad-line-soft);
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.4rem;
  font-size: var(--ad-fs-label);
  color: var(--ad-muted);
}

.ad-footer__legal { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.ad-footer__legal a:hover { color: var(--ad-gold); }

/* Trust strip (contact page footer variant) */
.ad-trustbar {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--ad-line-soft);
}

.ad-trustbar__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  padding-block: .95rem;
}

.ad-trustbar__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-size: var(--ad-fs-label);
  color: var(--ad-ink-soft);
  letter-spacing: .015em;
  text-align: center;
  border-left: 1px solid var(--ad-line-soft);
  padding-inline: .5rem;
}

.ad-trustbar__list li:first-child { border-left: 0; }

.ad-trustbar__list svg {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: var(--ad-gold);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */

.ad-totop {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 150;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ad-brown);
  color: #fff;
  box-shadow: var(--ad-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--ad-t) var(--ad-ease), transform var(--ad-t) var(--ad-ease-out), visibility var(--ad-t), background-color var(--ad-t-fast) var(--ad-ease);
}

.ad-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.ad-totop:hover { background: var(--ad-gold); }
.ad-totop svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .ad-nav__list { gap: clamp(.7rem, 1.4vw, 1.3rem); }
  .ad-footer__inner {
    grid-template-columns: minmax(200px, 1.2fr) repeat(2, 1fr) minmax(190px, 1fr);
  }
  .ad-footer__col--areas { grid-column: auto; }
}

@media (max-width: 1024px) {
  .ad-nav { display: none; }
  .ad-burger { display: grid; }
  .ad-header__inner { justify-content: space-between; }
  .ad-header__actions { margin-left: auto; }
}

@media (max-width: 860px) {
  .ad-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 1.4rem;
  }
  .ad-footer__brand { grid-column: 1 / -1; max-width: 46ch; }
  .ad-trustbar__list { grid-template-columns: repeat(2, 1fr); gap: .7rem .4rem; }
  .ad-trustbar__list li:nth-child(odd) { border-left: 0; }
  .ad-trustbar__list li:last-child { grid-column: 1 / -1; }
  .ad-footer__lotus { display: none; }
}

@media (max-width: 620px) {
  .ad-header__cta { display: none; }
  .ad-footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 460px) {
  .ad-footer__inner { grid-template-columns: 1fr; }
  .ad-trustbar__list { grid-template-columns: 1fr; }
  .ad-trustbar__list li { border-left: 0; justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   Quick contact — header phone (desktop) and sticky call bar (phones)
   Added 2.1.2. Most enquiries to a studio arrive by phone or WhatsApp, so
   both stay one tap away without altering the approved layout.
   -------------------------------------------------------------------------- */

.ad-header__contact {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  white-space: nowrap;
}

.ad-header__phone {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--ad-font-sans);
  font-size: clamp(.68rem, .58rem + .18vw, .8rem);
  letter-spacing: .03em;
  color: var(--ad-ink);
  transition: color var(--ad-t) var(--ad-ease-out);
}

.ad-header__phone svg { width: 1em; height: 1em; flex: none; color: var(--ad-gold); }
.ad-header__phone:hover { color: var(--ad-gold); }

.ad-header__phone--alt::before {
  content: "";
  width: 1px;
  height: .85em;
  margin-right: .55rem;
  background: var(--ad-line);
}

.ad-header__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #1faa53;
  color: #fff;
  flex: none;
  transition: transform var(--ad-t) var(--ad-ease-out);
}

.ad-header__wa svg { width: .95rem; height: .95rem; }
.ad-header__wa:hover { transform: scale(1.08); }

/* Below this the header runs out of room; the sticky bar takes over. */
@media (max-width: 1180px) {
  .ad-header__contact { display: none; }
}

.ad-quickbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  gap: 1px;
  background: rgba(0, 0, 0, .08);
  box-shadow: 0 -2px 18px rgba(0, 0, 0, .12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.ad-quickbar__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  background: var(--ad-ink);
  color: #fff;
  font-family: var(--ad-font-sans);
  font-size: .84rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ad-quickbar__btn svg { width: 1.05em; height: 1.05em; flex: none; }
.ad-quickbar__btn--whatsapp { background: #1faa53; }

@media (max-width: 767px) {
  .ad-quickbar { display: flex; }

  /* Keep the bar from covering the footer and the back-to-top button. */
  .ad-footer { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px) + 1rem); }
  .ad-totop { bottom: calc(52px + env(safe-area-inset-bottom, 0px) + .9rem); }
}

/* The mandir sits right of centre in the home hero; on phones the box is
   wider than it is tall, so bias the crop right to keep it in frame. */
@media (max-width: 1024px) {
  .home-hero__media img { object-position: 62% center; }
}
