/**
 * Ottawa SEO - Main Stylesheet
 * Design: Bold, modern, Vancouver-inspired
 * Colors: #3291B6, #BB8ED0, #E0A8A8, #F1E2E2
 */

/* ========================================
   CSS Variables & Root
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #3291B6;
    --primary-dark: #267a99;
    --primary-light: #4aa8cc;
    --primary-lighter: #e8f4f8;

    /* Accent Colors */
    --accent: #BB8ED0;
    --accent-light: #d4b3e3;
    --coral: #E0A8A8;
    --blush: #F1E2E2;

    /* Neutrals */
    --black: #111111;
    --dark: #1a1a1a;
    --text: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --light: #f8f9fa;
    --border: #e5e5e5;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 7rem;
    --container-max: 1200px;

    /* Border Radius */
    --radius: 24px;
    --radius-sm: 12px;
    --radius-full: 50px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 900;
    line-height: 1.1;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 10vw, 7rem);
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
    color: var(--black);
}

.section-title p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Layout
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-padding) 0;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateY(100%);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-primary:hover {
    color: var(--black);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

.btn-secondary:hover {
    color: var(--black);
}

.btn-white {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn-white::before {
    background: var(--primary);
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(50, 145, 182, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.logo-icon {
    width: 45px;
    height: 45px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--black);
}

.site-header.scrolled .logo-text {
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links > li > a {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black);
    padding: 0.5rem 0;
    position: relative;
}

.site-header.scrolled .nav-links > li > a {
    color: var(--white);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

.site-header.scrolled .nav-links > li > a::after {
    background: var(--white);
}

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

.dropdown-arrow {
    font-size: 0.5rem;
    margin-left: 0.25rem;
    transition: var(--transition);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    min-width: 250px;
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

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

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--primary);
    color: var(--white);
}

.has-dropdown.active-parent > a {
    color: var(--primary);
}

.site-header.scrolled .has-dropdown.active-parent > a {
    color: var(--accent);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    padding: 0.25rem;
    margin-left: 1.5rem;
}

.lang-switcher a {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.site-header.scrolled .lang-switcher {
    background: rgba(255, 255, 255, 0.2);
}

.site-header.scrolled .lang-switcher a {
    color: var(--white);
}

.lang-switcher a.active {
    background: var(--black);
    color: var(--white);
}

.site-header.scrolled .lang-switcher a.active {
    background: var(--white);
    color: var(--black);
}

.lang-divider {
    display: none;
}

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

.hamburger-icon {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--black);
    position: relative;
    transition: var(--transition);
}

.site-header.scrolled .hamburger-icon,
.site-header.scrolled .hamburger-icon::before,
.site-header.scrolled .hamburger-icon::after {
    background: var(--white);
}

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

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: var(--primary);
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--black);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s ease forwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    color: var(--black);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 span {
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.2em;
    background: var(--accent);
    z-index: -1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--black);
    opacity: 0.8;
    max-width: 500px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.7s ease 0.2s forwards;
    opacity: 0;
}

.hero .cta-buttons {
    animation: fadeInUp 0.7s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Rotating circles */
.hero-circles {
    position: absolute;
    width: 500px;
    height: 500px;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-circle-1 {
    width: 100%;
    height: 100%;
    animation: rotate 60s linear infinite;
}

.hero-circle-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation: rotate 45s linear infinite reverse;
}

.hero-circle-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    animation: rotate 30s linear infinite;
}

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

/* Stats preview in hero */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.7s ease 0.4s forwards;
    opacity: 0;
}

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

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black);
    opacity: 0.6;
    margin-top: 0.25rem;
}

/* ========================================
   Marquee Section
   ======================================== */
.marquee-section {
    background: var(--black);
    padding: 1.5rem 0;
    overflow: hidden;
}

.marquee-wrapper {
    display: flex;
    gap: 2rem;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.marquee-item::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    background: var(--primary-lighter);
    position: relative;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
    transform: translateY(100%);
    transition: var(--transition-slow);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--black);
    transform: rotate(-5deg) scale(1.1);
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

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

.service-card:hover h3 {
    color: var(--black);
}

.service-card p {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover p {
    color: var(--black);
    opacity: 0.8;
}

.service-card .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.75rem;
}

.service-card:hover .btn {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: var(--white);
}

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

.about-content h2 {
    margin-bottom: 1.5rem;
    line-height: 0.95;
}

.about-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.about-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

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

.about-benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-benefit-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--white);
}

.about-benefit span {
    font-weight: 600;
    color: var(--text);
}

.about-visual {
    position: relative;
}

.about-card {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 15rem;
    font-weight: 900;
    color: var(--white);
    opacity: 0.03;
    line-height: 1;
}

.about-card-content {
    position: relative;
    z-index: 1;
}

.about-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    font-style: italic;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: var(--black);
    padding: 5rem 0;
}

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

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    opacity: 0.7;
}

/* ========================================
   Process Section
   ======================================== */
.process-section {
    background: var(--accent);
    position: relative;
}

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

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

.step-number {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.15) rotate(-5deg);
}

.process-step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--black);
    opacity: 0.7;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
    background: var(--light);
    position: relative;
}

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.testimonial-rating svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.7;
}

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

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

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
    text-transform: none;
    letter-spacing: 0;
}

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

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--black);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: 'SEO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 900;
    color: var(--white);
    opacity: 0.03;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-section .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.cta-section .btn-primary::before {
    background: var(--accent);
}

.cta-section .btn-primary:hover {
    border-color: var(--accent);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.5;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ========================================
   Service Pages
   ======================================== */
.service-hero {
    background: var(--primary);
    padding: calc(100px + 4rem) 0 4rem;
}

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

.service-hero h1 {
    color: var(--black);
    margin-bottom: 1rem;
}

.service-hero h1 span {
    position: relative;
    display: inline-block;
}

.service-hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.2em;
    background: var(--accent);
    z-index: -1;
}

.service-hero p {
    font-size: 1.125rem;
    color: var(--black);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hero-visual .ocean-container {
    width: 400px;
    height: 400px;
    position: relative;
}

.ocean-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.ocean {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23000000' fill-opacity='0.1' d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
    animation: wave 10s linear infinite;
}

.wave:nth-child(2) {
    opacity: 0.5;
    animation: wave 7s linear reverse infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-element.rank {
    bottom: 30%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 900;
    font-size: 1.75rem;
}

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

.service-intro {
    background: var(--white);
    padding: 5rem 0;
}

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

.service-intro h2 {
    margin-bottom: 1.5rem;
}

.service-intro p {
    font-size: 1.125rem;
}

.service-includes {
    background: var(--light);
}

.includes-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.includes-list li:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.includes-list svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    flex-shrink: 0;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-hero {
    background: var(--primary);
    padding: calc(100px + 4rem) 0 4rem;
    text-align: center;
}

.contact-hero h1 {
    color: var(--black);
}

.contact-hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.2em;
    background: var(--accent);
    z-index: -1;
}

.contact-hero p {
    font-size: 1.125rem;
    color: var(--black);
    opacity: 0.8;
    max-width: 600px;
    margin: 1rem auto 0;
}

.contact-section {
    background: var(--white);
}

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

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-info-icon {
    width: 55px;
    height: 55px;
    background: var(--black);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.contact-info-text h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-info-text p {
    font-size: 1rem;
    color: var(--text);
    margin: 0;
}

.contact-info-text a {
    color: var(--text);
}

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

.contact-form-wrapper {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.form-group label .required {
    color: var(--coral);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}

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

.form-submit .btn {
    width: 100%;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ========================================
   About Page
   ======================================== */
.about-hero {
    background: var(--primary);
    padding: calc(100px + 4rem) 0 4rem;
    text-align: center;
}

.about-hero h1 {
    color: var(--black);
}

.about-hero h1 span {
    position: relative;
    display: inline-block;
}

.about-hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.2em;
    background: var(--accent);
    z-index: -1;
}

.about-hero p {
    font-size: 1.125rem;
    color: var(--black);
    opacity: 0.8;
    max-width: 600px;
    margin: 1rem auto 0;
}

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

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.value-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   Process Page
   ======================================== */
.process-hero {
    background: var(--primary);
    padding: calc(100px + 4rem) 0 4rem;
    text-align: center;
}

.process-hero h1 {
    color: var(--black);
}

.process-hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.2em;
    background: var(--accent);
    z-index: -1;
}

.process-page-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.process-page-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.process-page-step:nth-child(even) {
    direction: rtl;
}

.process-page-step:nth-child(even) > * {
    direction: ltr;
}

.process-page-number {
    width: 100px;
    height: 100px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
}

.process-page-content {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
}

.process-page-content h3 {
    margin-bottom: 1rem;
}

.process-page-content ul {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.process-page-content li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
}

.process-page-content li::before {
    content: '→';
    color: var(--primary);
    font-weight: 700;
}

/* ========================================
   Testimonials Page
   ======================================== */
.testimonials-hero {
    background: var(--primary);
    padding: calc(100px + 4rem) 0 4rem;
    text-align: center;
}

.testimonials-hero h1 {
    color: var(--black);
}

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

/* ========================================
   404 Error Page
   ======================================== */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    background: var(--primary);
    text-align: center;
}

.error-content {
    max-width: 600px;
}

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

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.error-page > .container > p {
    font-size: 1.125rem;
    color: var(--black);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.popular-pages {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.popular-pages h3 {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: var(--black);
    opacity: 0.6;
}

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

.popular-pages a {
    font-weight: 600;
    color: var(--black);
}

.popular-pages a:hover {
    color: var(--accent);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    background: var(--white);
}

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

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

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

.faq-question svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-top: 1rem;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 5rem;
    }

    h1 {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

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

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

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

    .stat-item:nth-child(2)::after {
        display: none;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 2rem;
    }

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

    .nav-links > li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links > li > a {
        display: block;
        padding: 1.25rem;
        font-size: 1rem;
        color: var(--black);
    }

    .nav-links > li > a::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0;
        margin: 0;
        display: none;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

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

    .dropdown-menu a {
        color: var(--black);
    }

    .lang-switcher {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        background: var(--black);
        z-index: 1002;
        display: none;
    }

    .nav-links.active ~ .lang-switcher {
        display: flex;
    }

    .lang-switcher a {
        color: var(--white);
    }

    .lang-switcher a.active {
        background: var(--primary);
        color: var(--black);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(100px + 3rem) 0 3rem;
    }

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

    .hero-visual {
        order: -1;
    }

    .hero-circles {
        width: 300px;
        height: 300px;
    }

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

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

    .hero-stats {
        gap: 2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

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

    /* Grids */
    .services-grid,
    .testimonials-grid,
    .values-grid,
    .about-grid,
    .about-content,
    .contact-grid,
    .service-hero-content {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

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

    .stat-item::after {
        display: none !important;
    }

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

    .includes-list {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* Process page */
    .process-page-step {
        grid-template-columns: 1fr;
    }

    .process-page-step:nth-child(even) {
        direction: ltr;
    }

    .process-page-number {
        margin: 0 auto;
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

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

    /* Error page */
    .error-page h1 {
        font-size: 8rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .popular-pages ul {
        flex-direction: column;
        gap: 1rem;
    }

    /* Testimonials page */
    .testimonials-page .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Ocean container */
    .ocean-container {
        height: 250px;
    }
}

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

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .error-page h1 {
        font-size: 6rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *:not(.ottawa-carousel-track),
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .cta-section,
    .marquee-section {
        display: none;
    }

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

    a {
        color: inherit;
        text-decoration: underline;
    }

    .hero,
    .service-hero,
    .about-hero,
    .contact-hero {
        background: #fff !important;
        color: #000;
    }
}

/* ========================================
   What We Do - Keyword Carousel
   ======================================== */
.what-we-do-section {
    padding: var(--section-padding) 0;
    overflow: hidden;
    background: var(--light);
}

.ottawa-carousel-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    overflow: hidden;
}

.ottawa-carousel-row {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ottawa-carousel-track {
    display: inline-flex;
    gap: 1rem;
    white-space: nowrap;
    will-change: transform;
}

.ottawa-carousel-row[data-direction="left"] .ottawa-carousel-track {
    -webkit-animation: ottawaScrollLeft 60s linear infinite;
    animation: ottawaScrollLeft 60s linear infinite;
}

.ottawa-carousel-row[data-direction="right"] .ottawa-carousel-track {
    -webkit-animation: ottawaScrollRight 50s linear infinite;
    animation: ottawaScrollRight 50s linear infinite;
}

@-webkit-keyframes ottawaScrollLeft {
    from { -webkit-transform: translateX(0); transform: translateX(0); }
    to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes ottawaScrollLeft {
    from { -webkit-transform: translateX(0); transform: translateX(0); }
    to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@-webkit-keyframes ottawaScrollRight {
    from { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
    to { -webkit-transform: translateX(0); transform: translateX(0); }
}

@keyframes ottawaScrollRight {
    from { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
    to { -webkit-transform: translateX(0); transform: translateX(0); }
}

.ottawa-carousel-row:hover .ottawa-carousel-track {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.keyword-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.keyword-chip:hover {
    border-color: var(--primary);
    background: var(--black);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Keyword Popup Modal */
.keyword-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.keyword-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.keyword-popup {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
}

.keyword-popup-overlay.active .keyword-popup {
    transform: translateY(0) scale(1);
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--black);
    transform: rotate(90deg);
}

.popup-close svg {
    width: 24px;
    height: 24px;
    color: var(--text);
    transition: color 0.3s ease;
}

.popup-close:hover svg {
    color: var(--white);
}

.popup-content {
    padding: 2.5rem;
    max-height: 85vh;
    overflow-y: auto;
}

.popup-content h1 {
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.popup-content h2 {
    font-size: 1.375rem;
    color: var(--text);
    margin: 2rem 0 1rem;
}

.popup-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.popup-content ul,
.popup-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.popup-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.popup-content a {
    color: var(--primary);
    font-weight: 600;
}

.popup-content a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .ottawa-carousel-container {
        gap: 1rem;
    }

    .keyword-chip {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    .keyword-popup {
        max-height: 90vh;
    }

    .popup-content {
        padding: 1.5rem;
    }

    .popup-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .popup-content h1 {
        font-size: 1.375rem;
        padding-right: 3rem;
    }
}

@media (max-width: 480px) {
    .keyword-popup-overlay {
        padding: 1rem;
    }

    .popup-content {
        padding: 1rem;
        padding-top: 3rem;
    }
}
