/* ============================================================
   VASHIN.IN — DESIGN SYSTEM (V1)
   ============================================================
   Single source of truth for all visual styles.
   Every page/section references this file. Never redefine 
   tokens per screen.
   
   Approach: Mobile-first (base = mobile, scale UP with min-width)
   Base unit: 8px
   Fonts: Cormorant Garamond + Inter (Google Fonts)
   Font loading: font-display: swap (set in Google Fonts URL)
   Images: SVG preferred. Raster: AVIF > WebP > JPG. Never PNG.
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. DESIGN TOKENS (CSS Custom Properties)
   ──────────────────────────────────────────────────────────── */

:root {
  /* Colors — Brand */
  --bg-primary: #FAF8F4;
  --bg-alt: #F4F1EB;
  --surface: #FFFFFF;
  --text-primary: #1F1F1F;
  --text-secondary: #6B6B6B;
  --accent: #1E4D4F;
  --accent-hover: #163A3C;
  --gold: #B8956A;
  --gold-soft: #E8D9C0;
  --border-soft: rgba(31, 31, 31, 0.08);
  --success-soft: #D9E8DD;
  --success-text: #1E4D2A;
  --neutral-soft: #EBE8E2;
  --neutral-text: #7A5F3D;

  /* Spacing scale (8pt base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-form: 560px;
  --container-px: 16px; /* mobile default — wider content area */

  /* Section padding (mobile default) */
  --section-py: 80px; /* mobile — generous breathing room */

  /* Border radius */
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --radius-input: 8px;

  /* Shadows */
  --shadow-card: 0 2px 8px rgba(31, 31, 31, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(31, 31, 31, 0.08);

  /* Transitions */
  --transition: 250ms ease-out;

  /* Typography sizes (mobile defaults) */
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 22px;
  --fs-tagline: 20px;
  --fs-eyebrow: 12px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-small: 13px;
}

/* Tablet overrides (768px+) */
@media (min-width: 768px) {
  :root {
    --container-px: 32px;
    --section-py: var(--space-8); /* 96px */
  }
}

/* Desktop overrides (1200px+) */
@media (min-width: 1200px) {
  :root {
    --container-px: 48px;
    --section-py: 140px; /* generous desktop spacing */
    --fs-h1: 64px;
    --fs-h2: 48px;
    --fs-h3: 28px;
    --fs-tagline: 24px;
    --fs-eyebrow: 13px;
    --fs-body-lg: 20px;
    --fs-body: 17px;
    --fs-small: 14px;
  }
}

/* ────────────────────────────────────────────────────────────
   2. RESET + BASE
   ──────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ────────────────────────────────────────────────────────────
   3. TYPOGRAPHY CLASSES
   ──────────────────────────────────────────────────────────── */

.h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-primary);
}

.h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

.h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-tagline);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--accent);
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.body-lg {
  font-size: var(--fs-body-lg);
  line-height: 1.6;
}

.body {
  font-size: var(--fs-body);
  line-height: 1.7;
}

.small {
  font-size: var(--fs-small);
  line-height: 1.6;
}

.text-secondary {
  color: var(--text-secondary);
}

/* ────────────────────────────────────────────────────────────
   4. LAYOUT COMPONENTS
   ──────────────────────────────────────────────────────────── */

/* Container — centered, max-width, horizontal padding */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--form {
  max-width: var(--container-form);
}

/* Section — vertical padding + background */
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section--alt {
  background-color: var(--bg-alt);
}

.section--primary {
  background-color: var(--bg-primary);
}

/* Section header (eyebrow + heading, centered) */
.section-header {
  text-align: center;
  margin-bottom: var(--space-7); /* 64px */
}

.section-header .eyebrow {
  margin-bottom: var(--space-4); /* 24px */
}

.section-header .h2 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ────────────────────────────────────────────────────────────
   5. SHARED COMPONENTS
   ──────────────────────────────────────────────────────────── */

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-body);
  font-weight: 500;
  border-radius: var(--radius-btn);
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--bg-primary);
  padding: 12px 24px;
  border: none;
}

.btn--primary:hover {
  background-color: var(--accent-hover);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary-lg {
  background-color: var(--accent);
  color: var(--bg-primary);
  padding: 16px 32px;
  border: none;
}

.btn--primary-lg:hover {
  background-color: var(--accent-hover);
}

.btn--primary-lg:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--full-mobile {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .btn--full-mobile {
    width: auto;
  }
}

/* --- Cards --- */

.card {
  background-color: var(--surface);
  border-radius: var(--radius-card);
  padding: 40px; /* generous card padding */
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* --- Status Pills --- */

.pill {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.pill--available {
  background-color: var(--success-soft);
  color: var(--success-text);
}

.pill--expanding {
  background-color: var(--gold-soft);
  color: var(--neutral-text);
}

/* --- Form Elements --- */

.form-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-input);
  font-size: 16px; /* prevents iOS zoom */
  color: var(--text-primary);
  background-color: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field:focus,
.form-field:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 77, 79, 0.08);
  outline: none;
}

.form-field::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

textarea.form-field {
  resize: vertical;
  min-height: 120px;
}

select.form-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-group {
  margin-bottom: var(--space-3); /* 16px */
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2); /* 8px */
}

/* --- Dividers --- */

.divider {
  width: 60px;
  height: 1px;
  background-color: var(--gold-soft);
  margin: 0 auto;
}

.divider--full {
  width: 100%;
  background-color: var(--border-soft);
}

/* --- Icon wrapper --- */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.icon--32 svg {
  width: 32px;
  height: 32px;
}

.icon--24 svg {
  width: 24px;
  height: 24px;
}

.icon--20 svg {
  width: 20px;
  height: 20px;
}

/* ────────────────────────────────────────────────────────────
   6. GRID UTILITIES
   ──────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: var(--space-4); /* 24px mobile default */
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr;
}

/* 2-col at tablet */
@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5); /* 32px */
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

/* 3-col at desktop */
@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

/* 4-col at desktop */
@media (min-width: 1200px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }
}

/* 40/60 split for About section */
.grid--40-60 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--40-60 {
    grid-template-columns: 2fr 3fr;
    gap: var(--space-6);
  }
}

/* ────────────────────────────────────────────────────────────
   7. UTILITY CLASSES
   ──────────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-left { text-align: left; }

.d-block { display: block; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }

.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }

/* Visually hidden (accessible) */
.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;
}

/* ────────────────────────────────────────────────────────────
   8. HERO ANIMATION (page load only)
   ──────────────────────────────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  opacity: 0;
  animation: fadeIn 300ms ease-out forwards;
}

.hero-animate--1 { animation-delay: 0ms; }
.hero-animate--2 { animation-delay: 100ms; }
.hero-animate--3 { animation-delay: 200ms; }
.hero-animate--4 { animation-delay: 300ms; }
.hero-animate--5 { animation-delay: 400ms; }

/* ────────────────────────────────────────────────────────────
   9. HEADER
   ──────────────────────────────────────────────────────────── */

.header {
  padding: 12px 0;
  background-color: var(--bg-primary);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header__logo-img {
  height: 24px;
  width: auto;
}

.header__logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

@media (min-width: 1200px) {
  .header {
    padding: 16px 0;
  }

  .header__logo-img {
    height: 32px;
  }

  .header__logo-text {
    font-size: 32px;
  }
}

/* Header CTA inherits .btn .btn--primary — no extra styles needed */

/* ────────────────────────────────────────────────────────────
   10. HERO SECTION
   ──────────────────────────────────────────────────────────── */

.hero {
  padding-top: 96px;
  padding-bottom: 80px;
}

@media (min-width: 1200px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 112px;
  }
}

/* ────────────────────────────────────────────────────────────
   11. NOTICE STRIP
   ──────────────────────────────────────────────────────────── */

.notice-strip {
  background-color: var(--bg-alt);
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.notice-strip__text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-secondary);
}

.notice-strip__ornament {
  width: 60px;
  height: 1px;
  background-color: var(--gold-soft);
  margin: 12px auto;
}

.notice-strip__ornament:first-child {
  margin-top: 0;
}

.notice-strip__ornament:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .notice-strip__text {
    font-size: 13px;
  }
}

/* ────────────────────────────────────────────────────────────
   12. ABOUT SECTION
   ──────────────────────────────────────────────────────────── */

.about__heading {
  padding-right: 0;
}

@media (min-width: 768px) {
  .about__heading {
    padding-right: var(--space-6);
  }
}

/* ────────────────────────────────────────────────────────────
   13. HOW IT WORKS (Steps)
   ──────────────────────────────────────────────────────────── */

.steps {
  position: relative;
}

.step__number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-3);
}

@media (min-width: 1200px) {
  .step__number {
    font-size: 56px;
  }
}

.step__title {
  margin-bottom: var(--space-2);
}

.step__desc {
  /* inherits body + text-secondary */
}

/* Vertical dividers between steps (desktop only) */
.step__divider {
  display: none;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
  }

  .step__divider {
    display: block;
    width: 1px;
    height: 100%;
    min-height: 120px;
    background-color: var(--border-soft);
    align-self: stretch;
  }
}

/* Mobile: stack with gap */
@media (max-width: 1023px) {
  .steps {
    gap: var(--space-6);
  }

  .step__divider {
    display: none;
  }
}

/* ────────────────────────────────────────────────────────────
   14. SERVICE PILLARS (Cards)
   ──────────────────────────────────────────────────────────── */

.pillar-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.pillar-card__title {
  margin-bottom: var(--space-2);
}

.pillar-card__desc {
  /* inherits body + text-secondary */
}

/* Ensure 2x2 on tablet+ */
.pillars-grid {
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .pillars-grid {
    gap: var(--space-5);
  }
}

/* ────────────────────────────────────────────────────────────
   15. WHY VASHIN (Trust Points)
   ──────────────────────────────────────────────────────────── */

.trust-point {
  text-align: left;
}

.trust-point__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

@media (min-width: 1200px) {
  .trust-point__title {
    font-size: 22px;
  }
}

.trust-point__desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* On mobile, center trust points for cleaner single-column */
@media (max-width: 767px) {
  .trust-grid {
    gap: var(--space-5);
  }
}

/* ────────────────────────────────────────────────────────────
   16. CONTACT SECTION
   ──────────────────────────────────────────────────────────── */

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--accent);
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--accent-hover);
}

.contact-links__divider {
  display: none;
}

@media (min-width: 768px) {
  .contact-links {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-5);
  }

  .contact-links__divider {
    display: block;
    width: 1px;
    height: 24px;
    background-color: var(--border-soft);
  }
}

/* Form wrapper */
.contact-form-wrapper {
  max-width: var(--container-form);
  margin: 0 auto;
  background-color: var(--surface);
  padding: var(--space-5);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Form error messages */
.form-error {
  display: block;
  font-size: 13px;
  color: #C0392B;
  margin-top: var(--space-1);
  min-height: 0;
}

.form-error:empty {
  display: none;
}

/* Success state */
.contact-form__success {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.contact-form__success .icon {
  color: var(--accent);
}

/* ────────────────────────────────────────────────────────────
   17. FOOTER
   ──────────────────────────────────────────────────────────── */

.footer {
  background-color: var(--accent);
  color: var(--bg-primary);
  padding-top: var(--space-7);
  padding-bottom: var(--space-5);
}

.footer a {
  color: rgba(250, 248, 244, 0.8);
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--gold);
}

.footer .eyebrow {
  color: var(--gold);
}

.footer__divider {
  width: 100%;
  height: 1px;
  background-color: rgba(250, 248, 244, 0.15);
  margin-top: var(--space-6);
  margin-bottom: var(--space-5);
}

.footer__disclaimer {
  font-style: italic;
  font-size: var(--fs-small);
  color: rgba(250, 248, 244, 0.65);
  line-height: 1.6;
  max-width: 880px;
}

.footer__copyright {
  font-size: var(--fs-small);
  color: rgba(250, 248, 244, 0.65);
  margin-top: var(--space-3);
}

/* Footer grid layout */
.footer__grid {
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-6);
  }
}

/* Footer brand */
.footer__logo-img {
  height: 28px;
  width: auto;
}

.footer__logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--bg-primary);
}

.footer__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: rgba(250, 248, 244, 0.8);
  margin-top: var(--space-2);
}

/* Footer links */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links li a {
  font-size: var(--fs-body);
}

/* Footer contact */
.footer__contact p {
  font-size: var(--fs-body);
  color: rgba(250, 248, 244, 0.8);
}

/* Footer bottom */
.footer__bottom {
  text-align: left;
}

@media (min-width: 768px) {
  .footer__bottom {
    text-align: center;
  }

  .footer__disclaimer {
    margin-left: auto;
    margin-right: auto;
  }
}



/* ────────────────────────────────────────────────────────────
   18. ERROR PAGE (404)
   ──────────────────────────────────────────────────────────── */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-page__code {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  font-weight: 500;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .error-page__code {
    font-size: 160px;
  }
}
