/*
  ================================================================================
  Theme: Corporate Professional Light (Enhanced UI)
  Version: 4.1 (Corrected Form Styles)
  Author: AI Assistant
  Description: A complete, framework-free stylesheet for a premium, light-themed
               digital marketing agency website. This version includes full,
               detailed styling for all form elements.
  ================================================================================
*/

/* =============================================================================
   1. CSS Variables & Font Imports
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* New Color Palette */
    --color-primary: #1d3557;
    /* Deep Slate Blue */
    --color-secondary: #457b9d;
    /* Muted Steel Blue */
    --color-accent: #00a896;
    /* Vibrant Teal */
    --color-accent-hover: #028374;
    --color-light-bg: #f8f9fa;
    /* Very Light Gray */
    --color-text-dark: #1e2a3b;
    /* Darker Slate for headings */
    --color-text-body: #4a5568;
    /* Softer gray for body */
    --color-border: #e2e8f0;

    /* Typography */
    --font-family-base: 'Plus Jakarta Sans', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Sizing & Spacing */
    --header-height: 90px;
    --container-width: 1200px;
    --spacing-base: 1rem;
    /* 16px */
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    /* Added for form inputs */

    /* Shadows */
    --box-shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --box-shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* =============================================================================
   2. Base & Reset Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family-base);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-body);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-extrabold);
    line-height: 1.25;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.75rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-hover);
}

ul,
ol {
    list-style: none;
}

/* =============================================================================
   3. Layout & Helpers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-light-bg);
}

.text-center {
    text-align: center;
}

.section-title {
    margin: 0 auto 4rem;
    text-align: center;
    max-width: 750px;
}

.section-subtitle {
    display: block;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

.section-title h2 {
    margin-bottom: 1.5rem;
}

.section-title>p {
    margin-left: auto;
    margin-right: auto;
}

/* =============================================================================
   4. Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    height: var(--header-height);
    box-shadow: var(--box-shadow-subtle);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 85px;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 2.5rem;
}

.main-nav a {
    color: var(--color-text-dark);
    font-weight: var(--font-weight-bold);
    position: relative;
    padding: 10px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle .hamburger-icon {
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle .hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* =============================================================================
   5. Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: var(--border-radius-md);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #ffffff;
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: var(--color-primary);
    text-decoration: none;
}

/* =============================================================================
   6. Hero Section
   ========================================================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 60px 0;
}

.hero-content h1 {
    line-height: 1.15;
}

.hero-content h1 span {
    color: var(--color-accent);
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-body);
    margin: 2rem 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    border-radius: var(--border-radius-md);
}

/* =============================================================================
   7. Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-subtle);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    border-radius: var(--border-radius-md);
    background-color: #e0f2f1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card .icon-wrapper svg {
    width: 30px;
    height: 30px;
    color: var(--color-accent);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card .learn-more {
    font-weight: var(--font-weight-bold);
    display: inline-block;
    margin-top: 1.5rem;
}

/* =============================================================================
   8. About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius-md);
}

.about-content p {
    font-size: 1.1rem;
}

.about-content .section-title {
    text-align: left;
    margin: 0 0 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-list .icon-check {
    background-color: #dbeafe;
    color: #3b82f6;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-list span {
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

/* =============================================================================
   9. Our Process Section
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-card {
    padding: 30px;
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: attr(data-step);
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 6rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-light-bg);
    z-index: 1;
}

.process-card>* {
    position: relative;
    z-index: 2;
}

.process-card h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
}

/* =============================================================================
   10. Stats Section
   ========================================================================== */
.stats-section {
    background-color: var(--color-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 2rem 0;
}

.stat-item .number {
    font-size: 3.5rem;
    font-weight: var(--font-weight-extrabold);
    color: #ffffff;
    line-height: 1;
}

.stat-item .label {
    font-size: 1.1rem;
    color: var(--color-secondary);
}

/* =============================================================================
   11. Testimonials Section (Avatar-less)
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 40px;
    position: relative;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 6rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-light-bg);
    line-height: 1;
    z-index: 1;
}

.testimonial-card>* {
    position: relative;
    z-index: 2;
}

.testimonial-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
}

.testimonial-author {
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
}

.testimonial-author-title {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-body);
}

/* =============================================================================
   12. FAQ Section
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item details {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
}

.faq-item summary {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-item details[open] summary {
    color: var(--color-accent);
}

.faq-item details[open] summary::after {
    content: '−';
}

.faq-item .faq-answer {
    padding: 0 1.5rem 1.5rem;
}

/* =============================================================================
   13. CTA Section
   ========================================================================== */
.cta-section {
    background-color: var(--color-secondary);
    border-radius: var(--border-radius-md);
    padding: 80px 40px;
    text-align: center;
}

.cta-section .section-title {
    margin: 0 auto;
}

.cta-section h2 {
    color: #ffffff;
}

.cta-section p {
    color: #e0f2f1;
}

/* =============================================================================
   14. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding-top: 80px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-widget h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-widget p,
.footer-widget ul a {
    color: var(--color-secondary);
}

.footer-widget ul a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--color-secondary);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

/* =============================================================================
   15. Contact & Legal Pages  (*** CORRECTED & DETAILED STYLES ***)
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-family-base);
    font-size: 1rem;
    color: var(--color-text-body);
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    background-color: var(--color-light-bg);
    padding: 40px;
    border-radius: var(--border-radius-md);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--color-text-body);
}

.legal-page-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page-content h1 {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.legal-page-content h2 {
    margin-top: 2.5rem;
}

/* =============================================================================
   16. Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid,
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .process-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 80px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #ffffff;
        display: none;
        box-shadow: var(--box-shadow-medium);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
    }

    .main-nav li {
        margin: 0;
    }

    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--color-border);
    }

    .header-cta {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    .services-grid,
    .testimonial-grid,
    .process-grid,
    .stats-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }
}