/* =====================================
   IBEXCAPRA ENTERPRISES (ICE)
   Luxury Equestrian & Manufacturing
===================================== */

/* ==========================
   LOCAL FONTS
========================== */

@font-face{
    font-family:'Montserrat';
    src:url('../fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight:400;
    font-style:normal;
    font-display:optional ;
}

@font-face{
    font-family:'Montserrat';
    src:url('../fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight:500;
    font-style:normal;
    font-display:optional ;
}

@font-face{
    font-family:'Montserrat';
    src:url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight:600;
    font-style:normal;
    font-display:optional ;
}

@font-face{
    font-family:'Montserrat';
    src:url('../fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight:700;
    font-style:normal;
    font-display:optional ;
}

@font-face{
    font-family:'Cinzel';
    src:url('../fonts/Cinzel-Regular.woff2') format('woff2');
    font-weight:400;
    font-style:normal;
    font-display:optional ;
}

@font-face{
    font-family:'Cinzel';
    src:url('../fonts/Cinzel-SemiBold.woff2') format('woff2');
    font-weight:600;
    font-style:normal;
    font-display:optional ;
}

:root{
    --black:#111111;
    --gold:#C9A14A;
    --brown:#5C4033;
    --ivory:#F7F3EB;
    --gray:#777777;
    --light:#f8f8f8;

    --container:1200px;
    --transition:0.3s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#fff;
    color:#222;
    line-height:1.7;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

.container{
    width:90%;
    max-width:var(--container);
    margin:auto;
}

/* =====================
   HEADER
===================== */

header{
    background:#fff;
    border-bottom:1px solid #ececec;
    position:sticky;
    top:0;
    z-index:1000;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo{
    font-family:'Cinzel',serif;
}

.logo h1{
    font-size:28px;
    color:var(--black);
}

.logo h1,
h1,
h2,
h3{

    font-family:'Cinzel',serif;
}

.logo span{
    font-size:12px;
    letter-spacing:2px;
    color:var(--gold);
}

.logo a{
    text-decoration:none;
    color:inherit;
}

.nav-links{
    display:flex;
    /*gap:30px;*/
    gap:20px;
}

.nav-links a{
    font-weight:500;
    transition:var(--transition);
}

.nav-links a:hover{
    color:var(--gold);
}

.nav-links a.active{
    color:var(--gold);
    border-bottom:2px solid var(--gold);
    padding-bottom:5px;
    font-weight:600;
}

/* =====================
   HERO
===================== */

.hero{
    min-height:90vh;
    background:
    linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.55)
    ),
    url('../images/hero-banner.jpg');
    background-color:var(--brown);
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
}

.hero{
    min-height:90vh;
    display:flex;
    align-items:center;
    background-color:#111;
}

.hero-content{
    color:#fff;
    /*max-width:700px;*/
    max-width:800px;
}

.hero-content h1{
    font-family:'Cinzel',serif;
    font-size:58px;
    line-height:1.2;
    margin-bottom:20px;
}

.hero-content p{
    font-size:20px;
    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    padding:14px 30px;
    border-radius:4px;
    font-weight:600;
    transition:var(--transition);
}

.btn-gold{
    background:var(--gold);
    color:#fff;
    font-family: inherit;
}

.btn-gold:hover{
    opacity:.9;
}

.btn-outline{
    border:2px solid #fff;
    color:#fff;
}

.btn-outline:hover{
    background:#fff;
    color:#111;
}

/* =====================
   SECTION
===================== */

section{
    padding:90px 0;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-family:'Cinzel',serif;
    font-size:42px;
    margin-bottom:10px;
}

.section-title p{
    color:var(--gray);
}

/* =====================
   ABOUT
===================== */

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.about-grid.reverse > div:first-child{
    order: 2;
}

.about-content h3{
    font-size:28px;
    margin-bottom:20px;
}

.about-content p{
    margin-bottom:15px;
}

/* =====================
   PRODUCTS
===================== */

.product-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.product-card{
    background:#fff;
    border:1px solid #eee;
    overflow:hidden;
    transition:var(--transition);
}

.product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.product-card img{
    /*height:250px;*/
    height:320px;
    object-fit:cover;
    width:100%;
}

.product-card-content{
    padding:25px;
}

.product-card h3{
    margin-bottom:10px;
}

/*====================================
  COLLECTION CTA
====================================*/

.collection-cta{

    margin-top:30px;
}

.collection-note{

    color:#666;
    margin-bottom:20px;
    line-height:1.8;
    font-size:0.95rem;

}

/*====================================
  OUTLINE BUTTON
====================================*/

.collection-button{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:14px 30px;
    border:1px solid var(--gold);
    border-radius:4px;
    color:var(--gold);
    text-decoration:none;
    text-transform:uppercase;
    letter-spacing:1.5px;
    font-size:0.85rem;
    font-weight:600;
    background:transparent;
    min-width:240px;
    transition:all .35s ease;

}

.collection-button .arrow{
    transition:transform .35s ease;
}

.collection-button:hover{
    background:var(--gold);
    color:#111;
    border-color:var(--gold);
}

.collection-button:hover .arrow{

    transform:translateX(6px);
}

/* =====================
   MANUFACTURING
===================== */

.dark-section{
    background:var(--black);
    color:#fff;
}

.features{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.feature-box{
    background:rgba(255,255,255,.05);
    padding:30px;
    border-left:4px solid var(--gold);
}

.feature-box h4{
    margin-bottom:12px;
}

/* =====================
   WHY ICE
===================== */

.why-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.why-card{
    padding:35px;
    border:1px solid #eee;
    text-align:center;
}

.why-card h3{
    margin-bottom:15px;
    color:var(--gold);
}

/* =====================
   CTA
===================== */

.cta{
    background:var(--gold);
    color:#fff;
    text-align:center;
}

.cta h2{
    font-family:'Cinzel',serif;
    font-size:42px;
    margin-bottom:20px;
}

.cta p{
    max-width:700px;
    margin:auto;
    margin-bottom:30px;
}

/* =====================
   FOOTER
===================== */

footer{
    background:#111;
    color:#fff;
    padding:70px 0 30px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
    margin-bottom:50px;
}

.footer-grid h3{
    margin-bottom:20px;
    color:var(--gold);
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.1);
    padding-top:20px;
    text-align:center;
    font-size:14px;
}

/* =====================
   CONTACT FORM
===================== */

.contact-form{
    max-width:700px;
    margin:auto;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    border:1px solid #ddd;
    font-family:inherit;
}

/*.contact-form select{
    font-family: inherit;
    padding: 15px;

    
}*/

.contact-form select{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    border:1px solid #ddd;
    font-family:inherit;
}

.contact-form textarea{
    height:180px;
    resize:vertical;
}

/* ==========================
   CONTACT FORM STATUS MESSAGES
========================== */

.form-success,
.form-error{
    max-width:640px;
    margin:0 auto 30px;
    padding:14px 20px;
    border-radius:4px;
    font-size:0.95rem;
    line-height:1.5;
    text-align:center;
}

.form-success{
    color:#C9A14A;
    background:rgba(201,161,74,0.08);
    border:1px solid rgba(201,161,74,0.45);
}

.form-error{
    color:#E08A7E;
    background:rgba(224,110,94,0.08);
    border:1px solid rgba(224,110,94,0.45);
}

/* =====================
   MOBILE
===================== */

@media(max-width:992px){

    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .features{
        grid-template-columns:repeat(2,1fr);
    }

    .why-grid{
        grid-template-columns:1fr;
    }

    .about-grid{
        grid-template-columns:1fr;
    }

    .about-grid.reverse > div:first-child{
        order: 0;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }

    .hero-content h1{
        font-size:42px;
    }
}

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        /*gap:20px;*/
        gap:20px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
    }

    .product-grid{
        grid-template-columns:1fr;
    }

    .features{
        grid-template-columns:1fr;
    }

    .section-title h2{
        font-size:32px;
    }

    .hero-content h1{
        font-size:36px;
    }
}

/*
Media query for the error/info messages in the contact form.
*/
@media (max-width:480px){
    .form-success,
    .form-error{
        padding:12px 14px;
        font-size:0.9rem;
    }
}

/* =====================================
   NEW CATEGORY & PRODUCT DETAIL PAGES
===================================== */

/* Category page hero (shorter than homepage hero) */
.category-hero{
    min-height:60vh;
}

/* Small gold label above hero/section headings */
.section-tag{
    display:inline-block;
    color:var(--gold);
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:0.8rem;
    font-weight:600;
    margin-bottom:15px;
}

/* Same treatment as .section-title, for pages using .section-heading */
.section-heading{
    text-align:center;
    margin-bottom:60px;
}

.section-heading h2{
    font-family:'Cinzel',serif;
    font-size:42px;
    margin-bottom:10px;
}

.section-heading p{
    color:var(--gray);
}

/* Light alternating section background */
.section-light{
    background:var(--light);
}

/* Primary button — same look as .btn-gold */
.btn-primary{
    background:var(--gold);
    color:#fff;
}

.btn-primary:hover{
    opacity:.9;
}

/* Outline button for light backgrounds (detail page) */
.btn-outline-dark{
    border:2px solid var(--black);
    color:var(--black);
}

.btn-outline-dark:hover{
    background:var(--black);
    color:#fff;
}

/* Why-ICE feature cards on category pages */
.feature-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.feature-card{
    padding:35px;
    border:1px solid #eee;
    text-align:center;
}

.feature-card h3{
    margin-bottom:15px;
    color:var(--gold);
}

/* Bottom call-to-action band — same look as .cta */
.cta-section{
    background:var(--gold);
    color:#fff;
    text-align:center;
}

.cta-section h2{
    font-family:'Cinzel',serif;
    font-size:42px;
    margin-bottom:20px;
}

.cta-section p{
    max-width:700px;
    margin:auto;
    margin-bottom:30px;
}

/* "View Details" link inside product cards */
.card-link{
    display:inline-block;
    margin-top:5px;
    color:var(--gold);
    font-weight:600;
    transition:var(--transition);
}

.card-link:hover{
    letter-spacing:0.5px;
}

/* Product detail page */
.breadcrumb{
    margin-bottom:40px;
    color:var(--gray);
    font-size:0.9rem;
}

.breadcrumb a{
    color:var(--gold);
}

.product-detail-title{
    font-family:'Cinzel',serif;
    font-size:38px;
    margin-bottom:20px;
}

.product-detail .about-content h3{
    font-size:22px;
    margin-top:10px;
}

.spec-list{
    margin-bottom:30px;
}

.spec-list li{
    padding:4px 0;
}

/* Responsive rules for the new classes only */
@media(max-width:992px){

    .feature-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){

    .feature-grid{
        grid-template-columns:1fr;
    }

    .product-detail-title{
        font-size:30px;
    }
}

/* =====================================
   NAV DROPDOWN & BREADCRUMBS
===================================== */

.nav-links > li{
    position:relative;
}

.caret{
    font-size:0.7em;
    color:var(--gold);
}

.dropdown-menu{
    position:absolute;
    top:calc(100% + 20px);
    left:50%;
    transform:translateX(-50%);
    background:#fff;
    border:1px solid #ececec;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    min-width:230px;
    padding:10px 0;
    opacity:0;
    visibility:hidden;
    transition:var(--transition);
    z-index:1001;
}

/* Invisible bridge so the pointer can travel from the link
   to the menu without the hover state dropping. */
.dropdown-menu::before{
    content:'';
    position:absolute;
    top:-22px;
    left:0;
    width:100%;
    height:22px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu{
    opacity:1;
    visibility:visible;
}

.dropdown-menu li{
    display:block;
}

.dropdown-menu a{
    display:block;
    padding:10px 20px;
    font-weight:500;
}

.dropdown-menu a:hover{
    color:var(--gold);
    background:var(--light);
}

.dropdown-menu a.active{
    color:var(--gold);
    font-weight:600;
    border-bottom:none;
    padding-bottom:10px;
}

/* Stacked navbar: show categories inline under Products */
@media(max-width:768px){

    .dropdown-menu{
        position:static;
        transform:none;
        opacity:1;
        visibility:visible;
        border:none;
        box-shadow:none;
        padding:0;
        min-width:0;
        text-align:center;
    }

    .dropdown-menu::before{
        display:none;
    }

    .dropdown-menu a{
        padding:6px 0;
        font-size:0.95rem;
    }
}

/* =====================================
   PRODUCT DETAIL IMAGE ZOOM
===================================== */

.product-detail .about-grid > div:first-child{
    overflow:hidden;
}

.product-detail .about-grid img{
    display:block;
    width:100%;
    transition:transform .5s ease;
}

.product-detail .about-grid > div:first-child:hover img{
    transform:scale(1.06);
}

/* =====================================
   MOBILE HAMBURGER MENU
   (Later rules supersede the earlier stacked-navbar
   rules at 768px — nothing needs deleting.)
===================================== */

.nav-toggle{
    display:none;
    background:none;
    border:none;
    cursor:pointer;
    padding:6px;
}

.nav-toggle span{
    display:block;
    width:26px;
    height:2px;
    background:#111;
    margin:6px 0;
    transition:var(--transition);
}

@media(max-width:768px){

    /* Navbar returns to a single row: logo left, hamburger right */
    .navbar{
        flex-direction:row;
        justify-content:space-between;
        gap:0;
    }

    .nav-toggle{
        display:block;
    }

    /* Menu becomes a hidden panel under the sticky header */
    header nav{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#fff;
        border-top:1px solid #ececec;
        box-shadow:0 12px 24px rgba(0,0,0,.06);
        display:none;
    }

    header nav.open{
        display:block;
    }

    .nav-links{
        flex-direction:column;
        flex-wrap:nowrap;
        justify-content:flex-start;
        gap:0;
        padding:12px 5% 18px;
    }

    .nav-links a{
        display:block;
        padding:10px 0;
    }

    /* Category links indent under Products, left-aligned */
    .dropdown-menu{
        text-align:left;
        padding-left:15px;
    }

    /* Hamburger morphs into an X when open */
    .nav-toggle.open span:nth-child(1){
        transform:translateY(8px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2){
        opacity:0;
    }

    .nav-toggle.open span:nth-child(3){
        transform:translateY(-8px) rotate(-45deg);
    }
}