/* Main CSS Stylesheet for Arfexa Technologies */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1f2937;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --spacing-unit: 0.5rem;
    --border-radius: 0.5rem;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Display Utilities */
.display-4 {
    font-weight: 700;
    color: var(--text-primary);
}

.display-5, .display-6 {
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

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

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-5px);
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
}

.card-text {
    color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: var(--text-primary);
}

.hero-section .lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Section Styles */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
}

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

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* Form Styles */
.form-control {
    border-color: var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

/* Footer */
footer {
    margin-top: auto;
    padding-bottom: 2rem;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

.text-light-secondary {
    color: rgba(255, 255, 255, 0.7);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-error, .alert-danger {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.alert-warning {
    background-color: #fef3c7;
    color: #78350f;
}

.alert-info {
    background-color: #dbeafe;
    color: #082f49;
}

/* Utilities */
.text-muted {
    color: var(--text-secondary) !important;
}

.bg-light {
    background-color: #f9fafb !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 350px;
    }
}

/* Arfexa visual system */
:root {
    --ink: #17202a;
    --paper: #f4f2ed;
    --paper-deep: #e8e5dd;
    --cobalt: #155eef;
    --acid: #d7f36b;
    --muted-ink: #68727d;
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: 'Space Grotesk', sans-serif; letter-spacing: 0; }
h1, h2, h3 { line-height: 1.05; }
.site-nav { background: #07101f !important; padding: 1.1rem 0; }
.site-nav .navbar-brand { font-size: 1.05rem; display: flex; align-items: center; gap: .75rem; }
.brand-mark { display: inline-grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: .7rem; background: linear-gradient(135deg, #3de0db, #3984f7); color: #07101f; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.brand-name { letter-spacing: .01em; }
.site-nav .nav-link { color: #c4cbd1 !important; font-size: .84rem; margin-left: 1rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: white !important; }
.site-nav .nav-cta { color: var(--acid) !important; border-bottom: 1px solid var(--acid); padding-right: 0; }
.hero-section { min-height: 650px; display: flex; align-items: stretch; position: relative; overflow: hidden; background: var(--ink); color: white; }
.hero-section { padding: 0; }
.hero-slider, .hero-slide { position: relative; min-height: 650px; width: 100%; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .46; }
.hero-slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,16,31,.98) 0%, rgba(7,16,31,.82) 48%, rgba(7,16,31,.4) 100%); }
.hero-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, black, transparent 85%); }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: end; padding-top: 7rem; padding-bottom: 5.5rem; }
.eyebrow { color: var(--cobalt); font-size: .73rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; display: flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem; }
.eyebrow span { width: 1.8rem; height: 2px; background: currentColor; display: inline-block; }
.hero-section .eyebrow { color: var(--acid); }
.hero-section h1 { max-width: 850px; color: white; font-size: clamp(3.5rem, 7vw, 7.2rem); font-weight: 600; margin-bottom: 2rem; }
em { color: var(--cobalt); font-style: normal; }
.hero-section h1 em, .cta-section em { color: var(--acid); }
.hero-copy { max-width: 550px; color: #c5cbd1; font-size: 1.12rem; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.5rem; }
.btn { border-radius: 0; font-weight: 700; padding: .85rem 1.25rem; }
.btn-primary { background: var(--cobalt); border-color: var(--cobalt); }
.btn-primary:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); transform: none; }
.text-link { color: white; font-weight: 700; text-decoration: none; border-bottom: 1px solid #727b83; padding-bottom: .35rem; }
.text-link:hover { color: var(--acid); border-color: var(--acid); }
.hero-note { border-left: 1px solid #4b555e; padding-left: 2rem; margin-bottom: .5rem; }
.hero-note p { color: #aeb7bf; font-size: .9rem; line-height: 1.6; max-width: 210px; }
.hero-index { color: var(--acid); font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; margin-bottom: 1.5rem; }
.hero-index span { color: #66717a; }
.hero-controls { position: absolute; z-index: 3; right: max(1rem, calc((100% - 1140px) / 2)); bottom: 3.5rem; display: flex; align-items: center; gap: .7rem; }
.hero-control { width: 2.35rem; height: 2.35rem; border: 1px solid #5f6972; background: transparent; color: white; cursor: pointer; font-size: .8rem; }
.hero-control:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.hero-dots { display: flex; gap: .45rem; margin: 0 .25rem; }
.hero-dot { width: 2.1rem; height: 3px; border: 0; padding: 0; background: #5f6972; cursor: pointer; }
.hero-dot.is-active { background: var(--acid); }
section { padding: 7rem 0; }
.section-heading { margin-bottom: 3rem; }
.section-heading h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 600; }
.section-heading em { color: var(--cobalt); }
.services-section, .blog-section { background: var(--paper); }
.projects-section { background: var(--paper-deep) !important; }
.card { border: 1px solid #dcd9d1; border-radius: 0; background: rgba(255,255,255,.35); box-shadow: none !important; }
.card:hover { border-color: var(--cobalt); transform: translateY(-4px); box-shadow: none !important; }
.card-body { padding: 1.75rem; }
.card-footer { background: transparent !important; padding: 0 1.75rem 1.75rem; }
.cta-section { background: var(--cobalt); padding: 7rem 0; }
.cta-section h2 { color: white; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.eyebrow-light { color: var(--acid); }
.site-footer { background: var(--ink); border-top: 1px solid #303a43; }
.site-footer p, .site-footer li { color: #9ca8b2; }
.site-footer h5, .site-footer h6 { color: white; }
.social-links { display: flex; gap: 1rem; font-size: 1.15rem; }
.social-links a { color: #9ca8b2 !important; }
.social-links a:hover { color: var(--acid) !important; }
.contact-widgets { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1050; display: flex; flex-direction: column; align-items: end; gap: .8rem; }
.whatsapp-fab, .chatbot-toggle { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 0; text-decoration: none; box-shadow: 0 10px 30px rgba(7,16,31,.22); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-fab { background: #25d366; color: white; font-size: 1.7rem; }
.whatsapp-fab:hover, .chatbot-toggle:hover { color: white; transform: translateY(-3px); box-shadow: 0 14px 35px rgba(7,16,31,.3); }
.chatbot { position: relative; }
.chatbot-toggle { position: relative; background: var(--cobalt); color: white; font-size: 1.35rem; cursor: pointer; }
.chatbot-pulse { position: absolute; top: .1rem; right: .1rem; width: .55rem; height: .55rem; border: 2px solid white; border-radius: 50%; background: var(--acid); }
.chatbot-panel { position: absolute; right: 0; bottom: 4.2rem; width: min(23rem, calc(100vw - 2rem)); overflow: hidden; border: 1px solid #d9dfe5; background: white; color: var(--ink); box-shadow: 0 22px 60px rgba(7,16,31,.25); animation: chatbot-enter .2s ease-out; }
.chatbot-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; background: #07101f; color: white; }
.chatbot-identity { display: flex; align-items: center; gap: .7rem; }
.chatbot-avatar { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .65rem; background: linear-gradient(135deg, #3de0db, #3984f7); color: #07101f; font: 700 1rem 'Space Grotesk', sans-serif; }
.chatbot-header strong, .chatbot-header span { display: block; }
.chatbot-header strong { font-family: 'Space Grotesk', sans-serif; font-size: .92rem; }
.chatbot-header span { color: #aeb7bf; font-size: .7rem; margin-top: .2rem; }
.chatbot-status { display: inline-block; width: .4rem; height: .4rem; margin-right: .25rem; border-radius: 50%; background: #7ee787; }
.chatbot-close { border: 0; background: transparent; color: white; cursor: pointer; }
.chatbot-messages { max-height: 19rem; overflow-y: auto; padding: 1rem; }
.chat-message { max-width: 88%; padding: .75rem .85rem; margin-bottom: .65rem; font-size: .86rem; line-height: 1.45; }
.chat-message small { display: block; color: #7b8792; font-size: .58rem; font-weight: 700; letter-spacing: .08em; margin-bottom: .35rem; }
.chat-message.bot { background: #eef2f5; border-left: 3px solid var(--cobalt); }
.chat-message.user { margin-left: auto; background: var(--cobalt); color: white; }
.chatbot-quick-replies { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.chatbot-quick-replies button, .chatbot-action { border: 1px solid #cad3dc; background: white; color: var(--cobalt); padding: .5rem .65rem; font-size: .75rem; text-decoration: none; cursor: pointer; }
.chatbot-quick-replies i { font-size: .65rem; margin-left: .2rem; }
.chatbot-quick-replies button:hover, .chatbot-action:hover { border-color: var(--cobalt); background: #edf3ff; }
.chatbot-action { display: inline-block; margin-bottom: .7rem; }
.chatbot-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid #e4e8eb; }
.chatbot-form input { min-width: 0; flex: 1; border: 1px solid #d7dde3; padding: .65rem .7rem; font-size: .82rem; }
.chatbot-form button { width: 2.5rem; border: 0; background: var(--cobalt); color: white; }
@keyframes chatbot-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.about-hero { background: var(--ink); color: white; padding: 7.5rem 0 6rem; }
.about-hero h1 { color: white; font-size: clamp(3.2rem, 7vw, 6.8rem); margin-bottom: 2rem; }
.about-hero .hero-copy { max-width: 700px; }
.about-content h2, .about-band h2, .founder-section h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.about-content p, .about-band p, .values-section p, .about-cta p { color: var(--muted-ink); line-height: 1.75; }
.about-content strong { color: var(--ink); }
.about-aside { border-left: 1px solid #cfcac0; padding-left: 2rem; }
.about-stat { display: flex; gap: 1rem; align-items: flex-start; border-bottom: 1px solid #cfcac0; padding: 1.5rem 0; }
.about-stat strong { color: var(--cobalt); font: 600 2.8rem/1 'Space Grotesk', sans-serif; }
.about-stat span { color: var(--muted-ink); font-size: .9rem; line-height: 1.4; }
.about-band { background: var(--paper-deep); }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid #cfcac0; }
.capability-grid > div { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid #cfcac0; }
.capability-grid h3 { font-size: 1.15rem; }
.capability-grid p { font-size: .9rem; margin: 0; }
.values-section { background: var(--acid); padding: 6rem 0; }
.values-section .eyebrow { color: var(--ink); }
.values-grid { border-top: 1px solid rgba(23,32,42,.35); border-left: 1px solid rgba(23,32,42,.35); }
.values-grid > div { padding: 1.5rem; min-height: 145px; border-right: 1px solid rgba(23,32,42,.35); border-bottom: 1px solid rgba(23,32,42,.35); }
.values-grid h3 { font-size: 1.2rem; }
.values-grid p { color: var(--ink); font-size: .9rem; }
.founder-role { color: var(--cobalt) !important; font-weight: 700; }
.why-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #cfcac0; }
.why-list li { padding: .9rem 0; border-bottom: 1px solid #cfcac0; font-weight: 600; }
.why-list li::before { content: '↗'; color: var(--cobalt); margin-right: .75rem; }
.about-cta { background: var(--ink); color: white; padding: 7rem 0; }
.about-cta h2 { font-size: clamp(2.8rem, 6vw, 6rem); }
.about-cta p { color: #b4bdc5; max-width: 520px; }
.services-hero { background: var(--ink); color: white; padding: 7.5rem 0 6.5rem; }
.services-hero h1 { color: white; font-size: clamp(3.2rem, 7vw, 6.8rem); margin-bottom: 2rem; }
.services-hero .hero-copy { max-width: 650px; }
.services-intro, .technology-section { padding: 7rem 0; background: var(--paper); }
.services-intro h2, .approach-section h2, .technology-section h2 { font-size: clamp(2.4rem, 4.5vw, 4.2rem); }
.intro-large { color: var(--ink) !important; font-size: 1.55rem; line-height: 1.45 !important; }
.service-catalog { background: var(--paper-deep); padding: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid #cfcac0; }
.service-feature { min-height: 465px; padding: 3rem 3rem 3.5rem; border-right: 1px solid #cfcac0; border-bottom: 1px solid #cfcac0; display: flex; flex-direction: column; align-items: flex-start; }
.service-number { color: var(--cobalt); font: 600 1rem 'Space Grotesk', sans-serif; margin-bottom: 4rem; }
.service-feature h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: 1.1rem; }
.service-feature p { color: var(--muted-ink); line-height: 1.65; max-width: 480px; }
.service-feature .service-lead { color: var(--ink); font-size: 1.1rem; font-weight: 600; }
.service-feature .ideal { font-size: .9rem; margin-top: auto; padding-top: 1.5rem; }
.dark-link { color: var(--ink); margin-top: 1rem; }
.dark-link:hover { color: var(--cobalt); border-color: var(--cobalt); }
.approach-section { background: var(--paper); padding: 7rem 0; }
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #cfcac0; border-left: 1px solid #cfcac0; }
.approach-grid > div { min-height: 210px; padding: 1.5rem; border-right: 1px solid #cfcac0; border-bottom: 1px solid #cfcac0; }
.approach-grid strong { color: var(--cobalt); font: 600 1.1rem 'Space Grotesk', sans-serif; }
.approach-grid h3 { font-size: 1.25rem; margin: 2.5rem 0 .65rem; }
.approach-grid p { font-size: .9rem; margin: 0; }
.tech-list { border-top: 1px solid #cfcac0; }
.tech-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid #cfcac0; }
.tech-list strong { color: var(--cobalt); }
.tech-list span { color: var(--muted-ink); }
.services-cta { background: var(--ink); color: white; padding: 7rem 0; }
.services-cta h2 { color: white; font-size: clamp(2.8rem, 6vw, 6rem); }
.services-cta > .container > p:not(.eyebrow) { color: #b4bdc5; max-width: 600px; margin: 1.5rem 0 2.5rem; }
.home-intro, .technology-section, .industries-section { background: var(--paper); padding: 7rem 0; }
.home-intro h2, .why-section h2, .approach-section h2, .technology-section h2, .industries-section h2 { font-size: clamp(2.3rem, 4.5vw, 4.2rem); }
.home-intro p, .why-section p, .approach-section p, .technology-section p, .industries-section p { color: var(--muted-ink); line-height: 1.7; }
.home-intro .intro-large { color: var(--ink) !important; font-size: 1.45rem; line-height: 1.45; }
.home-service-grid { border-left: 1px solid #cfcac0; border-top: 1px solid #cfcac0; }
.home-service { min-height: 275px; padding: 1.5rem; border-right: 1px solid #cfcac0; border-bottom: 1px solid #cfcac0; display: flex; flex-direction: column; align-items: flex-start; }
.home-service .service-number { color: var(--cobalt); font: 600 1rem 'Space Grotesk', sans-serif; }
.home-service h3 { font-size: 1.25rem; margin-top: auto; }
.home-service p { font-size: .9rem; }
.home-service .dark-link { margin-top: auto; }
.section-action { margin-top: 2rem; }
.why-section { background: var(--paper-deep); padding: 7rem 0; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #cfcac0; border-left: 1px solid #cfcac0; }
.why-grid > div { padding: 1.5rem; min-height: 185px; border-right: 1px solid #cfcac0; border-bottom: 1px solid #cfcac0; }
.why-grid span { color: var(--cobalt); font: 600 1rem 'Space Grotesk', sans-serif; }
.why-grid h3 { font-size: 1.1rem; margin: 2rem 0 .5rem; }
.why-grid p { font-size: .88rem; margin: 0; }
.technology-section .tech-list { margin-top: 0; }
.industries-section { background: var(--paper-deep); }
.industry-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #cfcac0; border-left: 1px solid #cfcac0; }
.industry-list span { padding: 1.25rem 1rem; border-right: 1px solid #cfcac0; border-bottom: 1px solid #cfcac0; font-weight: 600; }
.home-cta { background: var(--cobalt); color: white; padding: 7rem 0; }
.home-cta h2, .final-cta h2 { color: white; font-size: clamp(2.8rem, 6vw, 6rem); }
.home-cta > .container > p:not(.eyebrow), .final-cta > .container > p:not(.eyebrow) { color: #dbe5f2; max-width: 650px; line-height: 1.7; margin: 1.5rem 0 2.5rem; }
.final-cta { background: var(--ink); color: white; padding: 6rem 0; }
/* Shared page surfaces */
main > .container.py-5, main > article.container.py-5 { max-width: 1180px; padding-top: 6.5rem !important; padding-bottom: 6.5rem !important; }
main > .container.py-5 > h1, main > article.container.py-5 h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); margin-bottom: 1rem; }
main > .container.py-5 > .lead, main > article.container.py-5 .lead { max-width: 650px; color: var(--muted-ink); font-size: 1.15rem; line-height: 1.6; }
main > .container.py-5 .card, main > article.container.py-5 .border { border-color: #d2d0c8 !important; background: rgba(255,255,255,.36); border-radius: 0 !important; }
main > .container.py-5 .card-img-top { aspect-ratio: 16 / 10; object-fit: cover; }
main > .container.py-5 .card h2 a, main > .container.py-5 .card h3 a { color: var(--ink); }
main > .container.py-5 .card h2 a:hover, main > .container.py-5 .card h3 a:hover { color: var(--cobalt); }
main form { max-width: 760px; }
main form .form-control, main form select, main form textarea, main form input[type='file'] { border: 1px solid #c8c9c5; border-radius: 0; background: rgba(255,255,255,.65); padding: .8rem .9rem; }
main form .form-control:focus, main form select:focus, main form textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(21,94,239,.12); }
main form .form-label { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.site-nav .navbar-toggler { border-color: #5a6570; }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 2px var(--acid); }
.list-group-item { border-color: #d2d0c8; background: rgba(255,255,255,.3); border-radius: 0 !important; padding: 1.25rem 1.5rem; }
.table { --bs-table-bg: transparent; border-color: #d2d0c8; }
.table thead th { color: var(--cobalt); font: 600 .72rem 'Space Grotesk', sans-serif; letter-spacing: .08em; text-transform: uppercase; border-bottom-width: 2px; }
.table td { color: var(--muted-ink); vertical-align: middle; }
.services-intro p, .about-content p { max-width: 700px; }

/* Shared responsive polish */
:root {
    --content-width: 1180px;
    --content-gutter: clamp(1rem, 3vw, 2rem);
    --line: #c8c6bf;
    --surface: rgba(255, 255, 255, .52);
    --focus-ring: 0 0 0 4px rgba(21, 94, 239, .2);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(100% - (var(--content-gutter) * 2), var(--content-width));
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: .75rem;
    left: .75rem;
    padding: .7rem 1rem;
    color: var(--ink);
    background: var(--acid);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea):focus-visible {
    outline: 0;
    box-shadow: var(--focus-ring);
}

.site-nav {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-nav .container { min-height: 3.5rem; }
.site-nav .navbar-brand img { width: auto; max-width: min(13rem, 55vw); height: 2.35rem; object-fit: contain; }
.site-nav .nav-link { padding: .55rem .25rem; }
.site-nav .nav-cta { margin-left: 1.25rem; }

section, .about-hero, .services-hero, .about-cta, .services-cta, .home-cta, .final-cta {
    scroll-margin-top: 5rem;
}

.hero-section h1,
.about-hero h1,
.services-hero h1,
.home-cta h2,
.final-cta h2,
.services-cta h2,
.about-cta h2 {
    max-width: 12ch;
    text-wrap: balance;
}

.section-heading p:last-child,
.section-heading h2 + p { max-width: 42rem; }

.card,
.list-group,
.table-responsive,
main form,
main > article.container.py-5 > .border {
    overflow: hidden;
}

.card-img-top { display: block; }
.card-body > :last-child { margin-bottom: 0; }
.card h2, .card h3 { text-wrap: balance; }

main > .container.py-5,
main > article.container.py-5 {
    min-height: min(38rem, calc(100vh - 5rem));
}

main > .container.py-5 > h1,
main > article.container.py-5 h1 { max-width: 14ch; text-wrap: balance; }

main form,
main > article.container.py-5 .border,
main > .container.py-5 .card {
    border-radius: .15rem !important;
}

main form .form-control,
main form select,
main form textarea,
main form input[type='file'] {
    min-height: 3rem;
}

main form textarea { min-height: 9rem; resize: vertical; }
main form .helptext, main form .form-text { color: var(--muted-ink); font-size: .85rem; }
.invalid-feedback, .errorlist { color: #a12622; }
.errorlist { padding-left: 1.1rem; margin: .35rem 0 0; font-size: .9rem; }

.table-responsive {
    border: 1px solid var(--line);
    background: var(--surface);
}

.table { margin-bottom: 0; }
.table td, .table th { padding: 1rem; }
.table tbody tr:hover { background: rgba(21, 94, 239, .06); }

.btn { min-height: 2.85rem; }
.btn:focus-visible, .hero-control:focus-visible, .hero-dot:focus-visible { box-shadow: var(--focus-ring); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; }

.contact-widgets { bottom: max(1rem, env(safe-area-inset-bottom)); }

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        padding: .75rem 0 1rem;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .site-nav .nav-link { margin-left: 0; padding: .7rem 0; }
    .site-nav .nav-cta { display: inline-flex; margin: .4rem 0 0; }
    .site-nav .navbar-nav { gap: .1rem; }
    .hero-inner { padding-top: 6rem; padding-bottom: 6rem; }
}

@media (max-width: 575.98px) {
    .container { width: min(100% - 2rem, var(--content-width)); }
    section, .home-intro, .why-section, .approach-section, .technology-section, .industries-section, .home-cta, .final-cta { padding-top: 4rem; padding-bottom: 4rem; }
    .hero-section, .hero-slider, .hero-slide { min-height: 36rem; }
    .hero-inner { padding-top: 4.5rem; padding-bottom: 5.5rem; }
    .hero-section h1, .about-hero h1, .services-hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
    .hero-actions { align-items: stretch; gap: 1rem; }
    .hero-actions .btn, .hero-actions .text-link { width: fit-content; }
    .hero-note { margin-top: 1rem; }
    .section-heading h2, .home-intro h2, .why-section h2, .approach-section h2, .technology-section h2, .industries-section h2 { font-size: clamp(2.15rem, 10vw, 3.4rem); }
    .card-body { padding: 1.35rem; }
    .table { min-width: 38rem; }
    .table td, .table th { padding: .8rem; }
    .contact-widgets { right: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .skip-link, .card, .btn, .text-link { transition: none; }
}
