
:root {
    /* Light mode (default) */
    --bg-body: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.25s ease;
    --hero-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
}

.dark {
    /* Dark mode overrides */
    --bg-body: #0d1117;
    --surface: #161b22;
    --text: #e6edf3;
    --text-muted: #94a3b8;
    --primary: #3b82f6;           /* slightly brighter blue for better contrast in dark */
    --primary-hover: #2563eb;
    --border: #30363d;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.5);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.6);
    --hero-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --footer-bg: #020617;
    --footer-text: #94a3b8;
    --input-bg: #0f141a;
    --input-border: #30363d;
}

html, body {
    margin: 0;
    background: var(--bg-body);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* { box-sizing: border-box; }

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

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

.section-title { font-size: 2rem; text-align: center; margin: 3rem 0 2.5rem; }
.large { font-size: 1.25rem; }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Hero */
.hero {
    padding: 4rem 0 3rem;
    background: var(--hero-bg);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}
@media (min-width: 768px) {
    .hero-grid { grid-template-columns: 1fr 380px; gap: 4rem; }
}

.hero-content {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    padding: 2rem;
}
.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
@media (min-width: 992px) {
    .hero-content h1 { font-size: 3.25rem; }
}
.highlight { color: var(--primary); }
.location { margin: 1.5rem 0; font-weight: 500; }
.hero-cta { margin: 2rem 0; display: flex; flex-wrap: wrap; gap: 1rem; }

.trust-badges {
    display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; font-size: 0.9rem;
}
.trust-badges span {
    background: var(--surface);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
.btn-primary.large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-primary.full-width { width: 100%; }
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Quote Card */
.quote-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 2rem;
    border: 1px solid var(--border);
}

/* Services Preview */
.services-preview { padding: 4rem 0; }
.services-preview .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.services-preview .card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.services-preview .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* Testimonials */
.testimonials {
    background: var(--bg-body);
    padding: 5rem 0;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonials blockquote {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 5rem 0;
    background: var(--primary);
    color: white;
}
.final-cta .btn-primary {
    background: white;
    color: var(--primary);
}
.final-cta .btn-primary:hover {
    background: #f1f5f9;
}

/* Header & Navigation */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
}
.logo-link img { height: 48px; width: auto; }
.logo-text { color: var(--text); }

.desktop-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.desktop-nav a {
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}
.desktop-nav a:hover,
.desktop-nav a.accent {
    color: var(--primary);
}
.desktop-nav a.accent {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--surface);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.mobile-nav a {
    padding: 1rem 1.5rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-nav li {
    padding: 1rem;

}

.mobile-nav a.accent {
    background: var(--primary);
    color: white;
}

#primaryNav.open { display: flex; }

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}
.site-footer a { color: inherit; transition: var(--transition); }
.site-footer a:hover { color: white; }

/* Forms & Inputs */
input, textarea, select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Contact Page Specific */
.contact-hero { padding: 4rem 0 6rem; background: var(--hero-bg); }
.contact-card { background: var(--surface); }

/* Theme Toggle Button in Footer */
.theme-switcher button {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
}
.theme-switcher button:hover {
    background: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 868px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 640px) {
    .hero-content h1 { font-size: 2.2rem; }
}

/* ==================================================================
   SERVICES PAGE – Modern Pricing & Cards (Light/Dark Ready)
   ================================================================== */

.services-hero {
    padding: 5rem 0 4rem;
    background: var(--hero-bg);
    text-align: center;
}

.services-hero .lead {
    max-width: 800px;
    margin: 1.5rem auto 0;
    font-size: 1.25rem;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: left;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.included-list {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
    line-height: 1.7;
}
.included-list li::marker {
    color: var(--primary);
}

/* Pricing Grid – Hosting */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    text-align: center;
}
.pricing-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}
.price small {
    font-size: 1rem;
    color: var(--text-muted);
}

.feature-list {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.2rem;
    line-height: 1.7;
}
.feature-list li::marker {
    color: var(--primary);
}

.justify-center { justify-content: center; }
.max-800 { max-width: 800px; }
.text-center { text-align: center; }
.underline { text-decoration: underline; }

/* Section padding helper */
.section-padding { padding: 5rem 0; }
.bg-light { background: var(--bg-body); }

/* ==================================================================
   ABOUT PAGE – Professional & Trust-Building (Light/Dark Ready)
   ================================================================== */

.about-hero {
    padding: 5rem 0 4rem;
    background: var(--hero-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 380px;
    }
}

.profile-photo {
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
}

.about-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.bio-list {
    line-height: 1.8;
    margin: 1.5rem 0;
    padding-left: 0.5rem;
}
.bio-list li {
    margin: 0.8rem 0;
}

.about-content {
    max-width: 3rem;
    line-height: 1.75;
    font-size: 1.1rem;
}

.highlight-list {
    padding-left: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}
.highlight-list li {
    margin: 0.8rem 0;
}
.highlight-list li::marker {
    color: var(--primary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.justify-start { justify-content: flex-start; }


/* ==================================================================
   FAQ PAGE – Clean, Category-Based, Mobile-First (Light/Dark Ready)
   ================================================================== */

.faq-hero {
    padding: 5rem 0 4rem;
    background: var(--hero-bg);
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}
@media (min-width: 992px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-category {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.faq-category h2 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.5rem;
}

.faq-item {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-body);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}
.faq-item:hover {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    outline: none;
}
.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
    color: var(--primary);
}
.faq-item[open] summary {
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-muted);
}
.faq-item a {
    color: var(--primary);
    text-decoration: underline;
}

.inline-card {
    display: inline-block;
    text-align: center;
    padding: 2.5rem;
    max-width: 500px;
}

/* ==================================================================
   ACCESSIBILITY FIXES – Touch targets, focus states, ARIA
   ================================================================== */

/* Minimum 44×44px touch targets */
a, button, input[type="submit"], input[type="button"], [role="button"], label, select {
    min-height: 44px;
    min-width: 44px;
}

/* Better focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Proper checkbox styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}
.checkbox-group input[type="checkbox"] {
    width: 1.4rem;
    height: 1.4rem;
    margin: 0;
}

/* Required field indicator */
.required {
    color: #dc2626;
}

/* Form groups spacing */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Remove invalid ARIA roles */
[aria-label="Instant Quote"] {
    /* Remove this — <aside> doesn’t support aria-label well */
}

/* ==================================================================
   BLOG POST STYLING – matches the rest of the site
   ================================================================== */

.blog-post { background: var(--bg-body); }
.blog-header { padding: 4rem 0 3rem; background: var(--hero-bg); margin-bottom: 3rem; }
.blog-content { line-height: 1.8; font-size: 1.1rem; }
.blog-content h2 { margin-top: 3rem; color: var(--primary); }
.blog-content ul { padding-left: 1.5rem; margin: 1.5rem 0; }
.blog-content blockquote {
    background: var(--surface); padding: 1.5rem; border-left: 5px solid var(--primary); margin: 2rem 0; font-style: italic;
}
.blog-cta { background: var(--surface); padding: 3rem 2rem; border-radius: var(--radius); text-align: center; margin: 4rem 0; box-shadow: var(--shadow-md); }
.blog-signoff { margin-top: 5rem; font-size: 1.1rem; }
.max-800 { max-width: 800px; }