/* ===== MAIN PAGE STYLES ===== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    height: 100svh;
    /* Better mobile support */
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    background-color: #000;
    /* Fallback for image loading */
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: ken-burns 30s ease-in-out infinite alternate;
}

@keyframes ken-burns {
    0% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1.08);
        /* Extremely subtle zoom for elite feel */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle vignette for premium focus */
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-white);
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-subtitle {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-controls {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 3;
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.05);
    /* Minimalist background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Thinner border */
    color: var(--primary-white);
    width: 60px;
    /* Slightly larger for easier but elegant interaction */
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(15px);
    z-index: 10;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    color: var(--primary-black);
    transform: scale(1.05);
}

.hero-dots {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-dot {
    width: 40px;
    /* Elegant bar style */
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gold);
    transition: left 0.5s ease;
}

.hero-dot.active {
    background: rgba(255, 255, 255, 0.2);
    height: 3px;
}

.hero-dot.active::after {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-white);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 3;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--primary-gold));
}

/* Featured Categories */
.featured-categories {
    background: #ffffff;
    padding-top: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns for premium grid */
    gap: 2rem;
    margin-top: 4rem;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    /* Remove cheap borders/shadows/bg */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: center;
    /* Center the title below */
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-image {
    position: relative;
    height: 550px;
    /* Taller, more elegant portrait ratio */
    overflow: hidden;
    margin-bottom: 1.5rem;
    /* Space between image and title */
    background: #f5f5f5;
    /* Placeholder color while loading */
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    /* Smoother transition */
}

.category-card:hover .category-image img {
    transform: scale(1.08);
    /* Subtle zoom */
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-title {
    padding: 0;
    font-family: var(--font-primary);
    /* Playfair Display */
    font-size: 1.5rem;
    font-weight: 400;
    /* Lighter weight for elegance */
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-black);
    margin: 0;
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.category-card:hover .category-title::after {
    width: 100%;
}

.category-count {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
    color: var(--primary-gold);
    font-weight: 500;
    margin: 0;
}

/* Signature Collection */
.signature-collection {
    background: var(--primary-white);
    overflow: hidden;
}

.signature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.signature-text {
    padding: 2rem;
}

.signature-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.signature-features {
    list-style: none;
    margin: 2rem 0;
}

.signature-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--soft-black);
    border-bottom: 1px solid var(--cream);
}

.signature-features li:last-child {
    border-bottom: none;
}

.signature-features i {
    color: var(--primary-gold);
    font-size: 1.25rem;
}

.signature-image {
    position: relative;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.signature-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 120px;
    height: 120px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.badge-text {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-white);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured Products */
.featured-products {
    background: var(--cream);
}

.products-grid {
    display: grid;
    /* Default/fallback: 2 columns */
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.5rem, 1.5vw, 1.25rem);
    margin-top: 2.5rem;
    align-items: start;
}

/* Larger breakpoints: progressively increase columns */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.9rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
}

/* Between tablet and small desktop: 2 columns */
@media (min-width: 577px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Mobile / small screens: keep two columns for comfortable previews */
@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

/* Very small phones: 1 column */
@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Brand Story: The Legacy */
.legacy-section {
    background: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.legacy-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.legacy-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.legacy-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--primary-black);
    margin-bottom: 2rem;
}

.legacy-title i {
    font-family: var(--font-secondary);
    font-weight: 400;
    color: var(--dark-gold);
}

.gold-separator {
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin-bottom: 2.5rem;
}

.legacy-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 2rem;
    font-weight: 300;
}

.signature-block {
    margin-top: 3rem;
}

.legacy-logo {
    height: 60px;
    opacity: 0.8;
}

/* Visual Side */
.legacy-visual {
    position: relative;
}

.visual-frame {
    position: relative;
}

.visual-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-gold);
    z-index: -1;
    opacity: 0.3;
}

.visual-frame img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.since-badge {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: var(--primary-white);
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--primary-gold);
}

.since-badge .year {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--primary-black);
    line-height: 1;
}

.since-badge .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .legacy-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

    .gold-separator {
        margin: 0 auto 2.5rem;
    }

    .since-badge {
        left: 20px;
        bottom: 20px;
    }
}

/* Services */
.services {
    background: #ffffff;
    /* White background */
    color: var(--primary-black);
    padding: 6rem 0;
}

.services .section-title {
    color: var(--primary-black);
}

.services .section-subtitle {
    color: var(--primary-gold);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    /* Subtle light shadow */
    transition: all var(--transition-normal);
}

.service-card:hover {
    background: #ffffff;
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(180, 150, 80, 0.15);
    /* Gold tinted shadow on hover */
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-white);
}

.service-card h3 {
    color: var(--primary-black);
    font-size: 1.35rem;
    /* Slightly larger */
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    /* Darker grey for readability */
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    background: #ffffff;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--primary-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Added border for white-on-white visibility */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Refined shadow */
    transition: all var(--transition-normal);
}

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

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    color: var(--primary-gold);
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--soft-black);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--primary-gold);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    padding: 4rem 0;
}

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

.newsletter-content h2 {
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-white);
}

.newsletter-form .btn-primary {
    background: var(--primary-white);
    color: var(--primary-gold);
    border-color: var(--primary-white);
    white-space: nowrap;
}

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

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

    .signature-content,
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .signature-image {
        height: 500px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets and Small Desktops */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    }
}

/* Mobile and Tablets */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        margin-top: -80px;
        /* Offset mobile header height */
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-controls {
        bottom: 2rem;
        gap: 1rem;
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
    }

    .scroll-indicator {
        display: none;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-image {
        height: 300px;
    }

    .signature-text,
    .story-text {
        padding: 1rem;
    }

    .signature-image {
        height: 400px;
    }

    .signature-badge {
        width: 100px;
        height: 100px;
        top: 1rem;
        right: 1rem;
    }

    .badge-text {
        font-size: 0.875rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn-primary {
        width: 100%;
    }
}