/* ============================================
   Quadrant Info Solutions — Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;

    --charcoal-50: #f8fafc;
    --charcoal-100: #f1f5f9;
    --charcoal-200: #e2e8f0;
    --charcoal-300: #cbd5e1;
    --charcoal-400: #94a3b8;
    --charcoal-500: #64748b;
    --charcoal-600: #475569;
    --charcoal-700: #334155;
    --charcoal-800: #1e293b;
    --charcoal-900: #0f172a;

    --white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--charcoal-800);
    border-color: var(--white);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    transition: color var(--transition);
}

.navbar.scrolled .logo {
    color: var(--charcoal-800);
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--teal-400);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: var(--charcoal-600);
}

.navbar.scrolled .nav-link:hover {
    color: var(--charcoal-800);
}

.navbar.scrolled .nav-link::after {
    background-color: var(--teal-600);
}

.nav-cta {
    padding: 10px 24px;
    font-size: 14px;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

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

.navbar.scrolled .nav-toggle span {
    background-color: var(--charcoal-800);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--charcoal-900) 0%, var(--charcoal-800) 40%, var(--teal-800) 70%, var(--teal-700) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        radial-gradient(circle at 25% 25%, var(--teal-400) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--teal-400) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-bg::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
    max-width: 720px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
}

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

/* ============================================
   Section Styles
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--charcoal-800);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--charcoal-500);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--charcoal-50);
    border: 1px solid var(--charcoal-100);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-200);
    background-color: var(--white);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
    border-radius: var(--radius);
    color: var(--teal-600);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--charcoal-800);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--charcoal-500);
    line-height: 1.65;
}

/* ============================================
   Why Us Section
   ============================================ */
.why-us {
    padding: 100px 0;
    background-color: var(--charcoal-50);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    background-color: var(--white);
    border: 1px solid var(--charcoal-100);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--teal-200);
}

.why-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal-500);
    opacity: 0.4;
    margin-bottom: 12px;
    line-height: 1;
}

.why-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--charcoal-800);
    margin-bottom: 10px;
}

.why-desc {
    font-size: 0.95rem;
    color: var(--charcoal-500);
    line-height: 1.65;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal-700);
}

.required {
    color: var(--teal-600);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-family);
    font-size: 15px;
    padding: 12px 16px;
    border: 1.5px solid var(--charcoal-200);
    border-radius: var(--radius);
    color: var(--charcoal-800);
    background-color: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--charcoal-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

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

.btn-submit {
    align-self: flex-start;
    margin-top: 4px;
}

.btn-submit svg {
    transition: transform var(--transition);
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* Contact Info Side */
.contact-info-card {
    background: linear-gradient(135deg, var(--charcoal-800), var(--charcoal-900));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
}

.contact-info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-info-card > p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-detail svg {
    flex-shrink: 0;
    color: var(--teal-400);
}

.contact-detail a {
    color: rgba(255, 255, 255, 0.85);
}

.contact-detail a:hover {
    color: var(--teal-300);
}

.contact-detail span {
    color: rgba(255, 255, 255, 0.85);
}

.contact-social {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
}

.social-link:hover {
    background-color: var(--teal-600);
    color: var(--white);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--charcoal-900);
    color: var(--charcoal-400);
    padding: 60px 0 0;
}

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

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

.footer-tagline {
    font-size: 0.95rem;
    color: var(--charcoal-400);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.95rem;
    color: var(--charcoal-400);
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        background-color: var(--charcoal-900);
        transition: right var(--transition);
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.85);
        font-size: 18px;
        padding: 16px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-link:hover {
        color: var(--teal-400);
    }

    .navbar.scrolled .nav-link {
        color: rgba(255, 255, 255, 0.85);
    }

    .navbar.scrolled .nav-link:hover {
        color: var(--teal-400);
    }

    .nav-cta {
        margin-top: 24px;
        width: 100%;
        justify-content: center;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .services,
    .why-us,
    .contact {
        padding: 72px 0;
    }
}

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

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

    .hero-actions .btn {
        justify-content: center;
    }

    .btn-lg {
        padding: 14px 28px;
    }

    .service-card,
    .why-card {
        padding: 28px 24px;
    }

    .contact-info-card {
        padding: 32px 24px;
    }
}
