/* ===================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   =================================== */
:root {
    --color-ivory: #F8F5F0;
    --color-blush: #F2C9C3;
    --color-gold: #D4B886;
    --color-brown: #4C3A2C;
    --color-white: #FFFFFF;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

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

    --transition-smooth: all 0.3s ease;
    --shadow-soft: 0 4px 20px rgba(76, 58, 44, 0.08);
    --shadow-hover: 0 8px 30px rgba(76, 58, 44, 0.12);

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
}

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

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-brown);
    background-color: var(--color-ivory);
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 184, 134, 0.02) 10px,
            rgba(212, 184, 134, 0.02) 20px
        );
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

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

p {
    margin-bottom: var(--spacing-md);
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

/* ===================================
   BUTTON STYLES
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    text-align: center;
    cursor: pointer;
}

.btn:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-gold), #c4a876);
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

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

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

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

.btn--large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

.btn--block {
    display: block;
    width: 100%;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: var(--spacing-md) 0;
}

.header.scrolled {
    background: rgba(248, 245, 240, 0.98);
    box-shadow: var(--shadow-soft);
    padding: var(--spacing-sm) 0;
}

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

.nav__logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-brown);
}

.nav__menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav__link {
    font-weight: 600;
    color: var(--color-brown);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
    width: 100%;
}

.nav__link:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===================================
   MOBILE HEADER FIX
   =================================== */
@media (max-width: 768px) {
  .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .nav__logo {
    font-size: 1.2rem; /* smaller for mobile */
    white-space: nowrap;
  }

  .nav__menu {
    gap: var(--spacing-sm);
  }

  .nav__menu,
  .nav__link,
  .btn {
    flex-shrink: 0;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 30px;
  }
}


/* ===================================
   HERO SECTION (Updated for readability)
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://edum2p.com/hero-banner.jpg') center/cover no-repeat;
    padding: var(--spacing-3xl) var(--spacing-md);
}

/* Overlay for better text visibility */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(245, 232, 220, 0.5), 
        rgba(245, 232, 220, 0.5)
    );
    backdrop-filter: brightness(0.9);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__title {
    color: var(--color-brown);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.7);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-brown);
    margin-bottom: var(--spacing-xl);
    font-weight: 300;
    letter-spacing: 2px;
}

.hero__cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}


/* ===================================
   SECTION STYLES
   =================================== */
section {
    padding: var(--spacing-3xl) 0;
}

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

.section__subtitle {
    font-size: 1.125rem;
    color: rgba(76, 58, 44, 0.7);
    margin-bottom: var(--spacing-xl);
    font-weight: 300;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: var(--color-white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    width: 100%;
}

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

.about__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(76, 58, 44, 0.85);
}

/* ===================================
   COLLECTION SECTION
   =================================== */
.collection__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    cursor: pointer;
}

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

.product-card:focus-within {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

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

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(76, 58, 44, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover .product-card__overlay {
    opacity: 1;
}

.product-card__view {
    color: var(--color-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-white);
    border-radius: var(--radius-lg);
}

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

.product-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.product-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    font-family: var(--font-heading);
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    background: var(--color-white);
}

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

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--color-ivory);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.feature-card:hover,
.feature-card:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    outline: none;
}

.feature-card:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

.feature-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-blush), var(--color-gold));
    border-radius: 50%;
    color: var(--color-white);
}

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

.feature-card__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(76, 58, 44, 0.75);
}

/* ===================================
   INSTAGRAM SECTION
   =================================== */
.instagram {
    background: var(--color-white);
}

.instagram__scroll {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-xl);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.instagram__scroll::-webkit-scrollbar {
    height: 8px;
}

.instagram__scroll::-webkit-scrollbar-track {
    background: var(--color-ivory);
    border-radius: 10px;
}

.instagram__scroll::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 10px;
}

.instagram__item {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.instagram__item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.instagram__item img:hover {
    transform: scale(1.03);
}

.instagram__caption {
    margin-top: var(--spacing-sm);
    text-align: center;
    font-size: 0.9375rem;
    color: rgba(76, 58, 44, 0.7);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
}

.contact__info-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

.contact__item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact__item svg {
    flex-shrink: 0;
    color: var(--color-gold);
}

.contact__item strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-brown);
}

.contact__item p {
    margin: 0;
    color: rgba(76, 58, 44, 0.7);
}

.contact__item a:hover {
    color: var(--color-gold);
}

/* ===================================
   FORM STYLES
   =================================== */
.contact__form {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-brown);
}

.required {
    color: #d32f2f;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(76, 58, 44, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--color-ivory);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 184, 134, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #d32f2f;
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.form-checkbox label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.form-error {
    display: block;
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    min-height: 1.25rem;
}

.form-success {
    display: none;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: var(--radius-sm);
    color: #2e7d32;
    margin-top: var(--spacing-md);
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: #4caf50;
    flex-shrink: 0;
}

.form-success p {
    margin: 0;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-brown);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    border-top: 3px solid var(--color-gold);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.footer__tagline {
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer__text {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer__title {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer__links ul li {
    margin-bottom: var(--spacing-sm);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-smooth);
}

.footer__links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

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

.footer__icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.footer__icons a:hover {
    background: var(--color-gold);
    transform: translateY(-3px);
}

.footer__icons a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   LIGHTBOX
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    padding: var(--spacing-lg);
    overflow-y: auto;
}

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

.lightbox__close {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: var(--color-white);
    color: var(--color-brown);
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2001;
}

.lightbox__close:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: rotate(90deg);
}

.lightbox__close:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

.lightbox__content {
    max-width: 900px;
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

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

.lightbox__info {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox__info h3 {
    margin-bottom: var(--spacing-md);
}

.lightbox__info p {
    margin-bottom: var(--spacing-lg);
}

#lightboxPrice {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gold);
    font-family: var(--font-heading);
}

/* ===================================
   ANIMATION CLASSES
   =================================== */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

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

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

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

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

    .lightbox__content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }

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

    .footer__icons {
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .collection__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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