/* ============================================================
   COMPONENTS — Reusable UI patterns
   ============================================================ */

/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--t-base),
              color var(--t-base),
              border-color var(--t-base),
              opacity var(--t-fast);
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
}

/* Primary — dark fill */
.btn--primary {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: #3a3835;
  border-color: #3a3835;
  opacity: 1;
}

/* Outline — dark border, transparent fill */
.btn--outline {
  background-color: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.btn--outline:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
  opacity: 1;
}

/* Outline white — for use on dark/hero backgrounds */
.btn--outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-dark);
  opacity: 1;
}

/* Ghost — no border, no bg, just text link style */
.btn--ghost {
  padding: 14px 0;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
  font-weight: 400;
  border: none;
  color: var(--color-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-taupe);
  text-underline-offset: 4px;
}

.btn--ghost:hover {
  text-decoration-color: var(--color-dark);
  opacity: 1;
}

.btn--ghost-white {
  padding: 14px 0;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
  font-weight: 400;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
}

.btn--ghost-white:hover {
  color: var(--color-white);
  text-decoration-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-dark);
  transition: gap var(--t-base), color var(--t-fast);
}

.link-arrow::after {
  content: '→';
  font-size: 13px;
  letter-spacing: 0;
  transition: transform var(--t-base);
}

.link-arrow:hover {
  gap: 12px;
}

.link-arrow:hover::after {
  transform: translateX(2px);
}

/* White variant for dark sections */
.link-arrow--white {
  color: rgba(255, 255, 255, 0.75);
}

.link-arrow--white:hover {
  color: var(--color-white);
}

/* ----------------------------------------------------------
   SERVICE CARDS
   Used on homepage and potentially service pages
---------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--color-cream);
  margin-bottom: var(--sp-4);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.service-card__body .link-arrow {
  margin-top: var(--sp-1);
}

.service-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.service-card:hover .service-card__img-wrap img {
  transform: scale(1.035);
}

.service-card__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: var(--sp-1);
}

.service-card__desc {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 32ch;
  margin-bottom: var(--sp-3);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 560px) and (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

/* ----------------------------------------------------------
   SPLIT LAYOUT (image + text)
---------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.split--img-right {
  direction: rtl;
}

.split--img-right > * {
  direction: ltr;
}

.split__img-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--color-cream);
}

.split__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stacked pair of images */
.split__img-stack {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--sp-2);
}

.split__img-stack .split__img-wrap:first-child {
  aspect-ratio: 3 / 4;
}

.split__img-stack .split__img-wrap:last-child {
  aspect-ratio: 4 / 3;
}

.split__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.split__content h2 {
  margin-bottom: var(--sp-1);
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .split--img-right {
    direction: ltr;
  }
}

/* ----------------------------------------------------------
   PROCESS STEPS (numbered list)
---------------------------------------------------------- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr 1.6fr;
  gap: var(--sp-4) var(--sp-5);
  align-items: start;
  padding: clamp(28px, 3.5vw, 48px) 0;
  border-bottom: 1px solid rgba(198, 195, 187, 0.15);
}

.process-item:first-child {
  border-top: 1px solid rgba(198, 195, 187, 0.15);
}

.process-item__num {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 28px);
  font-style: italic;
  color: rgba(249, 249, 249, 0.25);
  line-height: 1;
  padding-top: 4px;
}

.process-item__title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--color-white);
  font-weight: 400;
  line-height: 1.25;
}

.process-item__desc {
  font-size: 14px;
  color: rgba(249, 249, 249, 0.55);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   GALLERY GRID
---------------------------------------------------------- */
/* Full gallery page grid — 3 cols desktop (9 visible), 2 cols tablet/mobile (10 visible) */
.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}

.gallery-full-grid .gallery-grid__item {
  aspect-ratio: 4 / 5;
}

.gallery-full-grid .gallery-grid__item:nth-child(10) {
  display: none;
}

@media (max-width: 900px) {
  .gallery-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-full-grid .gallery-grid__item:nth-child(10) {
    display: block;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(8px, 1.2vw, 16px);
}

/* Large item spans 2 rows */
.gallery-grid__item {
  overflow: hidden;
  background-color: var(--color-cream);
  position: relative;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.gallery-grid__item:hover img {
  transform: scale(1.04);
}

/* Homepage 5-image layout: left 2-stack | centre tall offset | right 2-stack */
.gallery-grid--home {
  align-items: start;
}

/* Col 1 top — portrait */
.gallery-grid--home .gallery-grid__item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 3 / 4;
}

/* Col 1 bottom — landscape */
.gallery-grid--home .gallery-grid__item:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 4 / 3;
}

/* Col 2 — tall portrait, offset down */
.gallery-grid--home .gallery-grid__item:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / 3;
  aspect-ratio: 2 / 3;
  margin-top: clamp(40px, 6vw, 80px);
}

/* Col 3 top — portrait */
.gallery-grid--home .gallery-grid__item:nth-child(4) {
  grid-column: 3;
  grid-row: 1;
  aspect-ratio: 3 / 4;
}

/* Col 3 bottom — landscape */
.gallery-grid--home .gallery-grid__item:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
  aspect-ratio: 4 / 3;
}

@media (max-width: 768px) {
  .gallery-grid--home {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
  }

  .gallery-grid--home .gallery-grid__item {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 3 / 4;
    margin-top: 0 !important;
  }

  .gallery-grid--home .gallery-grid__item:nth-child(2),
  .gallery-grid--home .gallery-grid__item:nth-child(5) {
    aspect-ratio: 4 / 3;
  }
}

/* ----------------------------------------------------------
   TESTIMONIAL CARDS
---------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-taupe);
}

.testimonial-card {
  padding: clamp(28px, 3.5vw, 48px);
  border-right: 1px solid var(--color-taupe);
  display: flex;
  flex-direction: column;
}

.testimonial-card:last-child {
  border-right: none;
}

.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.4vw, 19px);
  font-style: normal;
  color: var(--color-dark);
  line-height: 1.65;
  flex: 1;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.testimonial-card__quote::before {
  content: '\201C';
}

.testimonial-card__quote::after {
  content: '\201D';
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.testimonial-card__name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-dark);
}

.testimonial-card__location {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-taupe);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    border: 1px solid var(--color-taupe);
  }

  .testimonial-card {
    border-right: none;
    border-bottom: 1px solid var(--color-taupe);
  }

  .testimonial-card:last-child {
    border-bottom: none;
  }
}

/* ----------------------------------------------------------
   FAQ ACCORDION
---------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--t-fast);
}

.faq-item__question {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.3;
}

.faq-item__trigger:hover .faq-item__question {
  color: var(--color-muted);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  color: var(--color-taupe);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-base), opacity var(--t-base);
}

.faq-item__icon::before {
  width: 1px;
  height: 12px;
}

.faq-item__icon::after {
  width: 12px;
  height: 1px;
}

/* Rotate to minus when open */
.faq-item--open .faq-item__icon::before {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item__body {
  overflow: hidden;
  height: 0;
  padding-bottom: 0;
}

.faq-item--open .faq-item__body {
  padding-bottom: var(--sp-4);
}

.faq-item__answer {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 62ch;
  line-height: 1.7;
}

/* Dark section FAQ variant */
.section--dark .faq-list {
  border-top-color: rgba(198, 195, 187, 0.15);
}

.section--dark .faq-item {
  border-bottom-color: rgba(198, 195, 187, 0.15);
}

.section--dark .faq-item__question {
  color: var(--color-white);
}

.section--dark .faq-item__answer {
  color: rgba(249, 249, 249, 0.55);
}

.section--dark .faq-item__icon {
  color: rgba(198, 195, 187, 0.5);
}

/* ----------------------------------------------------------
   LOCATIONS LIST
   Used on service pages for location highlights
---------------------------------------------------------- */
.locations-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3) var(--sp-5);
}

.location-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-item__name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
}

.location-item__desc {
  font-size: 14px;
  color: var(--color-muted);
  max-width: 38ch;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .locations-list {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   INCLUDES LIST
   Used on service pages for "What's included"
---------------------------------------------------------- */
.includes-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.includes-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--sp-2);
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
}

.includes-list li::before {
  content: '';
  display: block;
  width: 1px;
  height: 18px;
  background-color: var(--color-taupe);
  margin-top: 4px;
}

.includes-list strong {
  color: var(--color-dark);
}

/* ----------------------------------------------------------
   INNER PAGE HERO
   Compact hero for inner pages (not full-viewport)
---------------------------------------------------------- */
.page-hero {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(48px, 6vw, 96px);
  background-color: var(--color-cream);
  text-align: center;
}

.page-hero__content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero__content h1 {
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.page-hero__content p {
  color: var(--color-muted);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.page-hero--img {
  position: relative;
  background-color: var(--color-dark);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.page-hero--img .page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.page-hero--img .page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero--img h1 {
  color: var(--color-white);
}

.page-hero--img p {
  color: rgba(249, 249, 249, 0.75);
}

.page-hero--img .eyebrow {
  color: rgba(249, 249, 249, 0.55);
}

.page-hero--img .eyebrow::before,
.page-hero--img .eyebrow::after {
  background-color: rgba(249, 249, 249, 0.3);
}

.page-hero__breadcrumb,
.breadcrumb {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-taupe);
  margin-bottom: var(--sp-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  justify-content: center;
}

.page-hero__breadcrumb a,
.breadcrumb a {
  color: var(--color-taupe);
  transition: color var(--t-fast);
}

.page-hero__breadcrumb a:hover,
.breadcrumb a:hover {
  color: var(--color-dark);
}

/* span-based separator (legacy) */
.page-hero__breadcrumb span + span::before {
  content: ' / ';
  margin: 0 4px;
  opacity: 0.5;
}

/* li-based separator (semantic ol > li structure) */
.breadcrumb li + li::before {
  content: '/';
  margin: 0 8px;
  opacity: 0.4;
  color: var(--color-taupe);
}

/* ----------------------------------------------------------
   CTA BAND (full-width bottom-of-page CTA)
---------------------------------------------------------- */
.cta-band {
  text-align: center;
  padding-top: var(--section-pad-v);
  padding-bottom: var(--section-pad-v);
}

.cta-band h2 {
  margin-bottom: var(--sp-4);
}

.cta-band p {
  margin: 0 auto var(--sp-5);
  max-width: 46ch;
}

/* ----------------------------------------------------------
   CONTACT FORM
---------------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-dark);
}

.form-group .optional {
  color: var(--color-taupe);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-dark);
  transition: border-color var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-taupe);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Radio group for celebration type */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--t-fast);
  padding: 0;
}

.radio-option input[type="radio"]:checked {
  border-color: var(--color-dark);
}

.radio-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-dark);
}

.radio-option span {
  font-size: 14px;
  color: var(--color-dark);
}

.form-message {
  padding: var(--sp-3) var(--sp-3);
  font-size: 14px;
  border: 1px solid;
  display: none;
  margin-bottom: var(--sp-5);
}

.form-message--success {
  border-color: #4a7c59;
  color: #4a7c59;
  background-color: rgba(74, 124, 89, 0.06);
}

.form-message--error {
  border-color: #8b3a3a;
  color: #8b3a3a;
  background-color: rgba(139, 58, 58, 0.06);
}

.form-message.is-visible {
  display: block;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: #8b3a3a;
  outline: none;
}

.field-error {
  font-size: 12px;
  color: #8b3a3a;
  margin-top: 4px;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   LIGHTBOX
---------------------------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(32, 31, 29, 0.96);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
}

.lightbox__close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: rgba(249, 249, 249, 0.7);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  transition: color var(--t-fast);
  z-index: 1001;
}

.lightbox__close:hover {
  color: var(--color-white);
}

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(249, 249, 249, 0.6);
  font-size: 28px;
  cursor: pointer;
  padding: 16px;
  transition: color var(--t-fast);
  z-index: 1001;
  user-select: none;
}

.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--color-white);
}

.lightbox__counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(249, 249, 249, 0.4);
}

@media (max-width: 600px) {
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}
