/* ========================================
   CHOCOLINA - Premium Handmade Chocolates
   Style Guide: Elegant, Minimalist, Warm
   ======================================== */

/* ===== CSS VARIABLES ===== */
/* These control the main colors and spacing throughout the site */
:root {
    /* Color palette - warm, sophisticated tones */
    --color-primary: #3d2417;        /* Deep chocolate brown */
    --color-secondary: #8b6f47;      /* Warm caramel */
    --color-accent: #c9a96e;         /* Soft gold */
    --color-light: #f9f6f1;          /* Warm off-white */
    --color-white: #ffffff;
    --color-text: #2a2a2a;
    --color-text-light: #666666;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;  /* Elegant headers */
    --font-body: 'Lato', sans-serif;              /* Clean body text */
    
    /* Spacing system */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Other variables */
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

/* ===== FONTS ===== */
/* Imported from Google Fonts for elegant typography */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.01em;
}

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

p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

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

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

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(61, 36, 23, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
}

/* Mobile menu toggle (hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

/* === LOGO FIX === */
.nav-logo img {
    height: 70px;        /* контролира височината */
    width: auto;         /* запазва пропорциите */
    max-width: 100%;     /* за сигурност */
    display: block;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(
        180deg,
        #faf7f4 0%,
        #f2e9df 100%
    );
    padding: 0 24px;
}

.hero-title {
    font-size: 3.6rem;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.hero-tagline {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4a3a2c;
    margin-bottom: 40px;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(61, 36, 23, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 36, 23, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

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

/* ===== PRODUCT CARDS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.14);
}

.product-info {
    padding: 26px 24px;
}

.product-name {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a4636;
}

.product-price {
    font-size: 1rem;
    color: var(--color-secondary);
    font-weight: 400;
    font-style: italic;
}

.product-image {
    width: 100%;
    height: 320px;          /* по-голяма витрина */
    object-fit: cover;     /* визуален фокус */
    object-position: center;
    display: block;
    background-color: #fff;
}

/* ===== INTRO SECTION ===== */
.intro {
    background: #ffffff;
}

.intro-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 2.2rem;
    margin-bottom: 26px;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a3a2c;
}

/* ===== ABOUT PAGE ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-story {
    margin-bottom: var(--spacing-lg);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.value-card {
    text-align: center;
    padding: var(--spacing-md);
}

.value-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.value-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.value-description {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* ===== CONTACT PAGE ===== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.contact-item {
    padding: var(--spacing-md);
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background-color: #f3ede3;
    transform: translateY(-2px);
}

.contact-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.contact-value {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-family: var(--font-display);
}

.contact-value a {
    color: var(--color-primary);
}

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

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, #2b170c 0%, #1a0e07 100%);
    color: #f5efe9;
    padding: 80px 20px 50px;
    text-align: center;
    position: relative; /* важно */
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-tagline {
    font-size: 16px;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: #f5efe9;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 20px;
}

/* ===== CTA SECTION ===== */
.cta {
    background-color: #faf7f3;
    padding: 100px 20px;
    text-align: center;
}

.cta-title {
    color: #3b2416;
}

.cta-text {
    color: #6a4a38;
}
.cta {
    margin-bottom: 0;
}

.footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin-bottom: 60px;
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--color-white);
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

.hero-logo {
    max-width: 260px;
    margin: 0 auto 24px;
    display: block;
}

/* Offset for fixed header */
body {
    padding-top: 90px;
}

.about-section {
    padding: 100px 0;
    background: #faf7f4;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    padding: 0 24px;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.about-text {
    background: #ffffff;
    padding: 56px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a3a2c;
    margin-bottom: 22px;
}

.values-section {
    padding: 100px 0;
    background: #ffffff;
}

.values-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.values-container h2 {
    font-size: 2.2rem;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-item {
    padding: 40px 32px;
    border-radius: 20px;
    background: #faf7f4;
}

.value-item h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: #3a2416;
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5a4636;
}

.info-section {
    background-color: #faf7f2;
}

.info-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #4a3a2a;
}

.info-content p {
    margin-bottom: 20px;
}

/* Contact card */
.contact-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.contact-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 40px;
    color: #4a3a2c;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    padding: 20px 24px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #faf7f4;
}

.contact-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9b7a5a;
    margin-bottom: 6px;
}

.contact-value a {
    font-size: 1.1rem;
    color: #3a2416;
    font-weight: 500;
}

.instagram-section {
    background: #faf7f4;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.instagram-grid img {
    width: 100%;
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-grid a:hover img {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        padding: 36px 28px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-section,
    .values-section {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 16px 40px;
    }

    .footer-brand {
        font-size: 32px;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {

    .hero {
        min-height: 85vh;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-tagline {
        font-size: 1.05rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section {
        padding: 70px 20px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .product-image {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .cta {
        padding: 70px 16px;
    }

    .footer {
        padding: 60px 16px 40px;
    }
}





