/* ============================================================
   Cash For Scrap Cars Ontario — styles.css
   GLOBAL styles only — shared across all pages
   Brand: Green #4A9E2A | Dark Green #2F6F1F | Yellow #F4B400
          Dark Blue #1F2D3D | Grey #4A4A4A | BG #F5F5F5
   ============================================================ */

/* --- Variables --- */
:root {
    --green: #4A9E2A;
    --green-dark: #2F6F1F;
    --green-light: #7BC043;
    --yellow: #F4B400;
    --blue-dark: #1F2D3D;
    --grey: #4A4A4A;
    --bg: #F5F5F5;
    --white: #FFFFFF;
    --font-head: 'Barlow Condensed', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--grey);
    background: var(--white);
    line-height: 1.65;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--blue-dark);
    color: #ccc;
    font-size: 0.82rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-right a {
    color: #ccc;
    transition: color var(--transition);
}

.top-bar-right a:hover {
    color: var(--yellow);
}

.top-bar-phone {
    color: var(--yellow) !important;
    font-weight: 600;
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.navbar-logo img {
    height: 54px;
    width: auto;
}

.navbar-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.navbar-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--blue-dark);
    transition: color var(--transition);
    position: relative;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width var(--transition);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--green);
}

.navbar-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue-dark);
    transition: var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(74, 158, 42, 0.3);
}

.btn-call {
    background: transparent;
    color: var(--blue-dark);
    border-color: var(--blue-dark);
}

.btn-call:hover {
    background: var(--blue-dark);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover::after {
    transform: scaleX(1);
}

.btn-whatsapp svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover svg {
    transform: rotate(10deg) scale(1.15);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--blue-dark);
    border-color: var(--yellow);
    font-size: 1rem;
    padding: 14px 32px;
}

.btn-yellow:hover {
    background: #e0a600;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 180, 0, 0.35);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    font-size: 1rem;
    padding: 14px 32px;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--blue-dark);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* --- Section Base --- */
section {
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1rem;
    color: var(--grey);
    max-width: 560px;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.text-center .section-sub {
    margin: 0 auto;
}

/* --- Quote Form (shared) --- */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--blue-dark);
    background: var(--white);
    transition: border-color var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 158, 42, 0.12);
}

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

.form-submit .btn {
    width: 100%;
    justify-content: center;
}

.form-note {
    font-size: 0.78rem;
    color: #888;
    text-align: center;
    margin-top: 4px;
}

.form-msg {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    display: none;
}

.form-msg.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-msg.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* --- Page Hero (shared: services + contact) --- */
.page-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.75) 100%), url('/assets/images/hero-bg.jpg') center center / cover no-repeat;
    padding: 70px 0;
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: var(--yellow);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* --- Thank You / 404 --- */
.thankyou-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg);
    padding: 80px 20px;
}

.thankyou-box {
    background: var(--white);
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: var(--shadow);
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.thankyou-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.thankyou-box h1 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 14px;
}

.thankyou-box p {
    font-size: 1rem;
    color: var(--grey);
    margin-bottom: 28px;
    line-height: 1.7;
}

@media (max-width: 480px) {
    .thankyou-box {
        padding: 40px 20px;
    }

    .thankyou-box h1 {
        font-size: 1.8rem;
    }
}

/* --- Footer --- */
.footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

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

.footer-brand img {
    margin-bottom: 14px;
    background: var(--white);
    padding: 8px 14px;
    border-radius: 10px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-social {
    margin-top: 18px;
}

.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background var(--transition);
}

.wa-link:hover {
    background: #1ebe57;
}

.footer h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer ul li {
    font-size: 0.88rem;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}

.footer ul a:hover {
    color: var(--green-light);
}

.footer-bottom {
    padding: 18px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom a {
    color: var(--green-light);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 20px 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
}

.whatsapp-float:hover {
    background: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

/* --- Global Responsive --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .navbar-nav,
    .navbar-cta {
        display: none;
    }

    .navbar-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        gap: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .navbar-inner {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

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

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

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

    .top-bar .container {
        justify-content: center;
    }

    .top-bar-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        padding: 14px;
        border-radius: 50%;
    }
}

/* --- CTA Banner (shared) --- */
.cta-banner {
    background:
        linear-gradient(135deg, rgba(47, 111, 31, 0.94) 0%, rgba(74, 158, 42, 0.92) 100%),
        url('/assets/images/hero-bg.jpg') center center / cover no-repeat;
    padding: 70px 0;
    text-align: center;
}

.cta-banner h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}