/* ================================================
   Edmonton SEO - Design System
   Colors: #F0E491, #BBC863, #658C58, #31694E
   Nature-inspired green/gold palette
   ================================================ */

/* CSS Variables */
:root {
    --primary-color: #31694E;
    --secondary-color: #658C58;
    --accent-color: #BBC863;
    --highlight-color: #F0E491;
    --text-color: #1a2e1a;
    --text-light: #4a5a4a;
    --bg-light: #f8faf6;
    --bg-cream: #fdfcf4;
    --bg-gradient: linear-gradient(135deg, #31694E 0%, #658C58 50%, #BBC863 100%);
    --bg-gradient-reverse: linear-gradient(135deg, #BBC863 0%, #658C58 50%, #31694E 100%);
    --bg-gradient-subtle: linear-gradient(135deg, rgba(49,105,78,0.05) 0%, rgba(101,140,88,0.08) 100%);
    --shadow-sm: 0 2px 8px rgba(49,105,78,0.08);
    --shadow-md: 0 8px 30px rgba(49,105,78,0.12);
    --shadow-lg: 0 20px 60px rgba(49,105,78,0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
    max-width: 100vw;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px rgba(49,105,78,0.3);
}

.btn-primary:hover {
    background: #265840;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(49,105,78,0.4);
}

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

.btn-secondary:hover {
    background: #e8db7a;
    border-color: #e8db7a;
}

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

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

/* ================================================
   Header & Navigation
   ================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    z-index: 1001;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    align-items: baseline;
}

.logo-highlight {
    color: var(--primary-color);
}

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

.hamburger-icon {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    position: relative;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    left: 0;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: -8px; }

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Navigation Links - Mobile First */
.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -1.5rem;
    right: -1.5rem;
    background: white;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    border-bottom: 1px solid rgba(49,105,78,0.08);
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--primary-color);
    background: rgba(49,105,78,0.05);
}

/* Dropdown - Mobile */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s;
    margin-left: 0.5rem;
}

.has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    background: var(--bg-light);
    padding: 0.5rem 0;
}

.has-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    color: var(--primary-color);
    background: rgba(49,105,78,0.08);
}

/* Language Switcher */
.lang-switcher {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(49,105,78,0.1);
}

.lang-switcher a {
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
}

.lang-switcher a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-divider {
    color: var(--text-light);
    opacity: 0.5;
}

/* Active parent indicator */
.has-dropdown.active-parent > a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 5rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    max-width: 100vw;
}

/* Hero Waves SVG Container */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.hero-waves svg {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(240,228,145,0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(49,105,78,0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 60%, rgba(187,200,99,0.15) 0%, transparent 30%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.15;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img,
.hero-image svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-item {
    position: absolute;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.float-item:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.float-item:nth-child(2) { top: 65%; left: 85%; animation-delay: -5s; }
.float-item:nth-child(3) { top: 25%; left: 75%; animation-delay: -10s; }
.float-item:nth-child(4) { top: 75%; left: 15%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(20px) rotate(-5deg); }
}

/* ================================================
   Sections
   ================================================ */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.section-header p {
    font-size: 1.1rem;
}

/* ================================================
   Services Grid
   ================================================ */
.services-section {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(49,105,78,0.08);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--highlight-color) 0%, rgba(187,200,99,0.3) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    padding: 0.875rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 0.75rem;
}

/* ================================================
   Process Section
   ================================================ */
.process-section {
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 2;
}

.process-step h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* ================================================
   Testimonials Section
   ================================================ */
.testimonials-section {
    background: var(--bg-cream);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(49,105,78,0.08);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    color: var(--text-color);
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

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

.testimonial-rating {
    color: #f5b300;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ================================================
   CTA Section
   ================================================ */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0C30 16.569 16.569 30 0 30c16.569 0 30 13.431 30 30 0-16.569 13.431-30 30-30C43.431 30 30 16.569 30 0z' fill='%23fff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.cta-benefits {
    list-style: none;
    text-align: left;
    max-width: 350px;
    margin: 0 auto;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.cta-benefits li svg {
    flex-shrink: 0;
}

.cta-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cta-form h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
}

.cta-form .form-group {
    margin-bottom: 1rem;
}

.cta-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e8ebe5;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.cta-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.cta-form .btn-full {
    width: 100%;
}

@media (min-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

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

    .cta-benefits {
        margin: 0;
    }
}

/* ================================================
   Page Hero (Service, About, etc.)
   ================================================ */
.service-hero,
.about-hero {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    padding: 9rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-hero::before,
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(240,228,145,0.25) 0%, transparent 35%),
        radial-gradient(circle at 90% 10%, rgba(49,105,78,0.1) 0%, transparent 35%);
    pointer-events: none;
}

.service-hero .container,
.about-hero .container {
    position: relative;
    z-index: 1;
}

.service-hero h1,
.about-hero h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.service-hero p,
.about-hero p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

/* Page Image */
.page-image {
    margin: 3rem auto 0;
    max-width: 450px;
}

.page-image img,
.page-image svg {
    width: 100%;
    height: auto;
}

/* ================================================
   About Page
   ================================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
    text-align: left;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.value-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ================================================
   Contact Page
   ================================================ */
.contact-section {
    padding: 9rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-cream) 0%, white 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(49,105,78,0.08);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e8e5;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(49,105,78,0.1);
}

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

.form-group .required {
    color: #c44;
}

.contact-info {
    padding: 2rem;
}

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

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--highlight-color) 0%, rgba(187,200,99,0.3) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-content p,
.info-content a {
    color: var(--text-color);
    font-weight: 500;
}

.info-content a:hover {
    color: var(--primary-color);
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: none;
}

.form-message.success {
    background: rgba(49,105,78,0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    display: block;
}

.form-message.error {
    background: #fdf2f2;
    color: #c44;
    border: 1px solid #c44;
    display: block;
}

/* ================================================
   Service Page Content
   ================================================ */
.service-intro {
    padding: 4rem 0;
}

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

.service-features {
    background: var(--bg-light);
    padding: 4rem 0;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(49,105,78,0.08);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e8e5;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Related Services */
.related-services {
    background: var(--bg-light);
    padding: 4rem 0;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ================================================
   Stats Section
   ================================================ */
.stats-section {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid rgba(49,105,78,0.08);
    border-bottom: 1px solid rgba(49,105,78,0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ================================================
   404 Error Page
   ================================================ */
.error-page {
    text-align: center;
    padding: 9rem 2rem 4rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-cream) 0%, white 100%);
}

.error-page .container {
    width: 100%;
}

.error-page h1 {
    font-size: 7rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-page h2 {
    font-size: 1.75rem;
    margin: 1rem 0;
    color: var(--primary-color);
}

.error-page > .container > p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 1rem 0 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.popular-pages {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e8e5;
}

.popular-pages h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.popular-pages ul {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.popular-pages a {
    color: var(--primary-color);
    font-weight: 500;
}

.popular-pages a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ================================================
   Footer
   ================================================ */
.site-footer {
    background: var(--primary-color);
    color: white;
    position: relative;
}

.footer-waves {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 0 2rem;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo .highlight {
    color: var(--highlight-color);
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--highlight-color);
}

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

.footer-links ul a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--highlight-color);
    padding-left: 0.5rem;
}

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

.footer-contact .contact-icon {
    flex-shrink: 0;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
}

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

/* ================================================
   Responsive Design - Tablet (769px+)
   ================================================ */
@media (min-width: 769px) {
    /* Typography */
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }

    /* Navigation - Desktop */
    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        box-shadow: none;
        background: transparent;
        padding: 0;
        gap: 0.25rem;
    }

    .nav-links li {
        border-bottom: none;
    }

    .nav-links > li > a {
        padding: 0.75rem 1rem;
    }

    /* Dropdown - Desktop */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-sm);
        min-width: 220px;
        padding: 0.5rem 0;
        display: none;
        border: 1px solid rgba(49,105,78,0.08);
    }

    .has-dropdown:hover .dropdown-menu {
        display: block;
    }

    .has-dropdown.active .dropdown-menu {
        display: none;
    }

    .has-dropdown:hover .dropdown-menu {
        display: block;
    }

    /* Language Switcher - Desktop */
    .lang-switcher {
        display: flex;
        padding: 0;
        border: none;
        margin-left: 1rem;
    }

    /* Container */
    .container {
        padding: 0 2rem;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 8rem 0 5rem;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .hero-text {
        text-align: left;
    }

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

    .hero p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: flex-start;
    }

    .hero-image img,
    .hero-image svg {
        max-width: 550px;
    }

    /* Grids */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

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

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Service/About Hero */
    .service-hero,
    .about-hero {
        padding: 10rem 0 5rem;
    }

    .service-hero h1,
    .about-hero h1 {
        font-size: 3rem;
    }

    .page-image {
        max-width: 500px;
    }

    /* Buttons */
    .btn {
        width: auto;
    }
}

/* ================================================
   Responsive Design - Desktop (1025px+)
   ================================================ */
@media (min-width: 1025px) {
    /* Typography */
    h1 { font-size: 3.25rem; }
    h2 { font-size: 2.5rem; }

    /* Hero */
    .hero h1 {
        font-size: 3.5rem;
    }

    /* Grids */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .service-intro-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================
   Large Desktop (1400px+)
   ================================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

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

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

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

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

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--bg-gradient);
    z-index: 1001;
    transition: width 0.1s;
}

/* ================================================
   Service Page Unique Layouts
   ================================================ */

/* Hero Badge */
/* Service Page Unique Hero Content Alignment */
.service-hero.keyword-hero .container,
.service-hero.audit-hero .container,
.service-hero.linkbuilding-hero .container,
.service-hero.local-hero .container,
.service-hero.editorial-hero .container,
.service-hero.techseo-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.service-hero.keyword-hero h1,
.service-hero.audit-hero h1,
.service-hero.linkbuilding-hero h1,
.service-hero.local-hero h1,
.service-hero.editorial-hero h1,
.service-hero.techseo-hero h1 {
    color: var(--primary-color);
}

.service-hero.keyword-hero .hero-cta,
.service-hero.audit-hero .hero-cta,
.service-hero.linkbuilding-hero .hero-cta,
.service-hero.local-hero .hero-cta,
.service-hero.editorial-hero .hero-cta,
.service-hero.techseo-hero .hero-cta {
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(49,105,78,0.15);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Service Hero Illustrations */
.hero-search-visual,
.hero-audit-visual,
.hero-network-visual,
.hero-map-visual,
.hero-editorial-visual,
.hero-dashboard-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 300px;
    opacity: 0.3;
    pointer-events: none;
}

@media (min-width: 1025px) {
    .hero-search-visual,
    .hero-audit-visual,
    .hero-network-visual,
    .hero-map-visual,
    .hero-editorial-visual,
    .hero-dashboard-visual {
        opacity: 0.6;
    }
}

/* ================================================
   Service Hero Layout (Text + Image on top, Buttons below)
   ================================================ */
.service-hero .hero-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    align-items: center;
}

.service-hero .hero-grid-layout .hero-text {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
}

.service-hero .hero-grid-layout .hero-text .hero-badge {
    margin-bottom: 1rem;
}

.service-hero .hero-grid-layout .hero-text h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-hero .hero-grid-layout .hero-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 100%;
    margin: 0;
}

.service-hero .hero-grid-layout .hero-visual {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.service-hero .hero-grid-layout .hero-visual svg {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.service-hero .hero-grid-layout .hero-cta {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
}

.service-hero .hero-grid-layout .hero-cta .btn {
    white-space: nowrap;
    min-width: 180px;
    text-align: center;
}

/* Hide the old absolute positioned visuals when using grid layout */
.service-hero:has(.hero-grid-layout) .hero-search-visual,
.service-hero:has(.hero-grid-layout) .hero-audit-visual,
.service-hero:has(.hero-grid-layout) .hero-network-visual,
.service-hero:has(.hero-grid-layout) .hero-map-visual,
.service-hero:has(.hero-grid-layout) .hero-editorial-visual,
.service-hero:has(.hero-grid-layout) .hero-dashboard-visual {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .service-hero .hero-grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        gap: 1.5rem;
    }

    .service-hero .hero-grid-layout .hero-text {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
    }

    .service-hero .hero-grid-layout .hero-text h1 {
        font-size: 1.75rem;
    }

    .service-hero .hero-grid-layout .hero-visual {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
    }

    .service-hero .hero-grid-layout .hero-visual svg {
        max-width: 280px;
    }

    .service-hero .hero-grid-layout .hero-cta {
        grid-column: 1;
        grid-row: 3;
        flex-direction: column;
        align-items: center;
        padding-top: 0;
    }

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

/* Stats Grid 4 columns */
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Discovery Grid */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .discovery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .discovery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.discovery-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.discovery-card.primary {
    background: var(--bg-gradient);
    color: white;
}

.discovery-card.primary h3 {
    color: white;
}

.discovery-card.primary p {
    color: rgba(255,255,255,0.9);
}

.discovery-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

/* Timeline Process */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding-bottom: 2rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-left: -25px;
    padding-top: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

/* Deliverables Grid */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .deliverables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .deliverables-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.deliverable-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.deliverable-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.deliverable-card h4 {
    margin-bottom: 0.5rem;
}

/* Service Contact Section */
.service-contact {
    padding: 5rem 0;
    background: var(--bg-gradient-subtle);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-benefits {
    margin-top: 2rem;
}

.contact-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-form-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form-card .form-group {
    margin-bottom: 1rem;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form-card .btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

/* Audit Preview Cards */
.audit-preview {
    padding: 3rem 0;
    background: var(--bg-light);
}

.audit-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .audit-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.audit-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.audit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.audit-icon.red { color: #e53935; }
.audit-icon.yellow { color: #ffa000; }
.audit-icon.green { color: #43a047; }

.audit-score {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-light);
    margin-top: 0.5rem;
}

/* Checklist Columns */
.checklist-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .checklist-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .checklist-columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

.checklist-group h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.checklist {
    list-style: none;
}

.checklist li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checklist li.checked::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.comparison-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.comparison-metrics {
    padding: 1.5rem;
}

.metric {
    margin-bottom: 1.5rem;
}

.metric:last-child {
    margin-bottom: 0;
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.metric-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.metric-values .before {
    color: var(--text-light);
}

.metric-values .after {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.improvement {
    display: block;
    text-align: center;
    color: var(--secondary-color);
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Authority Metrics */
.authority-metrics {
    padding: 4rem 0;
    background: var(--bg-light);
}

.metrics-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .metrics-showcase {
        grid-template-columns: 1fr 1fr;
    }
}

.metric-card.featured {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.metric-visual {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
}

.metric-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.metric-center .metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-center .metric-unit {
    font-size: 0.75rem;
    color: var(--text-light);
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.metric-item .metric-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.metric-content .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-content .label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Strategies Grid */
.strategies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .strategies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .strategies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.strategy-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.strategy-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.3;
}

.strategy-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

/* Quality Factors */
.quality-factors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .quality-factors {
        grid-template-columns: repeat(3, 1fr);
    }
}

.factor {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.factor-score {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.factor-score.high {
    background: #e8f5e9;
    color: #2e7d32;
}

.factor-score.medium {
    background: #fff3e0;
    color: #ef6c00;
}

/* Map Pack Preview */
.mappack-preview {
    padding: 4rem 0;
    background: var(--bg-light);
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .preview-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.mock-search {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.map-results {
    padding: 0;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.result-item.featured {
    background: #f0faf5;
}

.result-rank {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.result-info {
    flex: 1;
}

.result-stars {
    color: #ffc107;
    font-size: 0.875rem;
}

.result-stars span {
    color: var(--text-light);
    font-size: 0.75rem;
}

.result-stars.faded {
    opacity: 0.6;
}

.result-distance {
    font-size: 0.75rem;
    color: var(--text-light);
}

.result-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.competitor {
    color: var(--text-light);
}

.preview-stats h3 {
    margin-bottom: 1.5rem;
}

.stat-list .stat {
    margin-bottom: 1.5rem;
}

.stat-list .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-list .stat-desc {
    color: var(--text-light);
}

/* Services Showcase */
.services-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-showcase-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .service-showcase-card {
        grid-template-columns: 100px 1fr;
    }
}

.service-visual {
    display: flex;
    justify-content: center;
}

.service-visual svg {
    width: 100px;
    height: 100px;
}

.service-details ul {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--text-light);
}

.service-details li {
    margin-bottom: 0.25rem;
}

/* Areas Grid */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .areas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1025px) {
    .areas-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.area-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.area-card:hover {
    background: var(--primary-color);
    color: white;
}

/* Content Impact */
.content-impact {
    padding: 4rem 0;
    background: var(--bg-light);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.impact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.impact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.impact-stat {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.impact-label {
    color: var(--text-light);
}

/* Content Types */
.content-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .content-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

.content-type-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.content-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.content-features {
    margin-top: 1rem;
    list-style: none;
}

.content-features li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.content-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Process Flow */
.process-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
}

.process-item {
    flex: 1;
    min-width: 150px;
    max-width: 180px;
    text-align: center;
}

.process-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
}

.process-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.process-item p {
    font-size: 0.75rem;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
    align-self: center;
    display: none;
}

@media (min-width: 768px) {
    .process-arrow {
        display: block;
    }
}

/* Vitals Section */
.vitals-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.vitals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .vitals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vital-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.vital-gauge {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.vital-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.vital-value .number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.vital-value .target {
    font-size: 0.625rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.vital-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

.vital-status.good {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Issues Grid */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .issues-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.issue-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.issue-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.issue-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.issue-card p {
    font-size: 0.8rem;
}

/* Audit Steps */
.audit-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .audit-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .audit-steps {
        grid-template-columns: repeat(6, 1fr);
    }
}

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

.step-badge {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.audit-step h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.audit-step p {
    font-size: 0.75rem;
}

/* ================================================
   Services Landing Page Hero Section
   ================================================ */
.services-landing-hero {
    padding: 8rem 0 4rem;
    background: var(--bg-gradient-subtle);
    overflow: hidden;
}

.services-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.services-hero-text {
    text-align: left;
}

.services-hero-text h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.services-hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.services-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-hero-visual svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .services-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .services-hero-text h1 {
        font-size: 2.25rem;
    }

    .services-hero-visual svg {
        max-width: 320px;
    }
}

@media (max-width: 576px) {
    .services-landing-hero {
        padding: 6rem 0 3rem;
    }

    .services-hero-text h1 {
        font-size: 1.75rem;
    }

    .services-hero-text p {
        font-size: 1rem;
    }

    .services-hero-visual svg {
        max-width: 260px;
    }
}

/* ================================================
   Contact Page Hero Section
   ================================================ */
.contact-hero {
    padding: 6rem 0 3rem;
    background: var(--bg-gradient-subtle);
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-hero-text h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-hero-visual svg {
    max-width: 100%;
    height: auto;
}

/* Contact Info Icons */
.info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-hero-text h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        padding: 4rem 0 2rem;
    }

    .contact-hero-text h1 {
        font-size: 1.75rem;
    }
}

/* ================================================
   About & Process Page Hero Sections
   ================================================ */
.about-hero,
.process-hero {
    padding: 6rem 0 4rem;
    background: var(--bg-gradient-subtle);
}

.about-hero-content,
.process-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-hero-text h1,
.process-hero-text h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-hero-text p,
.process-hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-hero-visual,
.process-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-hero-visual svg,
.process-hero-visual svg {
    max-width: 100%;
    height: auto;
}

/* Values Section */
.values-section {
    padding: 5rem 0;
    background: var(--bg-cream);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

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

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Timeline Section */
.timeline-section {
    padding: 5rem 0;
    background: #fff;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.timeline-grid::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color), var(--highlight-color));
    border-radius: 2px;
    z-index: 0;
}

.timeline-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-marker {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    position: relative;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
}

.timeline-marker svg {
    width: 100%;
    height: 100%;
}

.timeline-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.timeline-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Step Icon Styling for Process Page */
.step-icon {
    background: transparent !important;
}

.step-icon svg {
    width: 48px;
    height: 48px;
}

/* Responsive Styles for About/Process Pages */
@media (max-width: 992px) {
    .about-hero-content,
    .process-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-hero-text h1,
    .process-hero-text h1 {
        font-size: 2.25rem;
    }

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

    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .timeline-grid::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .about-hero,
    .process-hero {
        padding: 4rem 0 3rem;
    }

    .about-hero-text h1,
    .process-hero-text h1 {
        font-size: 1.75rem;
    }

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

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

    .value-card,
    .timeline-card {
        padding: 1.5rem;
    }
}

/* ================================================
   Mobile Responsiveness Fixes
   ================================================ */

/* Global Mobile Overflow Fixes */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Homepage Hero Mobile Fixes */
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

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

    .hero-content {
        gap: 1.5rem;
    }

    .hero-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-image img,
    .hero-image svg {
        max-width: 100%;
    }

    /* Hide floating elements on mobile */
    .floating-elements {
        display: none;
    }

    /* Hero waves mobile */
    .hero-waves {
        height: 60px;
    }

    .hero-waves svg {
        height: 60px;
    }

    /* Process steps mobile */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-step {
        padding: 1.25rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Section padding mobile */
    .services-section,
    .process-section,
    .testimonials-section {
        padding: 3rem 0;
    }

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

    .section-header p {
        font-size: 0.95rem;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
    }
}

/* Service Hero Mobile Fixes */
@media (max-width: 768px) {
    .service-hero.keyword-hero,
    .service-hero.audit-hero,
    .service-hero.linkbuilding-hero,
    .service-hero.local-hero,
    .service-hero.editorial-hero,
    .service-hero.techseo-hero {
        padding: 7rem 0 3rem;
    }

    .service-hero.keyword-hero .container,
    .service-hero.audit-hero .container,
    .service-hero.linkbuilding-hero .container,
    .service-hero.local-hero .container,
    .service-hero.editorial-hero .container,
    .service-hero.techseo-hero .container {
        padding: 0 1rem;
    }

    .service-hero.keyword-hero h1,
    .service-hero.audit-hero h1,
    .service-hero.linkbuilding-hero h1,
    .service-hero.local-hero h1,
    .service-hero.editorial-hero h1,
    .service-hero.techseo-hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .service-hero.keyword-hero p,
    .service-hero.audit-hero p,
    .service-hero.linkbuilding-hero p,
    .service-hero.local-hero p,
    .service-hero.editorial-hero p,
    .service-hero.techseo-hero p {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hide decorative SVG visuals on mobile */
    .hero-search-visual,
    .hero-audit-visual,
    .hero-network-visual,
    .hero-map-visual,
    .hero-editorial-visual,
    .hero-dashboard-visual {
        display: none;
    }
}

/* About/Process Content Mobile */
@media (max-width: 768px) {
    .about-content {
        padding: 2.5rem 0;
    }

    .about-text {
        padding: 0 0.5rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Service Cards Mobile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }
}

/* Stats Grid Mobile */
@media (max-width: 768px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* CTA Section Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 0;
    }

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

    .cta-section p {
        font-size: 1rem;
    }

    .cta-grid {
        gap: 2rem;
    }

    .cta-benefits {
        max-width: 100%;
    }

    .cta-benefits li {
        font-size: 0.9rem;
    }

    .cta-form {
        padding: 1.5rem;
    }
}

/* Contact Page Mobile */
@media (max-width: 768px) {
    .contact-hero {
        padding: 7rem 0 2rem;
    }

    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-hero-text h1 {
        font-size: 1.75rem;
    }

    .contact-hero-text p {
        font-size: 1rem;
    }

    .contact-hero-visual svg {
        max-width: 280px;
        margin: 0 auto;
    }

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

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: row;
        text-align: left;
    }

    .info-icon {
        width: 40px;
        height: 40px;
    }
}

/* Testimonials Mobile */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

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

    .stat-number {
        font-size: 2rem;
    }
}

/* FAQ Mobile */
@media (max-width: 768px) {
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
    }
}

/* ================================================
   Print Styles
   ================================================ */
@media print {
    .site-header,
    .site-footer,
    .floating-elements,
    .cta-section,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
    }
}

/* ================================================
   What We Do Section - Keyword Carousel
   ================================================ */
.what-we-do-section {
    padding: 5rem 0 4rem;
    background: var(--bg-gradient-subtle);
    overflow: hidden;
}

.what-we-do-section .section-header {
    margin-bottom: 3rem;
}

/* Carousel Wrapper */
.keyword-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

/* Individual Carousel Row */
.carousel-row {
    width: 100%;
    overflow: hidden;
    margin-bottom: 1rem;
}

.carousel-row:last-child {
    margin-bottom: 0;
}

/* Carousel Track - The scrolling container */
.carousel-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: carousel-scroll var(--animation-duration, 340s) linear infinite;
}

/* Pause animation on hover */
.carousel-row:hover .carousel-track {
    animation-play-state: paused;
}

/* Alternate row directions */
.carousel-row:nth-child(even) .carousel-track {
    animation-name: carousel-scroll-reverse;
}

/* Carousel Animations */
@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes carousel-scroll-reverse {
    0% {
        transform: translateX(-33.333%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Keyword Chip Buttons */
.keyword-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.keyword-chip:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.keyword-chip:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 105, 78, 0.3);
}

.keyword-chip:active {
    transform: translateY(-1px) scale(0.98);
}

/* Keyword Icon */
.keyword-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition);
}

.keyword-chip:hover .keyword-icon {
    color: var(--highlight-color);
}

/* Keyword Text */
.keyword-text {
    text-transform: capitalize;
}

/* ================================================
   Article Modal / Pop-up
   ================================================ */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Modal Overlay (darkened background) */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Modal Container */
.modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.article-modal.active .modal-container {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(49, 105, 78, 0.1);
    background: var(--bg-light);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: capitalize;
    margin: 0;
    padding-right: 1rem;
}

/* Close Button */
.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(49, 105, 78, 0.1);
    color: var(--primary-color);
}

.modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 105, 78, 0.2);
}

/* Modal Body - Scrollable Content */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.modal-content {
    padding: 2rem;
}

/* Scrollbar Styling for Modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Article Content Styling */
.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-content h1:first-child,
.modal-content h2:first-child,
.modal-content h3:first-child {
    margin-top: 0;
}

.modal-content h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.modal-content h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.modal-content ul,
.modal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.modal-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.modal-content a:hover {
    color: var(--secondary-color);
}

.modal-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-light);
}

.modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.modal-content th,
.modal-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(49, 105, 78, 0.1);
}

.modal-content th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ================================================
   What We Do Section - Responsive
   ================================================ */
@media (max-width: 1024px) {
    .what-we-do-section {
        padding: 4rem 0 3rem;
    }

    .keyword-chip {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .what-we-do-section {
        padding: 3rem 0 2.5rem;
    }

    .what-we-do-section .section-header {
        margin-bottom: 2rem;
    }

    .carousel-row {
        margin-bottom: 0.75rem;
    }

    .carousel-track {
        gap: 0.75rem;
    }

    .keyword-chip {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        gap: 0.375rem;
    }

    .keyword-icon svg {
        width: 14px;
        height: 14px;
    }

    /* Modal Responsive */
    .modal-container {
        width: 95%;
        max-height: 90vh;
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-close {
        width: 36px;
        height: 36px;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-content h2 {
        font-size: 1.25rem;
    }

    .modal-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .what-we-do-section {
        padding: 2.5rem 0 2rem;
    }

    .keyword-chip {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .modal-container {
        width: 98%;
        max-height: 92vh;
    }

    .modal-header {
        padding: 0.875rem 1rem;
    }

    .modal-content {
        padding: 1.25rem;
    }
}
