/* =====================================================================
   STUDIO LUNE DESIGN — STYLES (PDF redesign)
   Re-theme the whole site from the :root block below.
   ===================================================================== */

:root {
  /* ---- Brand palette ---- */
  --plum:   #90124f;
  --blush:  #fbd0e2;
  --indigo: #374a97;
  --sage:   #ceda89;
  --ink:    #1c1620;

  /* ---- Supporting tones ---- */
  --blush-soft: #fff6fa;   /* light pink section wash (matches PDF) */
  --blush-card: #fad0e2;   /* package card pink (matches PDF) */
  --cream:      #ffffff;
  --line:       #ecd9e1;
  --plum-soft:  #b23a72;
  --white:      #ffffff;

  /* ---- Typography (var names kept stable so invoice.html still works) ---- */
  --font-display: "Cormorant Garamond", Georgia, serif;     /* elegant serif headings */
  --font-script:  "Sacramento", "Brush Script MT", cursive; /* logo + banners */
  --font-body:    "Courier Prime", "Courier New", monospace;/* typewriter body */
  --font-mono:    var(--font-body);

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 16px 44px -22px rgba(55,74,151,.35);
  --shadow-soft: 0 10px 26px -16px rgba(144,18,79,.30);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--plum);
  font-family: var(--font-body); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.1; }

.script { font-family: var(--font-script); font-weight: 400; }
.serif  { font-family: var(--font-display); }

/* =================== NAV =================== */
.nav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; }
.logo { font-family: var(--font-script); color: var(--plum); font-size: 2.3rem; line-height: 1; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: lowercase; color: var(--ink); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--plum); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--plum); margin: 5px 0; }

/* =================== HERO IMAGE BAND =================== */
.band { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.band .cell { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--blush-soft); }
.band .cell img { width: 100%; height: 100%; object-fit: cover; }
.band-caption {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.22));
}
.band-caption span {
  font-family: var(--font-body); color: var(--white); font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  letter-spacing: .14em; text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,.5); padding: 0 1rem;
}

/* =================== ABOUT (Teagen) =================== */
.about { background: var(--blush-soft); }
.about-grid { display: grid; grid-template-columns: 0.62fr 1.38fr; gap: 0; align-items: stretch; }
.about { overflow: hidden; }
.about-photo { min-height: 440px; background: transparent; display: flex; align-items: flex-end; justify-content: flex-start; }
.about-photo img { width: 100%; height: 100%; max-height: 620px; object-fit: contain; object-position: left bottom; }
.about-copy { padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.about-copy h2 { font-family: var(--font-display); color: var(--plum); font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-style: italic; font-weight: 600; margin-bottom: 1.2rem; }
.about-copy .about-heading-arc { width: min(100%, 46ch); max-width: 100%; height: auto; display: block; margin: 0 auto 1.2rem; overflow: visible; }
.about-copy .about-heading-text { font-family: var(--font-display); fill: var(--plum); font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-style: italic; font-weight: 600; letter-spacing: .02em; dominant-baseline: hanging; }
.about-copy p { max-width: 46ch; margin: 0 auto 1rem; }

/* =================== CATEGORY OVALS =================== */
.cats { padding: clamp(3rem, 6vw, 5rem) 0; }
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 860px; margin: 0 auto; }
.cat { text-align: center; text-decoration: none; display: block; transition: transform .25s; }
.cat:hover { transform: translateY(-6px); }
.cat .oval { width: 100%; max-width: 220px; margin: 0 auto .9rem; }
.cat .oval svg { width: 100%; height: auto; display: block; }
.cat .label { font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
.cat.plum .label { color: var(--plum); }
.cat.indigo .label { color: var(--indigo); }
.cat.sage .label { color: #97a347; }

/* =================== GALLERY 2x2 =================== */
.gallery2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery2 .g { aspect-ratio: 1/1; overflow: hidden; background: var(--blush-soft); }
.gallery2 .g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery2 .g:hover img { transform: scale(1.04); }

/* =================== WEDDING / PAGE BANNER =================== */
.page-banner { background: var(--plum); color: var(--white); text-align: center; padding: clamp(2.2rem, 5vw, 3.6rem) 1rem; }
.page-banner .script { font-size: clamp(3rem, 8vw, 5.4rem); line-height: 1; color: var(--white); }

.intro { text-align: center; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.intro .tiny { font-family: var(--font-body); font-size: .9rem; color: var(--plum); margin-bottom: 1.2rem; }
.intro h2 { font-family: var(--font-body); font-weight: 700; color: var(--indigo); font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.35; letter-spacing: .02em; max-width: 18ch; margin: 0 auto; }

/* =================== SECTION HEADINGS =================== */
.h-script-section { text-align: center; padding: clamp(2.5rem,5vw,4rem) 0 2rem; }
.h-serif { font-family: var(--font-display); color: var(--plum); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; text-align: center; }

/* =================== HOW IT WORKS =================== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; padding-bottom: 2rem; }
.step { text-align: center; }
.step .ic { width: 56px; height: 56px; margin: 0 auto .8rem; color: var(--plum); }
.step .ic svg { width: 100%; height: 100%; }
.step h3 { font-family: var(--font-display); color: var(--plum); font-size: 1.3rem; font-weight: 600; margin-bottom: .5rem; }
.step p { font-size: .82rem; line-height: 1.6; color: var(--plum); }

/* =================== PACKAGES =================== */
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding-bottom: 1rem; }
.pkg { background: var(--blush-card); border-radius: 6px; padding: 1.8rem 1.4rem; display: flex; flex-direction: column; }
.pkg h3 { font-family: var(--font-display); color: var(--plum); font-size: 1.9rem; font-weight: 600; text-align: center; margin-bottom: 1.2rem; }
.pkg .sub { font-family: var(--font-body); font-size: .82rem; color: var(--plum); text-align: center; margin: .6rem 0 .4rem; }
.pkg ul { list-style: none; margin: 0; padding: 0; flex: 1; text-align: center; }
.pkg li { font-family: var(--font-body); font-size: .82rem; color: var(--indigo); margin-bottom: .5rem; }
.pkg .inquire { margin-top: 1.4rem; align-self: center; }

/* =================== BUTTONS (kept compatible with invoice.html) =================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--font-body); font-size: .82rem; letter-spacing: .08em;
  padding: .7rem 1.8rem; border-radius: 2px; border: 1.5px solid transparent; transition: .2s; text-align: center;
}
.btn-primary { background: var(--plum); color: var(--white); }
.btn-primary:hover { background: var(--plum-soft); }
.btn-outline { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--indigo); border-color: var(--line); }

/* =================== FOOTER =================== */
.site-footer { padding-top: 2rem; }
.papel { width: 100%; height: 54px; display: block; color: var(--plum); }
.footer-inner { text-align: center; padding: 2rem 1rem 3rem; }
.footer-inner .fq { font-family: var(--font-display); color: var(--plum); font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 600; margin-bottom: 1rem; }
.footer-inner p { font-family: var(--font-body); font-size: .85rem; margin: .2rem 0; }
.footer-inner a { color: var(--plum); font-weight: 700; }
.footer-logo { font-family: var(--font-script); color: var(--plum); font-size: 2rem; margin-bottom: .6rem; }

/* =================== INQUIRY MODAL =================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(28,22,32,.55); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 10px; max-width: 520px; width: 100%;
  max-height: 92vh; overflow-y: auto; padding: 2.2rem; box-shadow: var(--shadow); position: relative;
}
.modal h3 { font-family: var(--font-display); color: var(--plum); font-size: 2rem; text-align: center; margin-bottom: .3rem; }
.modal .modal-sub { font-family: var(--font-body); font-size: .82rem; text-align: center; color: var(--indigo); margin-bottom: 1.4rem; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 1.6rem; color: var(--plum); cursor: pointer; line-height: 1; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-body); font-size: .78rem; letter-spacing: .04em; color: var(--indigo); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 4px;
  font-family: var(--font-body); font-size: .9rem; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum); }
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-msg { margin-top: .8rem; padding: .7rem .9rem; border-radius: 4px; font-size: .82rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #eef7e6; color: #3c5a16; }
.form-msg.err { background: var(--blush-soft); color: var(--plum); }

/* =================== REVEAL =================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 320px; aspect-ratio: 4/3; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .pkgs { grid-template-columns: 1fr 1fr; }
  .cats-grid { gap: 1rem; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; inset: 56px 0 auto 0; flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: .5rem 0; transform: translateY(-130%); transition: transform .3s; text-align: center;
  }
  .nav-links.open { transform: none; }
  .nav-links li { padding: .6rem 0; }
  .nav-toggle { display: block; }
  .band { grid-template-columns: 1fr; }
  .band .cell { aspect-ratio: 16/10; }
  .band .cell:nth-child(n+2) { display: none; }
  .band-caption span { font-size: 1.3rem; }
  .gallery2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pkgs { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: 1fr; max-width: 280px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { scroll-behavior: auto; } }

/* =====================================================================
   DESIGN CONTROLS  —  driven by config.theme + config.design (Edit Mode).
   main.js sets these CSS variables / [data-*] attributes at runtime.
   ===================================================================== */
:root{
  --page-bg:#ffffff;
  --hscale:1; --bscale:1; --space:1;
  --img-aspect:1 / 1; --img-radius:0px; --card-radius:6px; --btn-radius:2px;
  --gal-cols:2; --about-align:center;
  --hero-cap-x:50%; --hero-cap-y:50%; --hero-cap-scale:1;
}
body{ background:var(--page-bg); font-size:calc(15px * var(--bscale)); }

/* sizes */
.h-serif{ font-size:calc(clamp(2rem,4.5vw,3rem) * var(--hscale)); }
.about-copy h2{ font-size:calc(clamp(2.2rem,4.5vw,3.4rem) * var(--hscale)); }
.page-banner .script{ font-size:calc(clamp(3rem,8vw,5.4rem) * var(--hscale)); }
.intro h2{ font-size:calc(clamp(1.4rem,3.4vw,2.1rem) * var(--hscale)); }
.cats{ padding:calc(clamp(3rem,6vw,5rem) * var(--space)) 0; }
.intro{ padding:calc(clamp(2.5rem,5vw,4rem) * var(--space)) 0 1.5rem; }
.h-script-section{ padding:calc(clamp(2.5rem,5vw,4rem) * var(--space)) 0 2rem; }

/* shapes — hero band + gallery proportions matched to the PDF */
.band{ gap:4px; }
.band .cell{ aspect-ratio:6 / 7; border-radius:var(--img-radius); }
.gallery2{ grid-template-columns:repeat(var(--gal-cols),1fr); gap:4px; }
.gallery2 .g{ aspect-ratio:3 / 4; border-radius:var(--img-radius); }
.pkg{ border-radius:var(--card-radius); }
.btn{ border-radius:var(--btn-radius); }
.about-copy{ text-align:var(--about-align); }
body[data-imgshape="circle"] .band .cell,
body[data-imgshape="circle"] .gallery2 .g{ border-radius:50%; }

/* about photo on the right */
body[data-photo-side="right"] .about-grid{ grid-template-columns:1.1fr .9fr; }
body[data-photo-side="right"] .about-photo{ order:2; }
body[data-photo-side="right"] .about-copy{ order:1; }

/* logo as an image */
.logo-img{ height:38px; width:auto; display:block; }
.footer-logo .logo-img{ height:44px; margin:0 auto .4rem; }

/* cropped illustrations from the PDF (category ovals + step icons) */
.oval .oval-img{ width:100%; height:auto; display:block; }
.step .ic{ width:auto; height:auto; min-height:46px; display:flex; align-items:center; justify-content:center; }
.step .ic svg{ width:56px; height:56px; }
.step-img{ width:88px; height:auto; display:block; }

/* hero caption freeform position (drag in Edit Mode) */
.band-caption{ display:block; }
.band-caption span{ position:absolute; left:var(--hero-cap-x); top:var(--hero-cap-y); transform:translate(-50%,-50%) scale(var(--hero-cap-scale)); transform-origin:center; }
