/* ============================================================
   DULCIURI CU SUFLET — main.css
   Design System: Cofetărie Artizanală Românească de Lux
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Nunito:wght@300;400;500;600;700&family=Dancing+Script:wght@600;700&family=Italiana&display=swap');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Core Palette */
  --cream-50:   #FFFDF8;
  --cream-100:  #FDF6EC;
  --cream-200:  #F8EDDA;
  --cream-300:  #F0DEC0;
  --cream-400:  #E8CDA0;

  --caramel-100: #F5D8A8;
  --caramel-300: #E0A855;
  --caramel-500: #C8873A;
  --caramel-700: #9E6525;
  --caramel-900: #6B4015;

  --brown-100: #C8A882;
  --brown-300: #9B7048;
  --brown-500: #6B4A28;
  --brown-700: #4A3018;
  --brown-900: #2E1A0E;

  --rose-100:  #FCEAE4;
  --rose-300:  #F2C4B0;
  --rose-500:  #D4856A;
  --rose-700:  #A85840;

  --gold-300:  #E8D488;
  --gold-500:  #C8A84B;
  --gold-700:  #96780A;

  --sage-300:  #B8CCAA;
  --sage-500:  #7A9A6A;
  --sage-700:  #4A6A3A;

  /* Semantic Aliases */
  --color-primary:       var(--caramel-500);
  --color-primary-dark:  var(--caramel-700);
  --color-primary-light: var(--caramel-100);
  --color-secondary:     var(--rose-500);
  --color-accent:        var(--gold-500);
  --color-text:          var(--brown-900);
  --color-text-mid:      var(--brown-500);
  --color-text-soft:     var(--brown-300);
  --color-bg:            var(--cream-100);
  --color-bg-card:       var(--cream-50);
  --color-bg-dark:       var(--brown-900);
  --color-border:        rgba(200, 135, 58, 0.18);
  --color-border-strong: rgba(200, 135, 58, 0.40);

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-script:   'Dancing Script', cursive;
  --font-elegant:  'Italiana', Georgia, serif;
  --font-body:     'Nunito', system-ui, sans-serif;

  --text-xs:   0.72rem;
  --text-sm:   0.85rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.75rem;
  --text-6xl:  5rem;

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

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(92, 51, 23, 0.06);
  --shadow-md:  0 6px 24px rgba(92, 51, 23, 0.10);
  --shadow-lg:  0 16px 48px rgba(92, 51, 23, 0.14);
  --shadow-xl:  0 32px 80px rgba(92, 51, 23, 0.18);
  --shadow-glow:0 0 40px rgba(200, 135, 58, 0.25);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:  180ms;
  --duration-base:  300ms;
  --duration-slow:  500ms;
  --duration-xslow: 900ms;

  /* Layout */
  --container-max: 1280px;
  --nav-height: 76px;

  /* Z-index */
  --z-base:    1;
  --z-float:   10;
  --z-overlay: 100;
  --z-modal:   200;
  --z-nav:     500;
  --z-toast:   1000;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: transparent;
}
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.15; }

/* ── Typography Scale ────────────────────────────────────── */
.font-display  { font-family: var(--font-display); }
.font-script   { font-family: var(--font-script); }
.font-elegant  { font-family: var(--font-elegant); }
.font-body     { font-family: var(--font-body); }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }
.text-6xl   { font-size: var(--text-6xl); }

/* ── Layout Utilities ────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}
.container--narrow { max-width: 880px; }
.section { padding-block: var(--space-24); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { flex-direction: column; }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.grid       { display: grid; }
.grid-2     { grid-template-columns: repeat(2, 1fr); }
.grid-3     { grid-template-columns: repeat(3, 1fr); }
.grid-4     { grid-template-columns: repeat(4, 1fr); }

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

/* ── Focus Styles (Accessibility) ───────────────────────── */
:focus-visible {
  outline: 2.5px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: var(--caramel-100);
  color: var(--brown-900);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-200); }
::-webkit-scrollbar-thumb { background: var(--caramel-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--caramel-500); }

/* ── Decorative Pattern ──────────────────────────────────── */
.texture-dots {
  background-image: radial-gradient(circle, rgba(200,135,58,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.texture-cross {
  background-image:
    linear-gradient(rgba(200,135,58,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,135,58,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.texture-floral {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C8873A' fill-opacity='0.05'%3E%3Ccircle cx='40' cy='40' r='4'/%3E%3Ccircle cx='40' cy='20' r='2.5'/%3E%3Ccircle cx='40' cy='60' r='2.5'/%3E%3Ccircle cx='20' cy='40' r='2.5'/%3E%3Ccircle cx='60' cy='40' r='2.5'/%3E%3Ccircle cx='25' cy='25' r='1.5'/%3E%3Ccircle cx='55' cy='25' r='1.5'/%3E%3Ccircle cx='25' cy='55' r='1.5'/%3E%3Ccircle cx='55' cy='55' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --container-max: 960px; }
}
@media (max-width: 768px) {
  :root { --text-5xl: 2.8rem; --text-6xl: 3.5rem; }
  .container { padding-inline: var(--space-6); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-16); }
}
@media (max-width: 480px) {
  :root { --text-4xl: 2rem; --text-5xl: 2.4rem; }
  .container { padding-inline: var(--space-4); }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  nav, footer, .whatsapp-float, .cookie-banner { display: none !important; }
  body { font-size: 12pt; color: black; background: white; }
  a[href]::after { content: " (" attr(href) ")"; }
}
