/* ============================================================
   BARANYA HOME – main.css
   Brand tokens, reset, base typography
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Primary palette */
  --color-primary:       #1A6B4F;
  --color-primary-dark:  #0F5238;
  --color-primary-light: #279166;
  --color-primary-bg:    #E5F2EC;

  /* Accent */
  --color-accent:        #C8A84B;
  --color-accent-dark:   #A88830;
  --color-accent-light:  #F0E6B8;

  /* Neutrals */
  --color-bg:            #F4F7F6;
  --color-surface:       #FFFFFF;
  --color-border:        #D4E4DE;
  --color-border-light:  #E0EDEA;
  --color-text:          #1F2B28;
  --color-text-muted:    #5C6B68;
  --color-text-light:    #8A9A96;

  /* Status */
  --color-success:       #2E7D52;
  --color-success-bg:    #E8F5EE;
  --color-warning:       #C17A00;
  --color-warning-bg:    #FFF4D6;
  --color-danger:        #C0392B;
  --color-danger-bg:     #FDEEEC;
  --color-info:          #1B6FA8;
  --color-info-bg:       #E3F1FB;

  /* Typography */
  --font-sans:    'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-size-xs:   0.75rem;    /* 12px */
  --font-size-sm:   0.875rem;   /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg:   1.125rem;   /* 18px */
  --font-size-xl:   1.25rem;    /* 20px */
  --font-size-2xl:  1.5rem;     /* 24px */
  --font-size-3xl:  1.875rem;   /* 30px */
  --font-size-4xl:  2.25rem;    /* 36px */
  --font-size-5xl:  3rem;       /* 48px */
  --line-height-tight:  1.25;
  --line-height-base:   1.6;
  --line-height-loose:  1.8;

  /* 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;

  /* Layout */
  --container-max:  1280px;
  --container-pad:  1.5rem;
  --sidebar-width:  280px;
  --header-height:  72px;

  /* Borders & Radius */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow:     0 2px 8px rgba(0,0,0,.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 28px rgba(0,0,0,.12);
  --shadow-xl:  0 16px 48px rgba(0,0,0,.14);

  /* Transitions */
  --transition-fast:  120ms ease;
  --transition:       220ms ease;
  --transition-slow:  380ms ease;

  /* Z-index */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

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

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

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { color: var(--color-primary-dark); }

ul, ol { list-style: none; }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  font-weight: 700;
  color: var(--color-text);
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
}
h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

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

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---- Section spacing ---- */
.section { padding: var(--space-16) 0; }
.section--sm { padding: var(--space-10) 0; }
.section--lg { padding: var(--space-24) 0; }

.section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.section-subtitle {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb__sep { color: var(--color-text-light); }
.breadcrumb__current { color: var(--color-text); font-weight: 500; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb__sep { color: rgba(255,255,255,0.4); }
.page-hero .breadcrumb__current { color: #fff; font-weight: 600; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #0C2218 0%, #071510 100%);
  padding: var(--space-12) 0;
  color: white;
}
.page-hero h1 { color: white; font-size: var(--font-size-3xl); }
.page-hero p { color: rgba(255,255,255,.8); margin-top: var(--space-2); }

/* ---- Utility ---- */
.text-center   { text-align: center; }
.text-muted    { color: var(--color-text-muted); }
.text-primary  { color: var(--color-primary); }
.text-accent   { color: var(--color-accent); }
.text-sm       { font-size: var(--font-size-sm); }
.text-lg       { font-size: var(--font-size-lg); }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-auto       { margin-top: auto; }
.w-full        { width: 100%; }
.d-flex        { display: flex; }
.gap-2         { gap: var(--space-2); }
.gap-3         { gap: var(--space-3); }
.gap-4         { gap: var(--space-4); }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.hidden        { display: none !important; }
.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;
}

/* ---- Spinner ---- */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-4);
}

/* ---- Mobile overrides ---- */
@media (max-width: 640px) {
  :root {
    --container-pad: 1rem;
    --header-height: 100px;
  }
}
