/* ==========================================================================
   Kool Tintz Window Tinting - Ghost Theme Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables / Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-primary: #1a1a2e;
    --color-primary-light: #16213e;
    --color-secondary: #0f3460;
    --color-accent: #e94560;
    --color-accent-hover: #d63350;
    --color-gold: #c9a227;
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
    --color-gray-light: #e9ecef;
    --color-dark: #212529;
    --color-text: #333333;
    --color-text-light: #666666;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Site wrapper - sticky footer layout */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

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

.section {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: var(--spacing-sm) auto 0;
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-primary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0.75rem var(--container-padding);
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: nowrap;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.header-cta .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.header-cta .btn span {
    display: none;
}

@media (min-width: 1100px) {
    .header-cta .btn span {
        display: inline;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: transform var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Menu Active State */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    background-image: url('../images/Gallery/gallery7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 52, 96, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    background: var(--color-gray-light);
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-title::after {
    margin-left: 0;
}

.about-text {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--spacing-sm);
    background: var(--color-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.feature i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.feature span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark);
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
    background: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2rem;
    color: var(--color-white);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.service-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.service-features {
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    color: var(--color-text);
    font-size: 0.9rem;
}

.service-features i {
    color: var(--color-accent);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Why Choose Us Section
   -------------------------------------------------------------------------- */
.why-us {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
}

.why-us .section-title {
    color: var(--color-white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.why-us-item {
    text-align: center;
    padding: var(--spacing-md);
}

.why-us-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-accent);
}

.why-us-icon i {
    font-size: 1.75rem;
    color: var(--color-accent);
}

.why-us-item h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.why-us-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Gallery Section
   -------------------------------------------------------------------------- */
.gallery {
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
    background: var(--color-gray-light);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--color-white);
}

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

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

/* Gallery "View All" Button */
.gallery-footer {
    text-align: center;
    margin-top: var(--spacing-md);
}

.gallery-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    background: transparent;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.gallery-view-all:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Gallery Modal Styles */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal.active .gallery-modal-image {
    animation: modalImageIn 0.4s ease-out forwards;
}

@keyframes modalImageIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.98) 0%, rgba(20, 20, 40, 0.98) 100%);
    backdrop-filter: blur(10px);
}

.gallery-modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
}

.gallery-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0.9;
    transition: all var(--transition-fast);
    z-index: 10;
}

.gallery-modal-close:hover {
    opacity: 1;
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: rotate(90deg);
}

.gallery-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 95vw;
}

.gallery-modal-image {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(233, 69, 96, 0.15);
}

.gallery-modal-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

/* Navigation Buttons */
.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
    z-index: 10;
    opacity: 0.9;
}

.gallery-modal-nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.4);
}

.gallery-modal-prev {
    left: 2rem;
}

.gallery-modal-next {
    right: 2rem;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
    .gallery-modal-container {
        padding: 0.5rem;
    }

    .gallery-modal-image {
        max-height: 85vh;
        border-radius: var(--radius-md);
    }

    .gallery-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .gallery-modal-nav {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .gallery-modal-prev {
        left: 0.75rem;
    }

    .gallery-modal-next {
        right: 0.75rem;
    }

    .gallery-modal-counter {
        bottom: 1rem;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-modal-image {
        max-height: 80vh;
        border-radius: var(--radius-sm);
    }

    .gallery-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-modal-prev {
        left: 0.5rem;
    }

    .gallery-modal-next {
        right: 0.5rem;
    }

    .gallery-modal-counter {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
    }
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials {
    background: var(--color-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.testimonial-stars {
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
}

.testimonial-stars i {
    font-size: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    line-height: 1.7;
}

.testimonial-author strong {
    display: block;
    color: var(--color-dark);
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--color-accent);
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

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

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 350px;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta {
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
}

.cta-content {
    text-align: center;
}

.cta h2 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.cta .btn-primary {
    background: var(--color-white);
    color: var(--color-accent);
    border-color: var(--color-white);
}

.cta .btn-primary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 0;
    flex-shrink: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.footer-logo .logo-text {
    font-size: 1.75rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin: var(--spacing-sm) 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer-social i {
    font-size: 1rem;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
    margin-top: 0.5rem;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--color-accent);
    font-size: 1rem;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.powered-by a {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Post/Page Template Styles
   -------------------------------------------------------------------------- */
.post-content,
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(80px + var(--spacing-lg)) var(--container-padding) var(--spacing-xl);
}

.post-header,
.page-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.post-title,
.page-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.post-feature-image,
.page-feature-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.page-feature-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.post-meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.post-body,
.page-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6,
.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.post-body p,
.page-body p {
    margin-bottom: var(--spacing-sm);
}

.post-body img,
.page-body img {
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

/* Lists in post/page content */
.post-body ul,
.post-body ol,
.page-body ul,
.page-body ol {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
}

.post-body ul,
.page-body ul {
    list-style-type: disc;
}

.post-body ol,
.page-body ol {
    list-style-type: decimal;
}

.post-body li,
.page-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-body ul ul,
.post-body ol ol,
.post-body ul ol,
.post-body ol ul,
.page-body ul ul,
.page-body ol ol,
.page-body ul ol,
.page-body ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Links in content */
.post-body a,
.page-body a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-body a:hover,
.page-body a:hover {
    color: var(--color-accent-hover);
}

/* Blockquotes */
.post-body blockquote,
.page-body blockquote {
    border-left: 4px solid var(--color-accent);
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-light);
}

.post-body blockquote p:last-child,
.page-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Code blocks */
.post-body code,
.page-body code {
    background: var(--color-light);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.post-body pre,
.page-body pre {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--spacing-md) 0;
}

.post-body pre code,
.page-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Tables */
.post-body table,
.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
}

.post-body th,
.post-body td,
.page-body th,
.page-body td {
    border: 1px solid var(--color-gray-light);
    padding: 0.75rem;
    text-align: left;
}

.post-body th,
.page-body th {
    background: var(--color-light);
    font-weight: 600;
}

.post-body tr:nth-child(even),
.page-body tr:nth-child(even) {
    background: var(--color-light);
}

/* Horizontal rule */
.post-body hr,
.page-body hr {
    border: none;
    height: 2px;
    background: var(--color-gray-light);
    margin: var(--spacing-md) 0;
}

/* Figure and figcaption */
.post-body figure,
.page-body figure {
    margin: var(--spacing-md) 0;
}

.post-body figcaption,
.page-body figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

/* Ghost specific cards/embeds */
.post-body .kg-card,
.page-body .kg-card {
    margin: var(--spacing-md) 0;
}

.post-body .kg-image-card img,
.page-body .kg-image-card img {
    width: 100%;
}

.post-body .kg-width-wide,
.page-body .kg-width-wide {
    max-width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
}

.post-body .kg-width-full,
.page-body .kg-width-full {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.post-body .kg-bookmark-card,
.page-body .kg-bookmark-card {
    width: 100%;
}

.post-body .kg-bookmark-container,
.page-body .kg-bookmark-container {
    display: flex;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
}

.post-body .kg-bookmark-content,
.page-body .kg-bookmark-content {
    flex: 1;
    padding: var(--spacing-sm);
}

.post-body .kg-bookmark-title,
.page-body .kg-bookmark-title {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.post-body .kg-bookmark-description,
.page-body .kg-bookmark-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-body .kg-bookmark-metadata,
.page-body .kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.post-body .kg-bookmark-icon,
.page-body .kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.post-body .kg-bookmark-thumbnail,
.page-body .kg-bookmark-thumbnail {
    width: 150px;
    min-height: 100%;
}

.post-body .kg-bookmark-thumbnail img,
.page-body .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery cards */
.post-body .kg-gallery-container,
.page-body .kg-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.post-body .kg-gallery-row,
.page-body .kg-gallery-row {
    display: flex;
    gap: var(--spacing-xs);
    width: 100%;
}

.post-body .kg-gallery-image img,
.page-body .kg-gallery-image img {
    width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.25rem;
    }

    .main-nav .nav-list {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 0.2px;
    }

    .services-grid,
    .why-us-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.75rem;
    }
}

/* Medium screens - switch to mobile menu earlier */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        padding: var(--spacing-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Hero Mobile */
    .hero {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    /* About Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-image {
        order: -1;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Why Us Mobile */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        order: -1;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links h4::after,
    .footer-services h4::after,
    .footer-contact h4::after {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

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

/* Mobile Phones */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll reveal animation classes */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Gallery Page (Dedicated Full Gallery Page)
   -------------------------------------------------------------------------- */
.gallery-page {
    background: var(--color-light);
    padding-top: calc(80px + var(--spacing-xl));
    min-height: 100vh;
}

.gallery-page-header {
    margin-bottom: var(--spacing-lg);
}

.gallery-page-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.gallery-page-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.9rem;
}

.gallery-page-stats .stat-item i {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.gallery-page-stats .stat-count {
    color: var(--color-accent);
    font-weight: 700;
}

/* Gallery Page Grid */
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.gallery-page-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--color-gray-light);
}

.gallery-page-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    opacity: 0;
}

.gallery-page-item img.loaded {
    opacity: 1;
}

.gallery-page-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-page-item .gallery-overlay i {
    font-size: 2rem;
    color: var(--color-white);
}

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

.gallery-page-item:hover .gallery-overlay {
    opacity: 1;
}

/* Loading indicator */
.gallery-page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    color: var(--color-text-light);
}

.gallery-page-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-light);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-sm);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Gallery Page CTA */
.gallery-page-cta {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
}

.gallery-page-cta h2 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.gallery-page-cta p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.gallery-page-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

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

/* Gallery Page Responsive */
@media (max-width: 1200px) {
    .gallery-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-page {
        padding-top: calc(70px + var(--spacing-lg));
    }

    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .gallery-page-stats {
        gap: var(--spacing-sm);
    }

    .gallery-page-stats .stat-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .gallery-page-cta h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
    }

    .gallery-page-stats .stat-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .gallery-page-buttons {
        flex-direction: column;
        align-items: center;
    }

    .gallery-page-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .site-header,
    .hero,
    .gallery,
    .cta,
    .site-footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .section {
        page-break-inside: avoid;
    }
}
