/* ==========================================================================
   CAVIARÉ - LUXURY DESSERT ATELIER
   Main Stylesheet

   TABLE OF CONTENTS:
   1.  CSS Variables
   2.  Global Reset & Base Styles
   3.  Reusable Utility Classes
   4.  Navigation Bar
   5.  Hero Section
   6.  About / Vision / Mission Section
   7.  Experience Section
   8.  Contact Section
   8b. Footer Separator
   9.  Footer Section  (incl. full-bleed background image with zoom-out reveal)
   10. Responsive Media Queries
   11. Accessibility — Reduced Motion
   12. Scroll Reveal Animations
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */
:root {
  --espresso: #2a1d15;
  --cream: #f3eee6;
  --ivory: #fffff0;
  --linen: #f5f1ea;

  --gold: #c6a87c;
  --gold-deep: #8a6f47;

  --text-light: var(--ivory);
  --text-dark: var(--espresso);

  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Montserrat", sans-serif;

  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --deep: #1a110c;
  --card-panel: rgba(26, 17, 12, 0.5);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   3. REUSABLE UTILITY CLASSES
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 500;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--espresso);
  line-height: 1.2;
}

.section-title-sm {
  font-size: 1.8rem;
  line-height: 1.15;
}

.divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem auto;
  width: 100%;
  max-width: 200px;
  gap: 15px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--gold);
}

.divider-diamond {
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.dropcap {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-size: 1.35em;
  letter-spacing: 0;
  line-height: 1;
  display: inline-block;
  vertical-align: -0.06em;
  margin-right: 0.06em;
  text-transform: none;
  color: var(--gold);
}

.about-section .dropcap {
  color: var(--gold-deep);
}

.nav-links a .dropcap {
  font-size: 1.4em;
  color: var(--gold);
  vertical-align: -0.07em;
  margin-right: 0.08em;
}

/* ==========================================================================
   4. NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(42, 29, 21, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(198, 168, 124, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  line-height: 1.1;
  margin-bottom: 2px;
}

.nav-slogan {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: normal;
  color: var(--ivory);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  line-height: 1.3;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--espresso);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 2rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--espresso);
  background-image: url("../images/Hero-section/linen-fabric.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  transform: scale(1.08);
  animation: heroLinenReveal 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s forwards;
  will-change: opacity, transform;
}

@keyframes heroLinenReveal {
  0% { opacity: 0; transform: scale(1.08); filter: brightness(0.55) saturate(0.9); }
  60% { opacity: 1; transform: scale(1.02); filter: brightness(0.9) saturate(1); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1) saturate(1); }
}

.hero-reveal {
  position: absolute;
  inset: 0;
  background-image: url("../images/Hero-section/hero-3.jfif");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0;
  animation: heroRevealFade 2s cubic-bezier(0.22, 0.61, 0.36, 1) 3.1s forwards;
  will-change: opacity;
  pointer-events: none;
}

@keyframes heroRevealFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(42, 29, 21, 0.15) 0%,
    rgba(26, 17, 12, 0.55) 85%
  );
  pointer-events: none;
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 17, 12, 0.35) 0%,
    transparent 25%,
    transparent 75%,
    rgba(26, 17, 12, 0.7) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-logo-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  margin-bottom: 2rem;
  margin-top: 0;
  border-radius: 50%;
  position: relative;
  z-index: 3;
  border: 1px solid rgba(198, 168, 124, 0.4);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(198, 168, 124, 0.15),
    0 0 80px rgba(198, 168, 124, 0.08),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(60px) scale(0.94);
  animation: heroLogoRise 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) 1.4s forwards;
  will-change: opacity, transform;
}

@keyframes heroLogoRise {
  0% { opacity: 0; transform: translateY(60px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-scroll {
  position: absolute;
  bottom: 0.1rem;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  z-index: 3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(16px);
  animation:
    heroScrollFade 1s ease-out 2.6s forwards,
    bounce 2s ease-in-out 3.6s infinite;
}

@keyframes heroScrollFade {
  to { opacity: 0.9; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ==========================================================================
   6. ABOUT / VISION / MISSION SECTION
   ========================================================================== */
.about-section {
  padding: 10rem 0;
  background-image: url("../images/Our-story/fabric-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--cream);
  text-align: center;
  position: relative;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(243, 238, 230, 0.75);
  pointer-events: none;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-intro {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--espresso);
  font-weight: 500;
}

.about-section .section-tag {
  color: var(--gold-deep);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 6rem;
  text-align: left;
}

.grid-item {
  position: relative;
  padding: 4rem 3rem 3.5rem;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 240, 0.55) 0%,
    rgba(255, 255, 240, 0.28) 45%,
    rgba(255, 255, 240, 0.38) 100%
  );
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 240, 0.6);
  overflow: hidden;
  isolation: isolate;
  transition: var(--transition);
}

.grid-item::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(198, 168, 124, 0.4);
  pointer-events: none;
  transition: var(--transition);
  z-index: 1;
}

.grid-item::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 55%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.35) 55%,
    transparent 100%
  );
  transform: rotate(8deg);
  pointer-events: none;
  transition: left 1.1s cubic-bezier(0.5, 0, 0.15, 1);
  z-index: 0;
  opacity: 0.55;
}

.grid-item-inner {
  position: relative;
  z-index: 2;
}

.grid-item-number {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: rgba(198, 168, 124, 0.55);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.grid-item-rule {
  width: 40px;
  height: 1px;
  background-color: var(--gold);
  margin: 1.5rem 0;
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.grid-item p {
  font-size: 1rem;
  color: var(--espresso);
  line-height: 1.85;
  max-width: 90%;
}

.grid-item-arrow {
  position: absolute;
  right: 2.5rem;
  bottom: 2.2rem;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--gold-deep);
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
  z-index: 2;
}

.grid-item:hover {
  box-shadow:
    0 30px 60px -20px rgba(42, 29, 21, 0.18),
    0 0 0 1px rgba(198, 168, 124, 0.15);
}

.grid-item:hover::before {
  inset: 8px;
  border-color: rgba(198, 168, 124, 0.75);
}

.grid-item:hover::after {
  left: 125%;
  transition: left 1.1s cubic-bezier(0.5, 0, 0.15, 1);
}

.grid-item:hover .grid-item-number {
  color: var(--gold);
  letter-spacing: 0.06em;
}

.grid-item:hover .grid-item-rule {
  width: 70px;
}

.grid-item:hover .grid-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   7. EXPERIENCE SECTION
   ========================================================================== */
.experience-section {
  padding: 10rem 0 9rem;
  background-color: var(--deep);
  background-image:
    radial-gradient(
      ellipse at 50% 18%,
      rgba(198, 168, 124, 0.1) 0%,
      rgba(26, 17, 12, 0) 60%
    ),
    linear-gradient(
      45deg,
      rgba(198, 168, 124, 0.035) 25%,
      transparent 25%,
      transparent 75%,
      rgba(198, 168, 124, 0.035) 75%,
      rgba(198, 168, 124, 0.035)
    ),
    linear-gradient(
      -45deg,
      rgba(198, 168, 124, 0.035) 25%,
      transparent 25%,
      transparent 75%,
      rgba(198, 168, 124, 0.035) 75%,
      rgba(198, 168, 124, 0.035)
    );
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-position: center top, 0 0, 24px 24px;
  color: var(--ivory);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.experience-section::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(198, 168, 124, 0.09) 0%,
    rgba(198, 168, 124, 0) 60%
  );
  pointer-events: none;
  z-index: 0;
}

.experience-section .container {
  position: relative;
  z-index: 1;
}

.experience-section .section-title {
  color: var(--cream);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 5rem;
}

.exp-card {
  position: relative;
  padding: 3.5rem 2.5rem 3.5rem;
  background: var(--card-panel);
  border: 1px solid rgba(198, 168, 124, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: var(--transition);
  overflow: hidden;
  isolation: isolate;
  text-align: left;
}

.exp-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  z-index: 1;
}

.exp-card-number {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  color: rgba(198, 168, 124, 0.55);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.exp-card-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0;
  line-height: 1.2;
  transition: var(--transition);
}

.exp-card-rule {
  width: 32px;
  height: 1px;
  background-color: var(--gold);
  margin: 1.25rem 0 1.25rem;
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.exp-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 240, 0.72);
  line-height: 1.75;
}

.exp-card-signature {
  position: absolute;
  right: 2.5rem;
  bottom: 2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  color: rgba(198, 168, 124, 0.7);
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
  pointer-events: none;
  z-index: 2;
  user-select: none;
}

.exp-card:hover {
  background: rgba(26, 17, 12, 0.62);
  border-color: rgba(198, 168, 124, 0.45);
}

.exp-card:hover::after {
  transform: scaleX(1);
}

.exp-card:hover .exp-card-number {
  color: var(--gold);
  letter-spacing: 0.4em;
}

.exp-card:hover .exp-card-rule {
  width: 60px;
}

.exp-card:hover .exp-card-signature {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   8. CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 9rem 0 8rem;
  background-color: var(--deep);
  background-image:
    linear-gradient(
      45deg,
      rgba(198, 168, 124, 0.035) 25%,
      transparent 25%,
      transparent 75%,
      rgba(198, 168, 124, 0.035) 75%,
      rgba(198, 168, 124, 0.035)
    ),
    linear-gradient(
      -45deg,
      rgba(198, 168, 124, 0.035) 25%,
      transparent 25%,
      transparent 75%,
      rgba(198, 168, 124, 0.035) 75%,
      rgba(198, 168, 124, 0.035)
    );
  background-size: 48px 48px, 48px 48px;
  background-position: 0 0, 24px 24px;
  color: var(--ivory);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(198, 168, 124, 0.08) 0%,
    rgba(26, 17, 12, 0) 60%
  );
  pointer-events: none;
  z-index: 0;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-section .section-title {
  color: var(--cream);
  font-size: 2.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.contact-subtitle {
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: var(--gold);
}

.contact-intro {
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 240, 0.75);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  padding: 3rem;
  background: var(--card-panel);
  border: 1px solid rgba(198, 168, 124, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.form-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.form-signature-line {
  display: block;
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(198, 168, 124, 0.4) 100%);
}

.form-signature-line:last-of-type {
  background: linear-gradient(to left, transparent 0%, rgba(198, 168, 124, 0.4) 100%);
}

.form-signature-text {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  white-space: nowrap;
}

.form-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.form-tagline-line {
  display: block;
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(198, 168, 124, 0.35) 100%);
}

.form-tagline-line:last-of-type {
  background: linear-gradient(to left, transparent 0%, rgba(198, 168, 124, 0.35) 100%);
}

.form-tagline-text {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(198, 168, 124, 0.75);
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 240, 0.03);
  border: 1px solid rgba(198, 168, 124, 0.3);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 240, 0.06);
  box-shadow: 0 0 20px rgba(198, 168, 124, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 240, 0.55);
  font-weight: 300;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: 1.2rem 2.5rem;
  background-color: var(--gold);
  border: 1px solid var(--gold);
  color: var(--espresso);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.contact-form button:hover {
  background-color: transparent;
  color: var(--gold);
}

.form-success {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  text-align: center;
  padding: 2rem 0 1rem;
  line-height: 1.5;
}

/* ==========================================================================
   8b. FOOTER SEPARATOR
   ========================================================================== */
.footer-separator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0;
  background-color: var(--deep);
  background-image:
    linear-gradient(
      45deg,
      rgba(198, 168, 124, 0.035) 25%,
      transparent 25%,
      transparent 75%,
      rgba(198, 168, 124, 0.035) 75%,
      rgba(198, 168, 124, 0.035)
    ),
    linear-gradient(
      -45deg,
      rgba(198, 168, 124, 0.035) 25%,
      transparent 25%,
      transparent 75%,
      rgba(198, 168, 124, 0.035) 75%,
      rgba(198, 168, 124, 0.035)
    );
  background-size: 48px 48px, 48px 48px;
  background-position: 0 0, 24px 24px;
  overflow: hidden;
  z-index: 3;
}

.footer-separator-line {
  position: relative;
  display: block;
  width: 100%;
  max-width: 480px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(198, 168, 124, 0.2) 15%,
    rgba(198, 168, 124, 0.55) 50%,
    rgba(198, 168, 124, 0.2) 85%,
    transparent 100%
  );
}

.footer-separator-line::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 7px;
  background: radial-gradient(
    ellipse at center,
    rgba(198, 168, 124, 0.12) 0%,
    rgba(198, 168, 124, 0) 70%
  );
  pointer-events: none;
}

/* ==========================================================================
   9. FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: var(--deep);
  background-image:
    linear-gradient(
      45deg,
      rgba(198, 168, 124, 0.035) 25%,
      transparent 25%,
      transparent 75%,
      rgba(198, 168, 124, 0.035) 75%,
      rgba(198, 168, 124, 0.035)
    ),
    linear-gradient(
      -45deg,
      rgba(198, 168, 124, 0.035) 25%,
      transparent 25%,
      transparent 75%,
      rgba(198, 168, 124, 0.035) 75%,
      rgba(198, 168, 124, 0.035)
    );
  background-size: 48px 48px, 48px 48px;
  background-position: 0 0, 24px 24px;
  padding: 6rem 0 2rem;
  /* Base colour for all footer text — now the site cream. */
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.footer .container {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   FOOTER BACKGROUND — a single, full-bleed image that zooms OUT into view.
   -------------------------------------------------------------------------- */
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: opacity, transform, filter;
}

.footer-bg-reveal {
  opacity: 0;
  transform: scale(1.08);
  filter: brightness(0.6) saturate(0.9);
}

.footer.is-revealed .footer-bg-reveal {
  animation: footerZoomOut 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s forwards;
}

@keyframes footerZoomOut {
  0% {
    opacity: 0;
    transform: scale(1.08);
    filter: brightness(0.6) saturate(0.9);
  }
  60% {
    opacity: 1;
    transform: scale(1.02);
    filter: brightness(0.92) saturate(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
}

.footer-bg-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(26, 17, 12, 0.82) 0%,
      rgba(26, 17, 12, 0.72) 30%,
      rgba(26, 17, 12, 0.78) 70%,
      rgba(26, 17, 12, 0.88) 100%
    );
  pointer-events: none;
  will-change: opacity, transform;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  text-align: left;
}

.footer-brand .nav-logo {
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}

/* Cream at full opacity — bright against the cocoa image */
.footer-brand p {
  font-size: 0.9rem;
  color: var(--cream);
  max-width: 350px;
  margin-bottom: 1.5rem;
}

.footer-brand .slogan {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
}

.footer-column h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

/* Cream at full opacity — bright against the cocoa image */
.footer-column ul li a {
  font-size: 0.9rem;
  color: var(--cream);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--gold);
  padding-left: 5px;
}

/* Cream at full opacity — bright against the cocoa image */
.footer-column p {
  font-size: 0.9rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(198, 168, 124, 0.28);
  color: rgba(198, 168, 124, 0.85);
  transition: var(--transition);
  border-radius: 50%;
}

.footer-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: var(--transition);
}

.footer-social-link:hover {
  color: var(--gold);
  border-color: rgba(198, 168, 124, 0.75);
  transform: translateY(-2px);
  box-shadow:
    0 6px 18px -6px rgba(198, 168, 124, 0.35),
    0 0 0 1px rgba(198, 168, 124, 0.15);
}

.footer-social-link:hover svg {
  transform: scale(1.08);
}

/* Cream at full opacity — bright against the cocoa image */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(198, 168, 124, 0.18);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 900px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-item {
    padding: 3rem 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    text-align: left;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1rem;
  }

  .footer-brand p {
    margin: 0 auto 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-brand {
    align-items: flex-start;
    text-align: left;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--espresso);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gold);
    gap: 1.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 100px 1rem 0 1rem;
  }

  .hero-bg {
    background-attachment: scroll;
  }

  .hero-logo-img {
    max-width: 260px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    line-height: 2;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-column ul li a:hover {
    padding-left: 0;
  }

  .form-signature-line,
  .form-tagline-line {
    max-width: 50px;
  }

  .form-signature-text {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
  }

  .form-tagline-text {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ==========================================================================
   11. ACCESSIBILITY — REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg,
  .hero-reveal,
  .hero-logo-img,
  .hero-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-scroll {
    opacity: 0.9 !important;
  }

  .exp-card-signature {
    opacity: 1;
    transform: none;
  }

  /* Footer background — no zoom, just show it fully */
  .footer-bg-reveal,
  .footer.is-revealed .footer-bg-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   12. SCROLL REVEAL ANIMATIONS
   ========================================================================== */

[data-reveal],
[data-line],
[data-waterfall] {
  opacity: 0;
  will-change: opacity, transform;
}

[data-reveal].is-visible,
[data-line].is-visible,
[data-waterfall].is-visible {
  opacity: 1;
}

[data-reveal="up"] {
  transform: translateY(35px);
  transition:
    opacity 0.9s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal="up"].is-visible {
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-60px);
  transition:
    opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 1.1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-reveal="left"].is-visible {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(60px);
  transition:
    opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 1.1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-reveal="right"].is-visible {
  transform: translateX(0);
}

[data-line] {
  transform: translateY(20px);
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: var(--line-delay, 0s);
}

[data-line].is-visible {
  transform: translateY(0);
  opacity: 1;
}

[data-reveal="down"] {
  transform: translateY(-35px);
  transition:
    opacity 0.9s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal="down"].is-visible {
  transform: translateY(0);
}

[data-reveal="from-right"] {
  transform: translateX(90px);
  transition:
    opacity 1.1s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal="from-right"].is-visible {
  transform: translateX(0);
}

[data-reveal="form-panel"] {
  transform: translateY(40px) scale(0.98);
  opacity: 0;
  transition:
    opacity 1.1s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-reveal="form-panel"].is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

[data-reveal="form-button"] {
  transform: translateY(20px);
  opacity: 0;
  transition:
    opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 1.1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-reveal="form-button"].is-visible {
  transform: translateY(0);
  opacity: 1;
}

[data-waterfall] {
  transform: translateY(28px);
  opacity: 0;
  transition:
    opacity 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.95s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: var(--waterfall-delay, 0s);
}

[data-waterfall].is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-line],
  [data-waterfall] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}