/* ==========================================================================
   Lake Norman Tire, LLC - Main Stylesheet
   ========================================================================== */

/* CSS RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a365d;
    --primary-dark: #0f2442;
    --primary-light: #2c5282;
    --secondary: #2d3748;
    --accent: #c53030;
    --accent-hover: #9b2c2c;
    --white: #ffffff;
    --off-white: #f7fafc;
    --light-gray: #edf2f7;
    --gray: #a0aec0;
    --dark-gray: #4a5568;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --header-height: 70px;
    --radius: 8px;
    --radius-lg: 12px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    background: var(--white);
    padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1em; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: var(--accent); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

/* SKIP LINK */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

nav {
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--primary);
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius);
}

.logo span {
    font-size: 1rem;
    font-weight: 700;
}

/* NAVIGATION MENU */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--light-gray);
}

.nav-menu a.active {
    color: var(--primary);
    background: var(--light-gray);
}

/* MOBILE MENU TOGGLE */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--primary);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 991px) {
    .nav-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        background: var(--white);
        transform: translateX(100%);
        transition: transform 0.3s;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.open { transform: translateX(0); }
    
    .nav-menu li { border-bottom: 1px solid var(--border); }
    .nav-menu a { padding: 1rem; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.0625rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-left: auto;
}

@media (max-width: 991px) {
    .hero { padding: 3rem 0; }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image { order: -1; }
    
    .hero-image img {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .hero-content h1 { font-size: 1.875rem; }
}

@media (max-width: 575px) {
    .hero { padding: 2rem 0; }
    
    .hero-content h1 { font-size: 1.5rem; }
    
    .hero-image img { max-width: 100%; }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* CTA BUTTON */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   PAGE HEADER (Inner Pages)
   ========================================================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-overview {
    padding: 5rem 0;
    background: var(--light-gray);
}

.services-overview h2,
.services-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-intro {
    text-align: center;
    color: var(--dark-gray);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* SERVICE CARD */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

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

.service-card h3 {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 1.25rem;
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Service card with image wrapper */
.service-card .service-image {
    height: 200px;
    overflow: hidden;
}

.service-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card .service-content {
    padding: 1.5rem;
}

.service-card .service-content h3 {
    padding: 0;
    margin-bottom: 0.75rem;
}

.service-card .service-content p {
    padding: 0;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.service-features {
    padding-left: 1.25rem;
    margin: 0;
}

.service-features li {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    list-style: disc;
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card img {
        height: 180px;
    }
}

/* ==========================================================================
   WHY CHOOSE US / FEATURES
   ========================================================================== */

.why-choose-us {
    padding: 5rem 0;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.feature h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature p {
    color: var(--dark-gray);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   VALUES SECTION
   ========================================================================== */

.about-values,
.values-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.value-card .value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--light-gray);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card .value-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--dark-gray);
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LEAD CAPTURE FORM
   ========================================================================== */

.lead-capture {
    padding: 5rem 0;
    background: var(--light-gray);
}

.lead-capture h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-intro {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--secondary);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

/* Form Row (2 columns) */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 575px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--dark-gray);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Submit Button */
.submit-button,
.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.submit-button:hover,
.submit-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.submit-button:disabled,
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Error */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--accent);
}

.error-message {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--accent);
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.about-mission,
.about-hero {
    padding: 4rem 0;
}

.mission-content p {
    color: var(--secondary);
    line-height: 1.8;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h1 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--secondary);
    line-height: 1.8;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
}

@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image { order: -1; }
    
    .about-image img { margin: 0 auto; }
}

/* Services List */
.about-services {
    padding: 4rem 0;
    background: var(--light-gray);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: var(--accent);
}

.service-item p {
    margin: 0;
    color: var(--secondary);
}

@media (max-width: 575px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.about-gallery {
    padding: 4rem 0;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    margin-bottom: 1.5rem;
}

.contact-item,
.info-item {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--light-gray);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.info-content h3,
.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.info-content p,
.contact-item p {
    margin-bottom: 0;
    color: var(--secondary);
}

.info-content a,
.contact-item a {
    color: var(--primary);
}

.info-content a:hover,
.contact-item a:hover {
    color: var(--accent);
}

/* Business Hours */
.business-hours {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--radius);
}

.business-hours h3 {
    margin-bottom: 1rem;
}

.hours-list {
    margin: 0;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Map */
.map-section {
    padding: 3rem 1.5rem;
    background: var(--light-gray);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.map-container {
    max-width: var(--max-width);
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   CONTENT SECTION (Policy Pages)
   ========================================================================== */

.content-section {
    padding: 3rem 0;
}

.content-section .container {
    max-width: 800px;
}

.content-section h2 {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.content-section h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.content-section h3 {
    margin-top: 1.5rem;
}

.content-section p,
.content-section li {
    color: var(--secondary);
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section ul { list-style: disc; }
.content-section ol { list-style: decimal; }

.content-section li { margin-bottom: 0.5rem; }

.content-section a {
    color: var(--primary);
    text-decoration: underline;
}

/* ==========================================================================
   SITEMAP PAGE
   ========================================================================== */

.sitemap-section {
    padding: 3rem 0;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.sitemap-column h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.sitemap-column ul {
    margin: 0;
    padding: 0;
}

.sitemap-column li {
    margin-bottom: 0.5rem;
}

.sitemap-column a {
    display: block;
    padding: 0.5rem 0;
    color: var(--secondary);
    transition: color 0.2s;
}

.sitemap-column a:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   BUSINESS MODEL PAGE
   ========================================================================== */

.business-model-section {
    padding: 3rem 0;
}

.model-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.model-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.model-section p {
    color: var(--secondary);
    line-height: 1.8;
}

.model-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.model-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
}

.model-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.model-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .model-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PORTFOLIO / WORK EXAMPLES
   ========================================================================== */

.portfolio-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(26, 54, 93, 0.9));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: var(--primary-dark);
    color: var(--light-gray);
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.footer-section p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-section ul {
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.625rem;
}

.footer-section a {
    color: var(--light-gray);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    text-align: center;
}

.footer-disclaimer p {
    font-size: 0.8125rem;
    margin: 0;
    opacity: 0.9;
}

.footer-copyright {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cookie-banner:not(.hidden) {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-content p {
    flex: 1;
    min-width: 280px;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-content a {
    color: #ed8936;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #dd6b20;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.cookie-btn.accept {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.cookie-btn.accept:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cookie-btn.decline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.cookie-btn.settings {
    background: transparent;
    color: var(--light-gray);
    text-decoration: underline;
    border: none;
    padding: 0.625rem 0.75rem;
}

.cookie-btn.settings:hover {
    color: var(--white);
}

@media (max-width: 575px) {
    .cookie-banner { padding: 1rem; }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p { min-width: auto; }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   COOKIE MODAL
   ========================================================================== */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.cookie-modal.hidden {
    display: none;
}

.cookie-modal .modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.cookie-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--dark-gray);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.cookie-modal .modal-close:hover {
    color: var(--accent);
    background: var(--light-gray);
}

.cookie-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    padding-right: 2rem;
}

.cookie-modal > .modal-content > p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.cookie-option {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--radius);
}

.cookie-option label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-option strong {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cookie-option span {
    font-size: 0.875rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

/* BODY STATES */
body.modal-open,
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--primary);
}

.table tr:hover td {
    background: var(--off-white);
}

/* ==========================================================================
   ALERTS
   ========================================================================== */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert--success {
    background: #c6f6d5;
    border-color: #48bb78;
    color: #276749;
}

.alert--error {
    background: #fed7d7;
    border-color: var(--accent);
    color: #c53030;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.hidden { display: none !important; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
    .container { padding: 0 1.25rem; }
}

@media (max-width: 991px) {
    .section { padding: 3rem 0; }
}

@media (max-width: 767px) {
    html { font-size: 15px; }
    .section { padding: 2.5rem 0; }
}

@media (max-width: 575px) {
    .container { padding: 0 1rem; }
    .contact-form { padding: 1.5rem; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    header, footer, .cookie-banner, .cookie-modal, .nav-toggle {
        display: none !important;
    }
    body { padding-top: 0; }
}
