/* Philadelphia SEO - Custom Design System
   Color Palette: #9BB8CD, #FFF7D4, #EEC759, #B1C381
   Inspired by grip.agency/nl/ with unique Philadelphia identity
*/

/* ===== CSS Variables ===== */
:root {
    --primary-color: #9BB8CD;
    --secondary-color: #EEC759;
    --accent-color: #B1C381;
    --cream: #FFF7D4;
    --cream-light: #FFFEF9;
    --dark: #1a2332;
    --dark-blue: #2d3a4f;
    --text-color: #3d4852;
    --text-light: #6b7280;
    --white: #ffffff;
    --border-color: #e5e7eb;

    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Roboto Slab', Georgia, serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --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;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--cream-light);
}

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-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--cream);
    color: var(--dark);
    border-color: var(--cream);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}

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

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 254, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

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

.logo-text {
    font-family: var(--font-display);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-color);
    border-radius: var(--radius-sm);
}

.nav-links > li > a:hover {
    color: var(--dark);
    background: rgba(155, 184, 205, 0.1);
}

/* Active state for main nav links */
.nav-links > li > a.active {
    color: var(--primary-color);
    background: rgba(155, 184, 205, 0.15);
    font-weight: 600;
}

.dropdown-arrow {
    transition: transform 0.2s;
}

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

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    min-width: 240px;
    padding: 0.5rem 0;
    padding-top: 1rem;
    z-index: 100;
}

/* Bridge the gap between link and dropdown */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1rem;
    background: transparent;
}

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

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

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

.dropdown-menu a:hover {
    background: var(--cream);
    color: var(--dark);
}

/* Active state for dropdown menu items */
.dropdown-menu a.active {
    background: var(--cream);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--dark);
    background: var(--cream);
}

.lang-switcher .divider {
    color: var(--border-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    position: absolute;
    left: 8px;
    transition: var(--transition);
}

.hamburger {
    top: 19px;
}

.hamburger::before {
    content: '';
    top: -7px;
}

.hamburger::after {
    content: '';
    top: 7px;
}

/* ===== Hero Sections ===== */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(155, 184, 205, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-home {
    padding: 12rem 0 8rem;
}

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

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

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

.hero-visual {
    position: relative;
}

.hero-graphic {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.growth-chart {
    width: 100%;
    height: auto;
}

.chart-line {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Page Hero */
.hero-page {
    padding: 9rem 0 4rem;
    text-align: center;
}

.hero-page .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-service {
    padding: 9rem 0 4rem;
}

/* ===== Section Styles ===== */
section {
    padding: 6rem 0;
}

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

.section-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(155, 184, 205, 0.2);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.0625rem;
}

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

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

.service-card {
    display: block;
    padding: 2rem;
    background: var(--cream-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

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

.service-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

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

.service-link .arrow {
    transition: transform 0.2s;
}

.service-card:hover .service-link .arrow {
    transform: translateX(4px);
}

/* ===== About Preview ===== */
.about-preview {
    background: var(--cream);
}

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

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

.about-preview-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-preview-content .btn {
    margin-top: 1rem;
}

.experience-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    margin: 0 auto;
}

.experience-badge .years {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.experience-badge .label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    padding: 0 1rem;
}

/* ===== Process Preview ===== */
.process-preview {
    background: var(--white);
}

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

.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--border-color);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.process-step h3 {
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--text-light);
}

.process-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Testimonials ===== */
.testimonials-preview {
    background: var(--cream-light);
}

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

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

.testimonial-rating {
    margin-bottom: 1rem;
}

.stars {
    color: var(--secondary-color);
    font-size: 1.125rem;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 0.9375rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author strong {
    display: block;
    color: var(--dark);
}

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

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--dark);
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

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

.cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

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

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

.cta-section .btn-primary:hover {
    background: #d4b14e;
    border-color: #d4b14e;
}

.cta-section .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.site-footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.site-footer ul li {
    margin-bottom: 0.625rem;
}

.site-footer ul a:hover {
    color: var(--secondary-color);
}

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

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    opacity: 0.7;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

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

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

/* ===== About Page ===== */
.story-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-content h2 {
    margin-bottom: 1.5rem;
}

.story-content p {
    margin-bottom: 1.25rem;
}

.stats-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.stats-card .stat-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-card .stat-item:last-child {
    border-bottom: none;
}

.stats-card .stat-number {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stats-card .stat-label {
    font-size: 0.875rem;
}

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

.differentiator,
.value-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.diff-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.differentiator h3,
.value-card h3 {
    margin-bottom: 0.75rem;
}

.differentiator p,
.value-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ===== Services Page ===== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-detail-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.service-icon-large {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
}

.service-info h3 {
    margin-bottom: 0.75rem;
}

.service-info p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

/* Why Invest Section */
.why-invest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-list {
    margin-top: 1.5rem;
}

.benefits-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

.why-invest-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-invest-stats .stat-card {
    padding: 2rem;
    background: var(--cream);
    border-radius: var(--radius-lg);
    text-align: center;
}

.why-invest-stats .stat-number {
    font-size: 3rem;
    color: var(--primary-color);
}

.why-invest-stats .stat-text {
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* ===== Service Detail Pages ===== */
.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.intro-visual .service-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.why-local {
    background: var(--cream);
}

.why-local-content {
    max-width: 800px;
    margin: 0 auto;
}

.why-local-content p {
    font-size: 1.0625rem;
}

/* Process Steps for Services */
.process-steps-service {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.process-steps-service .step {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.process-steps-service .step-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.process-steps-service .step h3 {
    margin-bottom: 0.75rem;
}

.process-steps-service .step p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Deliverables */
.deliverables {
    background: var(--white);
}

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

.included-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.included-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.included-list li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-top: 0.125rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.sample-preview {
    padding: 2rem;
    background: var(--cream);
    border-radius: var(--radius-lg);
}

.sample-preview h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.sample-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.sample-list li:last-child {
    border-bottom: none;
}

/* Case Snippet */
.case-snippet {
    background: var(--cream);
}

.case-snippet-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.case-snippet-card h2 {
    margin-bottom: 1.5rem;
}

.case-snippet-card p {
    margin-bottom: 1rem;
}

.case-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.case-result {
    text-align: center;
}

.case-result .result-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

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

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

.faq-list,
.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
}

.faq-item {
    padding: 1.5rem;
    background: var(--cream-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Related Services */
.related-services {
    background: var(--cream-light);
}

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

.related-card {
    display: block;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.related-card h3 {
    margin-bottom: 0.5rem;
}

.related-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper h2 {
    margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

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

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

.form-group label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dark);
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: var(--transition);
}

.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(155, 184, 205, 0.2);
}

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

.form-status {
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(177, 195, 129, 0.2);
    color: #5a7a30;
}

.form-status.error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

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

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

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

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-item strong {
    display: block;
    font-size: 0.875rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.9375rem;
    color: var(--text-light);
}

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

.quick-response {
    padding: 1.5rem;
    background: var(--cream);
    border-radius: var(--radius-lg);
}

.quick-response h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.quick-response p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===== Testimonials Page ===== */
.featured-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.featured-stats .stat-item {
    text-align: center;
}

.featured-stats .stat-number {
    font-size: 2.5rem;
}

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

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

.testimonial-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.result-tag {
    padding: 0.375rem 0.75rem;
    background: var(--cream);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    color: var(--dark);
}

/* Case Studies */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.case-study-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.case-study-header {
    padding: 1.5rem;
    background: var(--cream);
}

.industry-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.case-study-header h3 {
    font-size: 1.25rem;
}

.case-study-challenge,
.case-study-solution,
.case-study-results {
    padding: 1.25rem 1.5rem;
}

.case-study-challenge h4,
.case-study-solution h4,
.case-study-results h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.case-study-challenge p,
.case-study-solution p {
    font-size: 0.9375rem;
}

.case-study-results {
    background: var(--cream-light);
}

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

.results-grid .result {
    text-align: center;
}

.results-grid .result-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

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

/* ===== Process Page ===== */
.process-phase {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.process-phase:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.phase-header {
    margin-bottom: 2rem;
}

.phase-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.phase-header h2 {
    margin-bottom: 0.75rem;
}

.phase-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.phase-details h3,
.phase-deliverables h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.phase-details ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phase-details li {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.phase-deliverables {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    height: fit-content;
}

.deliverables-list li {
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border-color);
}

.deliverables-list li:last-child {
    border-bottom: none;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 74px;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--cream-light);
}

.timeline-marker {
    font-weight: 600;
    color: var(--dark);
    text-align: right;
}

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

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Transparency Section */
.transparency-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.transparency-list {
    margin-top: 1.5rem;
}

.transparency-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.transparency-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

.commitment-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.badge-icon {
    width: 80px;
    height: 80px;
    color: var(--accent-color);
}

.commitment-badge span {
    font-weight: 600;
    color: var(--dark);
}

/* ===== 404 Page ===== */
.error-page {
    text-align: center;
    padding: 8rem 0;
}

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

.error-page h2 {
    margin-bottom: 1rem;
}

.error-page > .container > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.popular-pages {
    max-width: 400px;
    margin: 0 auto;
}

.popular-pages h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

.popular-pages a {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.popular-pages a:hover {
    background: var(--cream);
    border-color: var(--primary-color);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-home .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

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

    .about-preview-grid,
    .story-grid,
    .intro-grid,
    .why-invest-grid,
    .transparency-grid,
    .phase-content {
        grid-template-columns: 1fr;
    }

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

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

    .process-step::after {
        display: none;
    }

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

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

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

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

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a {
        padding: 1rem;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
        margin-top: 0;
    }

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

    .lang-switcher {
        padding: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .hero {
        padding: 7rem 0 4rem;
    }

    .hero-home {
        padding: 8rem 0 5rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .services-grid,
    .testimonials-grid,
    .testimonials-grid-full,
    .differentiators-grid,
    .values-grid,
    .process-steps,
    .process-steps-service,
    .related-grid,
    .case-studies-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid,
    .deliverables-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .case-results,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .featured-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

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

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 14px;
    }

    .timeline-marker {
        text-align: left;
        font-size: 0.875rem;
        color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
    }

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

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

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

/* ===== What We Do Section - Keyword Carousel ===== */
.what-we-do {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 100%);
    overflow: hidden;
}

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

.what-we-do .section-header h2,
.what-we-do .section-header p {
    color: var(--white);
}

.what-we-do .section-tag {
    background: rgba(155, 184, 205, 0.2);
    color: var(--primary-color);
}

.keyword-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.keyword-carousel-row {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.keyword-carousel-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: scroll-left 240s linear infinite;
}

.keyword-carousel-row[data-speed="240"] .keyword-carousel-track {
    animation-duration: 240s;
}

.keyword-carousel-row[data-speed="220"] .keyword-carousel-track {
    animation-duration: 220s;
}

.keyword-carousel-row[data-speed="280"] .keyword-carousel-track {
    animation-duration: 280s;
}

.keyword-carousel-row.reverse .keyword-carousel-track {
    animation-name: scroll-right;
}

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

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

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

.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(155, 184, 205, 0.3);
    border-radius: var(--radius-full);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.keyword-tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(155, 184, 205, 0.4);
}

.keyword-tag:active {
    transform: scale(0.98);
}

/* ===== Article Modal Pop-up ===== */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.article-modal.active {
    display: flex;
}

.article-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.article-modal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    z-index: 1;
    animation: slideUp 0.3s ease;
}

.article-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.article-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border: none;
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.article-modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.article-modal-title {
    padding: 2rem 3rem 1rem;
    font-size: 1.75rem;
    color: var(--dark);
    border-bottom: 1px solid var(--border-color);
    padding-right: 4rem;
}

.article-modal-body {
    padding: 1.5rem 3rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--text-color);
    line-height: 1.8;
    scroll-behavior: smooth;
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--cream);
}

.article-modal-body h1,
.article-modal-body h2,
.article-modal-body h3,
.article-modal-body h4 {
    margin: 1.5rem 0 1rem;
    color: var(--dark);
}

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

.article-modal-body p {
    margin-bottom: 1rem;
}

.article-modal-body ul,
.article-modal-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.article-modal-body li {
    margin-bottom: 0.5rem;
}

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

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

.article-modal-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--cream);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
}

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

.article-modal-body::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 4px;
}

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

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

/* Scroll indicator - fade effect at bottom */
.article-modal-content {
    position: relative;
}

.article-modal-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.article-modal-content.scrolled-bottom::after {
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive styles for carousel and modal */
@media (max-width: 768px) {
    .what-we-do {
        padding: 3rem 0;
    }

    .keyword-tag {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .article-modal-title {
        padding: 1.5rem 1.5rem 1rem;
        padding-right: 3.5rem;
        font-size: 1.375rem;
    }

    .article-modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }

    .article-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .keyword-carousel-wrapper {
        gap: 0.75rem;
    }

    .keyword-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .article-modal-container {
        max-height: 95vh;
    }

    .article-modal-title {
        font-size: 1.25rem;
    }

    .article-modal-body {
        max-height: 70vh;
    }
}

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .site-footer,
    .cta-section,
    .mobile-menu-toggle,
    .what-we-do,
    .article-modal {
        display: none;
    }

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

    .hero {
        padding: 2rem 0;
    }
}
