/* ==========================================================================
   My Event Planners — main stylesheet
   1 Tokens  2 Base  3 Buttons  4 Header  5 Hero  6 Sections  7 Cards
   8 Portfolio  9 Features/Process  10 Testimonials  11 CTA  12 About
   13 Services  14 Service detail  15 Contact  16 Footer  17 Floating UI
   18 Lightbox  19 Motion
   Responsive rules live in responsive.css
   ========================================================================== */

/* 1. TOKENS — change the palette here ---------------------------------- */
:root {
  --primary: #211e1b; /* charcoal – dark sections, buttons */
  --secondary: #e9dfcd; /* muted champagne */
  --accent: #b08d57; /* subtle gold (use sparingly) */
  --accent-dark: #80622f; /* gold for small text on light backgrounds (AA) */
  --accent-light: #d3b67b; /* gold on dark backgrounds */
  --background: #faf7f2; /* warm ivory page background */
  --surface: #f2ebdf; /* soft beige panels */
  --ivory: #fffdf9; /* cards / inputs */
  --text: #2a2622;
  --muted: #6b635a;
  --line: rgba(33, 30, 27, 0.14);
  --error: #9b2f25;

  --font-heading: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. BASE -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
html.no-scroll {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
code {
  font-size: 0.9em;
  background: rgba(33, 30, 27, 0.07);
  padding: 0.1em 0.35em;
}
p {
  margin: 0 0 1.1em;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
address {
  font-style: normal;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
}
h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
}
h3 {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}
h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-dark);
}

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.section--dark :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.site-footer :focus-visible,
.cta-banner :focus-visible,
.site-header:not(.is-scrolled):not(.menu-open) :focus-visible {
  outline-color: var(--accent-light);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
[data-icon] {
  display: inline-flex;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  transform: translateY(-200%);
  transition: transform 0.25s;
}
.skip-link:focus {
  transform: none;
}

section[id],
div[id].anchor {
  scroll-margin-top: 90px;
}

/* 3. BUTTONS ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.35s var(--ease);
}
.btn:hover .icon {
  transform: translateX(4px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-light {
  background: var(--ivory);
  color: var(--primary);
  border-color: var(--ivory);
}
.btn-light:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-sm {
  min-height: 44px;
  padding: 0.65rem 1.4rem;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--accent);
  transition:
    gap 0.35s var(--ease),
    color 0.3s;
}
.link-arrow .icon {
  width: 1.1em;
  height: 1.1em;
}
.link-arrow:hover {
  gap: 0.95rem;
  color: var(--accent-dark);
}

/* 4. HEADER ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  transition: color 0.4s var(--ease);
}
/* background lives on a pseudo-element so the mobile menu (position:fixed) isn't trapped by backdrop-filter */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(250, 247, 242, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled {
  color: var(--text);
}
.site-header.is-scrolled::before {
  opacity: 1;
}
.site-header.menu-open {
  color: var(--text);
}
.site-header.menu-open::before {
  opacity: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  transition: height 0.4s var(--ease);
}
.is-scrolled .header-inner {
  height: 70px;
}

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
  position: relative;
  z-index: 3;
}
.brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  display: block;
}
.brand-ring-gold {
  stroke: var(--accent-light);
}
.brand-m {
  fill: currentColor;
}
.brand-diamond {
  fill: var(--accent-light);
}
.site-header.is-scrolled .brand-ring-gold,
.site-header.menu-open .brand-ring-gold {
  stroke: var(--accent-dark);
}
.site-header.is-scrolled .brand-diamond,
.site-header.menu-open .brand-diamond {
  fill: var(--accent-dark);
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-suffix {
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 0.28rem;
  opacity: 0.85;
}

.primary-nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
}
.nav-list > li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.6rem 0;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* Services mega menu ---------------------------------------------------- */
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-trigger .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}
.has-mega.open .nav-trigger .icon {
  transform: rotate(180deg);
}
.has-mega.open .nav-trigger::after {
  transform: scaleX(1);
}

/* the panel is positioned against the (fixed) header, so it spans the container width */
.nav-list > li.has-mega {
  position: static;
}
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(100% - 2 * var(--gutter), 1060px);
  margin-top: 0.4rem;
  color: var(--text);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  box-shadow:
    0 34px 60px -30px rgba(33, 30, 27, 0.4),
    0 10px 24px -14px rgba(33, 30, 27, 0.2);
  max-height: calc(100vh - var(--header-h) - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease),
    visibility 0.3s;
}
.has-mega.open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.mega-col {
  padding: 1.7rem 1.9rem 1.5rem;
}
.mega-col + .mega-col {
  border-left: 1px solid var(--line);
}

.mega-title,
.mega-acc {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  margin: 0;
  padding: 0 0 0.95rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-dark);
  text-align: left;
  background: none;
  border: 0;
}
.mega-title {
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.mega-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 38px;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.mega-col:hover .mega-title::after,
.mega-col.is-current .mega-title::after {
  width: 100%;
}
.mega-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
}
.mega-ico .icon {
  width: 1rem;
  height: 1rem;
}
.mega-acc {
  display: none;
}
.mega-collapse {
  display: block;
}

.mega-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-inline: -0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text);
  transition:
    background-color 0.25s,
    color 0.25s,
    padding-left 0.3s var(--ease);
}
.mega-item-ico {
  display: inline-flex;
  flex: none;
  color: var(--accent-dark);
  opacity: 0.8;
}
.mega-item-ico .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.mega-item-label {
  flex: 1;
  min-width: 0;
}
.mega-item-arrow {
  display: inline-flex;
  color: var(--accent-dark);
  opacity: 0.35;
  transition:
    opacity 0.25s,
    transform 0.3s var(--ease);
}
.mega-item-arrow .icon {
  width: 1rem;
  height: 1rem;
}
.mega-list a:hover,
.mega-list a:focus-visible {
  background: var(--surface);
  color: var(--accent-dark);
  padding-left: 1rem;
}
.mega-list a:hover .mega-item-arrow,
.mega-list a:focus-visible .mega-item-arrow {
  opacity: 1;
  transform: translateX(3px);
}
.mega-list a[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 500;
  background: var(--surface);
  box-shadow: inset 2px 0 0 var(--accent);
}

.mega-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 1.9rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.mega-all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  padding: 0.3rem 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid var(--accent);
  transition:
    gap 0.35s var(--ease),
    color 0.3s;
}
.mega-all .icon {
  width: 1.05em;
  height: 1.05em;
}
.mega-all:hover,
.mega-all:focus-visible {
  gap: 0.95rem;
  color: var(--accent-dark);
}
.mega-all[aria-current="page"] {
  color: var(--accent-dark);
}
.site-header .mega :focus-visible,
.site-header:not(.is-scrolled):not(.menu-open) .mega :focus-visible {
  outline-color: var(--accent-dark);
}

/* Header CTA: outlined over hero, solid once scrolled */
.header-cta {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.header-cta:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.is-scrolled .header-cta {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.is-scrolled .header-cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.4s var(--ease),
    top 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) {
  top: 17px;
}
.nav-toggle span:nth-child(2) {
  top: 26px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21.5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 21.5px;
  transform: rotate(-45deg);
}
.nav-mobile-extra {
  display: none;
}

/* 5. HERO -------------------------------------------------------------- */
.hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--primary);
}
.hero {
  min-height: 100vh;
  min-height: 100svh;
}
.page-hero {
  min-height: clamp(420px, 66vh, 620px);
}
.page-hero--plain {
  min-height: clamp(300px, 42vh, 380px);
}

.hero-media,
.page-hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .hero-media img {
  object-position: center 30%;
  animation: heroZoom 2.8s var(--ease) both;
}
.hero::after,
.page-hero:not(.page-hero--plain)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(22, 19, 17, 0.62) 0%,
    rgba(22, 19, 17, 0.2) 38%,
    rgba(22, 19, 17, 0.82) 100%
  );
}

.hero-inner,
.page-hero-inner {
  width: 100%;
  padding-top: calc(var(--header-h) + 3rem);
}
.hero-inner {
  padding-bottom: clamp(7rem, 14vh, 9.5rem);
}
.page-hero-inner {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 0.45em;
}
.hero h1 em,
.page-hero h1 em {
  color: var(--accent-light);
}
.hero-text,
.page-hero p.lead {
  max-width: 580px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Home hero: everything centred (horizontally and vertically) */
.hero {
  align-items: center;
}
.hero-inner {
  text-align: center;
}
.hero h1 {
  max-width: 17ch;
  margin-inline: auto;
}
.hero-text {
  margin-inline: auto;
}
.hero-actions {
  justify-content: center;
}
.hero .eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

/* Inner-page title banners: also centred */
.page-hero {
  align-items: center;
}
.page-hero-inner {
  text-align: center;
}
.page-hero h1 {
  max-width: 22ch;
  margin-inline: auto;
}
.page-hero p.lead {
  margin-inline: auto;
}
.page-hero .breadcrumb {
  justify-content: center;
}
.page-hero .hero-actions {
  justify-content: center;
}
.page-hero .eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}
.hero .eyebrow,
.page-hero .eyebrow,
.section--dark .eyebrow,
.cta-banner .eyebrow {
  color: var(--accent-light);
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 7rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.55);
  animation: scrollCue 2.4s var(--ease) infinite;
  transform-origin: top;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.6;
}
.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.hero-inner > *,
.page-hero-inner > * {
  animation: fadeUp 1s var(--ease) both;
}
.hero-inner > :nth-child(2),
.page-hero-inner > :nth-child(2) {
  animation-delay: 0.15s;
}
.hero-inner > :nth-child(3),
.page-hero-inner > :nth-child(3) {
  animation-delay: 0.3s;
}
.hero-inner > :nth-child(4),
.page-hero-inner > :nth-child(4) {
  animation-delay: 0.45s;
}
.hero-inner > :nth-child(5),
.page-hero-inner > :nth-child(5) {
  animation-delay: 0.6s;
}

/* 6. SECTIONS ---------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}
.section--surface {
  background: var(--surface);
}
.section--dark {
  background: var(--primary);
  color: #efe8dc;
}
.section--dark h2,
.section--dark h3 {
  color: #fff;
}
.section--dark h2 em {
  color: var(--accent-light);
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}
.section-head p:last-child {
  margin-bottom: 0;
}
.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
}
.section--dark .section-head p {
  color: rgba(239, 232, 220, 0.78);
}

.section-foot {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

/* Trust / stats */
.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
}
.stats-panel {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 110px;
}
.stat {
  text-align: center;
  padding: 0.5rem 1rem;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Split (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.split--reverse .split-media {
  order: 2;
}
.split-body p {
  color: var(--muted);
  font-size: 1.06rem;
}
.split-body .link-arrow,
.split-body .btn {
  margin-top: 1.2rem;
}

.media-frame {
  position: relative;
  isolation: isolate;
}
.media-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 72%;
  height: 72%;
  border: 1px solid var(--accent);
}
.split--reverse .media-frame::before {
  right: auto;
  left: -1.5rem;
}
.media-frame .img-reveal {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--secondary);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-badge {
  position: absolute;
  left: -1.5rem;
  top: 2.5rem;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
}
.media-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent-light);
  line-height: 1;
}

.signature {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0.5rem 0 0;
}

/* 7. CARDS ------------------------------------------------------------- */
.grid-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.card-service {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--line);
  transition:
    border-color 0.4s var(--ease),
    background-color 0.4s;
}
.card-service:hover,
.card-service:focus-within {
  border-color: var(--accent);
}
.card-top {
  position: relative;
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--secondary);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card-service:hover .card-media img {
  transform: scale(1.06);
}
.card-icon {
  position: absolute;
  left: 1.5rem;
  bottom: -1.65rem;
  z-index: 1;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ivory);
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  transition:
    background-color 0.4s,
    color 0.4s;
}
.card-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}
.card-service:hover .card-icon {
  background: var(--primary);
  color: var(--accent-light);
  border-color: var(--primary);
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2.5rem 1.6rem 1.8rem;
}
.card-body h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4em;
}
.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.card-body .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}
.card-body .link-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
} /* whole card clickable */

/* 8. PORTFOLIO --------------------------------------------------------- */
.masonry {
  column-count: 3;
  column-gap: 1.75rem;
}
.work {
  break-inside: avoid;
  margin: 0 0 2.5rem;
}
.work-trigger {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
}
.work-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--secondary);
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.work-trigger:hover img {
  transform: scale(1.05);
}
.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 19, 17, 0.28);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.work-trigger:hover .work-media::after,
.work-trigger:focus-visible .work-media::after {
  opacity: 1;
}
.work-zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ivory);
  color: var(--primary);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.work-trigger:hover .work-zoom,
.work-trigger:focus-visible .work-zoom {
  opacity: 1;
  transform: none;
}
.ar-tall {
  aspect-ratio: 4 / 5.2;
}
.ar-wide {
  aspect-ratio: 4 / 3;
}
.ar-sq {
  aspect-ratio: 1;
}
.work-caption {
  padding-top: 1.1rem;
}
.work-type {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.35rem;
}
.work-caption h3 {
  font-size: 1.75rem;
  margin-bottom: 0.15em;
}
.work-loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.work-loc .icon {
  width: 0.95rem;
  height: 0.95rem;
}
.work-caption p:last-child {
  font-size: 0.93rem;
  color: var(--muted);
  margin: 0;
}

/* 9. FEATURES + PROCESS ------------------------------------------------ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.feature {
  padding: 2.75rem 2.25rem 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
}
.feature:not(:nth-child(3n + 1)) {
  padding-left: 2.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.feature-icon {
  color: var(--accent-light);
  transition: transform 0.5s var(--ease);
}
.feature-icon .icon {
  width: 2.1rem;
  height: 2.1rem;
  stroke-width: 1.25;
}
.feature:hover .feature-icon {
  transform: translateY(-4px);
}
.feature-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.1em;
}
.feature h3 {
  font-size: 1.65rem;
  margin-bottom: 0.4em;
}
.feature p {
  margin: 0;
  color: rgba(239, 232, 220, 0.74);
  font-size: 0.97rem;
}

.process {
  --steps: 5;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps), 1fr);
  gap: 1.5rem;
}
.process::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% / var(--steps));
  right: calc(50% / var(--steps));
  height: 1px;
  background: var(--line);
}
.step {
  position: relative;
  text-align: center;
  padding: 0 0.5rem;
}
.step-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--background);
  border: 1px solid var(--accent);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--accent-dark);
  transition:
    background-color 0.4s,
    color 0.4s;
}
.section--surface .step-num {
  background: var(--surface);
}
.step:hover .step-num {
  background: var(--primary);
  color: var(--accent-light);
  border-color: var(--primary);
}
.step h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4em;
}
.step p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* 10. TESTIMONIALS ----------------------------------------------------- */
.slider {
  max-width: 880px;
  margin-inline: auto;
}
.slider-viewport {
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform 0.8s var(--ease);
}
.slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 0 clamp(0rem, 3vw, 2rem);
  text-align: center;
}
.slide .quote-mark {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.slide .quote-mark .icon {
  width: 2.4rem;
  height: 2.4rem;
  stroke-width: 1.1;
}
.slide blockquote {
  margin: 0 0 2rem;
}
.slide blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--primary);
  margin: 0;
}
.slide-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.6rem;
  background: var(--primary);
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.slide-name {
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
}
.slide-meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 2.75rem;
}
.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--primary);
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.slider-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.slider-dots {
  display: flex;
  gap: 0.35rem;
}
.slider-dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 0;
}
.slider-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(33, 30, 27, 0.25);
  transition:
    width 0.4s var(--ease),
    background-color 0.3s,
    border-radius 0.4s;
}
.slider-dot.is-active::before {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-dark);
}

/* 11. CTA BANNER ------------------------------------------------------- */
.cta-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding-block: clamp(5.5rem, 12vw, 10rem);
  background: var(--primary);
}
.cta-banner .cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-banner .cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(22, 19, 17, 0.66);
}
.cta-banner h2 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}
.cta-banner h2 em {
  color: var(--accent-light);
}
.cta-banner p {
  max-width: 560px;
  margin: 0 auto 2.25rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

/* 12. ABOUT ------------------------------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 2.25rem 1.75rem 1rem 0;
}
.pillar + .pillar {
  padding-left: 1.75rem;
  border-left: 1px solid var(--line);
}
.pillar-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-dark);
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}
.pillar h3 {
  font-size: 1.55rem;
}
.pillar p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.approach-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.75rem;
}
.approach-item {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  align-items: start;
}
.approach-item .num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
}
.approach-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2em;
}
.approach-item p {
  margin: 0;
  font-size: 0.97rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.team-card .team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--secondary);
  margin-bottom: 1.25rem;
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25);
  transition:
    transform 1.1s var(--ease),
    filter 0.6s;
}
.team-card:hover img {
  transform: scale(1.04);
  filter: none;
}
.team-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.1em;
}
.team-role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.7rem;
}
.team-card p:last-child {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.value-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2.25rem 1.6rem;
  transition: border-color 0.4s var(--ease);
}
.value-card:hover {
  border-color: var(--accent);
}
.value-card .icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent-dark);
  margin-bottom: 1.4rem;
  stroke-width: 1.25;
}
.value-card h3 {
  font-size: 1.5rem;
}
.value-card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* 13. SERVICES LANDING ------------------------------------------------- */
.category-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}
.category-title h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.category-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.category-block + .category-block {
  margin-top: clamp(4rem, 8vw, 6.5rem);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.service-card:hover,
.service-card:focus-within {
  border-color: var(--accent);
}
.service-card .card-media {
  aspect-ratio: 3 / 2;
}
.service-card:hover .card-media img {
  transform: scale(1.05);
}
.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.75rem 1.75rem 1.9rem;
}
.service-body h3 {
  font-size: 1.7rem;
}
.service-body > p {
  color: var(--muted);
  font-size: 0.95rem;
}
.handle-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0.4rem 0 0.6rem;
}
.check-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}
.check-list li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.92rem;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 1.5px solid var(--accent-dark);
  border-bottom: 1.5px solid var(--accent-dark);
  transform: rotate(-45deg) scale(0.85);
  transform-origin: left top;
  top: 0.62em;
  left: 0.1rem;
}
.service-body .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}
.service-body .link-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
}
.category-desc {
  max-width: 660px;
  margin: -0.6rem 0 2.25rem;
  font-size: 1.06rem;
  color: var(--muted);
}
.category-more {
  margin: -1rem 0 2.25rem;
}
/* centred, wrapping card rows (4 / 3 / 2 / 1 per row) – an incomplete last row stays centred */
.service-grid--flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.service-grid--flex > .service-card {
  flex: 0 1 calc((100% - 4.5rem) / 4);
  min-width: 0;
}
.service-grid--flex .service-body {
  padding: 1.5rem 1.5rem 1.7rem;
}
.service-grid--flex .service-body h3 {
  font-size: 1.6rem;
}
.service-grid--flex .service-body > p {
  flex: 1;
}
.service-grid--flex .link-arrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

/* 14. SERVICE DETAIL --------------------------------------------------- */
.overview {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}
.overview-text p {
  color: var(--muted);
  font-size: 1.06rem;
}
.glance {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2.25rem 2rem;
}
.glance h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.glance dl {
  margin: 0;
}
.glance div + div {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.glance dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.glance dd {
  margin: 0.2rem 0 0;
  font-size: 0.97rem;
}

.handle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.handle-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.handle-card:hover {
  border-color: var(--accent);
}
.handle-card .h-icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}
.handle-card .h-icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.handle-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.3rem;
}
.handle-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--secondary);
  overflow: hidden;
}
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item:nth-child(4) {
  grid-column: span 2;
}
.gallery-grid--6 .gallery-item:nth-child(n + 5) {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 19, 17, 0.25);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.faq {
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item h3 {
  margin: 0;
  font-size: 1rem;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--primary);
}
.faq-q .icon {
  flex: none;
  margin-right: 4px;
  transition: transform 0.4s var(--ease);
  color: var(--accent-dark);
}
.faq-item.is-open .faq-q .icon {
  transform: rotate(45deg);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows 0.45s var(--ease),
    visibility 0.45s;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  color: var(--muted);
  padding: 0 3rem 1.6rem 0;
  margin: 0;
}
.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
  visibility: visible;
}

/* "You May Also Like" */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.related-grid .service-body {
  padding: 1.5rem 1.5rem 1.7rem;
}
.related-grid .service-body h3 {
  font-size: 1.55rem;
  margin-bottom: 0.35em;
}
.related-grid .service-body > p:not(.cat-label) {
  flex: 1;
  font-size: 0.93rem;
}
.service-body .cat-label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* Legal pages */
.legal {
  max-width: 780px;
  margin-inline: auto;
}
.legal h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin-bottom: 1.1em;
}

/* 15. CONTACT ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.info-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.info-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.info-item .i-icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}
.info-item h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.35rem;
}
.info-item p,
.info-item address {
  margin: 0;
  color: var(--text);
}
.info-item a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
.info-note {
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 1.75rem;
}

.form-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.form-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.form-card > p,
.form-intro {
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.25rem;
  margin-top: 1.75rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.req {
  color: var(--error);
  margin-left: 0.15rem;
}
.opt {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
  margin-left: 0.3rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--background);
  border: 1px solid rgba(33, 30, 27, 0.28);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%232a2622' stroke-width='1.5'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field ::placeholder {
  color: var(--muted);
  opacity: 1;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--primary);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.28);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  background: #fff8f6;
}
.field-error {
  margin: 0;
  font-size: 0.85rem;
  color: var(--error);
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}
.field-error::before {
  content: "!";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.field-error[hidden] {
  display: none;
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.form-actions {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}
.form-summary {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--error);
  background: #fff8f6;
  color: var(--error);
  font-size: 0.93rem;
}
.form-summary[hidden],
.form-success[hidden],
form[hidden] {
  display: none;
}
.form-success {
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
}
.form-success:focus {
  outline: none;
}
.success-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}
.success-icon .icon {
  width: 1.9rem;
  height: 1.9rem;
}
.form-success h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}
.form-success p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 1.75rem;
}

.map-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.map-grid address {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.map-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--secondary);
  border: 1px solid var(--line);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(0.95);
}

/* 16. FOOTER ----------------------------------------------------------- */
.site-footer {
  background: var(--primary);
  color: rgba(239, 232, 220, 0.78);
  padding-top: clamp(4rem, 8vw, 6.5rem);
  font-size: 0.95rem;
  min-height: 320px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1fr 0.9fr 1.4fr;
  gap: 3rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.site-footer .brand {
  align-items: center;
  color: #fff;
}
.site-footer .brand-ring-gold {
  stroke: var(--accent-light);
}
.site-footer .brand-diamond {
  fill: var(--accent-light);
}
.footer-tagline {
  margin: 1.5rem 0 1rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent-light);
}
.footer-brand p {
  max-width: 340px;
}
.footer-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 1.4rem;
}
.footer-col li + li {
  margin-top: 0.7rem;
}
.footer-col a {
  transition: color 0.3s;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-contact li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.footer-contact .icon {
  margin-top: 0.2em;
  color: var(--accent-light);
  width: 1.1rem;
  height: 1.1rem;
}
.footer-contact li {
  overflow-wrap: anywhere;
}
.social-list {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.social-list a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.social-list a:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--primary);
}
.social-list .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-legal span {
  margin-inline: 0.5rem;
  opacity: 0.5;
}

/* 17. FLOATING UI ------------------------------------------------------ */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    visibility 0.4s,
    background-color 0.3s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--accent-dark);
}
.sticky-cta {
  display: none;
}

/* 18. LIGHTBOX --------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 4.5rem 5rem 3rem;
  background: rgba(15, 13, 11, 0.95);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox[hidden] {
  display: none;
}
.lightbox.is-open {
  opacity: 1;
}
.lb-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  text-align: center;
  color: #fff;
}
.lb-img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}
.lb-caption {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}
.lb-caption strong {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 500;
  color: #fff;
}
.lb-meta {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.lb-desc {
  max-width: 560px;
  margin-inline: auto;
}
.lb-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.lb-btn:hover {
  background: #fff;
  color: var(--primary);
}
.lb-btn[hidden] {
  display: none;
}
.lb-close {
  top: 1.25rem;
  right: 1.25rem;
}
.lb-prev {
  left: 1.25rem;
  top: 50%;
  margin-top: -26px;
}
.lb-next {
  right: 1.25rem;
  top: 50%;
  margin-top: -26px;
}
.lightbox :focus-visible {
  outline-color: var(--accent-light);
}

/* 18b. LOCATION / SEO COMPONENTS (reuse existing card + list styles) ---- */
picture {
  display: contents;
} /* WebP <picture> wrappers must not affect layout */
.hero h1.h1-long {
  max-width: 20ch;
  font-size: clamp(2.4rem, 5.2vw, 4.7rem);
}
.page-hero h1.h1-long {
  max-width: 24ch;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
}
.local-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.local-grid .value-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.local-grid .value-card p {
  flex: 1;
}
.local-grid .value-card .link-arrow {
  margin-top: 1.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.section--surface .local-grid .value-card {
  background: var(--ivory);
}
.local-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.25rem;
  margin: 2.5rem 0 0;
}
.section-head--center + .local-more {
  margin-top: -1.25rem;
}
.local-note {
  max-width: 820px;
  margin: 2.75rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
}
.local-note a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  transition: color 0.3s;
}
.local-note a:hover {
  color: var(--accent-dark);
}
.local-checks {
  max-width: 820px;
  margin-inline: auto;
}
.local-checks .check-list {
  gap: 0.9rem;
  margin-bottom: 0;
}
.local-checks .check-list li {
  font-size: 1.02rem;
  color: var(--muted);
}
.local-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.local-links > div {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
}
.local-links h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.local-links ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.local-links a {
  font-size: 0.94rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition:
    color 0.3s,
    border-color 0.3s;
}
.local-links a:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}
.handle-card .link-arrow {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

/* 19. MOTION ----------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
@keyframes scrollCue {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Scroll reveal – only hidden when JS is running (html.js is set in <head>) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    border-color 0.4s var(--ease),
    background-color 0.4s;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease);
}
.js .img-reveal img {
  transform: scale(1.18);
  transition: transform 1.8s var(--ease);
}
.js .img-reveal.is-visible {
  clip-path: inset(0);
}
.js .img-reveal.is-visible img {
  transform: none;
}

@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;
    transition-delay: 0s !important;
  }
  .js .reveal,
  .js .img-reveal,
  .js .img-reveal img {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}
