/* ============================================
   MAIN.CSS — Variables, Reset, Typographie, Base
   H&H AUTO & PLUS
   ============================================ */

/* Google Fonts — Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- Variables ---- */
:root {
    --primary: #1B3A5C;
    --primary-dark: #0F2238;
    --primary-light: #2563A0;
    --accent: #E8730A;
    --accent-hover: #CF6209;
    --white: #FFFFFF;
    --bg-light: #F7F8FA;
    --bg-alt: #EEF2F7;
    --border: #E2E8F0;
    --text: #475569;
    --text-dark: #1E293B;
    --footer-bg: #0F172A;
    --footer-top: #1a2744;
    --topbar-bg: #0A1628;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.28s ease;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
    --container: 1220px;
    --section-py: 80px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
input, textarea, select { border: none; outline: none; background: none; }

/* ---- Container ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,115,10,0.35);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-accent-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-accent-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---- Section base ---- */
.section { padding: var(--section-py) 0; }
.section-sm { padding: 50px 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* ---- Section header ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .label {
    display: inline-block;
    background: rgba(232,115,10,0.1);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: 0.5; }

/* ---- Inner Hero ---- */
.inner-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.inner-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(232,115,10,0.1) 0%, transparent 60%);
}
.inner-hero .container { position: relative; z-index: 1; }
.inner-hero h1 { color: var(--white); margin-bottom: 16px; }
.inner-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---- Animated reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---- Page wrapper ---- */
/* No overflow on page-wrapper — avoids breaking position:fixed on iOS Safari */
html { overflow-x: hidden; }

/* ---- Fixed Call Button ---- */
.fixed-call {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(232,115,10,0.45);
    transition: all 0.28s ease;
    opacity: 0;
    transform: translateY(16px);
}
.fixed-call.visible {
    opacity: 1;
    transform: translateY(0);
}
.fixed-call:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(232,115,10,0.55);
}
.fixed-call svg {
    width: 18px; height: 18px;
    fill: none; stroke: currentColor; stroke-width: 2.5;
    flex-shrink: 0;
}
.fixed-call .label-text { white-space: nowrap; }
/* Pulsing ring */
.fixed-call::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    border: 2px solid rgba(232,115,10,0.4);
    animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
    0%   { opacity: 1; transform: scale(1); }
    70%  { opacity: 0; transform: scale(1.15); }
    100% { opacity: 0; transform: scale(1.15); }
}
/* Mobile fixed-call handled in responsive.css */

/* ---- Phone link ---- */
a.phone-link {
    color: var(--accent);
    font-weight: 700;
    transition: color var(--transition);
}
a.phone-link:hover { color: var(--accent-hover); }

/* ---- Accent line ---- */
.accent-line {
    width: 56px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 0;
}
.accent-line-left { margin-left: 0; }

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(232,115,10,0.15) 0%, transparent 60%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Service list items ---- */
.service-list { margin: 16px 0 0; }
.service-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.95rem;
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.d-flex { display: flex; }
.gap-16 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-group.centered { justify-content: center; }
