/*
Theme Name: Srijemuš La Vita
Theme URI: https://srijemus.com
Author: Srijemuš La Vita
Author URI: https://srijemus.com
Description: Zvanična tema za Srijemuš La Vita — prirodni preparati od liofiliziranog srijemuša. Koristi se na srijemus.com (bosanski) i sremuslavita.rs (srpski latinica) kroz native gettext prevode. Podržava WooCommerce.
Version: 1.8.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sremus-lavita
Domain Path: /languages
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    /* Osnovne boje (postojeće tokene teme) */
    --color-primary: #1d5134;           /* duboka medicinska zelena (Apothecary green) */
    --color-secondary: #2a6a44;
    --color-accent: #b8874a;            /* warm amber / okra */
    --color-accent-dark: #8a5e20;
    --color-light: #f5efe1;             /* toplo krem — body bg */
    --color-cream: #faf6ed;             /* svjetlije krem — hero bg */
    --color-white: #FFFFFF;
    --color-off-white: #FAFAF5;

    --color-dark: #1a1f1c;              /* near-black s blagim zelenim undertone-om */
    --color-text: #3a4339;              /* body text */
    --color-text-light: #6a7268;        /* secondary text */
    --color-border: rgba(26, 31, 28, 0.08);

    /* Specifični tokeni za nove komponente */
    --forest-900: #0f3622;
    --forest-800: #14452c;
    --forest-700: #1d5134;
    --forest-600: #2a6a44;
    --forest-300: #4d8567;
    --forest-100: #e3ece6;

    --ochre-700:  #8a5e20;
    --ochre-500:  #b8874a;
    --ochre-400:  #c8a368;
    --ochre-300:  #d4b778;
    --ochre-200:  #e6cd95;
    --ochre-100:  #f0e4c4;

    --cream-50:   #faf6ed;
    --cream-100:  #f5efe1;
    --cream-200:  #eadfc8;
    --cream-300:  #d8c9a5;

    /* Fontovi */
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Veličine */
    --container-max: 1200px;
    --container-wide: 1400px;
    --container-narrow: 800px;
    --container-pad-x: clamp(1.25rem, 3.5vw, 2.5rem);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-2xl: 7rem;

    /* Radijus */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Senke */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 60px rgba(0, 95, 2, 0.15);

    /* Tranzicije */
    --transition: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */

*,
*::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-body);
    font-size: 1.0625rem;           /* 17px — komforno za starije čitaoce */
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--color-secondary);
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Tipografija
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;                /* Lora 600 je optimalno za čitljivost */
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--color-dark);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); font-weight: 600; }
h4 { font-size: 1.375rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Kontejner
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* Manji bočni padding na mobilnom — više prostora za sadržaj */
@media (max-width: 600px) {
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
}

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

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

/* ==========================================================================
   Utility klase
   ========================================================================== */

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-light { background-color: var(--color-light); }
.bg-accent { background-color: var(--color-accent); }

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