/* ------------------------- */
/* --- GLOBAL STYLES & VARIABLES --- */
/* ------------------------- */
:root {
    --font-primary: 'Inter', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    --font-secondary: 'Playfair Display', 'Georgia', serif;
    --color-gold: #c6a14b;
    --color-gold-2: linear-gradient(90deg, #d4af37, #ffd36b);
    --color-dark: #121212;
    --color-light: #f5f5f5;
    --color-text: #ffffff;
    --color-bg: #000000;
    --section-padding: 5rem 2rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* --- NEW CODE ADDED HERE --- */
.title-underline {
  position: relative;          /* This is required for the line positioning */
  display: inline-block;       /* Prevents the line from stretching full-width */
  padding-bottom: 5px;         /* Adds a little space below the text */
}

.title-underline::after {
  content: '';                 /* Required to generate the element */
  position: absolute;
  left: 0;
  
  /* === KEY PART TO ADJUST === */
  /* This moves the line UP from the very bottom. */
  /* Tweak "0.2em" until it's perfectly centered on the text. */
  /* Try values between 0.1em and 0.4em. */
  bottom: 0.2em;

  /* --- Line Style --- */
  width: 80px;                 /* The width of the line */
  height: 2px;                 /* The thickness of the line */
  background-color: var(--color-gold); /* Uses your existing gold color */
}
/* --- END OF NEW CODE --- */


a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Improve image rendering and indicate interactive elements for touch */
img, picture, video {
    image-rendering: auto;
    -webkit-user-drag: none;
}

/* Visible focus states for keyboard users */
*:focus {
    outline: 3px solid rgba(212,175,55,0.25);
    outline-offset: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Site logo image */
.site-logo { height: 42px; width: auto; display: block }
@media (max-width:600px){ .site-logo{ height:36px } }

.cta {
    display: inline-block;
    background: linear-gradient(90deg, rgba(198,161,75,1) 0%, rgba(212,175,55,1) 100%);
    border: none;
    padding: 0.9rem 2.2rem;
    color: var(--color-bg);
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.6px;
    margin-top: 1rem;
    border-radius: 999px; /* pill */
    box-shadow: 0 8px 20px rgba(198,161,75,0.12), inset 0 -2px 6px rgba(0,0,0,0.12);
}

.cta:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 14px 40px rgba(198,161,75,0.14), inset 0 -2px 6px rgba(0,0,0,0.14);
    opacity: 0.98;
}

.cta:active { transform: translateY(-1px) scale(.999); }

/* Secondary CTA variant */
.cta-secondary{
    display:inline-block;
    background:transparent;
    color:var(--color-light);
    border:1px solid rgba(255,255,255,0.08);
    padding:0.7rem 1.2rem;
    border-radius:12px;
    font-weight:600;
}

/* Form controls premium styling */
input[type="text"], input[type="email"], textarea{
    background: rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.06);
    padding:10px 12px;
    border-radius:10px;
    color:var(--color-light);
    width:100%;
}
textarea{ min-height:120px; resize:vertical }
input:focus, textarea:focus{ outline:none; box-shadow:0 6px 18px rgba(198,161,75,0.08); border-color: rgba(198,161,75,0.9) }

/* Premium subtle animated underline for headings */
.section-header h2 {
    position: relative;
}
.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(212,175,55,1), rgba(255,215,102,0.6));
    transition: width 0.45s cubic-bezier(.2,.9,.2,1);
}
.section-header:hover h2::after { width: 90px; }

/* ------------------------- */
/* --- HEADER & NAVIGATION --- */
/* ------------------------- */
#header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    padding: 1rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

#header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--color-gold);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1.2rem;
}

.nav-links a {
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a[href="products.html"]:hover::after {
    width: 100%;
}


.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* ------------------------- */
/* --- HERO SECTION --- */
/* ------------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-overlay {
    animation: fadeIn 1.5s 0.5s forwards;
    opacity: 0;
}

.hero-overlay {
    backdrop-filter: blur(3px);
    background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.45));
    padding: 2rem;
    border-radius: 8px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
    color: var(--color-gold);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.hero p {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    font-weight: 300;
    font-style: italic;
}

/* ------------------------- */
/* --- ABOUT SECTION --- */
/* ------------------------- */
.about {
    padding: var(--section-padding);
    background: var(--color-dark);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ------------------------- */
/* --- PRODUCTS SECTION (HOMEPAGE) --- */
/* ------------------------- */
.products {
    padding: var(--section-padding);
}

.product-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.product-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.product-feature:last-child {
    margin-bottom: 0;
}

.product-feature:nth-child(even) .product-image-container {
    order: 2;
}
.product-feature:nth-child(even) .product-details {
    order: 1;
}

/* --- Image Carousel Styles --- */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.carousel-slide img { transform: translateY(6px) scale(1); transition: transform 0.75s cubic-bezier(.2,.9,.2,1); }
.carousel-slide img.visible { transform: translateY(0) scale(1.02); }

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 10px;
    border-radius: 5px 0 0 5px;
}

.carousel-button.next {
    right: 10px;
    border-radius: 0 5px 5px 0;
}

.thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail-gallery img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Inquiry toast */
.inquiry-toast{
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(18,18,18,0.95);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 2000;
    font-weight: 600;
}
.inquiry-toast.visible{ opacity: 1; transform: translateX(-50%) translateY(0); }
.inquiry-toast.error{ background: linear-gradient(90deg,#8b0000,#c04040); }

.thumbnail-gallery img:hover {
    transform: scale(1.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.thumbnail-gallery img.active {
    border-color: var(--color-gold);
    transform: scale(1.1);
}

.product-details h3 {
    font-size: 2rem;
    color: var(--color-gold);
}

.product-details h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.product-details p {
    margin-bottom: 1rem;
    max-width: 450px;
}

.product-details strong {
    color: var(--color-gold);
}


/* ------------------------- */
/* --- INQUIRY SECTION --- */
/* ------------------------- */
.inquiry {
    padding: var(--section-padding);
    background: var(--color-dark);
}

#inquiry-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #444;
    color: var(--color-text);
    border-radius: 4px;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* ------------------------- */
/* --- FOOTER --- */
/* ------------------------- */
footer {
    padding: 3rem 2rem;
    background: #0a0a0a;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
    text-transform: uppercase;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: #aaa;
}

.footer-contact a {
    color: #aaa;
}

.footer-contact a:hover {
    color: var(--color-gold);
}

.footer-contact .fab {
    margin-right: 0.5rem;
    color: var(--color-gold);
}

.social-icons {
    margin-bottom: 1.5rem;
}

.social-icons a {
    margin: 0 0.8rem;
    font-size: 1.5rem;
    color: #888;
}

.social-icons a:hover {
    color: var(--color-gold);
    transform: scale(1.1);
}

.footer-copy {
    font-size: 0.9rem;
    color: #888;
}

/* ----------------------------------- */
/* --- PRODUCT GALLERY PAGE --- */
/* ----------------------------------- */

.cta-secondary {
    background: transparent;
    color: var(--color-gold);
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.cta-secondary:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}

.product-grid-page {
    padding: var(--section-padding);
    padding-top: 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--color-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-14px) scale(1.01);
    box-shadow: 0 24px 54px rgba(0,0,0,0.6), 0 6px 20px rgba(212,175,55,0.08);
}

.product-card .cta { transition: background 0.25s ease, color 0.25s ease }

.product-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer; /* Added to show the image is clickable */
    transition: opacity 0.3s ease; /* Added for hover effect */
}

.product-card-image:hover {
    opacity: 0.8; /* Added hover effect */
}

.product-card .cta {
    width: 100%;
    border-radius: 0;
    margin-top: auto;
    border: none;
    border-top: 2px solid var(--color-gold);
}

/* ----------------------------------- */
/* --- IMAGE POPUP/MODAL --- */
/* ----------------------------------- */
/* This new section styles the image popup modal. */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top of everything else */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (the image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    /* Animation */
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* Add Animation */
@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* ------------------------- */
/* --- ANIMATIONS & RESPONSIVENESS --- */
/* ------------------------- */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    :root { --section-padding: 3rem 1rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }

    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-text { order: 2; }
    .about-image { order: 1; }

    .product-feature,
    .product-feature:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-feature .product-image-container,
    .product-feature:nth-child(even) .product-image-container {
        order: 1;
    }

    .product-feature .product-details,
    .product-feature:nth-child(even) .product-details {
        order: 2;
        text-align: center;
    }

    .product-details p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* WhatsApp floating widget */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
}
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg,#25D366,#128C7E);
    color: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.whatsapp-btn:hover{ transform: translateY(-4px); box-shadow:0 14px 30px rgba(0,0,0,0.3) }
.whatsapp-btn .wa-icon{ width:22px; height:22px; display:inline-block }
.whatsapp-bubble{ display:none; }
@media (max-width:480px){ .whatsapp-btn span{ display:none } .whatsapp-btn{ padding:0.6rem } }

/* Inline WhatsApp button inside forms */
.whatsapp-inline { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg,#25D366,#128C7E); padding: 0.45rem 0.65rem; border-radius: 40px; }
.whatsapp-inline .wa-icon{ width:18px; height:18px }
.wa-img{ width:22px; height:22px; display:inline-block; object-fit:contain }

/* Ensure primary CTA and whatsapp-inline have same visual height */
.cta, .whatsapp-inline, .whatsapp-btn { line-height:1; display:inline-flex; align-items:center }
.cta { padding: 0.6rem 0.9rem }
.whatsapp-inline { padding: 0.6rem 0.9rem }

/* Form actions: ensure buttons match height and typography */
.form-actions .cta { padding: 0.6rem 0.9rem; font-size: 1rem; min-height: 44px; }
.form-actions .whatsapp-inline { padding: 0.6rem 0.9rem; font-size: 1rem; min-height: 44px; }
.form-actions .wa-img { width:20px; height:20px }