@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
    /* Color Palette */
    --clr-matte-black: #0B0B0B;
    --clr-deep-burgundy: #4A0F1E;
    --clr-antique-gold: #C7A24B;
    --clr-warm-ivory: #F8F6F1;
    --clr-white: #FFFFFF;
    --clr-soft-grey: #A0A0A0;
    --clr-light-grey: #E8E8E8;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Responsive Spacing using clamp */
    --space-sm: clamp(0.75rem, 2vw, 1rem);
    --space-md: clamp(1.5rem, 3vw, 2rem);
    --space-lg: clamp(2.5rem, 6vw, 4rem);
    --space-xl: clamp(4rem, 10vw, 8rem);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-matte-black);
    background-color: var(--clr-warm-ivory);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--clr-matte-black);
}

p {
    margin-bottom: 1rem;
    color: var(--clr-matte-black);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 300;
}

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

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

/* =========================================
   Layout Utilities
   ========================================= */

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

.section {
    padding: var(--space-xl) 0;
}

.section-dark {
    background-color: var(--clr-matte-black);
    color: var(--clr-white);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p {
    color: var(--clr-white);
}

.bg-light {
    background-color: var(--clr-white);
}

.bg-texture-ivory {
    background-color: var(--clr-warm-ivory);
    background-image: url('images/ivory_leather_texture.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-texture-ivory::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(248, 246, 241, 0.85);
    z-index: 1;
}

.bg-texture-ivory .container {
    position: relative;
    z-index: 2;
}

/* =========================================
   Typography Utilities
   ========================================= */

.text-center { text-align: center; }
.text-gold { color: var(--clr-antique-gold); }
.text-muted { color: var(--clr-soft-grey); }

.label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--clr-antique-gold);
    margin-bottom: var(--space-sm);
    display: inline-block;
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-transform: uppercase;
    gap: 0.5rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-antique-gold);
    color: var(--clr-matte-black);
}

.btn-primary:hover {
    background-color: #b59240;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--clr-antique-gold);
    color: var(--clr-white);
}

.btn-secondary:hover {
    background-color: rgba(199, 162, 75, 0.15);
    transform: translateY(-2px);
}

/* BUG FIX: Secondary buttons on light backgrounds need dark text */
.bg-light .btn-secondary,
.section .btn-secondary {
    color: var(--clr-matte-black);
}

/* Override: Secondary buttons on dark sections stay white */
.hero .btn-secondary,
.cta-banner .btn-secondary,
.section-dark .btn-secondary,
.full-width-image .btn-secondary {
    color: var(--clr-white);
}

/* =========================================
   Animations
   ========================================= */

.fade-in {
    opacity: 0;
    animation: fadeIn var(--transition-slow) forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp var(--transition-slow) forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* =========================================
   Navigation
   ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: transparent;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 55px;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    color: var(--clr-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-antique-gold);
    transition: width var(--transition-fast);
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--clr-white);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

/* BUG FIX: Scrolled navbar is DARK, so toggle must stay WHITE */
/* (Previously changed to black which was invisible on dark bg) */
.navbar.scrolled .mobile-menu-toggle {
    color: var(--clr-white);
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background-color: var(--clr-matte-black);
    color: var(--clr-soft-grey);
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* BUG FIX: All text inside footer must be light-colored */
.footer p {
    color: var(--clr-soft-grey);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-logo img {
    height: 80px;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}

.footer-desc {
    max-width: 400px;
}

.footer h4 {
    color: var(--clr-white);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
    color: var(--clr-soft-grey);
}

.footer-links a {
    color: var(--clr-soft-grey);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-antique-gold);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: var(--space-sm);
    word-break: break-word;
}

.footer-contact i {
    color: var(--clr-antique-gold);
    font-size: 1.2rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================================
   Hero Sections
   ========================================= */

.hero {
    min-height: 100vh;
    padding-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--clr-white);
    padding-top: var(--space-xl);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11,11,11,0.95) 0%, rgba(74, 15, 30, 0.45) 100%);
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--space-md);
    color: var(--clr-white);
}

/* BUG FIX: Hero text was inheriting black from global p rule */
.hero-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--clr-light-grey);
    margin-bottom: var(--space-lg);
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* =========================================
   Grid Layouts
   ========================================= */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

/* BUG FIX: 3-column grid variant for partnership section 5 and contact section 4 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

/* =========================================
   Content Sections
   ========================================= */

.intro-text h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: var(--space-md);
}

.intro-image img {
    width: 100%;
    height: clamp(300px, 50vh, 600px);
    object-fit: cover;
    box-shadow: 10px 10px 0px var(--clr-antique-gold);
}

/* Cards */
.card {
    background: var(--clr-white);
    padding: var(--space-md);
    border: 1px solid var(--clr-light-grey);
    transition: all var(--transition-fast);
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--clr-antique-gold);
}

.card i {
    font-size: 2.5rem;
    color: var(--clr-antique-gold);
    margin-bottom: var(--space-sm);
    display: block;
}

.card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: var(--space-sm);
}

/* =========================================
   Full-Width Image Section (Craftsmanship)
   ========================================= */

.full-width-image {
    position: relative;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-white);
    padding: var(--space-md) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.full-width-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11,11,11,0.8) 0%, rgba(74, 15, 30, 0.5) 100%);
    z-index: 1;
}

.full-width-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--space-md);
}

.full-width-content h2 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin-bottom: var(--space-sm);
    color: var(--clr-white);
}

/* BUG FIX: Text inside full-width overlay was black (invisible) */
.full-width-content p {
    color: var(--clr-light-grey);
}

/* =========================================
   Trust Strip (Hero)
   ========================================= */

.trust-strip {
    display: flex;
    gap: var(--space-md);
    color: var(--clr-white);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--clr-white);
}

.trust-item i {
    color: var(--clr-antique-gold);
}

/* =========================================
   CTA Banner
   ========================================= */

.cta-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    color: var(--clr-white);
    padding: var(--space-xl) var(--space-md);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(74, 15, 30, 0.85) 0%, rgba(11,11,11,0.95) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--clr-white);
    margin-bottom: var(--space-md);
}

/* BUG FIX: Text inside CTA banner was black (invisible on dark overlay) */
.cta-content p {
    color: var(--clr-light-grey);
}

/* =========================================
   Icon List (Global Partnerships)
   ========================================= */

.icon-list {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.icon-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 500;
}

.icon-list-item i {
    color: var(--clr-antique-gold);
    font-size: 1.5rem;
}

/* =========================================
   Contact Form
   ========================================= */

.contact-form {
    background: var(--clr-white);
    padding: var(--space-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border-top: 4px solid var(--clr-antique-gold);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-matte-black);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--clr-light-grey);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: #FAFAFA;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-antique-gold);
    background: var(--clr-white);
    box-shadow: 0 0 0 3px rgba(199, 162, 75, 0.1);
}

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

.alert {
    padding: 15px 20px;
    margin-bottom: var(--space-md);
    border-left: 4px solid;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
    color: #27ae60;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #c0392b;
}

/* =========================================
   Timeline
   ========================================= */

.timeline-step {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.timeline-icon {
    flex-shrink: 0;
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    border-radius: 50%;
    background: var(--clr-warm-ivory);
    border: 2px solid var(--clr-antique-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-antique-gold);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.timeline-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    margin-bottom: 0.5rem;
}

/* =========================================
   Responsive — Tablet (max 992px)
   ========================================= */

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

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .intro-image img {
        box-shadow: none !important;
    }
    
    .hero-content {
        padding-top: 2rem;
    }
}

/* =========================================
   Responsive — Mobile (max 768px)
   ========================================= */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--clr-matte-black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-fast);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 10px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .trust-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .icon-list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .logo img {
        height: 60px;
    }

    .navbar.scrolled .logo img {
        height: 45px;
    }
}

/* =========================================
   Responsive — Small Mobile (max 576px)
   ========================================= */

@media (max-width: 576px) {
    .grid-4,
    .grid-3 { 
        grid-template-columns: 1fr; 
    }
    
    .contact-form {
        padding: var(--space-md);
    }
    
    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
