/* ================================================================
   Mozzarella Marino — landing page styles
   Mobile-first, fully responsive
   ================================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat/montserrat-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat/montserrat-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat/montserrat-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat/montserrat-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat/montserrat-extrabold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat/montserrat-extrabolditalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat/montserrat-black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('/assets/fonts/cinzel/cinzel-variable.ttf') format('truetype-variations'),
       url('/assets/fonts/cinzel/cinzel-regular.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --color-red: #842520;
  --color-red-dark: #6a1d19;
  --color-cream: #fef9f0;
  --color-yellow: #f9d139;
  --color-text: #2a2a2a;
  --color-muted: #6b6b6b;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f1ea;
  --color-border: #e7e1d5;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Forum', Georgia, 'Times New Roman', serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --header-h: 72px;

  --maxw: 1200px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; }
p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
@media (min-width: 1024px) { .section { padding: 120px 0; } }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-red);
  text-align: center;
  margin: 0 0 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  font-weight: 500;
  margin: 0 0 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary {
  background: var(--color-red);
  color: var(--color-cream);
}
.btn--primary:hover { background: var(--color-red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn--rect {
  background: var(--color-red);
  color: var(--color-cream);
  border-radius: 6px;
  padding: 12px 26px;
  font-size: 13px;
}
.btn--rect:hover { background: var(--color-red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--rect:active { transform: translateY(0); }

/* ---------- Header (transparent, floats over hero) ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  color: var(--color-cream);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 18px 40px;
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo-img {
  display: block;
  height: 101px;
  width: auto;
  user-select: none;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}

/* Hamburger button — top right */
.menu-toggle {
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-cream);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Dropdown menu panel */
.mobile-menu {
  position: absolute;
  top: calc(100% - 8px);
  right: 28px;
  z-index: 105;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding: 10px 0;
  background: var(--color-cream);
  border-radius: 12px;
  box-shadow: 0 14px 38px -10px rgba(0, 0, 0, 0.25), 0 4px 10px -4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.mobile-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.mobile-menu a {
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-red);
  transition: background 0.15s ease;
}
.mobile-menu a:hover {
  background: rgba(132, 37, 32, 0.08);
}

@media (max-width: 860px) {
  .nav { min-height: 88px; padding: 14px 20px; }
  .logo-img { height: 67px; }
  .menu-toggle { right: 18px; }
  .mobile-menu { right: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #c8c8c8;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* handle mobile browser chrome on supporting browsers */
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: #c8c8c8;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-inner {
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(13px, 1.2vw, 17px);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.hero-eyebrow span { display: inline-block; }

.hero-title {
  font-family: 'Forum', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 64px);
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  margin: 0;
}
.hero-title span { display: block; }

/* ---------- About ---------- */
.about {
  position: relative;
  overflow: visible;
  z-index: 1;
}
.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  z-index: 1;
}
.about-illustration {
  display: flex;
  justify-content: center;
}
.about-illustration img,
.about-illustration .mascot-video {
  max-width: 440px;
  width: 100%;
  height: auto;
  display: block;
  /* Force own GPU layer to kill mobile-Safari scroll artifacts */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}
.about-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 24px;
  line-height: 1.05;
}
.about-text p {
  font-weight: 400;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.3px;
  max-width: 56ch;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
  }
  .about-illustration img,
  .about-illustration .mascot-video { max-width: 720px; }
}

/* Floating decorations — natural size; JS only translates upward on scroll.
   Inner img keeps the continuous sway animation for "alive" feel. */
.float-wrap {
  position: absolute;
  pointer-events: none;
  z-index: 30;
  will-change: transform;
  transform: rotate(var(--rot, 0deg));
}
/* Mobile / tablet (<900px): hide the DESKTOP floating accents,
   but show the dedicated .mobile-only floats (see "MOBILE FLOATS" block) */
@media (max-width: 899px) {
  .float-wrap:not(.mobile-only) { display: none; }
}
/* Hide mobile-only floats on desktop */
@media (min-width: 900px) {
  .float-wrap.mobile-only { display: none; }
}
.float-wrap > img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.10));
  user-select: none;
  -webkit-user-drag: none;
  animation: float-sway 7s ease-in-out infinite;
  will-change: transform;
}
/* Stagger sway across items so they don't move in unison */
.float-wrap.a1 > img { animation-delay: -0.0s; }
.float-wrap.a2 > img { animation-delay: -1.2s; }
.float-wrap.a3 > img { animation-delay: -2.4s; }
.float-wrap.a4 > img { animation-delay: -0.6s; }
.float-wrap.a5 > img { animation-delay: -3.5s; }
.float-wrap.a6 > img { animation-delay: -4.0s; }
.float-wrap.a7 > img { animation-delay: -5.0s; }
.float-wrap.p1 > img { animation-delay: -0.5s; }
.float-wrap.p2 > img { animation-delay: -1.7s; }
.float-wrap.p3 > img { animation-delay: -3.0s; }
.float-wrap.p4 > img { animation-delay: -4.4s; }
.float-wrap.p5 > img { animation-delay: -2.0s; }
.float-wrap.p6 > img { animation-delay: -5.5s; }

@keyframes float-sway {
  0%, 100% { transform: translate(0, 0)     rotate(0deg);   }
  25%      { transform: translate(2px, -4px) rotate(0.8deg); }
  50%      { transform: translate(0, -6px)   rotate(-0.4deg); }
  75%      { transform: translate(-2px, -3px) rotate(-1deg); }
}

/* ----- About — tight vertical column, hugging the left (mobile defaults) ----- */
.float-wrap.a1 { top:  6%; left:  6%; width: 76px; --rot:   6deg; }  /* mozz (first) */
.float-wrap.a2 { top: 20%; left: 18%; width: 64px; --rot: -14deg; }  /* basil — facing right */
.float-wrap.a3 { top: 34%; left:  6%; width: 84px; --rot:  -4deg; }  /* BIG tomato */
.float-wrap.a4 { top: 30%; left: 28%; width: 14px; --rot:   0deg; }  /* pepper — beside tomato */
.float-wrap.a5 { top: 56%; left:  6%; width: 80px; --rot:   8deg; }  /* second mozz */
.float-wrap.a6 { top: 52%; left:  0%; width: 12px; --rot:   0deg; }  /* pepper — beside big mozz */
.float-wrap.a7 { top: 78%; left:  2%; width: 72px; --rot: -14deg; }  /* basil bottom */
/* Flip the second-row basil so it points to the right */
.float-wrap.a2 > img { transform: scaleX(-1); }

/* ----- Products — RIGHT side ----- */
.float-wrap.p1 { top:  6%; right:  8%; width: 58px; --rot: -12deg; }  /* basil top */
.float-wrap.p2 { top: 18%; right: 26%; width: 14px; --rot:   0deg; }  /* pepper — beside tomato */
.float-wrap.p3 { top: 30%; right: 10%; width: 78px; --rot:  -4deg; }  /* BIG tomato */
.float-wrap.p4 { top: 54%; right: 12%; width: 75px; --rot:   8deg; }  /* BIG mozz */
.float-wrap.p5 { top: 64%; right: 26%; width: 14px; --rot:   0deg; }  /* pepper — beside big mozz */
.float-wrap.p6 { top: 78%; right: 10%; width: 68px; --rot: -22deg; }  /* basil bottom */

@media (min-width: 900px) {
  /* About — column order: mozz → basil-right → tomato → mozz → pepper → basil bottom */
  .float-wrap.a1 { top:  6%; left:  -1%; width: 90px; }   /* mozz (first) */
  .float-wrap.a2 { top: 20%; left:  10%; width:  95px; }   /* basil — facing right */
  .float-wrap.a3 { top: 40%; left:   1%; width: 150px; }   /* BIG tomato */
  .float-wrap.a4 { top: 20%; left:  10%; width:  30px; }   /* pepper — beside tomato */
  .float-wrap.a5 { top: 56%; left:  10%; width: 160px; }   /* second mozz */
  .float-wrap.a6 { top: 52%; left:  18%; width:  18px; }   /* pepper — beside mozz */
  .float-wrap.a7 { top: 75%; left:   2%; width: 110px; }   /* basil bottom */

  /* Products — RIGHT side */
  .float-wrap.p1 { top:  6%; right: 10%; width: 170px; }   /* basil top */
  .float-wrap.p2 { top: 18%; right:  4%; width:  10px; }   /* pepper — beside tomato */
  .float-wrap.p3 { top: 30%; right:  5%; width: 120px; }   /* BIG tomato */
  .float-wrap.p4 { top: 54%; right: -2%; width: 120px; }   /* BIG mozz */
  .float-wrap.p5 { top: 70%; right: 10%; width:  20px; }   /* pepper — beside big mozz */
  .float-wrap.p6 { top: 78%; right:  5%; width: 130px; }   /* basil bottom */

}

/* =========================================================================
   ===== MOBILE FLOATS =====================================================
   Edit ONLY these four blocks to move the floating items on phone.
   Each rule:  top / left|right = position  •  width = size  •  --rot = tilt
   Image source is set in index.html (look for class names m-a1, m-a2, m-p1,
   m-c1, m-c2). Active only at viewport widths <= 899px.
   ========================================================================= */
@media (max-width: 899px) {

  /* ----- About section (mobile) -------------------------------------- */
  .float-wrap.m-a1 {              /* LEFT side — tall basil along left edge */
    top:    8%;
    left:  -4%;
    width: 130px;
    --rot: -8deg;
  }
  .float-wrap.m-a2 {              /* RIGHT side — mid, beside chef hand */
    top:   42%;
    right: -2%;
    width: 90px;
    --rot:  6deg;
  }
  /* Small right-side accents — keep widths small (<60px) so they don't cover text */
  .float-wrap.m-a3 {              /* RIGHT upper — small basil */
    top:   12%;
    right:  2%;
    width: 52px;
    --rot: 14deg;
  }
  .float-wrap.m-a4 {              /* RIGHT mid-low — tiny pepper */
    top:   62%;
    right:  4%;
    width: 22px;
    --rot:  0deg;
  }
  .float-wrap.m-a5 {              /* RIGHT bottom — small tomato */
    top:   80%;
    right:  4%;
    width: 50px;
    --rot:  4deg;
  }
  /* Extra scattered accents — placed in empty white spots, kept small */
  .float-wrap.m-a6 {              /* TOP-CENTER tiny basil between header & chef */
    top:    2%;
    left:  42%;
    width: 36px;
    --rot: -18deg;
  }
  .float-wrap.m-a7 {              /* MID-LEFT tiny pepper beside chef */
    top:   28%;
    left:  18%;
    width: 14px;
    --rot:  0deg;
  }
  .float-wrap.m-a8 {              /* BOTTOM-LEFT small tomato below text */
    top:   90%;
    left:   4%;
    width: 48px;
    --rot: 10deg;
  }
  .float-wrap.m-a9 {              /* MID-RIGHT tiny pepper between m-a2 and m-a4 */
    top:   54%;
    right:  16%;
    width: 12px;
    --rot:  0deg;
  }

  /* ----- Products section (mobile) ----------------------------------- */
  .float-wrap.m-p1 {              /* RIGHT of "Our Products" — tomato */
    top:    4%;
    right:  0%;
    width: 110px;
    --rot: -6deg;
  }
  .float-wrap.m-p2 {              /* RIGHT of "Our Products" — leaf above tomato */
    top:   -2%;
    right: 22%;
    width: 70px;
    --rot: -22deg;
  }

  /* ----- Contact section (mobile) — KEPT AWAY from the photo triangle  */
  .float-wrap.m-c1 {              /* TOP-RIGHT corner — above heading, small */
    top:    3%;
    right:  6%;
    width:  46px;
    --rot:  12deg;
  }
  .float-wrap.m-c2 {              /* BOTTOM area — under the submit button */
    top:   90%;
    right: 10%;
    width:  44px;
    --rot:  -8deg;
  }
}

/* ---------- Products ---------- */
.products {
  position: relative;
  overflow: visible;
  z-index: 1;
}
.products .container { position: relative; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product-card {
  text-align: center;
  background: transparent;
  padding: 16px 8px;
  cursor: pointer;
}
.product-image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-card:hover .product-image,
.product-card:focus-within .product-image {
  transform: scale(1.12);
}
.product-card h3 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.product-card:hover h3,
.product-card:focus-within h3 {
  opacity: 1;
  transform: translateY(-24px);
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

/* ---------- CTA ---------- */
.cta {
  padding-bottom: 64px;
}
.cta-card {
  position: relative;
  padding: 32px 28px 36px;
  overflow: visible;
}
/* Mobile: clean TRIANGLE layout — 2 photos on top row, 1 centered below */
.cta-album {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  row-gap: 18px;
  margin: 36px auto 32px;
  max-width: 320px;
  justify-items: center;
}
.cta-photo {
  width: 138px;
  height: 138px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateX(var(--enter-x, -240px)) rotate(var(--rest-rot, 0deg));
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
  transition-delay: var(--enter-delay, 0s);
}
.contact.in-view .cta-photo {
  opacity: 1;
  transform: rotate(var(--rest-rot, 0deg));
}
/* Triangle: photo 1 top-left, photo 2 top-right, photo 3 bottom-centered */
.cta-photo--1 { --rest-rot: -5deg; --enter-x: -260px; --enter-delay: 0.05s; }
.cta-photo--2 { --rest-rot:  5deg; --enter-x:  260px; --enter-delay: 0.18s; }
.cta-photo--3 { --rest-rot: -3deg; --enter-x: -260px; --enter-delay: 0.30s;
                grid-column: 1 / -1; justify-self: center; }
/* Mobile: only 3 photos — hide the extras */
.cta-photo--4,
.cta-photo--5 { display: none; }

.cta-body h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--color-red);
  margin: 0 0 20px;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.cta-email {
  font-family: var(--font-display);
  margin: 18px 0 22px;
  color: var(--color-red);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  word-break: break-word;
}
.cta-email a:hover { text-decoration: underline; }

.cta-social {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  gap: 14px;
}
.cta-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-cream);
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-social svg { display: block; width: 16px; height: 16px; }
.cta-social a:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  /* Desktop: scattered photo stack extending OUT of the card's left side.
     Photos are absolutely positioned, overlap and tilt for an album vibe. */
  .cta-card {
    padding: 36px 36px 36px 240px;
    min-height: 380px;
  }
  .cta-album {
    position: absolute;
    top: 50%;
    left: -32px;
    transform: translateY(-50%);
    width: 240px;
    height: 360px;
    margin: 0;
    display: block;
    max-width: none;
  }
  /* Mobile-only collage photos are hidden on tablet/desktop */
  .cta-photo.mobile-only-photo { display: none; }
  .cta-photo {
    position: absolute;
    border-radius: 14px;
  }
  /* big → medium → small, top to bottom */
  .cta-photo--1 { top:   0; left:  10px; width: 200px; height: 200px; --rest-rot: -12deg; --enter-x: -480px; z-index: 1; }
  .cta-photo--2 { top: 170px; left: 60px; width: 140px; height: 140px; --rest-rot:   8deg; --enter-x: -520px; z-index: 2; }
  .cta-photo--3 { top: 280px; left:  20px; width:  95px; height:  95px; --rest-rot: -10deg; --enter-x: -440px; z-index: 3; }
}

@media (min-width: 1024px) {
  .cta-card {
    padding: 40px 40px 40px 260px;
  }
  .cta-album {
    width: 260px;
    height: 400px;
    left: -36px;
  }
  /* big → medium → small, top to bottom (desktop) */
  .cta-photo--1 { top:   0; left:  10px; width: 220px; height: 220px; --rest-rot: -12deg; --enter-x: -520px; }
  .cta-photo--2 { top: 190px; left: 70px; width: 150px; height: 150px; --rest-rot:   8deg; --enter-x: -560px; }
  .cta-photo--3 { top: 305px; left:  20px; width: 105px; height: 105px; --rest-rot: -10deg; --enter-x: -480px; }
}

/* ---------- Contact form ---------- */
/* Entire section is cream so it flows seamlessly into the bottom strip below */
.contact {
  position: relative;
  overflow: visible;
  padding-bottom: 0;
  background: var(--color-cream);
}
.contact .container { position: relative; z-index: 1; }
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  /* No own background — inherits the cream from the .contact section */
  padding: 36px 28px;
  align-items: stretch;
}
.contact-intro h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--color-red);
  margin-bottom: 16px;
}
.contact-intro p {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.7;
  max-width: 44ch;
}

.contact-form {
  position: relative;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* "Sending email to" note above the form fields */
.form-note {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.3px;
}
.form-note a {
  color: var(--color-red);
  font-weight: 600;
  text-decoration: none;
}
.form-note a:hover { text-decoration: underline; }
/* On mobile the bottom form-album is hidden — both photos are now part of the
   top cta-album collage (cta-photo--4 and --5). Desktop still uses it. */
.form-album {
  display: none;
  gap: 18px;
  margin: 36px 0 8px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 900px) {
  .form-album { display: block; }
}
.form-photo {
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  width: 120px;
  height: 120px;
  opacity: 0;
  transform: translateY(var(--enter-y, 40px)) rotate(var(--rest-rot, 0deg));
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
  transition-delay: var(--enter-delay, 0s);
}
.contact.in-view .form-photo {
  opacity: 1;
  transform: rotate(var(--rest-rot, 0deg));
}
/* Mobile rotations + rise-from-below animation */
.form-photo--1 { --rest-rot:  6deg; --enter-y: 50px; --enter-delay: 0.10s; }
.form-photo--2 { --rest-rot: -5deg; --enter-y: 60px; --enter-delay: 0.22s; }
@media (min-width: 900px) {
  .form-album {
    display: block;
    position: absolute;
    top: 50%;
    right: -80px;         /* pulled left — album just kisses the right edge of the cream box */
    transform: translateY(-50%);
    width: 170px;
    height: 0;
    z-index: 2;
    margin: 0;
  }
  .form-photo { position: absolute; }
  .form-photo--1 { top: -170px; right:  0;   width: 150px; height: 150px; --rest-rot: 10deg; --enter-x: 420px; --enter-delay: 0.10s; }
  .form-photo--2 { top:   20px; right: -40px; width: 170px; height: 170px; --rest-rot: -8deg; --enter-x: 500px; --enter-delay: 0.25s; }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.3px;
}
.form-field > span em {
  font-style: normal;
  color: var(--color-muted);
  font-weight: 500;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  min-height: 44px;
}
.form-field textarea { min-height: 120px; line-height: 1.6; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(153, 43, 37, 0.14);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-submit {
  position: relative;
  align-self: flex-start;
  min-width: 180px;
}
.form-submit .btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--color-cream);
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.form-submit[data-loading="true"] .btn-spinner { display: inline-block; }
.form-submit[data-loading="true"] .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  min-height: 1.4em;
}
.form-status[data-state="success"] { color: #1e7a47; }
.form-status[data-state="error"] { color: #c0392b; }

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: start;
  }
  .contact-inner { padding: 48px 40px; }
  .contact-form { padding: 32px 36px 32px 28px; }
}

/* ---------- Bottom cream strip ---------- */
/* Full-width cream band that fills from the bottom of the contact card
   right up to the footer — no white gap between them. */
.bottom-strip {
  background: var(--color-cream);
  width: 100vw;
  margin-left: calc(50% - 50vw); /* break out of any container that may clip */
  height: 48px;
}
@media (min-width: 768px) { .bottom-strip { height: 64px; } }
@media (min-width: 1024px) { .bottom-strip { height: 72px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-red);
  color: var(--color-cream);
  padding: 32px 0;
  text-align: center;
}
.footer-logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.footer-copy {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
