/* --- CSS Variables --- */
:root {
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --color-primary: #0052FF;
    --color-primary-dark: #3B82F6;
    --color-primary-hover: #0044D9;
    
    --color-secondary: #E0E7FF;
    --color-secondary-hover: #C7D2FE;
    --color-secondary-text: var(--color-primary);

    --color-light-bg: #F9FAFB;
    --color-light-card: #FFFFFF;
    --color-light-text: #111827;
    --color-light-text-secondary: #4B5563;
    --color-light-border: #E5E7EB;
    --color-light-icon: #6B7280;

    --color-dark-bg: #1F2937;
    --color-dark-card: #111827;
    --color-dark-text: #F3F4F6;
    --color-dark-text-secondary: #9CA3AF;
    --color-dark-border: #374151;
    --color-dark-icon: #9CA3AF;
    
    --color-green: #10B981;
    --color-red: #EF4444;
    --color-red-hover: #F87171;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* --- Dark Mode --- */
html.dark {
    --color-secondary: rgba(59, 130, 246, 0.2);
    --color-secondary-hover: rgba(59, 130, 246, 0.3);
    --color-secondary-text: var(--color-primary-dark);

    --color-light-bg: var(--color-dark-bg);
    --color-light-card: var(--color-dark-card);
    --color-light-text: var(--color-dark-text);
    --color-light-text-secondary: var(--color-dark-text-secondary);
    --color-light-border: var(--color-dark-border);
    --color-light-icon: var(--color-dark-icon);
}


/* --- Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-light-bg);
    color: var(--color-light-text);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
    font-size: 16px; /* Set base font size */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-light-text);
}

p {
    color: var(--color-light-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: #2d2d2d;
}
::-webkit-scrollbar-thumb {
    background-color: var(--color-red);
    border-radius: 20px;
    border: 3px solid #2d2d2d;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-red-hover);
}
html:not(.dark) ::-webkit-scrollbar-track {
    background: var(--color-light-border);
}
html:not(.dark) ::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-color: var(--color-light-border);
}
html:not(.dark) ::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-dark);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem; /* Ensure buttons have readable font */
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}
.btn-full-width {
    width: 100%;
}
.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #FFFFFF;
}
html.dark .btn-primary {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}
html.dark .btn-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-secondary-text);
    border-color: var(--color-secondary);
}
.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
    color: var(--color-secondary-text);
}

/* --- Header & Navigation --- */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(249, 250, 251, 0.8); /* lightbg with opacity */
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--color-light-border);
}
html.dark .header-sticky {
    background-color: rgba(31, 41, 55, 0.8); /* darkbg with opacity */
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light-text);
}
.logo:hover {
    color: var(--color-light-text);
}
.logo-svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-primary);
}
html.dark .logo-svg {
    color: var(--color-primary-dark);
}
.logo-text {
    color: var(--color-light-text);
}
.nav-links-desktop {
    display: none; /* Hidden on mobile */
    align-items: center;
    gap: 1.5rem;
}
.nav-link {
    color: var(--color-light-text-secondary);
    font-weight: 500;
}
.nav-link:hover {
    color: var(--color-primary);
}
html.dark .nav-link:hover {
    color: var(--color-primary-dark);
}

/* Dark Mode Toggle */
.dark-mode-toggle, .dark-mode-toggle-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.icon-sun-moon {
    color: var(--color-light-icon);
}
.toggle-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch {
    width: 2.75rem; /* w-11 */
    height: 1.5rem; /* h-6 */
    background-color: #E5E7EB; /* bg-gray-200 */
    border-radius: 9999px;
    transition: background-color 0.3s;
    display: block;
}
html.dark .toggle-switch {
    background-color: #374151; /* dark:bg-gray-700 */
}
.toggle-checkbox:checked + .toggle-switch {
    background-color: var(--color-primary-dark);
}
.toggle-switch::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}
.toggle-checkbox:checked + .toggle-switch::before {
    transform: translateX(1.25rem); /* translate-x-5 */
}


/* Hamburger Menu */
.hamburger-btn {
    display: block; /* Hidden on desktop */
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-light-text);
}
.icon-hamburger {
    width: 1.5rem;
    height: 1.5rem;
}
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-light-bg);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-light-border);
}
.mobile-menu.show {
    display: block;
}
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
}
.nav-link-mobile {
    padding: 0.5rem 0;
    color: var(--color-light-text-secondary);
    font-weight: 500;
}
.nav-link-mobile:hover {
    color: var(--color-primary);
}
html.dark .nav-link-mobile:hover {
    color: var(--color-primary-dark);
}
.btn-mobile {
    width: 100%;
    text-align: center;
}
.dark-mode-toggle-mobile {
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-light-border);
}

/* --- Sections --- */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.section-container-centered {
    text-align: center;
}
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
}
.section-subheading {
    font-size: 1.125rem;
    color: var(--color-light-text-secondary);
    max-width: 42rem; /* max-w-2xl */
    margin: 1rem auto 0;
}
.section-services, .section-faq, .section-contact {
    background-color: var(--color-light-card);
}
html.dark .section-services,
html.dark .section-faq,
html.dark .section-contact {
    background-color: var(--color-dark-card);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--color-light-card);
}
.hero-text {
    text-align: center;
}
.hero-heading {
    font-size: 3rem;
    line-height: 1.2;
}
.hero-subheading {
    font-size: 1.125rem;
    color: var(--color-light-text-secondary);
    margin-top: 1.5rem;
}
.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* --- Card --- */
.card {
    background-color: var(--color-light-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: left;
}
html.dark .card {
    background-color: var(--color-dark-card);
}
.card-heading {
    font-size: 1.5rem;
    margin-top: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 700;
}
.card-text {
    margin-top: 0.5rem;
    color: var(--color-light-text-secondary);
}
.card-icon-wrapper {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
html.dark .card-icon-wrapper {
    color: var(--color-primary-dark);
}
.card-icon-wrapper svg {
    width: 1.5rem;
    height: 1.5rem;
}


/* --- Services Section ("What We Do") --- */
.services-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

/* --- Pricing Section --- */
.pricing-category-heading {
    font-size: 2rem;
    font-family: var(--font-sans);
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.pricing-grid {
    display: grid;
    gap: 2rem;
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
}

.website-grid {
    grid-template-columns: 1fr;
}

.marketing-grid {
    grid-template-columns: 1fr;
    max-width: 56rem; /* max-w-4xl */
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pricing-card.popular {
    border: 2px solid var(--color-primary);
    position: relative;
    box-shadow: var(--shadow-xl);
}
html.dark .pricing-card.popular {
    border-color: var(--color-primary-dark);
}
.popular-badge {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
}
html.dark .popular-badge {
    background-color: var(--color-primary-dark);
}
.price {
    margin: 1.5rem 0;
}
.price-amount {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
}
.price-period {
    color: var(--color-light-text-secondary);
}
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-green);
    flex-shrink: 0;
}
.pricing-card .btn {
    margin-top: auto; /* Pushes button to bottom */
}

/* --- CTA Section --- */
.cta-button {
    margin-top: 2.5rem;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 4rem;
}
.contact-form-card {
    padding: 2rem;
}
.contact-form-heading {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-grid {
    display: grid;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.form-label {
    display: block;
    font-size: 1rem; /* Updated font size */
    font-weight: 500;
    color: var(--color-light-text);
}
.form-input {
    width: 100%;
    padding: 1rem; /* Updated padding */
    border-radius: 0.5rem;
    border: 1px solid var(--color-light-border);
    background-color: var(--color-light-bg);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
    font-family: inherit; /* *** ADDED: Use body font *** */
    font-size: 1rem; /* *** ADDED: Readable font size *** */
    color: var(--color-light-text); /* *** ADDED: Ensure text color is set *** */
}
.form-input::placeholder {
    color: var(--color-light-text-secondary);
    opacity: 0.7; /* Make placeholder slightly lighter */
}
html.dark .form-input {
    background-color: var(--color-dark-card); /* Use card color for inputs in dark mode */
    border-color: var(--color-dark-border);
}
.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-secondary);
}
html.dark .form-input:focus {
    border-color: var(--color-primary-dark);
}
textarea.form-input {
    min-height: 120px;
    resize: vertical;
}
.checkbox-grid {
    display: grid;
    gap: 1.25rem; /* Increased gap */
}
.checkbox-item {
    position: relative;
    display: flex;
    align-items: center; /* Center align checkbox and label */
}
.form-checkbox {
    width: 1.25rem; /* Increased size */
    height: 1.25rem; /* Increased size */
    color: var(--color-primary);
    border-radius: 0.25rem;
    border-color: var(--color-light-border);
    flex-shrink: 0;
    cursor: pointer;
}
html.dark .form-checkbox {
    color: var(--color-primary-dark);
}
.form-checkbox:focus {
    ring: var(--color-primary);
}
.checkbox-label {
    margin-left: 0.75rem;
    font-size: 1rem; /* Updated font size */
    font-weight: 500;
    color: var(--color-light-text);
    cursor: pointer;
}
.contact-graphic-wrapper {
    display: none; /* Hidden on mobile */
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.contact-graphic {
    width: 100%;
    max-width: 28rem;
    height: 24rem;
    background-color: var(--color-light-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-graphic-svg {
    width: 75%;
    height: 75%;
    color: var(--color-light-border);
}
.contact-graphic-path-1 {
    color: var(--color-primary-dark);
}
.contact-graphic-path-2 {
    color: var(--color-red);
}


/* --- FAQ Section --- */
.faq-container {
    max-width: 48rem; /* max-w-3xl */
}
.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}
.accordion-item {
    background-color: var(--color-light-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light-border);
}
html.dark .accordion-item {
    background-color: var(--color-dark-card);
}
.accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    font-weight: 500;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.125rem; /* Increased font size */
    color: var(--color-light-text);
}
.accordion-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-light-icon);
    transition: transform 0.2s ease-in-out;
    flex-shrink: 0;
}
.accordion-button.active .accordion-icon {
    transform: rotate(180deg);
}
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.accordion-panel p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-light-text-secondary);
    font-size: 1rem; /* Set font size */
}
.accordion-panel.show {
    max-height: 300px; /* arbitrary large height */
}

/* --- Footer --- */
.footer {
    /* Use dark card color by default (which works for dark mode) */
    background-color: var(--color-dark-card); 
    color: var(--color-dark-text-secondary); /* gray-400 */
    padding: 4rem 0 2rem;
}

/* --- Light Mode Footer Overrides --- */
html:not(.dark) .footer {
    background-color: var(--color-light-card); /* White */
    color: var(--color-light-text-secondary); /* Gray */
}
html:not(.dark) .footer-logo-text {
    color: var(--color-light-text); /* Dark text */
}
html:not(.dark) .footer-logo-text:hover {
    color: var(--color-light-text);
}
html:not(.dark) .footer-heading {
    color: var(--color-light-text); /* Dark text */
}
html:not(.dark) .footer-link {
    color: var(--color-light-text-secondary); /* Gray */
}
html:not(.dark) .footer-link:hover {
    color: var(--color-primary); /* Blue */
}
html:not(.dark) .footer-divider {
    border-color: var(--color-light-border); /* Light gray */
}
html:not(.dark) .footer-copyright {
    color: var(--color-light-text-secondary); /* Gray */
}
html:not(.dark) .footer-social-link {
    color: var(--color-light-text-secondary); /* Gray */
}
html:not(.dark) .footer-social-link:hover {
    color: var(--color-primary); /* Blue */
}
/* --- End Light Mode Overrides --- */


.footer-grid {
    display: grid;
    gap: 3rem;
}
.footer-logo-mobile {
    display: block;
}
.footer-logo-text {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-dark-text); /* White */
}
.footer-logo-text:hover {
    color: var(--color-dark-text);
}
.footer-logo-dot {
    color: var(--color-red);
}
.footer-heading {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-dark-text); /* White */
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-link {
    color: var(--color-dark-text-secondary); /* gray-400 */
}
.footer-link:hover {
    color: white;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-icon {
    width: 1.25rem;
    height: 1.25rem;
}
.footer-divider {
    border-color: var(--color-dark-border); /* gray-800 */
    margin: 2rem 0;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-logo-desktop {
    display: none;
}
.footer-copyright-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-dark-text-secondary);
}
.footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.footer-social-link {
    color: var(--color-dark-text-secondary);
}
.footer-social-link:hover {
    color: white;
}

.footer-social-icon { 
    width: 1.25rem;
    height: 1.25rem;
}

/* --- Scroll to Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--color-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-top-btn:hover {
    background-color: var(--color-red-hover);
    color: white;
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Styles --- */

/* Small screens (sm) */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .website-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .marketing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium screens (md) */
@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
    }
    .hamburger-btn {
        display: none;
    }
    section {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    .hero-text {
        text-align: left;
    }
    .hero-heading {
        font-size: 4rem;
    }
    .hero-buttons {
        justify-content: flex-start;
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-graphic-wrapper {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-logo-mobile {
        display: none;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .footer-logo-desktop {
        display: block;
    }
    .footer-copyright-col {
        text-align: center;
    }
    .footer-social-icons {
        margin-top: 0;
    }
}

/* --- Form Status Messages --- */
.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    display: none; /* Hidden by default */
}
.form-status.sending,
.form-status.success,
.form-status.error {
    display: block; /* Show when it has a class */
}
.form-status.sending {
    background-color: var(--color-secondary);
    color: var(--color-secondary-text);
}
.form-status.success {
    background-color: rgba(16, 185, 129, 0.1); /* Green */
    color: var(--color-green);
}
.form-status.error {
    background-color: rgba(239, 68, 68, 0.1); /* Red */
    color: var(--color-red);
}

/* Large screens (lg) */
@media (min-width: 1024px) {
    .hero-heading {
        font-size: 4.5rem; /* 7xl */
    }
    .website-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}