/* ==========================================================================
   Root Variables & Resets
   ========================================================================== */
:root {
    --primary: #1E40AF;
    --primary-hover: #1D4ED8;
    --primary-gradient: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
    --secondary: #0284C7;
    --secondary-gradient: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    --dark: #0F172A;
    --light: #F8FAFC;
    --gray: #64748B;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --font-sans: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Reusable Utilities & Tech Backgrounds
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Subtle Engineering Grid Pattern Overlay */
.tech-bg {
    background-color: var(--white);
    background-image: linear-gradient(rgba(226, 232, 240, 0.3) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(226, 232, 240, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header / Navigation Layout
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    /* Softened Border: Shifted away from the solid blue line to a premium glass layer highlight */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.02);
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--white);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav .nav-btn {
    background: var(--primary-gradient);
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav .nav-btn::after {
    display: none;
}

.main-nav .nav-btn:hover {
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

/* ==========================================================================
   Sections Structure
   ========================================================================== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.35rem;
    max-width: 650px;
    margin-bottom: 3rem;
    color: #CBD5E1;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* About Section */
.about-section {
    padding: 8rem 0;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.accent-box {
    background-color: var(--light);
    border-left: 6px solid var(--primary);
    padding: 3.5rem;
    border-radius: 0 12px 12px 0;
    box-shadow: var(--shadow-md);
}

.accent-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Services Card Section */
.services-section {
    padding: 8rem 0;
    background-color: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    /* Boxed configuration: Keeps long subtitle links clean and centered */
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 64, 175, 0.15);
}

.icon-wrapper {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 1.75rem;
    display: inline-block;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
    color: var(--secondary);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.98rem;
}

/* Spruced Contact & Form Layout */
.contact-section {
    padding: 8rem 0;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--gray);
}

.contact-details {
    list-style: none;
    margin-top: 3.5rem;
}

.contact-details li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(30, 64, 175, 0.06);
    padding: 1rem;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.contact-details p {
    font-size: 1rem;
}

.contact-details a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary);
}

.spruced-form {
    background-color: var(--white);
    padding: 3.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
    color: var(--gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.08);
}

.btn-submit {
    background: var(--dark);
    color: var(--white);
    width: 100%;
    border: none;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.btn-submit:hover {
    background: var(--primary);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--dark);
    color: #94A3B8;
    padding: 4rem 0;
    font-size: 0.95rem;
    /* Framed Line: Muted overlay line swapped for a matching 2px vibrant accent frame */
    border-top: 2px solid var(--secondary);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-compliance {
    max-width: 500px;
    font-size: 0.85rem;
    color: #64748B;
}

/* ==========================================================================
   Floating Tech CTA Dock (Repositioned Under Header)
   ========================================================================== */
.floating-cta-dock {
    position: fixed;
    top: calc(80px + 2rem);
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2000;
}

.floating-cta {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: var(--transition);
}

.floating-cta:hover {
    transform: scale(1.1);
}

.call-cta {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.support-cta {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.floating-cta::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background-color: var(--dark);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.floating-cta:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .floating-cta-dock { right: 1rem; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero h1 { font-size: 2.75rem; }
    .grid-2 { gap: 3rem; }
    .about-section, .services-section, .contact-section { padding: 5rem 0; }
    .footer-flex { flex-direction: column; text-align: center; }
    .footer-compliance { text-align: center; }
}