@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;600&family=Montserrat:wght@400;500;600;700&display=swap');

/* --- RESET & VARIABLES --- */
:root {
    --primary-red: #D71920;
    /* Tefute Brand Red approximation */
    --primary-dark: #8a0e14;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --text-light: #f4f4f4;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --max-width: 1240px;
    --header-height: 110px;
    --topbar-h: 40px;
    --ribbon-w: 210px;
    --ribbon-x: 51px;
    /* Verified offset from container edge */
    --nav-pad-right: 51px;
    /* Verified right padding/offset */
    --get-sample-w: 168px;
    /* Verified button width */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;

    /* Placeholder color */
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

.text-red {
    color: var(--primary-red);
}

.text-center {
    text-align: center;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-header {
    background-color: #1a1a1a;
    /* Black box */
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 2px;
    font-size: 14px;
    /* Increased from 12px */
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid #1a1a1a;
    transition: all 0.3s ease;
}

.btn-header:hover {
    background-color: transparent;
    color: #1a1a1a !important;
    border-color: #1a1a1a;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-red);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* --- HEADER & NAV --- */
/* --- HEADER & NAV --- */
.top-bar {
    background-color: #111;
    padding: 10px 0;
    font-size: 12px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 9999;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 96%;
    /* Push to edges */
    padding: 0 20px;
    height: 100%;
}

.pro-link {
    color: #f1c40f !important;
    /* Accent Gold */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.3s;
}

.pro-link:hover {
    color: #fff !important;
}

.top-links span {
    margin-right: 15px;
}

.top-bar .container .top-links:first-child {
    padding-left: 40px;
}

.topbar-pill {
    margin-left: 58px;
}

header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.3s ease;
    margin-top: 0;
    /* Remove margin as logo will adhere to topbar */
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 96%;
    /* Push to edges */
    /* Push to edges */
    padding: 0 20px 0 calc(var(--ribbon-w) + 20px);
}

.nav-links-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

/* --- LOGO BADGE --- */
/* --- LOGO BADGE (Ribbon) --- */
.tefute-logo-ribbon {
    position: absolute;
    top: 0;
    left: 20px;
    width: var(--ribbon-w);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: none;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    z-index: 2500;
    padding-bottom: 25px;
    display: flex;
    justify-content: center;
    border-radius: 0 0 2px 2px;
}

.tefute-logo-ribbon__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px 10px 5px;
    width: 100%;
}

.tefute-logo-ribbon__img {
    width: 100%;
    max-width: 160px;
    height: auto;
    display: block;
    object-fit: contain;
}

.tefute-logo-ribbon__sub {
    font-size: 10px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.logo-wrapper {
    display: none;
    /* Disable old wrapper */
}

/* Responsive Ribbon */
@media (max-width: 1100px) {
    :root {
        --ribbon-w: 180px;
    }

    .tefute-logo-ribbon__img {
        max-width: 140px;
    }
}

@media (max-width: 900px) {
    :root {
        --ribbon-w: 150px;
    }

    .tefute-logo-ribbon__img {
        max-width: 110px;
    }

    .tefute-logo-ribbon__sub {
        display: none;
    }
}

@media (max-width: 768px) {
    .tefute-logo-ribbon {
        display: none;
    }

    .nav-container {
        padding-left: 20px;
    }
}

.nav-menu {
    display: flex;
    gap: 50px;
    align-items: center;
}

.nav-item {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    /* Increased from 12px */
    /* Smaller but uppercase matching Test.html */
    padding: 25px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

.nav-item>a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-item>a:hover {
    color: var(--primary-red);
}

/* Mega Menu Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary-red);
    min-width: 220px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    border-radius: 0 0 4px 4px;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--text-gray);
    white-space: nowrap;
}

.dropdown li a:hover {
    background-color: var(--off-white);
    color: var(--primary-red);
    padding-left: 25px;
    /* Slight movement */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* --- HERO SECTION --- */
/* --- HERO CAROUSEL --- */
.hero-carousel {
    position: relative;
    height: 90vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    animation: zoomOut 20s infinite alternate;
}

/* Overlay handled by HTML gradient */

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(215, 25, 32, 0.8);
    /* Brand Red */
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.9;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title i {
    font-weight: 400;
    font-family: var(--font-serif);
}

.hero-content h1 {
    /* Legacy fallback, overridden by .hero-title if applied */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 60px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}



/* --- SECTIONS GENERAL --- */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* --- WHO WE SERVE --- */
.serve-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .serve-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.serve-card {
    background-color: var(--off-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    position: relative;
}

.serve-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.serve-img {
    height: 250px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
}

.serve-content {
    padding: 40px;
}

.serve-content ul {
    margin: 20px 0 30px;
}

.serve-content li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.serve-content li::before {
    content: "•";
    color: var(--primary-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- PRODUCT GRID --- */
.bg-light {
    background-color: var(--off-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    height: 220px;
    background-color: #ddd;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-body h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-body p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.product-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.link-text {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- WHY TEFUTE (TRUST) --- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 900px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-box {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: 0.3s;
}

.feature-box:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-red);
}

.cert-bar {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0.6;
    filter: grayscale(100%);
}

/* --- PRO TOOLBOX --- */
.toolbox-section {
    background-color: #2c2c2c;
    color: var(--white);
    padding: 80px 0;
}

.toolbox-section h2 {
    color: var(--white);
}

.toolbox-section p {
    color: #ccc;
}

.toolbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tool-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.tool-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
}

.tool-card h4 {
    margin-bottom: 10px;
    color: var(--white);
}

.tool-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-link {
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- BLOG --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.blog-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* --- ENGINEERED FOR PERFORMANCE (REDESIGN) --- */
#why-tefute {
    padding: 5rem 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* Technical background pattern */
#why-tefute::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

#why-tefute .section-header {
    margin-bottom: 3.5rem;
}

#why-tefute .section-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

#why-tefute .section-header p {
    font-size: 1.15rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
}

/* Feature Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e0e0e0;
    position: relative;
    top: 0;
}

.feature-card:hover {
    top: -8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #D71920;
    /* Brand Red Highlight */
}

/* Icon Styling */
.icon-circle {
    width: 70px;
    height: 70px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-circle {
    background: #D71920;
    border-color: #D71920;
}

.icon-circle i {
    font-size: 1.75rem;
    color: #D71920;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-circle i {
    color: #ffffff;
}

.icon-circle img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-circle img {
    filter: brightness(0) invert(1);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #222;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Certification Bar */
.cert-container {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.2rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-weight: 700;
    color: #444;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-item i {
    color: #28a745;
    /* Green checkmark */
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .cert-badges {
        flex-direction: column;
        width: 100%;
    }

    .badge-item {
        width: 100%;
        justify-content: center;
    }
}

/* --- AVAILABLE FINISHES (REDESIGN) --- */
.colors {
    background-color: var(--white);
    padding-bottom: 100px;
}

.color-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.color-card {
    /* Mobile: 1 col */
    width: 100%;
    max-width: 320px;
    /* Cap size to match Wood Shake reference */
    flex: 0 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

/* Tablet: 2 cols */
@media (min-width: 600px) {
    .color-card {
        width: calc((100% - 30px) / 2);
    }
}

/* Desktop: 3 cols (User requested max 3 items per row) */
@media (min-width: 1100px) {
    .color-card {
        width: calc((100% - 60px) / 3);
    }
}

.color-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-red);
}

/* This forces a perfect square (1:1 aspect ratio) */
.card-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Optional glossy overlay */
.card-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.card-info {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.card-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* --- COLOR TEXTURES --- */
/* Use the actual uploaded file for black */
.bg-black-tile {
    background-color: #1a1a1a;
}

/* CSS Fallbacks/Simulations for others (Replace with real images later) */
.bg-terracotta {
    background: radial-gradient(circle at 50% 50%, #c56a4e, #8b4513);
}

.bg-chestnut {
    background: radial-gradient(circle at 50% 50%, #795548, #3e2723);
}

.bg-mission {
    background: radial-gradient(circle at 50% 50%, #e6b980, #d4a05f);
}

.bg-redblack {
    background: linear-gradient(135deg, #8b0000 25%, #222 25%, #222 50%, #8b0000 50%, #8b0000 75%, #222 75%);
    background-size: 20px 20px;
}

.bg-blue {
    background: #34495e;
}

.bg-green {
    background: #2ecc71;
}

.bg-scarlet {
    background: #c0392b;
}

/* Bond Scarlet */
.bg-dark-red {
    background: #8b0000;
}

/* Roman II Scarlet */
.bg-coffee {
    background: #4e342e;
}

.bg-grey {
    background: #757575;
}

.bg-teak {
    background: #a1887f;
}

.bg-flint {
    background: #607d8b;
}

.bg-silvergrey {
    background: #c0c0c0;
}

.bg-white {
    background: #fdfdfd;
    border: 1px solid #ddd;
}

.bg-whiteblack {
    background: linear-gradient(135deg, #eee, #111);
}

.bg-weathered {
    background: #8d8d8d;
}

.bg-cedar {
    background: #a1887f;
}

.bg-timber {
    background: #6d4c41;
}

footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding-top: 70px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary-red);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--primary-red);
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* --- UTILITIES --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-red);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 99;
    font-size: 1.5rem;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .logo-wrapper {
        left: 2%;
        padding: 10px 15px 15px 15px;
        z-index: 1001;
    }

    .logo-img {
        width: 110px;
    }

    .nav-links-wrapper {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - var(--header-height));
        background: var(--white);
        z-index: 1000;
        border-top: 1px solid #eee;
        overflow-y: auto;
    }

    .nav-links-wrapper.active {
        display: block !important;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 0;
        display: flex;
    }

    .nav-item {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
        opacity: 1;
        visibility: visible;
        background-color: #fafafa;
        margin-top: 10px;
    }

    /* Show dropdown on click for mobile logic would go here, 
       for CSS only approach we keep it hidden unless specific class toggles */
    .nav-item:hover .dropdown {
        display: block;
        /* Simple fallback for mobile hover/tap */
    }

    .hamburger {
        display: flex;
        margin-left: auto;
        z-index: 1002;
        position: relative;
    }

    .btn-header-cta {
        display: block;
        margin-top: 10px;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.nav-left {
    margin-right: auto;
}

.nav-right {
    margin-left: auto;
}

/* --- SECTION BACKGROUND UTILITIES --- */
.section-white {
    background-color: #ffffff;
}

/* --- DARK SECTION (Engineered for Performance) --- */
.section-dark {
    background-color: #1a252f !important;
    color: #ffffff;
    position: relative;
}

.section-dark .section-header h2,
.section-dark .section-header p {
    color: #ffffff !important;
}

.section-dark .feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.section-dark .feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.section-dark .icon-circle {
    background-color: #ffffff;
    color: #D71920;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 1.5rem;
}

.section-dark h4 {
    color: #fff;
    margin-bottom: 10px;
}

.section-dark p {
    color: #ccc;
}

.section-dark .cert-container {
    padding: 25px 0;
    background: transparent !important;
}

.section-dark .cert-badges {
    margin-top: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: transparent !important;
}

.section-dark .badge-item {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
}

.section-dark .badge-item i {
    color: #4CAF50;
    margin-right: 0.5rem;
}

/* --- GLOBAL LAYOUT & UI --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    font-weight: bold;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #000;
    transform: translateY(-5px);
}

/* =========================================
   NEW RESPONSIVE HEADER STYLES
   ========================================= */

/* 1. Header Layout Refactor (Flexbox) */
.nav-container {
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

/* Make logo part of the flow (remove absolute) */
.logo-wrapper {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    padding: 15px 20px 30px 20px !important;
    /* Force override */
    /* Maintain visual style */
    background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
    z-index: 1002;
    margin-right: 20px;
}

.logo-img {
    width: 160px;
    /* Adjusted size */
}

/* Nav Wrapper */
.nav-links-wrapper {
    flex-grow: 1;
    justify-content: center;
    margin: 0 10px;
}

/* Nav Menu */
.nav-menu {
    justify-content: center;
    width: 100%;
}

/* Header Actions (CTA + Hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    /* Hidden on Desktop */
}

/* 2. Responsive: <= 1200px (Tablet/Small Desktop) */
@media (max-width: 1200px) {
    .logo-img {
        width: 130px;
    }

    .logo-wrapper {
        padding: 10px 15px 25px 15px !important;
    }

    .nav-item {
        font-size: 13px;
        padding: 25px 0;
    }

    .nav-menu {
        gap: 15px;
    }

    .btn-header {
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* 3. Responsive: <= 992px (Mobile/Tablet Mode) */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 15px;
    }

    /* Logo adjustments for Mobile */
    .logo-wrapper {
        padding: 5px !important;
        background: transparent;
        box-shadow: none;
        clip-path: none;
        margin-right: 0;
    }

    .logo-img {
        width: 100px;
    }

    /* Hide Desktop Nav & Switch to Dropdown */
    .nav-links-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;

        display: none;
        /* Hidden by default */
        margin: 0;
    }

    /* Active State (Toggled by JS) */
    .nav-links-wrapper.active {
        display: flex;
    }

    /* Vertical Menu */
    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-item>a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: left;
    }

    /* Dropdowns in Mobile - Stacked */
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* Hidden by default, show on hover/click? */
        /* User asked for "Vertical dropdown panel" for the main menu.
           Submenus? "Maintain accessibility...".
           Hover on mobile is tricky.
           Usually click to toggle.
           But existing CSS uses :hover.
           I'll enable :focus-within or keep :hover (which requires tap on some devices).
           Let's set display:block inside the item.
        */
        padding-left: 0;
        background: #fdfdfd;
        border-top: none;
    }

    .nav-item:hover .dropdown,
    .nav-item:focus-within .dropdown {
        display: block;
    }

    .dropdown li a {
        padding-left: 40px;
    }

    /* Show Hamburger */
    .hamburger {
        display: flex;
    }
}

/* --- NEW HEADER LAYOUT FIX (Jan 2026) --- */

/* 1. Header Container */
header .main-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

#mainHeader {
    position: relative;
    /* Context for dropdown */
    background-color: white;
    /* Ensure bg */
}

/* 2. Logo Size Fix */
.logo-container {
    flex-shrink: 0;
    min-width: 260px;
}

.logo-container a {
    display: block;
}

.logo-container .logo-img {
    height: 95px !important;
    /* Force override */
    width: auto;
    display: block;
    max-width: none;
    /* Prevent constraint */
}

/* 3. Right Block (Nav + CTA) */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex-grow: 1;
}

/* 4. Navigation (Desktop) */
.main-nav {
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-item a {
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
}

.main-nav .nav-item a:hover {
    color: #d4af37;
}

/* 5. CTA Button */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 150px;
    padding: 12px 24px;
    background-color: #333;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
}

.header-cta-btn:hover {
    background-color: #000;
    color: #fff;
    text-decoration: none;
}

/* 6. Hamburger (Hidden on Desktop) */
.hamburger {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

/* Simple transform logic if needed, or just standard */

/* RESPONSIVE */

/* <= 1200px */
@media (max-width: 1200px) {
    .logo-container .logo-img {
        height: 85px !important;
    }

    .main-nav ul {
        gap: 15px;
    }

    .header-right {
        gap: 15px;
    }

    .nav-item a {
        font-size: 0.9rem;
    }
}

/* <= 992px: Mobile Menu */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
        order: -1;
        /* Left of Nav (which is hidden) or just in flow */
        margin-right: 15px;
    }

    .logo-container .logo-img {
        height: 85px !important;
        /* Keep visible size */
    }

    .header-right {
        /* Align CTA to right, hamburger next to it? 
           Requirement: 'Nav becomes a dropdown... CTA visible on header row'
           We'll keep hamburger and CTA in header-right.
        */
        justify-content: flex-end;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1000;
        padding: 20px 0;
        text-align: center;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .logo-container .logo-img {
        height: 60px !important;
    }

    .header-cta-btn {
        padding: 8px 16px;
        min-width: 120px;
        font-size: 0.9rem;
    }

    .logo-container {
        min-width: 0;
        /* Relax on mobile */
    }
}

/* --- LOGO SIZE UPDATE (User Request) --- */
@media (min-width: 993px) {
    .logo-container .logo-img {
        height: 190px !important;
        /* 200% of 95px */
        width: auto !important;
        /* Allow natural expansion */
    }
}

@media (max-width: 992px) {
    .logo-container .logo-img {
        height: 120px !important;
        /* increased from 85px */
        width: auto !important;
    }
}

@media (max-width: 576px) {
    .logo-container .logo-img {
        height: 90px !important;
        /* increased from 60px */
        width: auto !important;
    }
}

/* --- LOGO SIZE UPDATE (User Request - 300px) --- */
@media (min-width: 993px) {
    .logo-container .logo-img {
        height: 300px !important;
        width: auto !important;
    }
}

@media (max-width: 992px) {
    .logo-container .logo-img {
        height: 200px !important;
        width: auto !important;
    }
}

@media (max-width: 576px) {
    .logo-container .logo-img {
        height: 150px !important;
        width: auto !important;
    }
}


/* --- LOGO SIZE FIX (Correct Selector) --- */
@media (min-width: 993px) {

    .logo-wrapper .logo-img,
    .logo-container .logo-img,
    header .logo-img {
        height: 300px !important;
        width: auto !important;
    }
}

@media (max-width: 992px) {

    .logo-wrapper .logo-img,
    .logo-container .logo-img,
    header .logo-img {
        height: 200px !important;
        width: auto !important;
    }
}

@media (max-width: 576px) {

    .logo-wrapper .logo-img,
    .logo-container .logo-img,
    header .logo-img {
        height: 150px !important;
        width: auto !important;
    }
}

/* Hero typography to match Image 2 */
.hero .hero-eyebrow,
.hero-eyebrow {
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-bottom: 14px;
}

.hero .hero-title,
.hero-title {
    font-family: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(44px, 5.2vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-align: center;
    margin: 0 auto 14px;
    max-width: 900px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* Force normal style on italics inside title */
.hero .hero-title em,
.hero .hero-title i,
.hero-title em,
.hero-title i {
    font-style: normal !important;
}

.hero .hero-desc,
.hero-desc {
    font-family: inherit;
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.92;
    text-align: center;
    max-width: 680px;
    margin: 0 auto 26px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

/* Centering */
.hero .hero-content,
.hero-content {
    text-align: center;
    align-items: center;
}

/* Mobile optimization */
@media (max-width: 768px) {

    .hero .hero-title,
    .hero-title {
        font-size: clamp(34px, 9vw, 52px);
        max-width: 92vw;
    }

    .hero .hero-desc,
    .hero-desc {
        font-size: 15px;
        max-width: 86vw;
    }

}

/* ===== Top Black Bar (Strict Center Alignment) ===== */
:root {
    --ribbon-x: 0px;
    /* matches left edge of logo ribbon */
    --ribbon-w: 210px;
    /* Measured logo ribbon width */

    --nav-pad-right: 20px;
    /* Measured right padding of nav container */
    --get-sample-w: 168px;
    /* Measured width of GET SAMPLE button */
}

/* Top bar as alignment canvas */
.topbar {
    background: #0b0b0b;
    color: #fff;
    font-size: 13px;
    position: relative;
    z-index: 3000;
}

.topbar__inner {
    position: relative;
    width: 100%;
    /* Match the main container's constraints exactly */
    max-width: 1240px;
    margin: 0 auto;
    height: 48px;
    padding: 0;
}

/* Phone + Email: center aligned to logo ribbon centerline */
.topbar-contact {
    position: absolute;
    /* Container Box Left = 0.
       Ribbon Start = var(--ribbon-x).
       Ribbon Center = var(--ribbon-x) + (RibbonWidth / 2).
    */
    left: calc(var(--ribbon-x) + (var(--ribbon-w) / 2) - 30px);
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

/* Architects & Dealers pill: center aligned to GET SAMPLE centerline */
.topbar-pill {
    position: absolute;
    /* Container Box Right = 100%.
       Button End = 100% - 20px (Container Padding).
       Button Center = 100% - 20px - (ButtonWidth / 2).
    */
    left: calc(100% - var(--nav-pad-right) - (var(--get-sample-w) / 2) + 50px);
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;

    /* Pill Styles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .06);
    color: #f2c24d;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .02em;
    font-size: 12px;
}

.topbar__left-spacer {
    display: none;
}

.topbar-pill:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .40);
    color: #fff;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    white-space: nowrap;
}

.topbar__item:hover {
    color: #fff;
}

.topbar__icon {
    font-size: 13px;
    opacity: .9;
    transform: translateY(-0.5px);
}

/* Responsive Fallback */
@media (max-width: 820px) {

    .topbar-contact,
    .topbar-pill {
        position: static;
        transform: none;
    }

    .topbar__inner {
        height: auto;
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .topbar-contact {
        flex-wrap: wrap;
        justify-content: center;
    }

    .topbar {
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .topbar-contact {
        flex-wrap: wrap;
        row-gap: 6px;
    }
}

/* --- LIGHTBOX GALLERY --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    animation: zoomIn 0.3s;
    object-fit: contain;
}

@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.3);
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.lightbox-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}