@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Lato:wght@400;700&display=swap');

:root {
    --n1w-primary: #1d4ed8;
    --n1w-secondary: #1e3a8a;
    --n1w-accent: #84cc16;
    --n1w-background: #eff6ff;
    --n1w-text: #1e3a5f;
    --n1w-muted: #93c5fd;
    --n1w-light-gray: #f9fafb;
    --n1w-dark-gray: #374151;
    --n1w-border-color: #e5e7eb;
    --n1w-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --n1w-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --n1w-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --ct-header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--n1w-text);
    background-color: var(--n1w-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--n1w-primary);
    color: var(--n1w-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    color: var(--n1w-secondary);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

h3 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h4 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h5 {
    font-size: 1.4rem;
    font-weight: 700;
}

h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--n1w-text);
}

p {
    margin-bottom: 1em;
}

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

a:hover {
    color: var(--n1w-accent);
    text-decoration: underline;
}

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

ul,
ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

/* Utility Classes */
.ct-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

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

.ct-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.ct-text-primary {
    color: var(--n1w-primary);
}

.ct-text-secondary {
    color: var(--n1w-secondary);
}

.ct-text-accent {
    color: var(--n1w-accent);
}

.ct-bg-primary {
    background-color: var(--n1w-primary);
}

.ct-bg-secondary {
    background-color: var(--n1w-secondary);
}

.ct-bg-accent {
    background-color: var(--n1w-accent);
}

.ct-section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Buttons */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ct-btn-primary {
    background-color: var(--n1w-primary);
    color: var(--n1w-background);
    border: 2px solid var(--n1w-primary);
}

.ct-btn-primary:hover {
    background-color: var(--n1w-secondary);
    border-color: var(--n1w-secondary);
    color: var(--n1w-background);
    text-decoration: none;
}

.ct-btn-secondary {
    background-color: var(--n1w-secondary);
    color: var(--n1w-background);
    border: 2px solid var(--n1w-secondary);
}

.ct-btn-secondary:hover {
    background-color: var(--n1w-primary);
    border-color: var(--n1w-primary);
    color: var(--n1w-background);
    text-decoration: none;
}

.ct-btn-outline {
    background-color: transparent;
    color: var(--n1w-primary);
    border: 2px solid var(--n1w-primary);
}

.ct-btn-outline:hover {
    background-color: var(--n1w-primary);
    color: var(--n1w-background);
    text-decoration: none;
}

.ct-btn:focus {
    outline: 2px solid var(--n1w-accent);
    outline-offset: 2px;
}

/* Header & Navigation */
.ct-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 58, 138, 0.95); /* Darker blue with transparency */
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--n1w-shadow-md);
    transition: background-color 0.3s ease;
}

.ct-header.scrolled {
    background-color: var(--n1w-secondary);
}

.ct-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ct-logo {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--n1w-accent);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.ct-nav-menu {
    list-style: none;
    display: flex;
}

.ct-nav-menu li {
    margin-left: 2.5rem;
}

.ct-nav-menu a {
    color: var(--n1w-light-gray);
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
}

.ct-nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: var(--n1w-accent);
    transition: width 0.3s ease-in-out;
}

.ct-nav-menu a:hover {
    color: var(--n1w-accent);
}

.ct-nav-menu a:hover::after {
    width: 100%;
}

.ct-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.35rem;
}

.ct-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--n1w-accent);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.ct-mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--n1w-secondary);
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease-in-out;
    z-index: 999;
}

.ct-mobile-menu.active {
    right: 0;
}

.ct-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.ct-mobile-menu li {
    margin-bottom: 1.5rem;
}

.ct-mobile-menu a {
    color: var(--n1w-light-gray);
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.ct-mobile-menu a:hover {
    color: var(--n1w-accent);
    text-decoration: none;
}

.ct-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--n1w-light-gray);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.ct-close-btn:hover {
    color: var(--n1w-accent);
}

/* Hero Section */
.ct-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--n1w-background);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-image: url('https://picsum.photos/seed/moviesdirectbase-movies-hero/1920/1080'); /* Adjusted for larger screen */
}

.ct-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.7) 0%, rgba(30, 58, 138, 0.8) 100%);
}

.ct-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
}

.ct-hero h1 {
    color: var(--n1w-accent);
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.ct-hero h1 + p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--n1w-light-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ct-hero .ct-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Section Styling */
.ct-section {
    padding: 5rem 0;
    position: relative;
}

.ct-section:nth-of-type(even) {
    background-color: var(--n1w-light-gray);
}

.ct-section:nth-of-type(odd) {
    background-color: var(--n1w-background);
}

.ct-section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.ct-section-header h2 {
    color: var(--n1w-secondary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.ct-section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--n1w-accent);
    border-radius: 2px;
}

.ct-section-header p {
    font-size: 1.15rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--n1w-dark-gray);
}

/* Card Components */
.ct-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: var(--n1w-shadow-md);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid var(--n1w-border-color);
}

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

.ct-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.ct-card h3 {
    color: var(--n1w-primary);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.ct-card p {
    color: var(--n1w-dark-gray);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.ct-card-footer {
    margin-top: auto;
}

/* Trust Badges */
.ct-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--n1w-primary);
    color: var(--n1w-background);
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--n1w-shadow-sm);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ct-trust-badge:hover {
    background-color: var(--n1w-secondary);
    transform: translateY(-2px);
}

.ct-trust-badge svg {
    width: 24px;
    height: 24px;
    fill: var(--n1w-accent);
}

.ct-trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Testimonials */
.ct-testimonial-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: var(--n1w-shadow-md);
    padding: 2rem;
    text-align: left;
    border-left: 5px solid var(--n1w-accent);
}

.ct-testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--n1w-dark-gray);
    margin-bottom: 1.5rem;
}

.ct-testimonial-author {
    font-weight: 700;
    color: var(--n1w-secondary);
    margin-bottom: 0.25rem;
}

.ct-testimonial-meta {
    font-size: 0.9rem;
    color: var(--n1w-muted);
}

/* FAQ Accordion */
.ct-faq-item {
    background-color: #ffffff;
    border: 1px solid var(--n1w-border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--n1w-shadow-sm);
}

.ct-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--n1w-secondary);
    cursor: pointer;
    background-color: var(--n1w-light-gray);
    transition: background-color 0.3s ease;
}

.ct-faq-q:hover {
    background-color: #e0e7ff;
}

.ct-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--n1w-primary);
    transition: transform 0.3s ease;
}

.ct-faq-item.active .ct-faq-q::after {
    content: '-';
    transform: rotate(180deg);
}

.ct-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--n1w-dark-gray);
}

.ct-faq-item.active .ct-faq-a {
    max-height: 500px; /* Adjust as needed for content */
    padding: 1rem 1.5rem 1.5rem;
}

/* Forms */
.ct-form-group {
    margin-bottom: 1.5rem;
}

.ct-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--n1w-secondary);
}

.ct-form-group input[type="text"],
.ct-form-group input[type="email"],
.ct-form-group input[type="tel"],
.ct-form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--n1w-border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    color: var(--n1w-text);
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ct-form-group input[type="text"]:focus,
.ct-form-group input[type="email"]:focus,
.ct-form-group input[type="tel"]:focus,
.ct-form-group textarea:focus {
    border-color: var(--n1w-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

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

.ct-form-success, .ct-form-error {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1.5rem;
    font-weight: 700;
    display: none;
}

.ct-form-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.ct-form-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Footer */
.ct-footer {
    background-color: var(--n1w-secondary);
    color: var(--n1w-light-gray);
    padding: 4rem 0;
    font-size: 0.95rem;
}

.ct-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.ct-footer-col h4 {
    color: var(--n1w-accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.ct-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ct-footer-col ul li {
    margin-bottom: 0.8rem;
}

.ct-footer-col ul li a {
    color: var(--n1w-muted);
    transition: color 0.3s ease;
}

.ct-footer-col ul li a:hover {
    color: var(--n1w-accent);
    text-decoration: underline;
}

.ct-footer-info p {
    margin-bottom: 0.8rem;
}

.ct-footer-bottom {
    border-top: 1px solid var(--n1w-primary);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--n1w-muted);
}

.ct-footer-bottom a {
    color: var(--n1w-muted);
}

.ct-footer-bottom a:hover {
    color: var(--n1w-accent);
}

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

.ct-animate {
    opacity: 0;
}

.ct-animate.ct-animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Specific section styles */
.ct-customer-stories .ct-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ct-cta-local {
    background-color: var(--n1w-primary);
    color: var(--n1w-background);
    text-align: center;
    padding: 4rem 0;
}

.ct-cta-local h2 {
    color: var(--n1w-accent);
    margin-bottom: 1.5rem;
}

.ct-cta-local p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.ct-services-grid .ct-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.ct-local-intro-content img {
    border-radius: 0.75rem;
    box-shadow: var(--n1w-shadow-lg);
}

.ct-local-intro-text h3 {
    color: var(--n1w-primary);
    margin-bottom: 1rem;
}

.ct-local-intro-text p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.ct-area-coverage-map {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--n1w-shadow-lg);
    height: 400px;
    width: 100%;
    margin-top: 3rem;
    background-color: var(--n1w-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--n1w-secondary);
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
}

/* Form specific for contact page */
.ct-contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.ct-contact-sidebar {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--n1w-shadow-md);
    border-top: 5px solid var(--n1w-accent);
}

.ct-contact-sidebar h3 {
    color: var(--n1w-primary);
    margin-bottom: 1.5rem;
}

.ct-contact-sidebar p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--n1w-dark-gray);
}

.ct-contact-sidebar p svg {
    width: 24px;
    height: 24px;
    fill: var(--n1w-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .ct-nav-menu {
        display: none;
    }

    .ct-hamburger {
        display: flex;
    }

    .ct-hero h1 {
        font-size: 3.5rem;
    }

    .ct-hero h1 + p {
        font-size: 1.3rem;
    }

    .ct-section-header h2 {
        font-size: 2.3rem;
    }

    .ct-section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .ct-local-intro-content {
        grid-template-columns: 1fr;
    }

    .ct-local-intro-content img {
        order: -1; /* Image first on smaller screens */
    }

    .ct-contact-layout {
        grid-template-columns: 1fr;
    }

    .ct-contact-sidebar {
        order: -1; /* Sidebar first on smaller screens */
        margin-bottom: 2rem;
    }

}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    .ct-hero h1 {
        font-size: 3rem;
    }

    .ct-hero h1 + p {
        font-size: 1.1rem;
    }

    .ct-hero .ct-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .ct-section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

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

    .ct-footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .ct-logo {
        font-size: 1.5rem;
    }

    .ct-callout-box p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }
    
    .ct-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ct-hero h1 {
        font-size: 2.5rem;
    }

    .ct-hero h1 + p {
        font-size: 1rem;
    }

    .ct-hero .ct-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }

    .ct-section-padding {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .ct-header {
        padding: 0.8rem 0;
    }

    .ct-mobile-menu {
        width: 100%;
    }

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

    .ct-footer-col {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .ct-footer-col h4::after {
        margin: 0 auto;
    }

    .ct-footer-info p {
        justify-content: center;
    }
}
