/* =========================================
   GLOBAL TOKENS + BASE
========================================= */
:root{
  /* Brand */
  --brand-orange: #ec3b82;
  --brand-blue:   #021e28;
  --brand-white:  #FFF0E1;
  --brand-grey:  #b9b6af;

  /* Text */
  --text-on-light:          var(--brand-blue);
  --text-on-dark-primary:   var(--brand-orange);
  --text-on-dark-secondary: var(--text-on-dark-primary);

  /* Typography */
  --font-body:    "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body-weight:    400;
  --heading-weight: 700;

  /* Layout shell */
  --max-content: 1760px;
  --page-padding: clamp(16px, 3vw, 80px);

  /* Fluid type tokens */
  --font-s:   clamp(0.95rem, 0.90rem + 0.25vw, 1.05rem);
  --font-m:   clamp(1.05rem, 1.00rem + 0.45vw, 1.25rem);
  --font-l:   clamp(1.25rem, 1.10rem + 0.90vw, 1.60rem);
  --font-xl:  clamp(2.25rem, 1.60rem + 2.50vw, 3.50rem);
  --font-xxl: clamp(3.00rem, 2.00rem + 4.00vw, 5.00rem);

  /* Fluid spacing */
  --space-xs: clamp( 6px, 0.50vw, 10px);
  --space-s:  clamp(10px, 0.80vw, 14px);
  --space-m:  clamp(16px, 1.40vw, 24px);
  --space-l:  clamp(24px, 2.20vw, 40px);
  --space-xl: clamp(36px, 3.20vw, 64px);

  /* Motion */
  --focus-outline:    rgba(243, 255, 0, 0.5);
  --transition-speed: 0.3s;

  /* Adjust this if your nav height visually looks different */
  --nav-height: 72px;
}

/* =======================================
   RESET + BASE
======================================= */
*, *::before, *::after { box-sizing: border-box; }

html{
  font-size: 22px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


body{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;

  font-family: var(--font-body);
  font-weight: var(--body-weight);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.005em;

  background-color: var(--brand-white);
  color: var(--text-on-light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;

  /* Push all content down so it doesn't hide under the fixed nav */
  padding-top: var(--nav-height);
}

main { flex: 1 0 auto; }

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

/* Headings */
h1, h2, h3, h4, h5, h6{
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Level-specific sizes */
h1{ font-size: var(--font-xxl, clamp(3.00rem, 2.00rem + 4.00vw, 5.00rem)); }
h2{ font-size: var(--font-xl,  clamp(2.25rem, 1.60rem + 2.50vw, 3.50rem)); }
h3{ font-size: var(--font-l,   clamp(1.25rem, 1.10rem + 0.90vw, 1.60rem)); }
h4{ font-size: var(--font-m,   clamp(1.05rem, 1.00rem + 0.45vw, 1.25rem)); }
h5{ font-size: var(--font-s,   clamp(0.95rem, 0.90rem + 0.25vw, 1.05rem)); }
h6{ font-size: 0.9rem; }

p{
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1em;
}

a{
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-speed), text-underline-offset var(--transition-speed);
}
a:hover,
a:focus{
  color: var(--brand-orange);
  text-underline-offset: 3px;
}

/* =======================================
   CONTAINER HELPERS
   Shared width system for nav + sections
======================================= */
.section-container{
  width: 100%;
  padding-inline: var(--section-gutter, var(--page-padding));
}


/* Gutter modifiers for full-bleed sections */
.full-bleed[data-gutter="tight"]{
  --section-gutter: clamp(12px, 2.5vw, 32px);
}

.full-bleed[data-gutter="loose"]{
  --section-gutter: clamp(24px, 4vw, 64px);
}

/* Full-bleed wrapper (edge-to-edge background) */
.full-bleed{
  width: 100%;
}


/* =======================================
   UTILITIES (used in index + work-stick)
======================================= */
.text-brand-orange{ color: var(--brand-orange) !important; }
.text-brand-blue{   color: var(--brand-blue) !important; }
.text-brand-white{  color: var(--brand-white) !important; }

.bg-brand-blue{   background-color: var(--brand-blue) !important; }
.bg-brand-white{  background-color: var(--brand-white) !important; }

/* =======================================
   BUTTONS — custom
======================================= */
.rb-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;

  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: none;
  background: transparent;

  -webkit-appearance: none;
  appearance: none;

  transition:
    background-color var(--transition-speed),
    color           var(--transition-speed),
    border-color    var(--transition-speed),
    transform       var(--transition-speed);
}

.rb-btn:focus-visible{
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

.rb-btn-on-light{
  background-color: var(--brand-blue);
  color: var(--brand-white);
  border: none;
}
.rb-btn-on-light:hover,
.rb-btn-on-light:focus{
  background-color: var(--brand-orange);
  color: var(--brand-white);
  outline: none;
}

.rb-btn-on-blue{
  background-color: var(--brand-white);
  color: var(--brand-blue);
  border: 3px solid transparent;
}
.rb-btn-on-blue:hover,
.rb-btn-on-blue:focus{
  background-color: var(--brand-orange);
  color: var(--brand-white);
  outline: none;
}

/* =======================================
   PROSE WIDTH (used on case pages)
======================================= */
.prose{ max-width: 72ch; }

/* =========================
   NAV — custom (GROUPED)
========================= */
.site-nav{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  padding-block: 0.75rem;
  background: var(--brand-white);
  color: var(--brand-blue);
}

.nav-container{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 16px);
  flex-wrap: wrap;
}

/* Logo */
.nav-logo-link{
  display: inline-flex;
  align-items: center;
}
.nav-logo{
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 360px){
  .nav-logo{ height: 32px; }
}

/* Desktop nav links */
.nav-links-desktop{
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links-desktop a{
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--brand-blue);
}

.nav-links-desktop a:hover,
.nav-links-desktop a:focus,
.nav-links-desktop a.active{
  color: var(--brand-orange);
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Desktop actions */
.nav-actions-desktop{
  display: none; /* enabled at desktop breakpoint */
  align-items: center;
  gap: clamp(12px, 1.5vw, 20px);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Social icons (includes email icon now) */
.nav-socials-desktop{
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-socials-desktop a{
  font-size: 1.2rem;
  color: var(--brand-blue);
  line-height: 1;
}

.nav-socials-desktop a:hover,
.nav-socials-desktop a:focus{
  color: var(--brand-orange);
}

/* Email icon (always visible; inherits socials behavior) */
.nav-email-icon{
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Hamburger */
.nav-toggle{
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-icon,
.nav-icon::before,
.nav-icon::after{
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-icon{ position: relative; }
.nav-icon::before{ position: absolute; top: -7px; }
.nav-icon::after { position: absolute; top:  7px; }

.nav-toggle[aria-expanded="true"] .nav-icon{ background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-icon::before{ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-menu{
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.site-nav.is-open .nav-menu{ max-height: 80vh; }

.nav-stack{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 2.5vw, 20px);
  padding-top: 0.5rem;
}

.nav-links-mobile{
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-links-mobile a{
  font-size: 1.2rem;
  color: var(--brand-blue);
  text-decoration: none;
}

.nav-links-mobile a:hover,
.nav-links-mobile a:focus{
  color: var(--brand-orange);
}

/* Mobile socials (includes email icon now) */
.nav-socials{
  display: inline-flex;
  gap: 16px;
}

.nav-socials a{
  font-size: 1.6rem;
  color: var(--brand-blue);
}

.nav-socials a:hover,
.nav-socials a:focus{
  color: var(--brand-orange);
}

/* Desktop behavior */
@media (min-width: 992px){
  .nav-toggle,
  .nav-menu{ display: none; }


  .nav-container{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 16px);
  flex-wrap: wrap;

  /* MATCH portfolio gutters */
  width: 100%;
  padding-inline: var(--section-gutter, var(--page-padding));
}


  .nav-links-desktop{
    position: absolute;
    left: 50.5%;
    transform: translateX(-50%);
    padding-inline: clamp(96px, 10vw, 320px);
    white-space: nowrap;
  }

  .nav-actions-desktop{
    display: flex;
    justify-self: flex-end;
  }
}

/* Tablet spacing safety */
@media (max-width: 1200px){
  .nav-links-desktop{ padding-inline: clamp(140px, 12vw, 360px); }
}

/* Mobile cleanup */
@media (max-width: 991.98px){
  .nav-links-desktop,
  .nav-actions-desktop{ display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .nav-icon,
  .nav-icon::before,
  .nav-icon::after{
    transition: none !important;
    transform: none !important;
  }
}

/* Active state for MOBILE links (match desktop behavior) */
.nav-links-mobile a.active{
  color: var(--brand-orange);
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}


/* =========================
   HERO
========================= */
.hero-section{
  position: relative;
  width: 100%;
  margin-top: calc(-1 * var(--nav-height));
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item{
  width: 100%;
  height: 100vh;
  height: 100svh;
}

.hero-section .carousel-item{
  position: relative;
  overflow: hidden;
}

/* Media – full bleed cover
   IMPORTANT: do NOT set display here (Bootstrap d-none/d-block controls swaps) */
.hero-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* <picture> wrapper must fill the slide
   IMPORTANT: do NOT force display:block (Bootstrap controls visibility) */
.hero-picture{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Ensure the fallback <img> inside <picture> fills correctly */
.hero-picture > img.hero-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Make entire slide clickable (link overlay) */
.hero-slide-link{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

/* Caption – bottom left */
.hero-section .carousel-caption{
  position: absolute;
  left: clamp(1rem, 3vw, 3rem);
  bottom: clamp(1rem, 3vw, 3rem);

  max-width: min(90vw, 460px);
  text-align: left;

  padding: 0.85rem 1.2rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.45);

  display: flex;
  flex-direction: column;
  gap: 0.35rem;

  z-index: 2;
  color: var(--brand-white);
}

.hero-label{
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.9;
  margin: 0;
}
.hero-heading{
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}
.hero-description{
  font: inherit;
  max-width: 32ch;
  margin: 0;
  opacity: 0.95;
}

/* Controls above link overlay */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next{
  z-index: 3;
}

/* HERO indicators — pill with internal progress fill */
.hero-section .carousel-indicators{
  position: absolute;
  top: calc(var(--nav-height) + 36px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 4;
  gap: 10px;
}

/* Base pill */
.hero-section .carousel-indicators [data-bs-target]{
  position: relative;
  width: 74px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background-color: rgba(255, 240, 225, 0.35);
  overflow: hidden;
  opacity: 1;
}

/* Progress fill */
.hero-section .carousel-indicators [data-bs-target]::before{
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background-color: var(--brand-white);
  border-radius: inherit;
}

/* Active = animate fill */
.hero-section .carousel-indicators .active::before{
  animation: heroIndicatorFill 8s linear forwards;
}

/* Progress animation (match carousel interval) */
@keyframes heroIndicatorFill{
  from{ width: 0%; }
  to{ width: 100%; }
}

.hero-section .carousel-indicators [data-bs-target]:not(.active){
  background-color: rgba(255, 240, 225, 0.25);
}

@media (max-width: 576px){
  .hero-section .carousel-caption{ max-width: 90vw; }
}

/* If the viewport is short, allow the slide to grow naturally
   (prevents caption/media collisions) */
@media (max-height: 600px){
  .hero-section,
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item{
    height: auto;
    min-height: 100vh;
  }

  /* Keep media covering even in auto-height mode */
  .hero-media,
  .hero-picture{
    position: absolute;
    inset: 0;
    height: 100vh;
  }
}

/* Mobile hero adjustments */
@media (max-width: 768px){
  .hero-section{
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    margin-top: calc(-1 * var(--nav-height));
    padding-top: 0;
  }

  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item{
    height: 100vh;
    height: 100svh;
  }

  .hero-media{
    background: #000;
  }

  video.hero-media{
    width: 100%;
    height: 100%;
  }

  .hero-section .carousel-item{ overflow: hidden; }

  /* Keep your existing preference: hide caption on mobile */
  .hero-section .carousel-caption{ display: none; }

  /* Keep indicators accessible at top */
  .hero-section .carousel-indicators{
    top: calc(var(--nav-height) + 36px);
  }
}




/* =======================================
   PORTFOLIO GRID
======================================= */
.portfolio-grid-section{
  padding-top: clamp(2rem, 3vw, 3rem);
  padding-bottom: clamp(2rem, 6vw, 5rem);
}

#work .portfolio-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Body wrapper for mobile label positioning */
#work .portfolio-body{
  display: block;
}

/* Bottom label is desktop-hidden by default */
#work .portfolio-footer-label{
  display: none;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.portfolio-grid-3col{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

.project-card{
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: var(--brand-blue);
  color: var(--brand-white);

  /* Desktop default ratio */
  aspect-ratio: 16 / 9;
}

/* Media wrappers (img or picture) fill the card */
.project-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* By default: show videos, hide mobile images */
.project-media--img{
  display: none;
}

/* Media inside cards */
.project-card .project-img,
.project-card .project-video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-container{
  position: relative;
  overflow: hidden;
  background: var(--brand-white);
}

.project-video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Let the CARD control ratio */
  aspect-ratio: auto;

  border: 0;
  outline: 0;
  border-radius: inherit;
  background-color: inherit;
  box-shadow: none;
  filter: none;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Overlay button */
.video-overlay-btn{
  position: absolute;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: fit-content;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  background: rgba(2, 30, 40, 0.55);
  color: var(--brand-white);
  border: 2px solid rgba(255, 240, 225, 0.9);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: saturate(140%) blur(2px);
  backdrop-filter: saturate(140%) blur(2px);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(0);
  transition:
    opacity var(--transition-speed) ease,
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.project-card:hover .video-overlay-btn,
.video-overlay-btn:focus-visible{
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}

.video-overlay-btn:active{
  transform: translateY(0);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* =========================
   MOBILE (no Bootstrap)
========================= */
@media (max-width: 575px){
  .portfolio-grid-3col{
    grid-template-columns: 1fr;
  }

  /* Switch cards to portrait when stacked */
  .project-card{
    aspect-ratio: 4 / 5;
  }

  /* Header becomes centered, only "Recent Work ↓" stays up top */
  #work .portfolio-header{
    justify-content: center;
    text-align: center;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
  }

  /* Hide the top-right "Coming Soon +" on mobile */
  #work .portfolio-header-right{
    display: none;
  }

  /* Center the left headline too */
  #work .portfolio-header-left{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Swap media: hide videos, show portrait images */
  .project-media--video{
    display: none !important;
  }

  .project-media--img{
    display: block;
  }

  /* Show bottom "Coming Soon +" label */
  #work .portfolio-footer-label{
    display: flex;
    justify-content: center;
    text-align: center;
  }
}


/* =======================================
   FOOTER — global, with contact form
======================================= */
.site-footer{
  background-color: var(--brand-blue);
  color: var(--brand-white);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* Footer grid (mobile default) */
.footer-grid{
  display: grid;
  gap: clamp(1.75rem, 3vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 100%;
}

/* critical: allow grid children to shrink */
.footer-col{ min-width: 0; }
.footer-info{ min-width: 0; }

/* Desktop layout ONLY on wider screens (avoid ugly mid-range) */
@media (min-width: 1300px){
  .footer-grid{
    --gap-wa: 40px;
    --gap-ac: 80px;

    --work-max: 760px;
    --about-max: 680px;
    --contact-max: 320px;

    gap: 0;
    row-gap: clamp(1.75rem, 3vw, 3rem);
    column-gap: 0;

    grid-template-columns:
      minmax(0, var(--work-max))
      var(--gap-wa)
      minmax(0, var(--about-max))
      1fr
      var(--gap-ac)
      minmax(0, var(--contact-max));

    align-items: start;
  }

  .footer-contact{ grid-column: 1; }
  .footer-about{ grid-column: 3; }

  .footer-info{
    grid-column: 6;
    text-align: right;
    justify-self: end;
    max-width: 100%;
  }

  .footer-socials{
    justify-content: flex-end;
  }
}

/* Tighten ONLY Work ↔ About on very large screens */
@media (min-width: 1400px){
  .footer-grid{ column-gap: 0; }
}
@media (min-width: 1800px){
  .footer-grid{ column-gap: 0; }
}

/* Headings */
.footer-col h2,
.footer-col h3{
  margin: 0 0 .5rem 0;
  font-weight: 700;
}

.footer-heading{
  font-size: clamp(1.05rem, 1.00rem + 0.45vw, 1.25rem);
}

/* About copy width */
.footer-about-copy{ max-width: 36rem; }

/* Footer links */
.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li{ margin-bottom: .35rem; }

.footer-links a{
  color: var(--brand-white);
  text-decoration: none;
  transition: color .25s ease;
}
.footer-links a:hover,
.footer-links a:focus{
  color: var(--brand-orange);
}

/* Footer contact form */
.footer-form{
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  max-width: 50ch;
  width: 100%;
}

.footer-form .form-row{
  display: grid;
  gap: 6px;
}


/* ✅ NEW: hide labels above fields (we'll use placeholders instead) */
.footer-form .form-row > label{
  display: none;
}

/* Nudge the whole form down from the "Work With Me" heading */
.footer-contact .footer-heading + .footer-form,
.footer-contact h2 + .footer-form,
.footer-contact h3 + .footer-form{
  margin-top: 1rem; /* try 0.4–1rem */
}

/* Fields */
.footer-form input,
.footer-form textarea{
  width: 100%;
  appearance: none;
  font: inherit;
  color: var(--brand-blue);
  background: rgba(255, 240, 225, 0.82);
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  transition: box-shadow .2s ease, outline-color .2s ease;
}

/* ✅ NEW: placeholder styling (matches your tone) */
.footer-form input::placeholder,
.footer-form textarea::placeholder{
  color: rgba(2, 30, 40, 0.75);
  opacity: 1; /* Safari */
}

.footer-form textarea{
  resize: vertical;
  min-height: 160px;
}

.footer-form input:focus,
.footer-form textarea:focus{
  outline: 2px solid rgba(236, 59, 130, .65);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(236, 59, 130, .15);
}

/* =======================================
   Footer form submit button — visual match
======================================= */
.footer-form button,
.footer-form input[type="submit"]{
  width: 33.333%;
  justify-self: end;

  /* match input fields */
  background: rgba(255, 240, 225, 0.82);
  color: var(--brand-blue);
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;

  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

/* hover / focus — subtle, not CTA-loud */
.footer-form button:hover,
.footer-form button:focus{
  background: rgba(255, 240, 225, 0.95);
  color: var(--brand-blue); /* ⬅ lock text color */
  transform: translateY(-1px);
}

/* safety: kill global pill buttons */
.footer-form button{
  border-radius: 12px !important;
}

/* Social squares */
.footer-socials{
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.footer-socials-squares a{
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 240, 225, 0.95);
  color: var(--brand-blue);
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
  border-radius: 10px;
}

.footer-socials-squares a i{
  font-size: 1.85rem;
  line-height: 1;
}

.footer-socials-squares a:hover,
.footer-socials-squares a:focus{
  background: var(--brand-orange);
  color: var(--brand-white);
  transform: translateY(-1px);
}

/* Divider FULL BLEED */
.footer-divider{
  border-top: 6px solid var(--brand-orange);
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

/* Fineprint */
.footer-fineprint{
  margin: 0;
  text-align: right;
  font-size: clamp(0.95rem, 0.90rem + 0.25vw, 1.05rem);
  opacity: .95;
}

.footer-fineprint a{
  color: var(--brand-orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-fineprint a:hover,
.footer-fineprint a:focus{
  color: var(--brand-white);
}

/* Wrap long tokens */
.site-footer a,
.site-footer p,
.site-footer li{
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* =======================================
   Footer legal + copyright row
======================================= */

/* Make the bottom footer row align side-by-side on desktop */
.site-footer > .section-container:last-of-type{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Legal links inline */
.footer-legal{
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.footer-legal li{
  margin: 0;
}


/* Mobile/Tablet: stack + CENTER everything (up to 1299px) */
@media (max-width: 1299px){
  /* ✅ center the stacked columns */
  .footer-grid{
    text-align: center;
    justify-items: center;
  }

    /* Stack & center legal + copyright on mobile */
  .site-footer > .section-container:last-of-type{
    flex-direction: column;
    gap: 1rem;
  }

  .footer-legal{
    justify-content: center;
  }


  /* ✅ truly center the About paragraph block (not just the text) */
  .footer-about-copy{
    max-width: 36rem;      /* keep your dial */
    width: fit-content;    /* shrink wrap the paragraph block */
    margin-inline: auto;   /* center the block itself */
    text-align: center;    /* ensure text is centered */
  }

  .footer-about-copy p{
    text-align: center;
    margin-inline: auto;
  }

  .footer-contact,
  .footer-about,
  .footer-info{
    width: 100%;
    max-width: 50rem;
    justify-self: center;
  }

  .footer-form{
    margin-inline: auto;
  }
  .footer-form,
  .footer-form .form-row{
    text-align: left; /* inputs readable */
  }

  /* ✅ NEW: center the submit button ONLY when stacked */
  .footer-form button,
  .footer-form input[type="submit"]{
    justify-self: center;
  }

  .footer-info{
    text-align: center;
  }

  .footer-socials{
    justify-content: center;
  }

  .footer-fineprint{
    text-align: center;
  }
}


/* =========================
   Back to Top Button
========================= */
.back-to-top{
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 998;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  background-color: var(--brand-blue);
  color: var(--brand-white);
  border: none;

  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(8px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible{
  background-color: var(--brand-orange);
  outline: none;
}

.back-to-top.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 480px){
  .back-to-top{
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce){
  .back-to-top{
    transition: none;
    transform: none;
  }
}