/*
Theme Name: Verleij Services
Theme URI: https://www.verleijservices.nl
Author: Verleij Services
Author URI: https://www.verleijservices.nl
Description: Custom WordPress theme for Verleij Services - App & Software Development
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verleij-services
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --primary: #1a56db;
    --primary-dark: #1241a8;
    --primary-light: #e8effc;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --text: #334155;
    --text-light: #64748b;
    --text-dark: #0f172a;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --success: #10b981;
    --warning: #f59e0b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 700;
}

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

p { margin-bottom: 1rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

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

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

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

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

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

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

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

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

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 12px;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 3px;
    border: 1px solid var(--gray-200);
}

.lang-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(26, 86, 219, 0.3);
}

.lang-btn:hover:not(.active) {
    color: var(--primary);
    background: var(--white);
}

/* Bilingual content visibility */
[data-lang="en"] { display: none; }
[data-lang="nl"] { display: revert; }

body.lang-en [data-lang="en"] { display: revert; }
body.lang-en [data-lang="nl"] { display: none; }

/* Inline bilingual spans */
span[data-lang="en"],
a[data-lang="en"],
option[data-lang="en"],
label[data-lang="en"],
p[data-lang="en"],
li[data-lang="en"],
div[data-lang="en"],
h1[data-lang="en"],
h2[data-lang="en"],
h3[data-lang="en"],
h4[data-lang="en"] { display: none; }

span[data-lang="nl"],
a[data-lang="nl"],
option[data-lang="nl"],
label[data-lang="nl"],
p[data-lang="nl"],
li[data-lang="nl"],
div[data-lang="nl"],
h1[data-lang="nl"],
h2[data-lang="nl"],
h3[data-lang="nl"],
h4[data-lang="nl"] { display: revert; }

body.lang-en span[data-lang="en"],
body.lang-en a[data-lang="en"],
body.lang-en option[data-lang="en"],
body.lang-en label[data-lang="en"],
body.lang-en p[data-lang="en"],
body.lang-en li[data-lang="en"],
body.lang-en div[data-lang="en"],
body.lang-en h1[data-lang="en"],
body.lang-en h2[data-lang="en"],
body.lang-en h3[data-lang="en"],
body.lang-en h4[data-lang="en"] { display: revert; }

body.lang-en span[data-lang="nl"],
body.lang-en a[data-lang="nl"],
body.lang-en option[data-lang="nl"],
body.lang-en label[data-lang="nl"],
body.lang-en p[data-lang="nl"],
body.lang-en li[data-lang="nl"],
body.lang-en div[data-lang="nl"],
body.lang-en h1[data-lang="nl"],
body.lang-en h2[data-lang="nl"],
body.lang-en h3[data-lang="nl"],
body.lang-en h4[data-lang="nl"] { display: none; }

/* Fix for flex/grid children */
.service-card li[data-lang] { display: none; }
.service-card li[data-lang="nl"] { display: flex; }
body.lang-en .service-card li[data-lang="nl"] { display: none; }
body.lang-en .service-card li[data-lang="en"] { display: flex; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-cta {
    margin-left: 8px;
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
    padding-top: var(--header-height);
}

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

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-content {
    padding: 40px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.hero-illustration {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-illustration .code-block {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 32px;
    width: 85%;
    font-family: 'Fira Code', 'SF Mono', monospace;
    font-size: 0.85rem;
    color: var(--gray-300);
    line-height: 1.8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-illustration .code-block .keyword {
    color: #c084fc;
}

.hero-illustration .code-block .function {
    color: #60a5fa;
}

.hero-illustration .code-block .string {
    color: #34d399;
}

.hero-illustration .code-block .comment {
    color: #64748b;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--gray-300);
    margin-top: 4px;
}

/* ============================================
   SECTIONS - GENERAL
   ============================================ */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--gray-50);
}

.section-dark {
    background: var(--secondary);
    color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

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

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 1.8rem;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card ul {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.service-card ul li {
    padding: 6px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ============================================
   PROCESS / HOW WE WORK SECTION
   ============================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.2;
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.3);
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 240px;
    margin: 0 auto;
}

/* ============================================
   TECH STACK SECTION
   ============================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-align: center;
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.tech-item .tech-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.tech-item .tech-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* ============================================
   ABOUT / WHY US SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
}

.about-feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder {
    width: 80%;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

/* ============================================
   PORTFOLIO / PROJECTS SECTION
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.portfolio-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.portfolio-card:nth-child(2) .portfolio-image {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.portfolio-card:nth-child(3) .portfolio-image {
    background: linear-gradient(135deg, #ede9fe, #c4b5fd);
}

.portfolio-body {
    padding: 28px;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.portfolio-tag {
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.portfolio-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.portfolio-body p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--gray-200);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary-light);
    position: absolute;
    top: 16px;
    left: 28px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
    padding-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.testimonial-role {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(26, 86, 219, 0.15) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--gray-300);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
}

.contact-detail h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

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

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--secondary);
    color: var(--gray-300);
    padding-top: 80px;
}

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

.footer-brand p {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--gray-300);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--gray-300);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--gray-300);
}

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

/* ============================================
   PAGE CONTENT (for standard WordPress pages)
   ============================================ */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--secondary), #1e293b);
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.page-hero p {
    color: var(--gray-300);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 0;
}

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

.entry-content h2 {
    margin: 48px 0 16px;
}

.entry-content h3 {
    margin: 32px 0 12px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 32px 0;
    background: var(--gray-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

/* ============================================
   BLOG / ARCHIVE
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.blog-card-image {
    height: 200px;
    background: var(--gray-100);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.blog-card-body h3 a {
    color: var(--text-dark);
}

.blog-card-body h3 a:hover {
    color: var(--primary);
}

.blog-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-top: 12px;
}

.read-more:hover {
    gap: 10px;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.error-404 h1 {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.error-404 p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

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

    .main-nav a {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .about-image {
        display: none;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .blog-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .section {
        padding: 64px 0;
    }

    .cta-section {
        padding: 64px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

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

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