/* =========================================================
   Cameli Couturier — Minimal (mobile-first)
   White background, black text, hairline dividers.
   ========================================================= */

:root{
  --bg:        #ffffff;
  --ink:       #0a0a0a;
  --ink-soft:  #1f1f1f;
  --muted:     #6b6b6b;
  --line:      rgba(10,10,10,.12);
  --line-soft: rgba(10,10,10,.07);

  --maxw: 1100px;
  --pad-x: clamp(20px, 5vw, 32px);

  --radius:    16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.04), 0 4px 14px rgba(10,10,10,.05);
}

/* Reset */
*{ box-sizing:border-box; }
*::selection{ background: var(--ink); color:#fff; }
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  overflow-x: hidden;
}
body{
  margin:0;
  font-family:"Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight:400;
  line-height:1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x: hidden;
}
body.is-locked{ overflow:hidden; }

img, picture{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; }

.container{
  width:100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
}

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3{
  font-weight:600;
  letter-spacing:-0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1{
  font-size: clamp(34px, 8vw, 60px);
  line-height: 1.04;
  letter-spacing:-0.02em;
  font-weight:700;
}
h2{
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.15;
}
h3{
  font-size: clamp(17px, 3vw, 19px);
  line-height: 1.3;
  font-weight:600;
}
p{ margin: 0 0 1em; }
.eyebrow{
  display:block;
  margin: 0 0 14px;
  color: var(--muted);
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.lead{
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 24px;
}
.muted{ color: var(--muted); }

/* =========================================================
   Header / Nav
   ========================================================= */
.header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid var(--line-soft);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding-block: 12px;
  min-width: 0;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex: 1 1 auto;
  overflow: hidden;
}
.logo__mark{
  width: 32px;
  height: 32px;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex-shrink:0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
}
.logo__mark img{ width:100%; height:100%; object-fit:contain; }
.logo__text{
  font-weight: 700;
  letter-spacing: .01em;
  font-size: clamp(13px, 3.5vw, 15px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.nav{ flex: 0 0 auto; }

/* Nav toggle (mobile) */
.nav{ position: relative; }
.nav__toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  flex-shrink: 0;
}
.nav__toggle:active{ background: #f7f7f7; }
.nav__toggle .bars{
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
}
.nav__toggle .bars::before,
.nav__toggle .bars::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease;
}
.nav__toggle .bars::before{ top: 2px; }
.nav__toggle .bars::after{  top: 9px; }
.nav__toggle[aria-expanded="true"] .bars::before{ top: 5.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .bars::after{  top: 5.5px; transform: rotate(-45deg); }

/* Mobile drawer — covers the whole viewport including the header */
.nav__menu{
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 84px var(--pad-x) 32px;
  background: #ffffff;
  z-index: 70; /* above header (60); X close lives inside */
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav__menu.is-open{
  opacity: 1;
  pointer-events: auto;
}
.nav__menu a{
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.nav__menu a.btn{
  margin-top: 24px;
  border-bottom: 0;
  font-size: 15px;
  padding: 14px 22px;
  align-self: flex-start;
  color: #fff;
}

/* X close button inside drawer */
.nav__close{
  position: absolute;
  top: 14px;
  right: max(var(--pad-x), env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease;
}
.nav__close:active{ background: #f7f7f7; }
.nav__close-icon{
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}
.nav__close-icon::before,
.nav__close-icon::after{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  border-radius: 2px;
}
.nav__close-icon::before{ transform: rotate(45deg); }
.nav__close-icon::after{  transform: rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  /* Padding stays the same on all screens; only the type scales */
  font-size: clamp(12px, 2.5vw, 14px);
  letter-spacing: .01em;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover{ background: #1f1f1f; }

.btn--ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover{ background: var(--ink); color:#fff; }

.btn--sm{ padding: 10px 16px; font-size: 13px; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  padding: 40px 0 32px;
}
.hero__inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.hero__inner > *{ min-width: 0; }
.hero__content{ order: 1; }
.hero__visual{ order: 2; }

.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 4px;
}
.hero__cta .btn{ flex: 1 1 auto; }

/* The visual wrapper is the rounded frame; uses background-image like .product__image */
.hero__visual{
  width: 100%;
  max-width: 100%;
  /* hero.jpg is 1:1 — match the natural ratio so the image fills the
     frame without distortion or heavy cropping on narrow viewports */
  aspect-ratio: 1/1;
  background-image: url("../img/hero.jpg");
  background-image: image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Promote to its own compositing layer so the rounded-corner mask
     antialiases smoothly against the background image (otherwise a
     faint sharp pixel can show just inside the curve). */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.hero__image{
  display: none;
}


/* =========================================================
   Sections
   ========================================================= */
.section{
  padding: 64px 0;
  border-top: 1px solid var(--line-soft);
}
.section--alt{
  /* No tinted band — same white, kept class for HTML compatibility */
  background: transparent;
}
.section__head{
  margin-bottom: 32px;
  max-width: 70ch;
}
.section__head h2{ margin: 0 0 12px; }
.section__head p{
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.7;
}

/* =========================================================
   Grids & cards (flat, no chrome)
   ========================================================= */
.grid{ display:grid; gap: 16px; }
.grid--3, .grid--2{ grid-template-columns: minmax(0, 1fr); }
.grid > *{ min-width: 0; }

.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: none;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover{ border-color: rgba(10,10,10,.22); }
.card h3{ margin: 0 0 8px; }
.card p{ margin: 0; color: var(--muted); }

/* Pillars — rounded boxes */
.pillars{ display:grid; gap: 12px; }
.pillar{
  position: relative;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.pillar h3{ margin: 0 0 6px; }
.pillar p{ margin: 0; color: var(--muted); }

/* Quote — rounded box, neutral */
.quote{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px;
  background: #fff;
  box-shadow: none;
  margin-top: 0;
}
.quote p{
  margin: 0 0 12px;
  font-size: clamp(17px, 2.6vw, 20px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
  font-style: italic;
}
.quote span{ color: var(--muted); font-size: 13px; letter-spacing: .04em; }

/* =========================================================
   Product
   ========================================================= */
.product{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.product > *{ min-width: 0; }
.product__image{
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/5;
  background-image: url("../img/product-web.jpg");
  background-image: image-set(url("../img/product-web.webp") type("image/webp"), url("../img/product-web.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Same compositing-layer trick as .hero__visual — keeps the rounded
     mask cleanly antialiased over the background image. */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.product__content h3{
  margin: 0 0 12px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
}
.list{
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}
.list li{
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 15px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.list li::before{
  content: "";
  flex: 0 0 12px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  /* Lift the dash from the baseline up to the visual middle of the x-height */
  transform: translateY(-0.4em);
}
.list li:first-child{ border-top: 0; }
.product__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.fineprint{
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.fineprint code{
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.gallery__item{
  width: 100%;
  min-width: 0;
  aspect-ratio: 1/1;
  background: url("../img/gallery-1-web.jpg") center/cover no-repeat;
  background-image: image-set(url("../img/gallery-1-web.webp") type("image/webp"), url("../img/gallery-1-web.jpg") type("image/jpeg"));
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.gallery__item[data-img="2"]{ background-image: url("../img/gallery-2-web.jpg"); background-image: image-set(url("../img/gallery-2-web.webp") type("image/webp"), url("../img/gallery-2-web.jpg") type("image/jpeg")); }
.gallery__item[data-img="3"]{ background-image: url("../img/gallery-3-web.jpg"); background-image: image-set(url("../img/gallery-3-web.webp") type("image/webp"), url("../img/gallery-3-web.jpg") type("image/jpeg")); }
.gallery__item[data-img="4"]{ background-image: url("../img/gallery-4-web.jpg"); background-image: image-set(url("../img/gallery-4-web.webp") type("image/webp"), url("../img/gallery-4-web.jpg") type("image/jpeg")); }

/* =========================================================
   Forms
   ========================================================= */
.contact-grid{ display:grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.contact-grid > *{ min-width: 0; }
.card--message, .card--newsletter{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.form{ display:grid; gap: 12px; margin-top: 14px; }
label{
  display:grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
}
input, textarea{
  width:100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder{ color: #b3b3b3; font-weight:400; text-transform:none; letter-spacing:0; }
input:focus, textarea:focus{
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,.08);
}
textarea{ resize: vertical; min-height: 110px; }

.form .btn{ justify-self: start; margin-top: 4px; }

/* Mailchimp messages */
#mce-responses{ margin-top: 8px; }
#mce-error-response, #mce-success-response{
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.5;
}
#mce-error-response{ color: #8a1c1c; }
#mce-success-response{ color: #2c5b1c; }

/* =========================================================
   Footer
   ========================================================= */
.footer{
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
}
.footer__inner{
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  gap: 18px;
}
.footer__brand{ font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.footer__links{
  display:flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.footer__links a{
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
}
.footer__links a:hover{ color: var(--ink); }

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px){
  .hero{ padding: 56px 0 40px; }
  .hero__cta .btn{ flex: 0 0 auto; }
  .gallery{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

  .footer__inner{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer__links{
    flex-direction: row;
    width: auto;
    gap: 24px;
  }
  .footer__links a{
    border-top: 0;
    padding: 0;
  }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 920px){
  :root{ --pad-x: 32px; }

  .header__inner{ padding-block: 18px; }

  /* Inline nav */
  .nav__toggle{ display:none; }
  .nav__close{ display:none; }
  .nav__menu{
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    gap: 28px;
    inset: auto;
    overflow: visible;
  }
  .nav__menu a{
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 0;
    color: var(--ink-soft);
    position: relative;
  }
  .nav__menu a:hover{ color: var(--ink); }
  .nav__menu a:not(.btn){
    background-image: linear-gradient(var(--ink), var(--ink));
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .25s ease, color .15s ease;
  }
  .nav__menu a:not(.btn):hover{ background-size: 100% 1px; }
  .nav__menu a.btn{
    margin-top: 0;
    color: #fff;
    padding: 9px 18px;
    font-size: 13px;
  }
  .nav__menu a.btn:hover{ color:#fff; }

  /* Hero */
  .hero{ padding: 88px 0 64px; }
  .hero__inner{
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "content visual";
    column-gap: 56px;
    align-items: center;
  }
  .hero__content{ grid-area: content; order: 0; }
  .hero__visual{ grid-area: visual; order: 0; }
  /* Always keep CTAs side-by-side on desktop */
  .hero__cta{ display: flex; flex-wrap: nowrap; gap: 12px; margin: 26px 0 6px; }
  .hero__cta .btn{ flex: 1 1 auto; min-width: 0; }

  .hero__visual{ aspect-ratio: 1/1; }

  /* Sections */
  .section{ padding: 112px 0; }
  .section__head{ margin-bottom: 56px; }

  /* Grids */
  .grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

  /* Product */
  .product{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
  }
  .product__image{ aspect-ratio: 4/5; }

  /* Contact */
  .contact-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

/* =========================================================
   Tight desktop range — keep both hero CTAs on one row
   The 2-col hero leaves the content column too narrow for full-size
   buttons between ~920px and ~1099px. Scale them down just in this band.
   ========================================================= */
@media (min-width: 920px) and (max-width: 1099px){
  .hero__cta{ gap: 8px; }
  .hero__cta .btn{
    flex: 1 1 0;
    padding: 11px 14px;
    font-size: 12px;
  }
}

/* =========================================================
   Cookie banner
   ========================================================= */
.cookie-banner{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.cookie-banner__inner{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px max(var(--pad-x), env(safe-area-inset-left));
  max-width: var(--maxw);
  margin: 0 auto;
}
.cookie-banner__text{
  margin: 0;
  font-size: clamp(12px, 2.5vw, 13px);
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: .01em;
}
.cookie-banner__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner__decline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: clamp(12px, 2.5vw, 13px);
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.cookie-banner__decline:hover{ background: var(--ink); color: #fff; }

@media (min-width: 600px){
  .cookie-banner__inner{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-banner__text{ max-width: 56ch; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  html{ scroll-behavior: auto; }
}
