/* ============================================================
   ENOIA — Design System & Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Questrial&family=Syne:wght@400;600;700&family=Nunito:wght@300;400&display=swap');

/* ── CSS Custom Properties (Tokens) ─────────────────────── */
:root {
  /* Colors */
  --color-primary:      #2E5252;
  --color-primary-dark: #1e3838;
  --color-primary-light:#3d6b6b;
  --color-secondary:    #6E3535;
  --color-secondary-dark: #521f1f;
  --color-secondary-light: #8c4a4a;
  --color-bg:           #FFFFFF;
  --color-accent-bg:    #E9E0E5;
  --color-accent-bg2:   #f4eff2;
  --color-text:         #000000;
  --color-text-muted:   #555555;
  --color-text-light:   #FFFFFF;
  --color-border:       #d4c8cd;
  --color-success:      #3a7d44;

  /* Typography */
  --font-title:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-subtitle: 'Syne', sans-serif;
  --font-body:     'Questrial', sans-serif;
  --font-button:   'Nunito', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(46,82,82,0.12);
  --shadow-lg: 0 12px 40px rgba(46,82,82,0.18);
  --shadow-card: 0 2px 12px rgba(46,82,82,0.10);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s ease;
  --transition-slow: 0.45s ease;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;    /* balanced vertical centering */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.subtitle, .section-subtitle {
  font-family: var(--font-subtitle);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-secondary);
}

p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

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

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

.section--primary p {
  color: rgba(255,255,255,0.8);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-top: var(--space-sm);
}

.section-header p {
  max-width: 600px;
  margin: var(--space-md) auto 0;
  font-size: 1.1rem;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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

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

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

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

/* ── Page Entry Animation ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up {
  animation: fadeInUp 0.7s var(--transition-slow) both;
}

.animate-fade {
  animation: fadeIn 0.6s ease both;
}

/* Scroll reveal utility — JS adds .revealed class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  width: 56px;
  height: 3px;
  background: var(--color-secondary);
  margin: var(--space-md) auto;
  border-radius: var(--radius-full);
}

.divider--left {
  margin-left: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-2xl) 0; }
  .container { padding: 0 var(--space-md); }
}
