/* ==========================================================
   Westbrook Photo Revival — Stylesheet
   Simple, reliable CSS. Flexbox + Grid. No experimental features.
   ========================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c2c2c;
  background: #FAF7F2;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1B2A4A; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.3;
  color: #1B2A4A;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-padding {
  padding: 80px 0;
}
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- Reveal Animation ---
   Elements start visible by default.
   JS adds .reveal-init to mark them, then .revealed to animate in.
   If JS fails, everything stays visible. */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.95);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  background: rgba(250, 247, 242, 0.98);
  box-shadow: 0 2px 20px rgba(27, 42, 74, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo svg {
  width: 44px;
  height: 44px;
}
.logo-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: #1B2A4A;
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #A8B5A0;
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1B2A4A;
  transition: color 0.3s ease;
  padding: 4px 0;
}
.nav-list a:hover,
.nav-list a.active {
  color: #C4876B;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1B2A4A;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav Overlay (mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27, 42, 74, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.visible {
  opacity: 1;
}

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-overlay { display: block; pointer-events: none; }
  .nav-overlay.visible { pointer-events: auto; }
  .nav {
    position: fixed;
    top: 0; right: -280px;
    width: 280px;
    height: 100vh;
    background: #FAF7F2;
    z-index: 999;
    padding: 80px 32px 32px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }
  .nav.open { right: 0; }
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  .nav-list a { font-size: 1.1rem; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #1B2A4A 0%, #2a3f6b 100%);
  color: #FAF7F2;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(168, 181, 160, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(196, 135, 107, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-size: 3rem;
  color: #FAF7F2;
  margin-bottom: 16px;
  position: relative;
}
.hero .tagline {
  font-size: 1.2rem;
  color: rgba(250, 247, 242, 0.85);
  margin-bottom: 32px;
  position: relative;
}
.hero .hero-description {
  font-size: 1.05rem;
  color: rgba(250, 247, 242, 0.75);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
  position: relative;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  border: none;
  text-align: center;
}
.btn-primary {
  background: #C4876B;
  color: #fff;
}
.btn-primary:hover {
  background: #b3775d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 135, 107, 0.35);
}
.btn-secondary {
  background: transparent;
  color: #FAF7F2;
  border: 2px solid rgba(250, 247, 242, 0.4);
}
.btn-secondary:hover {
  border-color: #FAF7F2;
  background: rgba(250, 247, 242, 0.1);
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ==========================================================
   ABOUT PREVIEW (homepage)
   ========================================================== */
.about-preview {
  padding: 80px 0;
  background: #FAF7F2;
}
.about-preview-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.about-preview-content {
  flex: 1;
}
.about-preview-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.about-preview-content p {
  margin-bottom: 16px;
  color: #555;
}
.about-preview-visual {
  flex: 0 0 360px;
  background: linear-gradient(135deg, #A8B5A0 0%, #8a9f82 100%);
  border-radius: 16px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-preview-visual svg {
  width: 120px;
  height: 120px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .about-preview-inner { flex-direction: column; }
  .about-preview-visual { flex: none; width: 100%; height: 200px; }
}

/* ==========================================================
   PROCESS
   ========================================================== */
.process {
  padding: 80px 0;
  background: #fff;
}
.process h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 12px;
}
.process .section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step {
  text-align: center;
  padding: 32px 20px;
  background: #FAF7F2;
  border-radius: 12px;
  position: relative;
}
.process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1B2A4A;
  color: #FAF7F2;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.process-step .step-icon {
  display: block;
  margin: 0 auto 12px;
  width: 48px;
  height: 48px;
  color: #C4876B;
}
.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.9rem;
  color: #666;
}

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

/* ==========================================================
   BEFORE / AFTER GALLERY
   ========================================================== */
.gallery {
  padding: 80px 0;
  background: #FAF7F2;
}
.gallery h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 12px;
}
.gallery .section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Before/After Slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: ew-resize;
  aspect-ratio: 4 / 3;
  background: #ddd;
  box-shadow: 0 4px 20px rgba(27, 42, 74, 0.1);
}
.ba-slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.ba-slider .ba-after {
  clip-path: inset(0 50% 0 0);
}
.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.ba-slider .ba-handle::before,
.ba-slider .ba-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.ba-slider .ba-handle::before {
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
}
.ba-slider .ba-label {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  background: rgba(27, 42, 74, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  z-index: 3;
  pointer-events: none;
}
.ba-slider .ba-label-before { left: 12px; }
.ba-slider .ba-label-after { right: 12px; }

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials {
  padding: 80px 0;
  background: #1B2A4A;
  color: #FAF7F2;
}
.testimonials h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 48px;
  color: #FAF7F2;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  background: rgba(250, 247, 242, 0.08);
  border-radius: 12px;
  padding: 32px;
  position: relative;
}
.testimonial-card .quote-icon {
  width: 32px;
  height: 32px;
  color: #C4876B;
  margin-bottom: 16px;
}
.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(250, 247, 242, 0.85);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: #A8B5A0;
}
.testimonial-author span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.5);
  margin-top: 2px;
}

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

/* ==========================================================
   CTA
   ========================================================== */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #A8B5A0 0%, #8a9f82 100%);
  text-align: center;
}
.cta h2 {
  font-size: 2.2rem;
  color: #1B2A4A;
  margin-bottom: 16px;
}
.cta p {
  font-size: 1.05rem;
  color: rgba(27, 42, 74, 0.75);
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta .btn-primary {
  background: #1B2A4A;
  color: #FAF7F2;
}
.cta .btn-primary:hover {
  background: #152238;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding: 48px 0 24px;
  background: #1B2A4A;
  color: rgba(250, 247, 242, 0.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer h4 {
  color: #FAF7F2;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer p, .footer li, .footer a {
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.65);
  line-height: 1.8;
}
.footer a:hover { color: #C4876B; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================
   CONTACT FORM
   ========================================================== */
.contact-section {
  padding: 80px 0;
  background: #FAF7F2;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.contact-info p {
  color: #555;
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-detail svg {
  width: 20px;
  height: 20px;
  color: #C4876B;
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-detail span {
  font-size: 0.95rem;
  color: #444;
}
.contact-detail a {
  color: #1B2A4A;
}
.contact-detail a:hover { color: #C4876B; }

.contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(27, 42, 74, 0.06);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B2A4A;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  background: #FAF7F2;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #A8B5A0;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group .file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  background: #FAF7F2;
}
.form-group .file-upload:hover {
  border-color: #A8B5A0;
}
.form-group .file-upload svg {
  width: 24px;
  height: 24px;
  color: #A8B5A0;
}
.form-group .file-upload span {
  font-size: 0.9rem;
  color: #888;
}
.form-group input[type="file"] {
  display: none;
}
.form-success {
  display: none;
  padding: 20px;
  background: #A8B5A0;
  color: #1B2A4A;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ==========================================================
   PAGE HERO (subpages)
   ========================================================== */
.page-hero {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, #1B2A4A 0%, #2a3f6b 100%);
  text-align: center;
  color: #FAF7F2;
}
.page-hero h1 {
  font-size: 2.5rem;
  color: #FAF7F2;
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(250, 247, 242, 0.75);
  font-size: 1.05rem;
}

/* ==========================================================
   CONTENT PAGES (about, legal)
   ========================================================== */
.content-section {
  padding: 60px 0;
  background: #FAF7F2;
}
.content-section .content-body {
  max-width: 800px;
  margin: 0 auto;
}
.content-body h2 {
  font-size: 1.6rem;
  margin: 32px 0 12px;
  color: #1B2A4A;
}
.content-body h3 {
  font-size: 1.2rem;
  margin: 24px 0 8px;
  color: #1B2A4A;
}
.content-body p {
  margin-bottom: 16px;
  color: #555;
}
.content-body ul, .content-body ol {
  margin: 0 0 16px 24px;
  color: #555;
}
.content-body li {
  margin-bottom: 6px;
}
.content-body a {
  color: #C4876B;
}
.content-body a:hover {
  text-decoration: underline;
}

/* About page specifics */
.about-story {
  padding: 60px 0;
  background: #fff;
}
.about-story-inner {
  display: flex;
  gap: 48px;
  align-items: center;
}
.about-story-text {
  flex: 1;
}
.about-story-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.about-story-text p {
  color: #555;
  margin-bottom: 16px;
}
.about-story-image {
  flex: 0 0 400px;
  height: 320px;
  background: linear-gradient(135deg, #C4876B 0%, #a8704f 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-story-image svg {
  width: 100px;
  height: 100px;
  opacity: 0.4;
}

.about-values {
  padding: 60px 0;
  background: #FAF7F2;
}
.about-values h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  text-align: center;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27, 42, 74, 0.05);
}
.value-card svg {
  width: 48px;
  height: 48px;
  color: #C4876B;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .about-story-inner { flex-direction: column; }
  .about-story-image { flex: none; width: 100%; height: 200px; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   COOKIE CONSENT BANNER
   ========================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1B2A4A;
  color: #FAF7F2;
  padding: 20px 24px;
  z-index: 2000;
  display: none;
}
.cookie-banner.visible {
  display: block;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cookie-banner p {
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.85);
  flex: 1;
  min-width: 240px;
}
.cookie-banner p a {
  color: #C4876B;
  text-decoration: underline;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner .btn-accept {
  padding: 10px 24px;
  background: #C4876B;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.cookie-banner .btn-decline {
  padding: 10px 24px;
  background: transparent;
  color: rgba(250, 247, 242, 0.7);
  border: 1px solid rgba(250, 247, 242, 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}
