/* 
   MASTER DESIGN SYSTEM 3.1 - BRAND ALIGNED (LOGO ADAPTATION)
   Refined colors and spacing based on official Quality Accounting Logo
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Source+Serif+4:wght@400;700&display=swap');

:root {
    /* Brand Colors (Extracted from Official Logo) */
    --brand-red: #A5191C;      /* The deep red in 'Qa' and graph bars */
    --brand-dark: #2B3139;     /* The slate charcoal in 'Q' */
    --brand-light-gray: #71767C; /* Secondary text color in logo */
    
    --bg-gray: #F4F6F8;
    --white: #FFFFFF;
    --text-muted: rgba(43, 49, 57, 0.6);
    --border-soft: rgba(43, 49, 57, 0.08);
    
    /* Typographic Scale (Normalized) */
    --fs-h1: 4.8rem;
    --fs-h2: 4rem;
    --fs-h3: 2.2rem;
    --fs-h4: 1.4rem;
    --fs-body: 1.15rem;
    --fs-tag: 0.8rem;

    --radius-xl: 40px;
    --radius-lg: 24px;
    --t-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin:0; padding:0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--brand-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Serif Accent for Brand Integrity */
.font-serif { font-family: 'Source Serif 4', serif; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 4rem; }

section { padding: 160px 0; }

.split-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 7rem; align-items: center; }

/* Header - Solid & Brand Aligned */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1.2rem 0;
    background: var(--white);
    border-bottom: 3px solid var(--brand-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

nav { display: flex; justify-content: space-between; align-items: center; }
.logo-wrap img { height: 75px; width: auto; display: block; } /* Large, clear logo */

.mobile-toggle { display: none; background: transparent; border: none; font-size: 1.8rem; color: var(--brand-dark); cursor: pointer; transition: color 0.3s ease; }
.mobile-toggle:hover { color: var(--brand-red); }

.nav-links { display: flex; list-style: none; gap: 3rem; align-items: center; }
.nav-links a { 
    text-decoration: none; color: var(--brand-dark); font-weight: 700; 
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px;
    transition: var(--t-premium);
}
.nav-links a:hover { color: var(--brand-red); }

.btn-cta {
    background: var(--brand-red); color: white !important;
    padding: 1.2rem 2.8rem; border-radius: 50px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(165, 25, 28, 0.2);
    text-decoration: none;
    display: inline-block;
}

/* Typography Standards */
.section-tag {
    color: var(--brand-red); font-weight: 900; letter-spacing: 4px;
    text-transform: uppercase; font-size: var(--fs-tag);
}

.section-heading {
    font-size: var(--fs-h2); font-weight: 900; line-height: 1.1; margin-top: 1.5rem;
}
.heading-accent { color: var(--brand-red); }

/* Premium Cards */
.card-premium {
    background: white; padding: 3.5rem; border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft); transition: var(--t-premium);
}
.card-premium:hover {
    transform: translateY(-12px); border-color: var(--brand-red);
    box-shadow: 0 40px 80px rgba(43, 49, 89, 0.06);
}

/* Contact Specifics */
.inquiry-form-card {
    background: white; padding: 4.5rem; border-radius: var(--radius-lg);
    box-shadow: 0 50px 120px rgba(0,0,0,0.07);
}

.form-group { margin-bottom: 2.5rem; }
.form-group label {
    display: block; font-weight: 900; font-size: 0.75rem; 
    text-transform: uppercase; opacity: 0.4; margin-bottom: 12px;
}

.form-group input, .form-group textarea {
    width: 100%; padding: 1.4rem; background: var(--bg-gray);
    border: 2px solid transparent; border-radius: 12px;
    font-size: 1.05rem; transition: var(--t-premium); font-family: inherit;
}
.form-group input:focus { background: white; border-color: var(--brand-red); outline: none; }

/* Responsive Layouts - Grid Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 60px; }

/* Responsive Logic */
@media (max-width: 1100px) {
    :root { --fs-h1: 3.8rem; --fs-h2: 3.4rem; }
    .split-grid { grid-template-columns: 1fr; text-align: center; gap: 5rem; }
    .container { padding: 0 2rem; }
    
    .mobile-toggle { display: block; }
    .nav-links {
        position: fixed; top: 96px; right: -100%; width: 100%; height: calc(100vh - 96px);
        background: var(--white); flex-direction: column; justify-content: flex-start;
        gap: 2.5rem; transition: var(--t-premium); padding: 4rem 2rem; display: flex;
        border-top: 1px solid var(--border-soft); box-shadow: -10px 10px 30px rgba(0,0,0,0.05);
    }
    .nav-links.nav-active { right: 0; }
    
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    :root { --fs-h1: 2.8rem; --fs-h2: 2.5rem; }
    section { padding: 80px 0; }
    .container { padding: 0 1.5rem; }
    
    .grid-2, .grid-3, .grid-4, .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }
    
    /* Stats box borders on mobile */
    .grid-3 > div { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 2rem; margin-bottom: 2rem; }
    .grid-3 > div:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
    
    header { padding: 1rem 0; }
    .btn-cta { width: 100%; text-align: center; }
}
