/* =========================================================
   VOLTA METHOD — styles.css (master)
   Purpose:
   - Base layout, structure, components, and responsive behavior
   - Shared design tokens in :root for easier theme overrides
   - Keep current visual design unchanged while making future
     theme.css files easier to build and swap
========================================================= */

/* =========================================================
   1) DESIGN TOKENS / CSS VARIABLES
========================================================= */

:root{
  /* Core colors */
  --bg: #ffffff;
  --bg-alt: #f6f4f1;
  --bg-soft: #f3f1ed;

  --text: #171717;
  --muted: #5b5b5b;

  --line: rgba(0,0,0,.10);
  --line-strong: rgba(0,0,0,.08);

  /* Shadows */
  --shadow: 0 18px 45px rgba(0,0,0,.10);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;

  --fs-h2: clamp(1.7rem, 3vw, 2.2rem);
  --fs-h3: 1.25rem;
  --fs-lead: 1.063rem;
  --fs-hero-title: clamp(2.4rem, 4.5vw, 3.5rem);
  --fs-hero-title-mobile: clamp(1.9rem, 6vw, 2.6rem);
  --fs-hero-subtitle: 1.6rem;
  --fs-hero-subtitle-mobile: 1.05rem;

  /* Font spacing / rhythm */
  --heading-gap: 16px;
  --subheading-gap: 10px;
  --lead-gap: 24px;
  --muted-gap: 14px;

  /* Brand / accents */
  --accent: #2b2a28;
  --accent-hover: #1f1e1c;
  --accent2: #c9b89a;
  --volta-gold: #b79a6a;

  /* Surfaces / radii */
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius: 18px;
  --radius2: 26px;

  /* Layout widths */
  --container: 1120px;
  --measure: 70ch;
  --measure-narrow: 62ch;
  --measure-wide: 80ch;
  --measure-core: 900px;
  --measure-alignment: 980px;
  --hero-inner: 1024px;

  /* Section spacing */
  --section-pad: 70px;
  --section-pad-inline: 20px;

  /* Shared gaps / spacing */
  --gap-xs: 6px;
  --gap-sm: 10px;
  --gap-md: 12px;
  --gap-lg: 16px;
  --gap-xl: 18px;
  --gap-2xl: 22px;
  --gap-3xl: 26px;
  --gap-4xl: 28px;

  /* Shared control sizes */
  --btn-pad-y: 12px;
  --btn-pad-x: 18px;
  --btn-hero-pad-y: 14px;
  --btn-hero-pad-x: 28px;

  --field-pad-y: 12px;
  --field-pad-x: 12px;

  /* Hero */
  --hero-height: 750px;
  --hero-height-mobile: 600px;
  --hero-overlay: rgba(0,0,0,0.35);
  --hero-bg-image: url("bg-lavender.jpg");
  --hero-bg-position: center 65%;
  --hero-bg-position-mobile: center 70%;
  --hero-title-spacing: 0em;
  --hero-subtitle-spacing: -0.01em;

  /* Layout alignment offsets */
  --column-offset-desktop: 60px;

  /* Misc */
  --scroll-offset: 75px;
  --focus-ring: 3px solid rgba(183,154,106,0.45);
}

/* =========================================================
   2) BASE / RESET
========================================================= */

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

p, blockquote{
  hanging-punctuation: first last;
}

p {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6{ margin: 0; }

section[id]{
  scroll-margin-top: var(--scroll-offset);
}

/* =========================================================
   3) LAYOUT UTILITIES
========================================================= */

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-3xl);
  align-items: start;
}

.stack{
  display: grid;
  gap: var(--gap-lg);
}

/* =========================================================
   4) TYPOGRAPHY
========================================================= */

.h2{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-h2);
  margin: 0 0 var(--heading-gap);
}

.h3{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h3);
  margin: 0 0 var(--subheading-gap);
}

.lead{
  font-size: var(--fs-lead);
  margin: 0 0 var(--lead-gap);
}

.muted{
  color: var(--muted);
  margin: 0 0 var(--muted-gap);
}

/* =========================================================
   5) HEADER / NAV
========================================================= */

.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: var(--gap-lg);
}

.brand{
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  text-decoration: none;
  color: inherit;
}

.brand__mark{
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.brand__text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__sub{
  font-size: .78rem;
  color: var(--muted);
  margin-top: 3px;
}

.nav{
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.nav__toggle{
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.nav__menu{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav__link{
  display: inline-flex;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--muted);
  transition: .2s ease;
}

.nav__link:hover{
  background: rgba(0,0,0,.04);
  color: var(--text);
}

.nav__link.is-active{
  color: var(--text);
  background: rgba(0,0,0,.05);
}

.nav__link--cta{
  background: var(--accent);
  color: white;
}

.nav__link--cta:hover{
  background: var(--accent-hover);
  color: white;
}

/* =========================================================
   6) BUTTONS
========================================================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid var(--line);
  background: white;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
  font-weight: 600;
  color: inherit;
}

.btn--primary{
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.btn--primary:hover{ background: var(--accent-hover); }

.btn:disabled{
  opacity: 0.65;
  cursor: not-allowed;
}

/* =========================================================
   7) HERO
========================================================= */

.hero{
  position: relative;
  height: var(--hero-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: var(--hero-bg-position);
  background-repeat: no-repeat;

  color: white;
}

.hero__overlay{
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero__inner{
  position: relative;
  z-index: 2;
  width: min(var(--hero-inner), 90%);
}

.hero__title{
  font-family: var(--font-head);
  font-size: var(--fs-hero-title);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: var(--hero-title-spacing);
}

.hero__subtitle{
  font-size: var(--fs-hero-subtitle);
  font-weight: 400;
  letter-spacing: var(--hero-subtitle-spacing);
  margin-bottom: 36px;
  opacity: 0.95;
}

.hero__cta{
  padding: var(--btn-hero-pad-y) var(--btn-hero-pad-x);
  font-size: 1rem;
}

/* =========================================================
   8) SECTIONS
========================================================= */

/* CORE STATEMENT */
.core-statement{
  background: var(--bg-soft);
  padding: var(--section-pad) var(--section-pad-inline);
  text-align: center;
}

.core-statement__inner{
  max-width: var(--measure-core);
  margin: 0 auto;
}

.core-statement blockquote{
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.5;
  margin: 0;
  color: var(--accent);
  font-weight: 500;
}

/* VOLTA METHOD */
.volta-method{
  padding: var(--section-pad) 0;
}

.volta-method__top{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-4xl);
  align-items: start;
}

.volta-method__lead{
  margin: 0 0 var(--lead-gap);
  max-width: var(--measure-narrow);
}

.volta-method__image .imgph{
  width: 100%;
}

.volta-method__mid{
  margin-top: var(--gap-3xl);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

.volta-method__sentence{
  margin: 0 0 14px;
}

.volta-method__bullets{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: var(--gap-sm);
}

.volta-method__bottom{
  margin-top: var(--gap-3xl);
}

.volta-method__bottom p{
  margin: 0 0 var(--gap-sm);
}

.volta-method__bottom p:last-child{
  margin-bottom: 0;
}

/* ALIGNMENT */
.alignment{
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
}

.alignment__inner{
  max-width: var(--measure-alignment);
}

.alignment__title{
  text-align: center;
}

.alignment__intro{
  margin: 0 0 26px;
  text-align: center;
}

.alignment__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 0 auto 26px;
}

.alignment__item{
  background: rgba(255,255,255,0.65);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.alignment__close{
  margin: 0 auto;
  text-align: center;
  max-width: var(--measure-wide);
}

/* MODALITIES */
.modalities{
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.section__head{
  max-width: var(--measure);
  margin-bottom: var(--gap-sm);
}

.approach-intros{
  margin-bottom: var(--gap-xl);
}

.approach-intro{
  margin: 0 0 var(--gap-md);
  max-width: none;
}

.approach-intro:last-child{
  margin-bottom: 0;
}

.modtabs.modtabs--two{
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: var(--gap-3xl);
  align-items: start;
  margin-top: 20px;
}

.modtabs__list{
  border-top: 1px solid var(--line);
}

.modtabs__tab{
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--gap-md);
  align-items: center;

  padding: 16px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-right: 4px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: 0.15s ease;
}

.modtabs__tab:hover{
  background: rgba(183,154,106,0.06);
}

.modtabs__tab.is-active{
  border-right-color: var(--volta-gold);
  background: rgba(183,154,106,0.10);
}

.modtabs__tab:focus-visible{
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.modtabs__icon{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.modtabs__icon .material-symbols-outlined,
.infoRow .material-symbols-outlined,
.nav__toggle .material-symbols-outlined{
  display: block;
  line-height: 1;
  font-variation-settings: 'opsz' 24;
}

.modtabs__icon .material-symbols-outlined{
  font-size: 26px;
  color: var(--volta-gold);
}

.modtabs__label{
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

.modtabs__content{
  padding-top: 6px;
  max-width: var(--measure);
}

.modtext p{
  margin: 0 0 var(--gap-md);
}

.modsupports{
  margin: 10px 0 8px;
  font-weight: 600;
}

.modlist{
  margin-top: var(--gap-md);
  padding-left: 20px;
}

.modlist li{
  margin-bottom: var(--gap-xs);
}

/* PROCESS */
.process{
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.process__content{
  max-width: var(--measure);
}

.steps{
  list-style: none;
  padding: 0;
  margin: var(--lead-gap) 0 0;
}

.step{
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--gap-xl);
  padding: 22px 0;
  align-items: start;
  border-bottom: 1px solid var(--line-strong);
}

.step:last-child{
  border-bottom: none;
}

.step__num{
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--volta-gold);
  margin: 0 auto;
}

.step__title{
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.18rem;
  margin: 0 0 4px;
}

.step__text{
  margin: 6px 0 0;
  color: var(--muted);
}

.process__note{
  margin-top: var(--gap-xl);
}

/* =========================================================
   9) CONTACT SECTION
========================================================= */

.contact-section{
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.contact{
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: var(--gap-2xl);
  align-items: start;
}

.contact__info{
  margin-top: var(--gap-xl);
  display: grid;
  gap: var(--gap-md);
}

.infoRow{
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--gap-md);
  align-items: start;
  color: var(--muted);
}

.infoRow .material-symbols-outlined{ margin-top: 2px; }

.infoRow__label{ font-size: .85rem; }

.infoRow__value{
  font-weight: 600;
  color: var(--text);
}

/* FORM */
.form{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}

.form__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}

.field{
  display: grid;
  gap: var(--gap-xs);
  font-weight: 600;
}

.field span{ font-size: .9rem; }

.field input,
.field textarea,
.field select{
  width: 100%;
  padding: var(--field-pad-y) var(--field-pad-x);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 500;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color: rgba(0,0,0,.25);
}

.field--full{ grid-column: 1 / -1; }
.field--hp{ display: none; }

.form__actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.form__hint{
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: .92rem;
}

.form__status{
  min-height: 22px;
  color: var(--muted);
  font-weight: 600;
}

.form__status.is-success{ color: #0f6a2f; }
.form__status.is-error{ color: #8a1f1f; }

/* =========================================================
   10) FOOTER
========================================================= */

.footer{
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__inner{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer__links a{
  color: var(--muted);
  text-decoration: none;
}

.footer__links a:hover{
  text-decoration: underline;
}

/* =========================================================
   11) PLACEHOLDERS / ACCESSIBILITY
========================================================= */

.imgph{
  border: 1px dashed rgba(0,0,0,.22);
  background: rgba(0,0,0,.03);
  border-radius: var(--radius2);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 18px;
}

.imgph--tall{ aspect-ratio: 7 / 9; }
.imgph--wide{ aspect-ratio: 16 / 10; }

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   12) RESPONSIVE
========================================================= */

/* Desktop-only visual alignment for right-hand columns */
@media (min-width: 769px){
  .volta-method__image,
  .process__image,
  .contact__right{
    padding-top: var(--column-offset-desktop);
  }
}

@media (max-width: 768px){
  .split{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }

  /* Hero */
  .hero{
    height: var(--hero-height-mobile);
    background-position: var(--hero-bg-position-mobile);
  }

  .hero__title{
    font-size: var(--fs-hero-title-mobile);
  }

  .hero__subtitle{
    font-size: var(--fs-hero-subtitle-mobile);
  }

  /* VOLTA METHOD */
  .volta-method__top{ grid-template-columns: 1fr; }
  .volta-method__lead{ max-width: none; }

  /* ALIGNMENT */
  .alignment__grid{ grid-template-columns: 1fr; }

  /* MODALITIES */
  .modtabs.modtabs--two{ grid-template-columns: 1fr; }

  .modtabs__tab{
    border-right: 0;
    border-left: 4px solid transparent;
  }

  .modtabs__tab.is-active{
    border-left-color: var(--volta-gold);
  }

  /* PROCESS */
  .process .split{ grid-template-columns: 1fr; }

  .process__image{
    order: -1;
    margin-bottom: var(--lead-gap);
  }
}

@media (max-width: 640px){
  .nav__toggle{ display: inline-flex; }

  .nav__menu{
    position: absolute;
    right: 20px;
    top: 64px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 240px;
  }

  .nav__menu.is-open{ display: flex; }

  .form__grid{ grid-template-columns: 1fr; }
}