/* =========================================================
   Quest - Company Profile
   Brand colors derived from the Quest "Q" logo (brick red)
   ========================================================= */

:root {
    --brand: #9A3324;          /* primary brick red from logo */
    --brand-dark: #6E2216;
    --brand-light: #C04A37;
    --brand-accent: #D97757;   /* warm copper accent */
    --ink: #1A1A1A;
    --ink-2: #2D2D2D;
    --muted: #6B6B6B;
    --line: #E6E6E6;
    --bg: #FFFFFF;
    --bg-alt: #FAF7F5;
    --bg-dark: #1A0E0B;
    --white: #FFFFFF;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(26, 14, 11, 0.06);
    --shadow: 0 10px 30px rgba(26, 14, 11, 0.10);
    --shadow-lg: 0 20px 50px rgba(26, 14, 11, 0.15);

    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .6em;
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: 1.125rem; color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-light { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #EADFD9; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
    padding-bottom: 10px;
    position: relative;
}
.kicker::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 2px;
    background: var(--brand);
}

.section-head {
    max-width: 780px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-head .kicker::after { left: 50%; transform: translateX(-50%); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .4px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    transition: all .25s ease;
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand-logo { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 2px;
}
.brand-sub {
    font-size: .7rem;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
    color: var(--ink);
    font-weight: 500;
    font-size: .94rem;
    padding: 8px 0;
    position: relative;
}
.main-nav ul a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    width: 0; height: 2px;
    background: var(--brand);
    transition: all .25s ease;
    transform: translateX(-50%);
}
.main-nav ul a:hover,
.main-nav ul a.active { color: var(--brand); }
.main-nav ul a:hover::after,
.main-nav ul a.active::after { width: 100%; }

.lang-switch {
    display: flex; align-items: center; gap: 6px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
    font-size: .85rem;
    font-weight: 600;
}
.lang-switch a { color: var(--muted); padding: 4px 6px; }
.lang-switch a.active { color: var(--brand); }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    background: transparent; border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: all .25s; }

/* Hero */
.hero {
    position: relative;
    padding: 120px 0 110px;
    background: linear-gradient(135deg, #1A0E0B 0%, #3D1811 50%, #6E2216 100%);
    color: #fff;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 40%, rgba(217,119,87,.35), transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(154,51,36,.4), transparent 55%);
    opacity: .9;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero .kicker { color: var(--brand-accent); }
.hero .kicker::after { background: var(--brand-accent); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,.82); font-size: 1.2rem; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-mark {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-mark img {
    width: 100%;
    max-width: 280px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,.4));
    opacity: .95;
}

/* Page hero */
.page-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #F0E7E3 100%);
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { max-width: 720px; }

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Vision / Mission card */
.vm-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--brand);
}
.vm-block + .vm-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.vm-block h3 { color: var(--brand); margin-bottom: 10px; }
.vm-block ul { padding-left: 20px; margin: 0; }
.vm-block li { margin-bottom: 8px; color: var(--ink-2); }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-num {
    font-family: var(--font-head);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--brand-accent);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: .85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.service-card:hover {
    border-color: var(--brand);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(154,51,36,.25);
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Achievements */
.ach-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 900px;
    margin-inline: auto;
    display: grid;
    gap: 16px;
}
.ach-list li {
    background: var(--white);
    padding: 22px 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--brand);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    color: var(--ink-2);
}
.ach-list .check {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 70px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.88); margin: 0; max-width: 560px; }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-banner .btn-primary {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}
.cta-banner .btn-primary:hover {
    background: var(--bg-dark);
    color: #fff;
    border-color: var(--bg-dark);
}

/* Contact */
.contact-grid { gap: 70px; }
.contact-info h3 { color: var(--brand); margin-bottom: 24px; }
.info-item { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: none; }
.info-label {
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 6px;
}
.info-item p { margin: 0; color: var(--ink-2); }

.contact-form-wrap {
    background: var(--white);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--brand);
}
.contact-form label {
    display: block;
    margin-bottom: 18px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
}
.contact-form label > span { display: block; margin-bottom: 8px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    font: inherit;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(154,51,36,.12);
    background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label { margin-bottom: 18px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    font-size: .92rem;
}
.alert-success { background: #E8F4EC; color: #1D6B39; border: 1px solid #BBE0C8; }
.alert-error { background: #FCEBEA; color: #8B1F14; border: 1px solid #F4C4BE; }

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,.72);
    padding: 80px 0 30px;
}
.site-footer h4, .site-footer h5 { color: #fff; }
.site-footer h5 {
    font-family: var(--font-body);
    font-size: .82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 48px; }
.footer-brand h4 { margin: 0; font-size: 1.1rem; }
.footer-col p { color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: .92rem; color: rgba(255,255,255,.6); }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: var(--brand-accent); }
.site-footer address { font-style: normal; }
.site-footer address p { margin-bottom: 10px; font-size: .88rem; }
.site-footer address a { color: rgba(255,255,255,.8); }
.site-footer address a:hover { color: var(--brand-accent); }
.footer-disclaimer {
    padding: 26px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-disclaimer small { color: rgba(255,255,255,.45); font-size: .78rem; line-height: 1.6; display: block; }
.footer-bottom {
    padding-top: 26px;
    text-align: center;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.5); }

/* Responsive */
@media (max-width: 960px) {
    .section { padding: 70px 0; }
    .hero { padding: 80px 0; }
    .hero-inner, .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .hero-mark { order: -1; }
    .hero-mark img { max-width: 180px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 24px 28px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .main-nav.open { max-height: 500px; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul li { border-bottom: 1px solid var(--line); }
    .main-nav ul a { display: block; padding: 14px 0; }
    .lang-switch {
        margin-top: 16px;
        padding-left: 0;
        border-left: none;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .service-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 28px; }
    .brand-sub { display: none; }
}
