/*
Theme Name: Tandt
Theme URI: https://tinselandtwyne.local
Author: Tinsel & Twyne
Description: A bespoke one-page theme for Tinsel & Twyne holiday decorating, based in Carrollton, Georgia.
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: tandt
Tags: one-page, holiday, custom-colors
*/

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
  --green:        #2C4A2E;
  --green-light:  #3D6B40;
  --green-dark:   #1a2e1b;
  --red:          #8B1F1F;
  --gold:         #C5A028;
  --sand:         #DBBF99;
  --sand-dark:    #86602D;
  --cranberry:    #886B54;
  --cream:        #F8F4EE;
  --cream-dark:   #EDE7DC;
  --dark:         #1C1C1C;
  --text:         #3A3328;
  --text-muted:   #6B5E50;
  --white:        #FFFFFF;

  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body:    'Work Sans', 'Helvetica Neue', Arial, sans-serif;

  --nav-h:        80px;
  --max-w:        1200px;
  --section-py:   clamp(70px, 10vw, 110px);
  --ease:         0.3s ease;
  --shadow:       0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.16);
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--ease); }

ul { list-style: none; }

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 400;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3rem); }
h3 { font-size: 1.875rem; }

p { margin-bottom: 1rem; font-size: 1.02rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 0.75rem;
}

/* Sections with dark backgrounds need the lighter sand for legibility */
#hero .eyebrow,
#gallery .eyebrow {
  color: var(--sand);
}

/* Praise section sits on the sand background itself, so sand text disappears into it */
#praise .eyebrow {
  color: var(--dark);
}

.section-title { color: var(--dark); margin-bottom: 0.75rem; }

.section-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 580px;
}

/* =============================================
   Layout
   ============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header.center { text-align: center; }
.section-header.center .section-lead { margin: 0 auto; }

/* =============================================
   Back-to-Top Link  (appears at base of each section)
   ============================================= */
.back-to-top-wrap { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-dark);
  opacity: 0.8;
  transition: opacity var(--ease), color var(--ease);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.back-to-top::before { content: '↑'; font-size: 0.95rem; }
.back-to-top:hover { opacity: 1; border-bottom-color: var(--sand-dark); }

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease), color var(--ease);
}

.btn-gold {
  background: var(--cranberry);
  color: var(--cream);
}
.btn-gold:hover {
  background: var(--sand);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(219,191,153,.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--dark);
}

/* =============================================
   Navigation
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--ease), box-shadow var(--ease);
}

#site-header.scrolled {
  background: rgba(20, 20, 20, 0.97);
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
}
.site-logo img {
  height: 25px;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a {
  color: rgba(255,255,255,.8);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--ease);
}
.site-nav a:hover { color: var(--sand); }

.nav-cta {
  background: transparent !important;
  color: var(--white) !important;
  border: 1.5px solid rgba(255,255,255,.55);
  padding: 0.55rem 1.35rem;
  border-radius: 2px;
}
.nav-cta:hover {
  background: var(--cream) !important;
  color: var(--dark) !important;
  border-color: var(--cream);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   Hero
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

/* Default gradient used when no hero photo is set */
.hero-bg-default {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(44,74,46,.9) 0%, transparent 70%),
              radial-gradient(ellipse at 75% 30%, rgba(139,31,31,.5) 0%, transparent 55%),
              linear-gradient(150deg, #141e15 0%, #1c1c1c 55%, #2d1212 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

/* Subtle texture overlay */
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 5vw, 2.5rem) 5rem;
}

.hero-content .eyebrow { font-size: 0.7rem; letter-spacing: 0.28em; }

.hero-headline {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero-headline em { font-style: italic; color: var(--sand); }

.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2.75rem;
  line-height: 1.85;
}

.hero-actions { display: flex; gap: 1.1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,.4);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-bar {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.55), transparent);
  animation: scrollbar 2.2s ease-in-out infinite;
}
@keyframes scrollbar {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; }
}

/* =============================================
   Services
   ============================================= */
#services {
  padding: var(--section-py) 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: 3px;
  border-bottom: 3px solid transparent;
  box-shadow: 0 2px 14px rgba(0,0,0,.055);
  transition: transform var(--ease), border-bottom-color var(--ease), box-shadow var(--ease);
}
.service-card:hover {
  border-bottom-color: var(--cranberry);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
}

.service-card h3 {
  color: var(--dark);
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 0;
}

/* =============================================
   Gallery
   ============================================= */
#gallery {
  padding: var(--section-py) 0;
  background: var(--dark);
}

#gallery .section-title { color: var(--white); }
#gallery .back-to-top { color: rgba(255,255,255,.45); }
#gallery .back-to-top:hover { color: var(--sand); border-bottom-color: var(--sand); opacity: 1; }

/* default: uniform 3-col, auto-growing rows */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 265px;
  gap: 10px;
}

/* featured variant (4+ items): first item spans 2 rows, left col slightly wider */
.gallery-grid--featured {
  grid-template-columns: 1.15fr 1fr 1fr;
}
.gallery-grid--featured .gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #2a2a2a;
}

.gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-hover { opacity: 1; }

.gallery-hover span {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Admin-only empty state (no items published yet) */
.gallery-empty {
  padding: 3rem;
  text-align: center;
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: 4px;
  color: rgba(255,255,255,.45);
  font-size: 0.9rem;
}
.gallery-empty a { color: var(--sand); }

/* Placeholder shown when a gallery item has no featured image set */
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,.2);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gallery-placeholder svg { width: 2.5rem; height: 2.5rem; stroke: rgba(255,255,255,.2); }

/* =============================================
   About
   ============================================= */
#about {
  padding: var(--section-py) 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 3px;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 3px;
  background: linear-gradient(155deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,0) 100%);
}
.about-overlay .eyebrow {
  color: var(--sand);
  margin-bottom: 0.5rem;
}
.about-overlay-label {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.about-body p { color: #5A4E44; line-height: 1.95; }

.about-facts {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about-fact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.fact-icon {
  width: 40px; height: 40px;
  background: var(--cream);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.fact-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 700;
}
.fact-text span { font-size: 0.85rem; color: var(--text-muted); }

/* =============================================
   Testimonials / Praise
   ============================================= */
#praise {
  padding: var(--section-py) 0;
  background: var(--sand);
}

#praise .section-title { color: var(--dark); }
#praise .back-to-top { color: var(--dark); }
#praise .back-to-top:hover { border-bottom-color: var(--dark); }

.praise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 1.75rem;
}

.praise-card {
  background: var(--cream);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  border-radius: 3px;
  position: relative;
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 6rem;
  line-height: .9;
  color: var(--sand-dark);
  opacity: .3;
  position: absolute;
  top: 1rem;
  left: 2rem;
  pointer-events: none;
}

.praise-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.9;
  font-style: italic;
  margin-top: 2rem;
  margin-bottom: 1.75rem;
}

.praise-author { display: flex; align-items: center; gap: 0.85rem; }

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cranberry);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}
.author-type { font-size: 0.78rem; color: var(--text-muted); }

/* =============================================
   Contact
   ============================================= */
#contact {
  padding: var(--section-py) 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: start;
}

.contact-info h2 { margin-bottom: 0.85rem; }
.contact-info .section-lead { max-width: 360px; }

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-item { display: flex; align-items: flex-start; gap: 1rem; }

.contact-icon {
  width: 46px; height: 46px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-body strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sand-dark);
  margin-bottom: 0.2rem;
}

.contact-item-body a,
.contact-item-body span {
  font-size: 0.95rem;
  color: var(--text);
}
.contact-item-body a:hover { color: var(--sand-dark); }

/* Form card */
.contact-form-card {
  background: var(--white);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 { margin-bottom: 0.4rem; }
.form-subtitle { font-size: 0.88rem; color: #999; margin-bottom: 2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.72rem 1rem;
  border: 1.5px solid #DDD;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--ease), background var(--ease);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit .btn { width: 100%; justify-content: center; }
.form-note { font-size: 0.78rem; color: #aaa; text-align: center; margin-top: 0.85rem; }

/* Form status messages */
.form-message {
  padding: 0.85rem 1.25rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: none;
}
.form-message.success { display: block; background: #e8f5e9; color: #2e7d32; border-left: 3px solid #4caf50; }
.form-message.error   { display: block; background: #fdecea; color: #c62828; border-left: 3px solid #ef5350; }

/* =============================================
   Footer
   ============================================= */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}

.footer-brand .site-logo {
  display: block;
  margin-bottom: 1rem;
  color: var(--white);
  font-weight: 700;
}
.footer-brand p { font-size: 0.9rem; max-width: 285px; line-height: 1.85; margin-bottom: 0; }

.footer-social {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.35rem;
}

.footer-social-link {
  display: inline-flex;
  width: 19px;
  height: 19px;
  color: rgba(255,255,255,.5);
  transition: color var(--ease);
}
.footer-social-link:hover { color: var(--sand); }

.footer-social-link svg {
  width: 100%;
  height: 100%;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white);
  margin-bottom: 1.35rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--sand); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}
.footer-bottom a { color: var(--sand); }

/* =============================================
   Gallery Lightbox
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.88);
  padding: clamp(1.5rem, 6vw, 4rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ease), visibility var(--ease);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-figure {
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 3px;
  will-change: transform;
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  margin-top: 1rem;
  color: rgba(255,255,255,.8);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 2001;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* =============================================
   Scroll-in Animations
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1130px) and (min-width: 769px) {
  :root { --nav-h: 100px; }
  .nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .site-nav ul { gap: 1.5rem; }
}

@media (max-width: 1024px) {
  .about-grid      { grid-template-columns: 1fr; }
  .about-visual    { max-width: 500px; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 66px; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(20,20,20,.97);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  .site-nav.open { display: flex; }
  .site-nav ul   { flex-direction: column; gap: 2rem; text-align: center; }
  .site-nav a    { font-size: 1rem; }

  .nav-toggle { display: flex; }

  .gallery-grid,
  .gallery-grid--featured {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-grid--featured .gallery-item:first-child { grid-row: auto; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}

@media (max-width: 520px) {
  .hero-actions   { flex-direction: column; }
  .gallery-grid   { grid-template-columns: 1fr; }
  .praise-grid    { grid-template-columns: 1fr; }
}
