/*
  ================================================================================
  Theme: Modern Digital Marketing Agency
  Version: 2.0
  Author: AI Assistant
  Description: This stylesheet is a complete, framework-free implementation
               inspired by the provided design. It is intentionally verbose,
               with detailed comments and non-shorthand properties to meet
               project requirements. It includes global styles, layout,
               components, section-specific styles, and full responsiveness.
  ================================================================================
*/

/* =============================================================================
   1. CSS Variables & Font Imports
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --color-primary-dark: #0f172a;
    /* Navy Blue */
    --color-primary-medium: #1e293b;
    /* Lighter Navy */
    --color-accent: #e11d48;
    /* Vibrant Red/Pink */
    --color-accent-hover: #be123c;
    --color-light-bg: #f8fafc;
    /* Off-white background */
    --color-text-light: #f1f5f9;
    --color-text-dark: #334155;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;

    /* Typography */
    --font-family-base: 'Poppins', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Sizing & Spacing */
    --header-height: 85px;
    --container-width: 1140px;
    --spacing-base: 1rem;
    /* 16px */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;

    /* Shadows */
    --box-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.08);

    /* No Transitions */
    --transition-speed: 0s;
}

/* =============================================================================
   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: 1rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--color-primary-dark);
    margin-top: 0;
    margin-bottom: calc(var(--spacing-base) * 1.5);
}

h1 {
    font-size: 3.5rem;
}

/* 56px */
h2 {
    font-size: 2.5rem;
}

/* 40px */
h3 {
    font-size: 1.5rem;
}

/* 24px */
h4 {
    font-size: 1.25rem;
}

/* 20px */

p {
    margin-bottom: var(--spacing-base);
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* =============================================================================
   3. Layout & Helpers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--spacing-base) * 1.5);
    padding-right: calc(var(--spacing-base) * 1.5);
}

.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.bg-dark {
    background-color: var(--color-primary-dark);
}

.bg-light {
    background-color: var(--color-light-bg);
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: calc(var(--spacing-base) * 4);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    margin-bottom: var(--spacing-base);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 25px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 2px;
    background-color: var(--color-accent);
}

.section-title h2 {
    margin-bottom: var(--spacing-base);
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* =============================================================================
   4. Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80px;
    width: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: calc(var(--spacing-base) * 2.5);
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    padding-bottom: 5px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    text-decoration: none;
}

.nav-toggle {
    display: none;
    /* Hidden on desktop */
    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-text-light);
    border-radius: 2px;
}

/* =============================================================================
   5. Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

.btn-outline:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary-dark);
    text-decoration: none;
}

/* =============================================================================
   6. Hero Section
   ========================================================================== */
.hero {
    color: var(--color-text-light);
    padding-top: 100px;
    padding-bottom: 120px;
    background-size: cover;
    background-position: center center;
    position: relative;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    /* Dark overlay */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero h1 {
    color: #ffffff;
    margin-bottom: var(--spacing-base);
}

.hero h1 span {
    color: var(--color-accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    opacity: 0.9;
    margin-bottom: calc(var(--spacing-base) * 2.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-base);
}

/* =============================================================================
   7. Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--box-shadow-soft);
    border: 1px solid var(--color-border);
}

.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #fee2e2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card .icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-accent);
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.service-card .learn-more {
    font-weight: var(--font-weight-semibold);
    display: inline-block;
}

/* =============================================================================
   8. About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    left: 30px;
    background-color: var(--color-primary-medium);
    color: #ffffff;
    padding: 20px 30px;
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.about-experience-badge .number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.about-experience-badge .text {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.about-content .section-subtitle,
.about-content .section-title {
    text-align: left;
}

.about-features-list {
    margin-top: 30px;
    margin-bottom: 30px;
}

.about-features-list li {
    display: flex;
    align-items: start;
    margin-bottom: 20px;
}

.about-features-list .icon-check {
    background-color: #fee2e2;
    color: var(--color-accent);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-features-list strong {
    display: block;
    font-size: 1.1rem;
}

.about-features-list p {
    color: var(--color-text-muted);
    margin: 0;
}

/* =============================================================================
   9. Calculator Section
   ========================================================================== */
.calculator-container {
    display: flex;
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.calculator-options {
    flex-grow: 1;
    padding: 40px;
}

.calculator-option {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.calculator-option:last-child {
    border-bottom: none;
}

.calculator-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.calculator-option-label input {
    margin-right: 15px;
    width: 20px;
    height: 20px;
}

.calculator-option-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.calculator-option-info p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.calculator-option-price {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-dark);
}

.calculator-summary {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 40px;
    width: 300px;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-summary h4 {
    color: var(--color-text-light);
    font-weight: var(--font-weight-medium);
    margin-bottom: 10px;
}

.calculator-total {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: #ffffff;
    margin-bottom: 20px;
}

.calculator-summary .btn-accent {
    width: 100%;
}

/* =============================================================================
   10. Testimonials Section
   ========================================================================== */
.testimonial-wrapper {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

#testimonial-content {
    color: var(--color-text-light);
}

#testimonial-content .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--color-accent);
}

#testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
}

#testimonial-author {
    font-weight: var(--font-weight-semibold);
    font-size: 1.1rem;
}

#testimonial-author-title {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: normal;
    font-weight: var(--font-weight-regular);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.testimonial-nav button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.5rem;
}

.testimonial-nav button:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.testimonial-nav-prev {
    margin-left: -80px;
}

.testimonial-nav-next {
    margin-right: -80px;
}

/* =============================================================================
   11. CTA Section
   ========================================================================== */
.cta-section .section-title h2 {
    color: var(--color-text-light);
}

/* =============================================================================
   12. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding-top: 60px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-widget h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-widget p {
    color: var(--color-text-muted);
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul a {
    color: var(--color-text-muted);
}

.footer-widget ul a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
}

.footer-contact-info li svg {
    margin-right: 10px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary-medium);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a:hover {
    background-color: var(--color-accent);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--color-primary-medium);
    padding-top: 25px;
    padding-bottom: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* =============================================================================
   13. Contact & Legal Page Styles
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: var(--font-weight-medium);
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-base);
    font-size: 1rem;
}

.contact-form .form-control:focus {
    outline: 2px solid var(--color-accent);
    border-color: transparent;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-card {
    background-color: var(--color-light-bg);
    padding: 30px;
    border-radius: var(--border-radius-md);
}

.contact-info-card h3 {
    margin-bottom: 20px;
}

.contact-info-card li {
    display: flex;
    margin-bottom: 20px;
    align-items: start;
}

.contact-info-card li svg {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    margin-top: 3px;
}

.contact-info-card li p {
    margin: 0;
    line-height: 1.5;
}

.legal-page-content h1 {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.legal-page-content h2 {
    margin-top: 2rem;
}

.legal-page-content p {
    text-align: justify;
}

.legal-page-content ul {
    list-style-type: disc;
    padding-left: 2rem;
}

/* =============================================================================
   14. Responsive Design
   ========================================================================== */
/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .about-grid {
        gap: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-nav {
        display: none;
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-primary-medium);
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }

    .main-nav li {
        margin: 0;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav .header-cta {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto 50px;
    }

    .calculator-container {
        flex-direction: column;
    }

    .calculator-summary {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        margin-top: 30px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .calculator-options,
    .calculator-summary {
        padding: 25px;
    }

    .calculator-option {
        flex-direction: column;
        align-items: start;
    }

    .calculator-option-price {
        margin-top: 10px;
    }
}