:root {
    /* Colors */
    --color-primary: #1a1a1a;
    --color-secondary: #ffffff;
    --color-accent: #d4af37;
    /* Gold */
    --color-text: #333333;
    --color-text-light: #777777;
    --color-bg-light: #f9f9f9;
    --color-bg-dark: #121212;
    --color-border: #e0e0e0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-container: 1200px;
    --spacing-section: 4rem;
    --spacing-section-mobile: 2.5rem;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-secondary);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.max-w-1200 {
    max-width: 1200px;
}

.max-w-900 {
    max-width: 900px;
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

.text-gray {
    color: #aaaaaa !important;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.hero .btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    border-color: rgba(255, 255, 255, 1);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}



/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
    padding-bottom: 20px;
    /* Bridge gap */
    margin-bottom: -20px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-accent);
}

.arrow-down {
    border: solid var(--color-primary);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    margin-left: 5px;
    margin-bottom: 2px;
}

@media (max-width: 900px) {

    .nav-item.dropdown:hover .dropdown-menu,
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        background-color: #f9f9f9;
        display: none;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    /* Simple toggle for mobile if JS supports it, or just show all for now since it's cleaner */
    .dropdown-menu {
        display: block;
        /* Show continuously on mobile for ease if js toggle isn't robust */
        padding-left: 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-image: url('../images/home-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: var(--color-secondary);
    padding-top: 100px;
    overflow: hidden;
}

.hero-mini {
    height: 50vh;
    min-height: 450px;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 3rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-headline {
    font-size: 1.1rem;
    font-weight: 400;
    color: #d4af37;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
    opacity: 0.95;
    font-family: var(--font-heading);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: -1.5px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    font-family: var(--font-heading);
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: #f0f0f0;
    font-weight: 300;
    max-width: 700px;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 600px;
        padding: 100px 0 60px;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-headline {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .hero-title {
        font-size: 2.2rem;
        max-width: 100%;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Intro Text Section */
.separator-red {
    width: 60px;
    height: 3px;
    background-color: #b91c1c;
    /* Dark Red */
    margin: 1rem auto;
}

.max-w-800 {
    max-width: 900px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-dark {
    color: #444;
    line-height: 1.8;
}

/* Design Banner */
.design-banner {
    position: relative;
    background-image: url('../images/design-your-hats.jpg');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: white;
    text-align: left;
    /* Image shows text roughly centered but maybe aligned? The image has text on left side or centered block */
}

.design-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.design-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .design-banner {
        padding: 4rem 1rem;
    }

    .design-content {
        justify-content: center;
        text-align: center;
    }

    .design-text-block {
        max-width: 100%;
    }
}

.design-text-block {
    max-width: 600px;
}

.design-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: italic;
    font-size: 1.2rem;
    color: #ddd;
    display: block;
    margin-bottom: 0.5rem;
}

.design-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.design-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #eee;
    line-height: 1.6;
}

.design-buttons {
    display: flex;
    gap: 1rem;
}

.btn-red {
    background-color: #b91c1c;
    color: white;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    transition: background 0.3s;
}

.btn-red:hover {
    background-color: #991b1b;
    color: white;
}

/* Brands Section */
.mb-5 {
    margin-bottom: 3rem;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 4px;
}

.brand-item {
    flex: 0 0 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    padding: 0.5rem;
}

.brand-item img {
    max-height: 100%;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .design-title {
        font-size: 1.8rem;
    }

    .design-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .design-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Precision Banner */
.precision-banner {
    position: relative;
    background-image: url('../images/buy-custom-caps-in-uk.jpg');
    /* Replace with stitching image */
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: white;
    text-align: left;
}

.precision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Slightly darker overlay */
    z-index: 1;
}

.precision-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .precision-banner {
        padding: 4rem 1rem;
    }

    .precision-content {
        justify-content: center;
        text-align: center;
    }

    .precision-text-block {
        max-width: 100%;
    }
}

.precision-text-block {
    max-width: 650px;
}

.btn-red-dark {
    background-color: #7f1d1d;
    /* Darker red */
    color: white;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    transition: background 0.3s;
}

.btn-red-dark:hover {
    background-color: #991b1b;
    color: white;
}

/* Process Section */
.max-w-900 {
    max-width: 900px;
}

.mt-3 {
    margin-top: 1.5rem;
}

.process-title-wrapper {
    display: inline-block;
    background-color: #b91c1c;
    padding: 0.5rem 1.5rem;
    transform: skew(-10deg);
    /* Slight skew for dynamic look if desired, or just straight box */
}

.process-title-bg {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    transform: skew(10deg);
}

@media (max-width: 768px) {
    .process-title-wrapper {
        transform: none;
        padding: 0.8rem 1rem;
        width: 100%;
    }

    .process-title-bg {
        transform: none;
        font-size: 1.3rem;
    }
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.process-item {
    text-align: center;
}

.process-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    color: var(--color-primary);
}

.process-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-icon {
    width: 90px;
    height: 90px;
    background-color: #fff;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--color-accent);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.process-item:hover .process-icon {
    background-color: var(--color-accent);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(185, 28, 28, 0.2);
}

.process-image img {
    max-width: 50%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .process-title-bg {
        font-size: 1.5rem;
    }
}

/* Aficionados Banner */
.aficionados-banner {
    position: relative;
    background-image: url('../images/british-cap-creators.png');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: white;
    text-align: left;
}

.aficionados-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.aficionados-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .aficionados-banner {
        padding: 4rem 1rem;
    }

    .aficionados-content {
        justify-content: center;
        text-align: center;
    }

    .aficionados-text-block {
        max-width: 100%;
    }
}

.aficionados-text-block {
    max-width: 700px;
}

/* Recent Work Grid */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 0;
    /* Tight grid as shown in image, or minimal gap */
}

.recent-item {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.recent-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.recent-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .recent-grid {
        grid-template-columns: 1fr;
    }
}

/* Content Grid Section */
.content-row {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
}

.content-row:last-child {
    margin-bottom: 0;
}

.content-col {
    flex: 1;
}

.content-col h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    line-height: 1.3;
}

.content-col p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

/* Dark Features Section */
.dark-features {
    background-image: url('../images/make-your-own-style.png');
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-box {
    text-align: left;
}

.feature-icon {
    font-size: 3rem;
    display: inline-flex;
    padding: 1rem;
    border-radius: 50%;
}

.feature-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-box p {
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .content-row {
        flex-direction: column;
        gap: 2rem;
    }

    .feature-box {
        text-align: center;
    }

    .feature-icon {
        margin-bottom: 0.5rem;
    }
}

/* Sections General */
.section {
    padding: var(--spacing-section) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-section-mobile) 0;
    }
}

.section-mini {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.service-content p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-link {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.9rem;
}

/* Customization Cards Section */
.customization-section {
    padding: 4rem 0;
}

.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cust-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cust-card:hover {
    transform: translateY(-5px);
}

.cust-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cust-card:hover img {
    transform: scale(1.05);
}

.cust-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.cust-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    /* Ensure text is white */
}

.cust-features {
    list-style: none;
    margin-bottom: 1rem;
}

.cust-features li {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ddd;
}

.cust-features li i {
    color: white;
    font-size: 1rem;
}

.cust-price {
    font-weight: 700;
    font-size: 1rem;
    color: #e0e0e0;
}

/* Features Bar */
.features-bar {
    background-color: #3b5d78;
    /* Muted Blue from screenshot reference, or use var(--color-primary) for brand match. Sticking to plan: use Primary/Dark */
    background-color: #4a5568;
    /* Slate gray/blue tone closer to screenshot but professional */
    background-color: #2c3e50;
    /* Or a dark blue-gray */
    padding: 3rem 0;
    color: white;
}

.features-bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.fb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fb-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.fb-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.fb-desc {
    font-size: 0.85rem;
    color: #d1d5db;
    /* Light gray */
    line-height: 1.4;
    max-width: 250px;
}

/* Fabric Section */
.fabric-section {
    padding: 5rem 0;
}

.fabric-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.fabric-images-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.fabric-img-item {
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.fabric-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stagger effect - Disable on mobile */
.fabric-img-item:nth-child(2) {
    margin-top: 2rem;
}

.fabric-img-item:nth-child(3) {
    margin-top: -2rem;
}

@media (max-width: 768px) {

    .fabric-img-item:nth-child(2),
    .fabric-img-item:nth-child(3) {
        margin-top: 0;
    }
}

.fabric-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.fabric-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 600px) {
    .fabric-list {
        grid-template-columns: 1fr;
    }
}

.fabric-item {
    margin-bottom: 2rem;
}

.fabric-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.fabric-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .fabric-grid-layout {
        grid-template-columns: 1fr;
    }

    .features-bar-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .features-bar-grid {
        grid-template-columns: 1fr;
    }
}

.bg-sky {
    background-color: #eaf6fc;
    padding: 5rem 0;
}


/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #fff;
    /* Optional: minimal card style or transparent as per image */
}

.t-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.t-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #999;
}

.t-stars {
    color: #ffd700;
    /* Gold */
}

.t-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Featured Review */
.featured-review-section {
    margin-bottom: 4rem;
}

.featured-review-card {
    background: #ffffff;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 4rem;
    border: 1px solid #f0f0f0;
}

.featured-content {
    flex: 1;
}

.featured-stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.featured-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Video Showcase */
.video-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover img {
    transform: scale(1.1);
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-card:hover .play-btn {
    transform: scale(1.2);
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

@media (max-width: 900px) {
    .featured-review-card {
        flex-direction: column;
        padding: 2.5rem;
        gap: 2rem;
        text-align: center;
    }

    .featured-author {
        justify-content: center;
    }

    .featured-text {
        font-size: 1.4rem;
    }
}

/* CTA Dark Banner */
.cta-banner-dark {
    position: relative;
    background-image: url('../images/make-your-own-style.png');
    /* Using darker texture image */
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Heavy overlay */
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.cta-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #ddd;
    line-height: 1.6;
}

.text-justify {
    text-align: justify;
}

.service-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.service-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Products */
.product-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.product-item:last-child {
    margin-bottom: 0;
}

.product-item.product-item-reverse {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
}

.product-image img {
    transition: transform 0.6s ease;
}

.product-image:hover img {
    transform: scale(1.03);
}

.product-details {
    flex: 1;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.product-features {
    padding-left: 1.5rem;
}

.product-features li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Customization */
.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.custom-item {
    padding: 2.5rem;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: 0.3s;
}

.custom-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.custom-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.custom-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Why Us */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.why-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.why-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact */
.contact-container {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-info,
.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}

.contact-details {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 3rem 0 0;
    border-top: 4px solid var(--color-accent);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 2.5rem;
    }

    .footer-logo {
        margin-bottom: 1rem;
    }

    .footer-col h4 {
        margin-bottom: 1.2rem;
    }

    .footer-col h4::after {
        left: 0;
        transform: none;
    }

    .footer-desc {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-links a:hover {
        transform: none;
    }
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #cccccc;
}

.footer-legal-links a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--color-accent);
}

@media (max-width: 600px) {
    .footer-bottom-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    letter-spacing: -0.5px;
    display: inline-block;
}

.footer-desc {
    color: #aaaaaa;
    max-width: 320px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cccccc;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    border-color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        padding: 0 1rem;
    }

    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-top: 1px solid #eee;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        width: 100%;
    }

    .nav-link {
        font-size: 1.2rem;
        color: var(--color-primary);
        display: block;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .header-actions .btn {
        display: none;
    }

    .nav-item.dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        background-color: #f9f9f9;
        display: none;
        padding: 0;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {

    .product-item,
    .product-item.product-item-reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .product-details {
        text-align: center;
    }

    .product-features {
        display: inline-block;
        text-align: left;
    }

    .product-title {
        font-size: 1.8rem;
    }
}

/* Contact Page Styles */
.contact-hero {
    height: 45vh;
    min-height: 400px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/contact-us.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    justify-content: center;
    text-align: center;
}

.contact-hero .hero-content,
.quote-hero .hero-content,
.hero-mini .hero-content {
    text-align: center;
    margin: 0 auto;
}

.contact-hero .hero-title,
.contact-hero .hero-subtitle,
.contact-hero .hero-buttons,
.quote-hero .hero-title,
.quote-hero .hero-subtitle,
.quote-hero .hero-buttons,
.hero-mini .hero-title,
.hero-mini .hero-subtitle,
.hero-mini .hero-buttons {
    margin-left: auto;
    margin-right: auto;
}

.contact-hero .hero-buttons,
.quote-hero .hero-buttons,
.hero-mini .hero-buttons {
    justify-content: center;
}

@media (max-width: 768px) {

    .contact-hero,
    .quote-hero {
        background-attachment: scroll;
        height: auto;
        padding: 100px 0 60px;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-form-col {
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .contact-form-col {
        padding: 2.5rem 1.25rem;
    }

    /* Feedback form specific overrides if needed */
    .bg-light .max-w-900.mx-auto.mt-5 {
        padding: 0 1rem;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row input:not([type="radio"]):not([type="checkbox"]),
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: #fdfdfd;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
}

.form-row input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.form-row input[type="radio"]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: scale(0);
    background: var(--color-accent);
    transition: transform 0.2s ease;
}

.form-row input[type="radio"]:checked {
    border-color: var(--color-accent);
}

.form-row input[type="radio"]:checked::before {
    transform: scale(1);
}

.form-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-radius: 5px;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.form-row input[type="checkbox"]::before {
    content: "✓";
    font-size: 12px;
    color: white;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.form-row input[type="checkbox"]:checked {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.form-row input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.form-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 3rem;
}

.form-row input:not([type="radio"]):not([type="checkbox"]):focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.file-input {
    padding: 0.8rem !important;
    background-color: #f9f9f9;
    border: 1px dashed var(--color-border) !important;
}

.text-muted {
    color: #888;
    font-size: 0.85rem;
}

.form-row .recommend {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 15px;
}

.form-row .rating-stars input {
    display: none;
}

.form-row .rating-star-label {
    cursor: pointer;
    color: #d0d0d0;
    transition: color 0.2s ease;
    font-size: medium;
}

.form-row .rating-star-label:hover,
.form-row .rating-star-label:hover~.rating-star-label {
    color: #ffc107;
}

.form-row input[type="radio"]:checked+.rating-star-label,
.form-row input[type="radio"]:checked+.rating-star-label~.rating-star-label {
    color: #ffc107;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .quote-container,
    .max-w-900,
    .max-w-1200,
    .max-w-800 {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box {
    background: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--color-accent);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-box p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.info-box a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-box a:hover {
    color: var(--color-accent);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.quote-hero {
    height: 45vh;
    min-height: 400px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/get-quote.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    .quote-hero {
        background-attachment: scroll;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-col {
        padding: 2.5rem;
    }
}

.whatsapp-btn {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: all 0.2s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-3px) scale(1.05);
    color: #fff;
}

.whatsapp-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .whatsapp-btn {
        width: 52px;
        height: 52px;
        font-size: 24px;
        bottom: 18px;
        right: 18px;
    }
}

/* Policy Pages Styling */
.policy-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.legal-content ul {
    list-style: none !important;
    margin-left: 0 !important;
    margin-bottom: 2rem;
}

.legal-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.legal-content li::before {
    content: "\f26a";
    /* Bootstrap icon check-circle replacement if needed, or just a dot */
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
    top: -2px;
}

.legal-content .nested-list {
    margin-top: 1rem;
    margin-left: 1rem !important;
}

.last-updated {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-style: italic;
    color: #999;
}

@media (max-width: 768px) {
    .policy-card {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }
}

/* ========================================
   Chatbot Widget Styles
   ======================================== */

/* Chatbot Container */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: var(--font-body);
}

/* Chat Button */
.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.chat-button.active {
    transform: scale(0.9);
    opacity: 0;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 550px;
    max-height: calc(100vh - 120px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a2a2a 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #c9a030 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.chat-status {
    font-size: 0.75rem;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #25d366;
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.chat-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Chat Message */
.chat-message {
    display: flex;
    gap: 0.6rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #c9a030 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a2a2a 100%);
}

.message-content {
    max-width: 70%;
}

.message-content p {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
}

.user-message .message-content p {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a2a2a 100%);
    color: white;
}

.message-time {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: 0.3rem;
    display: block;
    padding: 0 0.5rem;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.6rem;
    padding: 0 1.5rem 1rem;
    animation: slideIn 0.3s ease;
}

.typing-dots {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-text-light);
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-wrapper {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #c9a030 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.chat-send:active {
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 15px;
        right: 15px;
    }

    .chat-button {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .chat-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 100px);
        bottom: 75px;
        right: -7.5px;
    }

    .chat-header {
        padding: 1rem 1.2rem;
    }

    .chat-messages {
        padding: 1rem;
    }

    .message-content {
        max-width: 80%;
    }

    .chat-input-wrapper {
        padding: 0.8rem 1rem;
    }
}