/* ============================================================
   SHTEPIA INTELIGJENTE — MAIN CSS
   Architectural Minimalism Redesign
   Cormorant Garamond + Outfit · Cream / Ink / Amber
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Public palette */
  --cream:       #F5F3EF;
  --ink:         #131311;
  --ink-muted:   #6B6967;
  --ink-faint:   #B5B2AF;
  --border:      #DEDAD6;
  --surface:     #FFFFFF;
  --dark:        #111110;
  --accent:      #C49A2E;
  --accent-dark: #A37E22;

  /* Admin-required aliases (admin.css references these by name) */
  --navy:        #111110;
  --navy-light:  #1E1E1C;
  --blue:        #2D5A8E;
  --white:       #FFFFFF;
  --light-gray:  #F5F3EF;
  --mid-gray:    #6B6967;
  --dark-gray:   #3A3836;
  --text:        #131311;
  --sage:        #4A7C59;
  --warm-border: #DEDAD6;
  --success:     #4A7C59;
  --warning:     #D97706;
  --danger:      #DC2626;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Type scale */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  2rem;       /* 32px */
  --text-4xl:  2.5rem;     /* 40px */
  --text-5xl:  3.5rem;     /* 56px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius — sharp, architectural */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   4px;
  --radius-xl:   8px;
  --radius-full: 9999px;

  /* Shadows — neutral, not warm */
  --shadow-sm: 0 1px 3px rgba(19,19,17,0.06);
  --shadow-md: 0 4px 24px rgba(19,19,17,0.10);
  --shadow-lg: 0 12px 48px rgba(19,19,17,0.14);
  --shadow-xl: 0 24px 72px rgba(19,19,17,0.18);

  /* Transitions */
  --transition:      0.22s ease;
  --transition-slow: 0.42s ease;

  /* Layout */
  --container-max: 1200px;
  --nav-height:    64px;

  /* Animation easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.04;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* Eyebrow / label style */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow--accent {
  color: var(--accent);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}

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

@media (min-width: 768px) {
  .section { padding: var(--space-24) 0; }
}

.section-header {
  text-align: left;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  max-width: 560px;
  font-weight: 300;
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin: 0 auto;
}

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease-out-expo),
              transform 0.72s var(--ease-out-expo);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.08s; }
.animate-delay-2 { transition-delay: 0.16s; }
.animate-delay-3 { transition-delay: 0.24s; }
.animate-delay-4 { transition-delay: 0.32s; }
.animate-delay-5 { transition-delay: 0.40s; }

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--ink-muted); }
.text-white   { color: var(--white); }
.text-sm      { font-size: var(--text-sm); }
.text-lg      { font-size: var(--text-lg); }

.bg-navy       { background: var(--dark); }
.bg-light      { background: var(--cream); }
.bg-accent     { background: var(--accent); }
.bg-surface    { background: var(--surface); }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }

.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;
}
