/* /public_html/home/home_page.css */
/* SRK HONDA – PUBLIC HOME PAGE THEME (page-specific only)
   Header / mobile nav styling now lives in /home/_admin/app/header.css */

/* ---------- BASE ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0a0a0a;
    background-color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- THEME TOKENS ---------- */

:root {
    --red: #d50000;
    --red-soft: #ffebee;
    --red-dark: #a50000;
    --gold: #d4af37;

    --honda-red: #e4002b;

    --dark: #0a0a0a;
    --gray-900: #0a0a0a;
    --gray-800: #1a1a1a;
    --gray-700: #2e2e2e;
    --gray-600: #424242;
    --gray-500: #616161;
    --gray-400: #9e9e9e;
    --gray-300: #bdbdbd;
    --gray-200: #e0e0e0;
    --gray-100: #f5f5f5;
    --gray-50:  #fafafa;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 999px;

    --shadow-soft: 0 12px 36px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-strong: 0 20px 50px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5);

    --maxw: 1280px;
}

/* ---------- UTILITIES ---------- */

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-muted {
    color: var(--gray-500);
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ------------------------------------------------------------------
   HERO SECTION (banner + enquiry + EMI)
   ------------------------------------------------------------------ */

.hero {
    background: radial-gradient(circle at top left, #ffffff, #f0f0f0 50%, #e0e0e0 100%);
    padding: 3rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(213,0,0,0.05), rgba(212,175,55,0.05));
    pointer-events: none;
}

/* Outer wrapper: banner + cards stacked vertically */
.hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Banner image – full width */
.hero-visual {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    position: relative;
    background: transparent;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-visual-picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Row with enquiry + EMI cards (desktop: side-by-side, equal height) */
.hero-stack {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;   /* Make both cards equal height */
}

/* Cards behave like full-height flex columns inside the grid */
.hero-stack .card {
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------------------------------
   CARD
   ------------------------------------------------------------------ */

.card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    padding: 1.6rem 1.8rem 1.7rem;
    border: 1px solid rgba(255,255,255,0.5);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 24px 60px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
    transform: translateY(-4px);
}

.card-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-900);
}

.card-subtitle {
    margin: 0 0 1.2rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ------------------------------------------------------------------
   FORMS (shared)
   ------------------------------------------------------------------ */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem 1.2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(213,0,0,0.1);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.15rem;
}

/* ------------------------------------------------------------------
   ONLINE ENQUIRY CARD LAYOUT
   ------------------------------------------------------------------ */

.home-enquiry-card {
    padding: 2rem 2rem 2.2rem;
    width: 100%;
}

.home-enquiry-card .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
}

.home-enquiry-card .form-field.full {
    grid-column: 1 / 3;
}

.home-enquiry-card textarea {
    min-height: 120px;
}

.home-enquiry-card .submit-row {
    text-align: right;
    margin-top: 1.2rem;
}

/* ------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border-radius: var(--radius-pill);
    border: none;
    background: linear-gradient(45deg, var(--red), var(--red-dark));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    box-shadow: 0 4px 12px rgba(213,0,0,0.2);
}

.btn:hover {
    background: linear-gradient(45deg, var(--red-dark), var(--red));
    box-shadow: 0 10px 24px rgba(213,0,0,0.4);
    transform: translateY(-2px);
}

.btn.secondary {
    background: linear-gradient(45deg, #fff, #f8f9fa);
    color: var(--red);
    border: 1px solid var(--red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn.secondary:hover {
    background: var(--red-soft);
    box-shadow: 0 10px 24px rgba(213,0,0,0.15);
}

/* ------------------------------------------------------------------
   EMI RESULTS
   ------------------------------------------------------------------ */

.emi-results-box {
    margin-top: 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.86rem;
}

.emi-results-box .emi-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.15rem;
}

.emi-results-box .emi-row span:first-child {
    color: #6b7280;
}

.emi-results-box .emi-row span:last-child {
    font-weight: 600;
    color: #111827;
}

.emi-note {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------ */

.site-footer {
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.92rem;
    line-height: 1.5;
    width: 100%;
}

.footer-top {
    padding: 40px 0 30px;
    background: #111;
    width: 100%;
}

.footer-grid {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.brand-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-col h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: #fff;
    position: relative;
    text-transform: uppercase;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--honda-red);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin: 6px 0;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--honda-red);
}

.contact-list span {
    color: #888;
    display: inline-block;
    min-width: 70px;
}

.footer-bottom {
    background: #000;
    padding: 18px 0;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 4px 0;
    opacity: .8;
}

/* ------------------------------------------------------------------
   FLOATING BUTTONS
   ------------------------------------------------------------------ */

.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform .2s;
}

.wa-float:hover {
    transform: scale(1.1);
}

.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--honda-red);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 998;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #c70024;
    transform: translateY(-4px);
}

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */

/* Stack cards + form fields on smaller screens */
@media (max-width: 900px) {
    .hero-stack {
        grid-template-columns: 1fr;
        margin-top: 1.4rem;
    }

    .hero-stack .card {
        height: auto;
    }

    .hero-stack .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .brand-footer {
        justify-content: center;
    }

    .wa-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .scroll-top {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }
}
