/* ==========================================================================
   Anita's Paintings — Main Stylesheet
   author  : Anita's Paintings
   version : 1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colour palette */
  --clr-bg: #0f0e0c;
  --clr-bg-alt: #161410;
  --clr-surface: #1e1b17;
  --clr-surface-2: #272320;
  --clr-border: rgba(255, 255, 255, 0.07);

  --clr-accent: #c9a96e;
  /* warm gold */
  --clr-accent-dark: #a8844e;
  --clr-accent-glow: rgba(201, 169, 110, 0.25);

  --clr-text: #f0ece6;
  --clr-text-muted: #9a9088;
  --clr-text-subtle: #5c554d;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.75rem;
  --fs-5xl: 3.75rem;
  --fs-6xl: 5rem;

  --lh-tight: 1.15;
  --lh-normal: 1.6;
  --lh-loose: 1.8;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-width: 1200px;
  --header-h: 72px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 8px 32px rgba(201, 169, 110, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. Typography Utilities
   -------------------------------------------------------------------------- */
.section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-4xl);
  font-weight: 300;
  line-height: var(--lh-tight);
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 560px;
  line-height: var(--lh-loose);
  margin-top: var(--sp-4);
}

.section-header {
  margin-bottom: var(--sp-12);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-bg);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--clr-accent-dark);
  box-shadow: 0 12px 40px rgba(201, 169, 110, 0.35);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(15, 14, 12, 0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-slow), backdrop-filter var(--transition-slow), border-color var(--transition-slow);
}

.site-header.scrolled {
  background: rgba(15, 14, 12, 0.85);
  backdrop-filter: blur(20px);
  border-color: var(--clr-border);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Changed from space-between to allow margin-left: auto to work more predictably */
  gap: var(--sp-8);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: calc(var(--fs-xl) * 1.1);
  /* +10% → ~1.375rem */
  font-weight: 400;
  color: var(--clr-text);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--clr-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin-left: auto; /* Push to the right */
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--clr-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; /* Fixed dimensions prevent shifting */
  height: 44px;
  gap: 5px;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Hamburger "X" Animation ───────────────────── */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Navigation Facebook Button (Header) ───────────────────── */
.btn-nav-fb {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 16px;
  background: #1877F2;
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-nav-fb:hover {
  background: #0c63d4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-nav-fb .fb-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .btn-nav-fb {
    display: none !important; /* Hide on mobile to keep header clean */
  }
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  padding-inline: var(--sp-8);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-5);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-4xl), 8vw, var(--fs-6xl));
  font-weight: 300;
  line-height: var(--lh-tight);
  color: var(--clr-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}

.hero-title em {
  font-style: italic;
  color: var(--clr-accent);
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 480px;
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-10);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* Animated background blobs */
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-blob {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: 0.15;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--clr-accent);
  top: -100px;
  right: -100px;
  animation-duration: 10s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #7e5a9b;
  bottom: 0;
  left: 30%;
  animation-duration: 13s;
  animation-delay: -4s;
}

@keyframes blobFloat {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(30px, -30px) scale(1.05);
  }
}

/* --------------------------------------------------------------------------
   7. Gallery Section
   -------------------------------------------------------------------------- */
.gallery-section {
  padding-block: var(--sp-32);
  background: var(--clr-bg-alt);
}

.section-container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
}

.gallery-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 169, 110, 0.2);
}

.gallery-card__image {
  aspect-ratio: 4 / 3;
  background: var(--clr-surface-2);
  overflow: hidden;
  position: relative;
}

.gallery-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-card:hover .gallery-card__image img {
  transform: scale(1.05);
}

.gallery-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  color: var(--clr-text-subtle);
  background: linear-gradient(135deg, var(--clr-surface-2) 0%, var(--clr-surface) 100%);
}

.gallery-card__body {
  padding: var(--sp-5) var(--sp-6);
}

.gallery-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--clr-text);
  margin-bottom: var(--sp-1);
}

.gallery-card__meta {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.gallery-card__price {
  display: inline-block;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clr-accent);
}

.gallery-placeholder {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   8. About Section
   -------------------------------------------------------------------------- */
.about-section {
  padding-block: var(--sp-32);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
  align-items: center;
}

.about-text p {
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-5);
}

.about-text .section-title {
  margin-bottom: var(--sp-6);
}

.about-text .btn {
  margin-top: var(--sp-4);
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.about-image-wrap:hover .about-image {
  transform: scale(1.02);
  box-shadow: var(--shadow-accent);
}

/* --------------------------------------------------------------------------
   9. Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding-block: var(--sp-32);
  background: var(--clr-bg-alt);
}

.contact-section .section-header {
  text-align: center;
}

.contact-section .section-subtitle {
  margin-inline: auto;
}

.contact-form {
  max-width: 680px;
  margin-inline: auto;
  margin-top: var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--clr-text);
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-text-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px var(--clr-accent-glow);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #e05c5c;
}

.contact-form .btn--primary {
  align-self: flex-start;
}

.form-feedback {
  font-size: var(--fs-sm);
  min-height: 1.2em;
}

.form-feedback.success {
  color: #6ecb8a;
}

.form-feedback.error {
  color: #e05c5c;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: var(--sp-12);
  border-top: 1px solid var(--clr-border);
}

.footer-container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--clr-text);
}

.footer-copy {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.footer-links {
  display: flex;
  gap: var(--sp-6);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--clr-accent);
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h); /* Start exactly at bottom of header */
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-h)); /* Cover remaining viewport */
    background: rgba(15, 14, 12, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-10);
    backdrop-filter: blur(20px);
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
    animation: fadeInDropdown 0.3s ease-out;
  }

  .nav-links a {
    font-size: var(--fs-xl);
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto; /* Push to the right on mobile */
  }

  .hero {
    padding-inline: var(--sp-6);
  }

  .section-container {
    padding-inline: var(--sp-6);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }

  .about-image-wrap {
    order: -1;
  }

  .about-image-placeholder {
    aspect-ratio: 4 / 3;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   12. Utility / Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.fade-in-up--delay-1 {
  animation-delay: 0.1s;
}

.fade-in-up--delay-2 {
  animation-delay: 0.2s;
}

.fade-in-up--delay-3 {
  animation-delay: 0.35s;
}

/* Focus visible ring */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Features Grid Section (Alternating Zig-Zag)
   ========================================================================== */

.features-section {
  padding-block: var(--sp-32);
  background: var(--clr-bg-alt);
}

.features-header {
  text-align: center;
  margin-bottom: var(--sp-20);
}

/* ── Each alternating row ─────────────────────────── */
.feature-row {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  margin-bottom: 100px;
  /* generous spacing between rows on desktop */
}

.feature-row:last-child {
  margin-bottom: 0;
}

/* Even rows: photo first, then text (already in DOM order)
   Odd rows: text first, photo second  — also in DOM order   */

/* ── Text column ──────────────────────────────────── */
.feature-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-4xl));
  font-weight: 300;
  line-height: var(--lh-tight);
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  max-width: 52ch;
}

.feature-link {
  margin-top: var(--sp-2);
}

/* ── Media column ─────────────────────────────────── */
.feature-media {
  flex: 1 1 0;
  min-width: 0;
}

.feature-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}

.feature-img-wrap:hover {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  transform: translateY(-4px);
}

.feature-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease;
}

.feature-img-wrap:hover .feature-img {
  transform: scale(1.03);
}

/* ==========================================================================
   Scroll-Reveal Animations  (driven by Intersection Observer in JS)
   ========================================================================== */

/* Base hidden state — set BEFORE the observer kicks in */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.37, 0, 0.63, 1),
    transform 0.7s cubic-bezier(0.37, 0, 0.63, 1);
}

/* Slide from the left */
.reveal-item--left {
  transform: translate(-40px, 20px);
}

/* Slide from the right */
.reveal-item--right {
  transform: translate(40px, 20px);
}

/* Triggered state — added by the Intersection Observer */
.reveal-item.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger siblings within a row */
.feature-row .reveal-item--right {
  transition-delay: 0.15s;
}

/* ── Mobile responsive ───────────────────────────── */
@media (max-width: 768px) {
  .feature-row {
    flex-direction: column;
    gap: var(--sp-10);
    margin-bottom: var(--sp-20);
  }

  /* Even rows: column-reverse so the photo stays on top */
  .feature-row--even {
    flex-direction: column-reverse;
  }

  .feature-text {
    align-items: center;
    text-align: center;
  }

  .feature-desc {
    max-width: 100%;
  }

  /* On mobile, use a simpler vertical-only fade-up for all items */
  .reveal-item--left,
  .reveal-item--right {
    transform: translateY(30px);
  }
}

/* ==========================================================================
   Facebook Promo Section
   ========================================================================== */


.fb-section {
  padding-block: var(--sp-20);
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

/* Two-equal-column grid */
.fb-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

/* ── Text column ─────────────────────────────────── */
.fb-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
}

.fb-desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  max-width: 480px;
}

/* Facebook CTA button
   — More specific selector beats the global .btn { padding } rule */
.fb-section .fb-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  /* Base .btn uses sp-3 (12px) vertical / sp-8 (32px) horizontal.
     We add 5px to each side: 17px vertical, 37px horizontal.      */
  padding: calc(var(--sp-3) + 5px) calc(var(--sp-8) + 5px);
  background: #1877F2;
  /* Facebook blue */
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.30);
}

.fb-section .fb-btn:hover {
  background: #0c63d4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.40);
}

.fb-section .fb-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.25);
}

/* Facebook logo icon inside button */
.fb-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Visual column ───────────────────────────────── */
.fb-visual {
  position: relative;
}

/* 16:9 frame */
.fb-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-lg);
  background: var(--clr-surface);
}

.fb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.fb-img-wrap:hover .fb-img {
  transform: scale(1.03);
}

/* Decorative browser-chrome bar at top of image */
.fb-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 12px;
  pointer-events: none;
}

.fb-chrome__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.fb-chrome__dot:first-child {
  background: #ff5f57;
}

.fb-chrome__dot:nth-child(2) {
  background: #febc2e;
}

.fb-chrome__dot:nth-child(3) {
  background: #28c840;
}

/* ── Responsive: stack on mobile ─────────────────── */
@media (max-width: 768px) {
  .fb-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  /* Text always on top */
  .fb-text {
    order: 1;
  }

  /* Centre the CTA button on mobile */
  .fb-btn {
    align-self: center;
  }

  .fb-visual {
    order: 2;
  }
}

/* ==========================================================================
   Klantervaringen (Reviews) Section
   ========================================================================== */

.reviews-section {
  padding-block: var(--sp-20);
  background: var(--clr-bg-alt);
}

.reviews-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

/* ── Review Card ──────────────────────────────────── */
.review-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    border-color var(--transition-base);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Subtle top-edge accent glow */
.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(201, 169, 110, 0.2);
}

.review-card:hover::before {
  opacity: 1;
}

/* ── Quote Text ──────────────────────────────────── */
.review-card__text {
  flex: 1;
  margin: 0 0 var(--sp-5);
}

.review-card__text p {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 300;
  font-style: italic;
  line-height: var(--lh-loose);
  color: var(--clr-text);
}

/* Opening quote mark */
.review-card__text p::before {
  content: '\201C';
  font-size: 3.5rem;
  line-height: 0;
  vertical-align: -0.55em;
  color: var(--clr-accent);
  opacity: 0.45;
  margin-right: 0.1em;
  font-family: var(--font-serif);
}

/* ── Card Footer (author + FB link circle) ───────── */
.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-4);
  margin-top: auto;
}

.review-author {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text);
  letter-spacing: 0.02em;
}

/* Round Facebook link button in card footer */
.review-fb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #1877F2;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.review-fb-link svg {
  width: 15px;
  height: 15px;
  fill: #ffffff;
  display: block;
}

.review-fb-link:hover {
  background: #0c63d4;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.45);
}

/* ==========================================================================
   Slider — Klantervaringen
   ========================================================================== */

/* Outer wrapper: positions the nav arrows.
   padding-inline = arrow half-width + 6px breathing room */
.slider-wrapper {
  position: relative;
  padding-inline: 30px;
  /* makes room for the ±22px arrow buttons */
}

/* Clipping window — hides overflowing cards */
.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Flex row that holds all cards (real + clones) */
.slider-track {
  display: flex;
  gap: 2rem;
  /* must stay in sync with GAP_REM in JS */
  will-change: transform;
}

/* Every card in the track is fixed-width via JS inline style */
.slider-track .review-card {
  flex: 0 0 auto;
  min-height: 280px;
}

/* ── Navigation Arrow Buttons ────────────────────── */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast);
  cursor: pointer;
}

.slider-nav svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.slider-nav--prev {
  left: -22px;
}

.slider-nav--next {
  right: -22px;
}

.slider-nav:hover {
  background: var(--clr-surface-2);
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  box-shadow: 0 0 0 4px var(--clr-accent-glow);
  transform: translateY(-50%) scale(1.05);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.slider-nav:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
}

/* ── Dot Indicators ──────────────────────────────── */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--clr-text-subtle);
  border: none;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base),
    width var(--transition-base);
  padding: 0;
}

.slider-dot--active {
  background: var(--clr-accent);
  width: 24px;
}

.slider-dot:hover:not(.slider-dot--active) {
  background: var(--clr-text-muted);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .slider-nav--prev {
    left: -8px;
  }

  .slider-nav--next {
    right: -8px;
  }

  .slider-nav {
    width: 36px;
    height: 36px;
  }

  .slider-nav svg {
    width: 16px;
    height: 16px;
  }
}

/* ==========================================================================
   Contact Form — Success State & Error Feedback
   ========================================================================== */

.form-feedback--error {
  color: #ff6b6b;
  font-size: var(--fs-sm);
  min-height: 1.5em;
  margin-top: var(--sp-2);
}

/* Success panel — shown after successful submission */
.form-success[hidden] {
  display: none !important;
  /* CSS display: flex would otherwise override the HTML hidden attr */
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-16) var(--sp-8);
  animation: fadeSlideUp 0.5s cubic-bezier(0.37, 0, 0.63, 1) both;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.form-success__title {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--clr-text);
}

.form-success__text {
  color: var(--clr-text-muted);
  font-size: var(--fs-lg);
  max-width: 44ch;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}