/* ==========================================================================
   Crystal Beauty Center — site styles
   ========================================================================== */

:root {
  --ivory: #faf8f4;
  --ivory-deep: #f3ede5;
  --sand: #ece4d9;
  --white: #ffffff;
  --navy: #10304f;
  --navy-deep: #0a2338;
  --navy-soft: #1b4a70;
  --blue: #146990;
  --aqua: #62c6e6;
  --aqua-soft: #bfe9f4;
  --ink: #15202b;
  --muted: #5d6873;
  --line: rgba(16, 48, 79, 0.14);
  --line-strong: rgba(16, 48, 79, 0.26);
  --line-light: rgba(250, 248, 244, 0.24);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --shell: 1280px;
  --header-h: 86px;
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--aqua-soft);
  color: var(--navy-deep);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

h1,
h2 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

h1 {
  font-size: clamp(3.1rem, 6.4vw, 6rem);
  line-height: 0.97;
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
}

h2 {
  font-size: clamp(2.25rem, 4.4vw, 3.9rem);
  line-height: 1.02;
}

h3 {
  font-weight: 400;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.eyebrow--center {
  justify-content: center;
  text-align: center;
}

.eyebrow--light {
  color: var(--aqua);
}

.section {
  padding-block: clamp(76px, 9vw, 132px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 64px);
}

.section-head__note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 42ch;
}

.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head--center h2 {
  margin-inline: auto;
  max-width: 20ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.text-link span {
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.text-link:hover span {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.btn--navy:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy);
}

.btn--ghost:hover {
  border-color: var(--navy);
  background: rgba(16, 48, 79, 0.04);
}

.btn--light {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--navy-deep);
}

.btn--light:hover {
  background: var(--aqua-soft);
  border-color: var(--aqua-soft);
}

.btn--outline-light {
  background: transparent;
  border-color: var(--line-light);
  color: var(--ivory);
}

.btn--outline-light:hover {
  background: rgba(250, 248, 244, 0.08);
  border-color: var(--ivory);
}

.btn--small {
  padding: 13px 22px;
  font-size: 0.65rem;
}

.btn--large {
  padding: 19px 34px;
  font-size: 0.72rem;
}

.btn--block {
  width: 100%;
}

.icon {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--pin {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(250, 248, 244, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(10, 35, 56, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  width: clamp(150px, 14vw, 186px);
  height: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--navy);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle__label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 16px;
}

.menu-toggle__bars span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  background: var(--ivory);
  overflow-y: auto;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}

.mobile-menu nav ul {
  display: grid;
  gap: 0;
}

.mobile-menu nav a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--navy-deep);
}

.mobile-menu__note {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: var(--header-h);
  background: var(--ivory);
}

.hero::before {
  content: "";
  position: absolute;
  top: 12%;
  left: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 198, 230, 0.18), transparent 66%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  min-height: min(760px, calc(100svh - var(--header-h)));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(64px, 8vw, 104px);
  padding-right: clamp(8px, 2vw, 32px);
}

.hero-copy h1 {
  margin-bottom: 26px;
  max-width: 11ch;
}

.hero-lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  padding: 20px 0 20px 8px;
  min-height: 560px;
}

.hero-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--sand);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(10, 35, 56, 0) 40%, rgba(10, 35, 56, 0.38) 100%);
  pointer-events: none;
}

.hero-frame picture {
  display: block;
  height: 100%;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  background: rgba(250, 248, 244, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--navy);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-caption span {
  color: var(--blue);
  font-size: 0.6rem;
}

.service-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ivory-deep);
}

.service-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px clamp(14px, 2.4vw, 30px);
  padding-block: 17px;
}

.service-strip span:not(.diamond) {
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
}

.service-strip .diamond {
  color: var(--aqua);
  font-size: 0.5rem;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  background: var(--ivory);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.about-media {
  position: relative;
}

.framed-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.framed-image::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}

.framed-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-caption {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-copy h2 {
  margin-bottom: 26px;
  max-width: 17ch;
}

.about-copy > p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
}

.about-copy > p + p {
  margin-top: 14px;
}

.pillars {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.pillars li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.pillars__num {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.pillars h3 {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--navy-deep);
}

.pillars p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Services / tabs
   -------------------------------------------------------------------------- */

.services {
  background: var(--ivory-deep);
  border-top: 1px solid rgba(16, 48, 79, 0.06);
}

.tabs {
  margin-top: 8px;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

.tab {
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.tab:hover {
  border-color: var(--navy);
}

.tab[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.tab-panels {
  margin-top: 36px;
}

.tab-panel {
  animation: panel-in 0.4s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tab-panel:focus-visible {
  outline-offset: 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}

.service-group h3 {
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.service-list .service {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.service-name {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
}

.service-list--inline .service {
  padding-block: 11px;
}

.service-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--aqua);
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.service-group--aside {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(250, 248, 244, 0.72);
}

.service-group--aside h3 {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.service-aside {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Editorial cards
   -------------------------------------------------------------------------- */

.service-cards {
  background: var(--ivory);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.editorial-card figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand);
}

.editorial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.editorial-card:hover img {
  transform: scale(1.035);
}

.editorial-card__body {
  padding-top: 20px;
}

.card-index {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}

.editorial-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--navy-deep);
}

.editorial-card p:not(.card-index) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Ritual
   -------------------------------------------------------------------------- */

.ritual {
  background: var(--navy-deep);
  color: var(--ivory);
}

.ritual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 620px;
}

.ritual-media {
  position: relative;
  overflow: hidden;
}

.ritual-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(10, 35, 56, 0.35));
  pointer-events: none;
}

.ritual-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.ritual-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 100px) clamp(32px, 7vw, 100px);
}

.ritual-copy h2 {
  color: var(--ivory);
  margin-bottom: 22px;
  max-width: 14ch;
}

.ritual-copy > p {
  max-width: 48ch;
  color: rgba(250, 248, 244, 0.74);
  font-size: 0.96rem;
  line-height: 1.8;
}

.ritual-list {
  margin: 28px 0 34px;
  border-top: 1px solid var(--line-light);
}

.ritual-list li {
  padding-block: 13px;
  border-bottom: 1px solid var(--line-light);
  color: rgba(250, 248, 244, 0.9);
  font-size: 0.85rem;
  line-height: 1.6;
}

.ritual-copy .btn {
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Bridal
   -------------------------------------------------------------------------- */

.bridal {
  background: var(--sand);
  overflow: hidden;
}

.bridal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: stretch;
  max-width: 1500px;
  margin-inline: auto;
}

.bridal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vw, 116px) clamp(28px, 6vw, 96px);
}

.bridal-copy h2 {
  margin-bottom: 24px;
  max-width: 15ch;
}

.bridal-copy > p {
  max-width: 50ch;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
}

.bridal-points {
  margin: 30px 0 36px;
  max-width: 55ch;
}

.bridal-points li {
  display: flex;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-deep);
  font-size: 0.9rem;
  line-height: 1.6;
}

.bridal-points li span {
  color: var(--blue);
  font-size: 0.6rem;
  padding-top: 5px;
}

.bridal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bridal-media {
  min-height: 540px;
}

.bridal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  background: var(--ivory);
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 4vw, 52px);
}

.gallery-head .eyebrow {
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 20px);
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--sand);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 35, 56, 0.32));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-item__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: var(--ivory);
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item:hover .gallery-item__label,
.gallery-item:focus-visible .gallery-item__label {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Branches
   -------------------------------------------------------------------------- */

.branches {
  background: var(--ivory-deep);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.branch-card {
  background: var(--ivory);
  border: 1px solid rgba(16, 48, 79, 0.08);
}

.branch-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.branch-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  transition: transform 0.9s var(--ease);
}

.branch-card:hover .branch-card__media img {
  transform: scale(1.03);
}

.branch-card__body {
  padding: clamp(24px, 3vw, 36px);
}

.branch-card__place {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.branch-card h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 300;
  line-height: 1;
  color: var(--navy-deep);
}

.branch-card__body > p:not(.branch-card__place) {
  max-width: 46ch;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.branch-details {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.branch-details li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-block: 5px;
}

.branch-details__label {
  padding-top: 3px;
  color: var(--blue);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.branch-details a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.branch-details a:hover {
  color: var(--blue);
  text-decoration-color: var(--blue);
}

.branch-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* --------------------------------------------------------------------------
   Booking
   -------------------------------------------------------------------------- */

.booking {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--ivory);
}

.booking::before,
.booking::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.booking::before {
  width: 620px;
  height: 620px;
  top: -320px;
  right: -180px;
  background: radial-gradient(circle, rgba(98, 198, 230, 0.2), transparent 65%);
}

.booking::after {
  width: 460px;
  height: 460px;
  bottom: -280px;
  left: -140px;
  background: radial-gradient(circle, rgba(98, 198, 230, 0.13), transparent 68%);
}

.booking-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(80px, 10vw, 136px);
  text-align: center;
}

.booking h2 {
  max-width: 22ch;
  margin: 0 auto 24px;
  color: var(--ivory);
}

.booking-lede {
  max-width: 56ch;
  margin: 0 auto;
  color: rgba(250, 248, 244, 0.74);
  font-size: 0.98rem;
  line-height: 1.8;
}

.booking-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.booking-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(250, 248, 244, 0.62);
}

.booking-phones a {
  color: var(--ivory);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.booking-phones a:hover {
  color: var(--aqua);
  border-color: var(--aqua);
}

.booking-phones span {
  color: rgba(250, 248, 244, 0.3);
}

.booking-note {
  margin-top: 24px;
  color: rgba(250, 248, 244, 0.55);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ivory);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1.1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(56px, 6vw, 80px);
}

.brand--footer img {
  width: 190px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer-nav h3,
.footer-contact h3 {
  margin-bottom: 16px;
  color: var(--navy-deep);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-nav li + li {
  margin-top: 9px;
}

.footer-nav a,
.footer-contact p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer-nav a {
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--blue);
}

.footer-contact p {
  margin-bottom: 16px;
  max-width: 30ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  overflow: hidden;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(7, 20, 32, 0.93);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-height: 100%;
}

.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  object-fit: contain;
  background: var(--sand);
}

.lightbox figcaption {
  color: rgba(250, 248, 244, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: rgba(10, 35, 56, 0.7);
  color: var(--ivory);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--navy-soft);
  border-color: rgba(250, 248, 244, 0.5);
}

.lightbox__close {
  top: 0;
  right: 0;
}

.lightbox__nav--prev {
  left: 0;
}

.lightbox__nav--next {
  right: 0;
}

.lightbox svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */

.error-page {
  background: var(--ivory);
}

.error-main {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding-top: var(--header-h);
  text-align: center;
}

.error-main .shell {
  padding-block: clamp(72px, 12vw, 140px);
}

.error-main h1 {
  max-width: 16ch;
  margin: 0 auto 22px;
}

.error-lede {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* --------------------------------------------------------------------------
   Entrance animation (hero only — page content never depends on JS to show)
   -------------------------------------------------------------------------- */

.hero-copy > * {
  animation: hero-in 0.9s var(--ease) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 0.06s;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 0.12s;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 0.18s;
}

.hero-copy > *:nth-child(n + 5) {
  animation-delay: 0.24s;
}

.hero-visual {
  animation: hero-in 1.1s 0.12s var(--ease) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .primary-nav ul {
    gap: 20px;
  }

  .primary-nav a {
    font-size: 0.62rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .editorial-card figure {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 1000px) {
  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero-copy {
    padding-block: 56px;
  }

  .hero-frame img {
    min-height: 640px;
  }

  .about-grid {
    gap: 48px;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .section-head__note {
    max-width: 52ch;
  }

  .ritual-copy {
    padding-inline: clamp(28px, 6vw, 64px);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding-block: 52px 40px;
    padding-right: 0;
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .hero-visual {
    padding: 0;
    min-height: 0;
  }

  .hero-frame {
    aspect-ratio: 4 / 5;
    max-height: 620px;
  }

  .hero-frame img {
    min-height: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 520px;
  }

  .framed-image {
    aspect-ratio: 1 / 1;
  }

  .about-copy h2 {
    max-width: 20ch;
  }

  .ritual-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ritual-media {
    aspect-ratio: 4 / 3;
    max-height: 440px;
  }

  .ritual-media img {
    min-height: 0;
  }

  .bridal-grid {
    grid-template-columns: 1fr;
  }

  .bridal-copy {
    order: 2;
    padding-block: 56px;
  }

  .bridal-media {
    order: 1;
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: 480px;
  }

  .bridal-media img {
    object-position: 50% 30%;
  }

  .branch-grid {
    grid-template-columns: 1fr;
  }

  .branch-card__media {
    aspect-ratio: 16 / 9;
  }

  .branch-details li {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .branch-card__media img {
    object-position: 50% 60%;
  }

  .gallery-head {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  :root {
    --header-h: 72px;
  }

  .header-inner {
    min-height: var(--header-h);
    gap: 12px;
  }

  .brand img {
    width: 138px;
  }

  .header-actions .btn--navy {
    display: none;
  }

  .hero-copy {
    padding-top: 40px;
  }

  .hero-copy h1 {
    margin-bottom: 20px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .service-strip__inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-inline: var(--gutter);
  }

  .service-strip__inner::-webkit-scrollbar {
    display: none;
  }

  .service-strip span {
    flex: none;
  }

  .tablist {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tablist::-webkit-scrollbar {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-head {
    flex-direction: column;
    gap: 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .editorial-card figure {
    aspect-ratio: 4 / 5;
  }

  .branch-card__media {
    aspect-ratio: 4 / 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .lightbox__nav {
    top: auto;
    bottom: -64px;
  }

  .lightbox__nav--prev {
    left: 30%;
  }

  .lightbox__nav--next {
    right: 30%;
  }

  .lightbox img {
    max-height: 66vh;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-copy > *,
  .hero-visual {
    animation: none;
  }
}
