/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --color-bg:          #F5F0E8;
    --color-bg-alt:      #E8DDD0;
    --color-accent:      #C4A882;
    --color-hover:       #8B6344;
    --color-text:        #3D2B1F;
    --color-text-muted:  #7A6352;
    --color-border:      #D9CCB8;
    --color-white:       #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body:    'Lato', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: 0.3s ease;

    --max-width: 1200px;
    --padding-x: 4rem;
}

/* ==========================================================================
   index page
   ========================================================================== */

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* header */
header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem var(--padding-x);
    display: flex;
    align-items: center;
    gap: 1rem;
}

header img {
    width: 80px;
    height: auto;
    transition: opacity var(--transition);
}

header img:hover {
    opacity: 0.8;
}

header div h1 {
    font-size: 2rem;
    margin-bottom: 0.1rem;
}

header div p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* nav */
nav {
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-x);
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
}

nav ul li a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: color var(--transition), background-color var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

nav ul li a:hover {
    color: var(--color-hover);
    background-color: rgba(196, 168, 130, 0.1);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: scaleX(1);
}

nav ul li a.active {
    color: var(--color-hover);
    font-weight: 700;
}

.burger {
    display: none;
    font-size: 1.5rem;
    color: var(--color-text);
    padding: 0.75rem 0;
    transition: color var(--transition);
}

.burger:hover {
    color: var(--color-hover);
}

/* main */
main {
    min-height: 60vh;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem var(--padding-x);
}

section {
    margin-bottom: 3rem;
}

/* ბმულები main-ში */
main a {
    color: var(--color-hover);
    transition: color var(--transition);
}

main a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* სიები main-ში */
main ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

main ul li {
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

/* video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.video-grid video {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
}

.video-grid video:hover {
    transform: translateY(-5px);
}

.video-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem auto;
}

.video-wrapper {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(61, 43, 31, 0.1);
    transition: transform var(--transition);
}

.video-wrapper:hover {
    transform: translateY(-5px);
}

.video-grid-two video {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: none;
}

/* Cookie Banner */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #4a3427;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cookie-btn {
    background: #b5835a;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 15px;
}

.cookie-btn:hover {
    background: #d1c8c1;
    color: #4a3427;
}

/* ==========================================================================
   about page
   ========================================================================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: var(--color-text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(139, 99, 68, 0.12);
    text-decoration: none;
}

.contact-card__icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card__label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text);
}

.contact-card__value {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* footer */
footer {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem var(--padding-x);
    text-align: center;
}

footer p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: var(--color-hover);
    transition: color var(--transition);
}

footer a:hover {
    color: var(--color-accent);
}

/* scroll to top */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

#scroll-top:hover {
    background-color: var(--color-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#scroll-top img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* shopping cart */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background-color: #fdfaf5;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    visibility: visible;
}

.cart-drawer.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.cart-overlay.active {
    display: block;
}

/* design details */
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.cart-items-container {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: #5a4633;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.checkout-btn:hover {
    background-color: #453526;
}

/* ==========================================================================
   products page
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-card__img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.product-card__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card__content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #4a3427;
}

.product-card__content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card__footer .price {
    font-weight: 700;
    color: #b5835a;
    font-size: 1.1rem;
}

.order-btn {
    background: #4a3427;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.order-btn:hover {
    background: #b5835a;
}

/* Responsive Fixes */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   contact page
   ========================================================================== */
/* main container */
.contact-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--color-white, #ffffff);
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 5px 20px rgba(74, 52, 39, 0.08);
    border: 1px solid var(--color-border, #e0e0e0);
}

/* form group */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* label style */
.form-group label {
    font-family: var(--font-lato, 'Lato', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text, #4a3427);
    margin-bottom: 8px;
}

/* general style - all input and textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--color-border, #d1c8c1);
    border-radius: var(--radius-sm, 6px);
    background-color: #fafafa;
    transition: border-color var(--transition, 0.3s ease), box-shadow var(--transition, 0.3s ease);
    box-sizing: border-box;
}

/* focus */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-hover, #b5835a);
    box-shadow: 0 0 0 3px rgba(181, 131, 90, 0.15); 
    background-color: #ffffff;
}

/* textarea */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* password container */
.password-wrapper .input-container {
    width: 100%;
    position: relative;
}

/* password toogle button */
.toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    color: #8c7e75;
    z-index: 2;
}

.toggle-btn:hover {
    color: var(--color-hover, #b5835a);
}

/* error text */
.error-text {
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 5px;
    height: 15px;
    display: block;
}

/* submit button styles */
.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background-color: var(--color-text, #4a3427);
    color: var(--color-white, #ffffff);
    font-family: var(--font-lato, 'Lato', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    transition: background-color var(--transition, 0.3s ease), transform 0.1s ease;
    text-align: center;
    margin-top: 10px;
}

/* hover effect */
.submit-btn:hover {
    background-color: var(--color-hover, #b5835a);
}

/* click effect */
.submit-btn:active {
    transform: translateY(1px);
}

/* success message */
.success-msg {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f8f5;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    font-size: 0.95rem;
    text-align: center;
    font-weight: bold;
}

/* Responsive Fixes */
@media (max-width: 480px) {
    .contact-wrapper {
        padding: 20px;
        margin: 20px 10px;
    }
}

/* ==========================================================================
   MOBILE NAVIGATION (Burger Menu)
   ========================================================================== */

/* 1. Desktop styles - hidden */
.burger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 10px;
}

/* 2. Mobile styles (max 768px width) */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-inner ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-alt);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .nav-inner ul li {
        margin: 10px 0;
        text-align: center;
    }

    /* 3. class for active menu */
    .nav-inner ul.active {
        display: flex;
    }
}

/* ================================ 
RESPONSIVE DESIGN
=================================== */
/* 1024px */
@media (max-width: 1024px) {
    :root { --padding-x: 3rem; }

    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.3rem; }

    header div h1 { font-size: 1.8rem; }

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

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

/* 768px */
@media (max-width: 768px) {
    :root { --padding-x: 2rem; }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.2rem; }

    header div h1 { font-size: 1.5rem; }

    nav { position: relative; }

    .burger { display: block; }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: var(--color-bg-alt);
        border-top: 1px solid var(--color-border);
    }

    nav ul.open { display: flex; }

    nav ul li a {
        padding: 0.875rem 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    nav ul li a::after { display: none; }

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

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

/* 480px */
@media (max-width: 480px) {
    :root { --padding-x: 1.5rem; }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }

    header img { width: 60px; }
    header div h1 { font-size: 1.3rem; }

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

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

    #scroll-top {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

/* 320px */
@media (max-width: 320px) {
    :root { --padding-x: 1rem; }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1rem; }

    header img { width: 50px; }
    header div h1 { font-size: 1.1rem; }
    header div p  { font-size: 0.75rem; }

    .contact-cards {
        grid-template-columns: 1fr;
    }
}
