/* Federica Holdings - Professional Industrial Design v2 */

:root {
    --primary-navy: #3A342D;
    --secondary-navy: #4A4239;
    --accent-gold: #C1783C;
    --light-gold: #F4D49D;
    --text-dark: #222;
    --text-light: #6E655B;
    --bg-light: #F5EFE6;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #33302B;
    background: #FBF8F3;
    line-height: 1.65;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER & NAVIGATION */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FBF8F3;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #EBE2D3;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    min-height: 96px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-img {
    height: 82px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    flex: 1;
    margin-left: 40px;
    padding: 0 20px;
}

.nav-link {
    text-decoration: none;
    color: #33302B;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-navy);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent-gold);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.btn-primary-nav {
    background: var(--accent-gold);
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary-nav:hover {
    background: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* HERO SECTION */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 140px 20px;
    text-align: left;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 66, 57, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-gold);
    color: #fff;
}

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

.btn-secondary {
    background: transparent;
    color: #33302B;
    border: 2px solid #33302B;
}

.btn-secondary:hover {
    background: #33302B;
    color: #fff;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 13px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 11px;
}

.btn-small-alt {
    padding: 8px 16px;
    font-size: 11px;
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-small-alt:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

/* TRUST BAR */
.trust-bar {
    background: #F3EBDE;
    padding: 60px 20px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.trust-item {
    text-align: center;
    color: #33302B;
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.trust-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-gold);
}

.trust-item p {
    font-size: 13px;
    opacity: 0.9;
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 25px;
}

.view-all {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 15px;
}

.view-all:hover {
    color: var(--primary-navy);
}

/* CATEGORIES SECTION */
.categories-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

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

.category-card {
    background: white;
    padding: 30px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent-gold);
}

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

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-weight: 600;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.category-card a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.category-card a:hover {
    color: var(--primary-navy);
}

/* INDUSTRIES SECTION */
.industries-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.industry-card {
    background: white;
    padding: 40px 20px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-navy);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-gold);
}

.industry-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.industry-card h3 {
    font-size: 18px;
    font-weight: 600;
}

/* HOW WE WORK SECTION */
.how-we-work {
    padding: 80px 20px;
    background: var(--bg-white);
}

.process-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.process-step h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.process-step p {
    font-size: 13px;
    color: var(--text-light);
}

.process-arrow {
    font-size: 32px;
    color: var(--accent-gold);
    font-weight: 300;
}

/* FEATURED SECTION */
.featured-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.products-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-navy);
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    z-index: 2;
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-category {
    font-size: 12px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-price {
    font-size: 18px;
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 15px;
}

.product-info > a {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-navy) 0%, var(--primary-navy) 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 64px;
    margin-bottom: 25px;
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FOOTER */
.footer {
    background: #F0E8DA;
    color: #4A443C;
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 12px;
}

.social-icon:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #6B635B;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-col strong {
    display: block;
    margin-bottom: 4px;
    color: #33302B;
}

.footer-bottom {
    border-top: 1px solid #DDD2C0;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 12px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #6B635B;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .process-grid {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

    /* ---- Mobile navigation ---- */
    .navbar {
        flex-wrap: wrap;
        position: relative;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    /* Collapsed menu drops down as a full-width panel */
    .nav-menu {
        display: none;
        order: 4;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 12px 0 0;
        padding: 0;
        background: var(--secondary-navy, #4A4239);
        border-radius: 6px;
        overflow: hidden;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu > li > .nav-link {
        display: block;
        padding: 14px 18px;
    }

    /* Dropdowns become inline accordions on mobile */
    .nav-dropdown .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.18);
        min-width: 0;
        padding: 0;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding-left: 34px;
    }

    /* The nav quote button sits full-width above the menu panel */
    .btn-primary-nav {
        order: 2;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .categories-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }

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

/* ---- Homepage hero slider ---- */
.hero-slider {
    position: relative;
    width: 100%;
    height: clamp(340px, 42vw, 760px);
    overflow: hidden;
    background: #3A342D;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}
.hero-slider::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(58,52,45,0.82), rgba(58,52,45,0));
    pointer-events: none;
    z-index: 1;
}
.hero-caption {
    position: absolute;
    left: 50%; bottom: 40px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-caption-text {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    max-width: 620px;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    line-height: 1.5;
}
.hero-caption-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-dots {
    position: absolute;
    bottom: 24px; right: 40px;
    z-index: 3;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}
.hero-dot.active { background: #C1783C; border-color: #C1783C; }

@media (max-width: 768px) {
    .hero-caption { left: 20px; right: 20px; transform: none; bottom: 26px; }
    .hero-caption-text { font-size: 15px; }
    .hero-caption-ctas .btn-lg { flex: 1; text-align: center; }
    .hero-dots { right: 20px; bottom: 16px; }
}

/* Hero caption buttons stay readable on the photo slider */
.hero-caption .btn-secondary { color: #fff; border-color: #fff; }
.hero-caption .btn-secondary:hover { background: #fff; color: #33302B; }
