/* Verdalina by Ecoroses - Premium Ranunculus */

@font-face {
    font-family: 'Vogun';
    src: url('../fonts/Vogun-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ergonomique';
    src: url('../fonts/ergonomique-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ergonomique';
    src: url('../fonts/ergonomique-italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

:root {
    --color-primary: #67a23f;
    --color-primary-dark: #4a7a2a;
    --color-secondary: #c9e4b8;
    --color-text: #2d2d2d;
    --color-text-light: #666;
    --color-text-muted: #999;
    --color-bg-light: #f8f9fa;
    --color-bg-gray: #e9ecef;
    --font-heading: 'Vogun', 'Georgia', serif;
    --font-subheading: 'Ergonomique', 'Georgia', serif;
    --font-body: 'Ergonomique', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: white;
}

h1,
h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    line-height: 1.3;
    color: var(--color-text);
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-subheading);
    font-weight: normal;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
    gap: var(--spacing-lg);
}

.header__logo-link {
    justify-self: start;
}

.header__logo {
    height: 50px;
    width: auto;
    display: block;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    justify-self: center;
}

.header__ecoroses {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: #000;
}

.header__ecoroses-text {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.header__ecoroses:hover .header__ecoroses-text {
    color: var(--color-primary);
}

.header__ecoroses-logo {
    height: 38px;
    width: auto;
    display: block;
}

.header__nav-link {
    color: #000;
    font-weight: 700;
    padding: var(--spacing-sm) 0;
    position: relative;
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--color-primary);
}

.header__nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

.header__cta {
    margin-left: var(--spacing-md);
}

.header__nav-dropdown {
    position: relative;
}

.header__nav-dropdown > .header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header__nav-arrow {
    font-size: 0.7rem;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

.header__nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    list-style: none;
    padding: var(--spacing-sm) 0;
    z-index: 200;
}

.header__nav-submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.header__nav-submenu li a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--color-text);
    font-size: 0.9rem;
    white-space: nowrap;
}

.header__nav-submenu li a:hover {
    color: var(--color-primary);
    background: var(--color-bg-light);
}

.header__nav-dropdown:hover .header__nav-submenu {
    display: block;
}

.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.header__menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-text);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn--primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
}

.btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--secondary:hover {
    background: var(--color-primary);
    color: white;
}

.btn--white {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.btn--white:hover {
    background: var(--color-secondary);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    aspect-ratio: 1920 / 800;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .container {
    margin-left: 0;
    padding-left: clamp(3rem, 8vw, 10rem);
}

.hero__background {
    position: absolute;
    inset: 0;
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 35%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 70%);
}

.hero__content {
    position: relative;
    z-index: 1;
    color: var(--color-text);
    max-width: 560px;
    padding: var(--spacing-lg) 0;
    text-align: left;
    margin-top: var(--spacing-lg);
}

.hero__subtitle {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    font-weight: 600;
}

.hero__title {
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.hero__title span {
    color: var(--color-primary);
}

.hero__description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-light);
}

.hero__actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Benefits Bar */
.benefits {
    position: relative;
    z-index: 10;
    padding: 0 0 var(--spacing-xl);
    margin-top: -3rem;
}

.benefits__inner {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl) var(--spacing-2xl);
}

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

.benefit {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.benefit__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.benefit__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit__content h4 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.benefit__content p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Sections */
.section {
    padding: var(--spacing-3xl) 0;
}

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

.section--dark {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.section-header {
    text-align: left;
    margin: 0 0 var(--spacing-2xl);
}

.section-header--center {
    text-align: center;
    margin: 0 auto var(--spacing-2xl);
    max-width: 640px;
}

.section-header__subtitle {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.section-header__title {
    margin-bottom: var(--spacing-md);
}

.section-header__description {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

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

.grid--5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card__image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__content {
    padding: var(--spacing-lg);
}

.card__title {
    margin-bottom: var(--spacing-sm);
}

.card__description {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg-light);
    position: relative;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mini gallery carousel (only renders when product has >1 image) */
.card-gallery {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg-light);
}

.card-gallery__slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-gallery__slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-gallery__slides img.active {
    opacity: 1;
}

.card-gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-fast);
}

.card-gallery__btn:hover { background: white; }
.card-gallery__btn--prev { left: 6px; }
.card-gallery__btn--next { right: 6px; }

.card-gallery__thumbs {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.card-gallery__thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.card-gallery__thumb.active {
    border-color: white;
    opacity: 1;
}

.product-card__name {
    padding: var(--spacing-md);
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 1.2rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__content {
    padding: var(--spacing-lg);
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.blog-card__category {
    color: var(--color-primary);
    font-weight: 600;
}

.blog-card__title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.blog-card__title a {
    color: var(--color-text);
}

.blog-card__title a:hover {
    color: var(--color-primary);
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-bg-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-sm);
}

/* Footer */
.footer {
    background: var(--color-text);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
}

.footer__logo {
    height: 60px;
    margin-bottom: var(--spacing-md);
    filter: brightness(0) invert(1);
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer__heading {
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer__link:hover {
    color: white;
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--color-primary);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
    color: white;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer__contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.footer__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-xl) 0;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer__certifications {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.text-muted {
    color: var(--color-text-muted);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

.flex {
    display: flex;
}

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

/* Responsive */
@media (max-width: 1024px) {

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

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

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

@media (max-width: 768px) {
    .header__inner {
        display: flex;
        justify-content: space-between;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-md);
    }

    .header__nav.active {
        display: flex;
    }

    .header__ecoroses-logo {
        height: 32px;
    }

    .header__ecoroses-text {
        display: none;
    }

    .header__menu-toggle {
        display: block;
    }

    .header__cta {
        margin: var(--spacing-md) 0 0;
        width: 100%;
    }

    .hero__content {
        padding: 120px 0 var(--spacing-2xl);
    }

    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .benefits__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* ---- intl-tel-input integration ---------------------------------------- */
.iti { width: 100%; }
.iti input.form-input,
.iti input[type=tel].form-input {
    width: 100%;
}
.iti--separate-dial-code .iti__selected-flag {
    background-color: var(--color-bg-light);
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}
