/* ==========================================================================
   Homefront Pvt Ltd — Main Stylesheet
   Colours: dark green #2d5a27 | lime #6abf2e | white #ffffff | grey #f7f7f7
   ========================================================================== */

:root {
    --green-dark: #2d5a27;
    --green-dark-2: #234a1e;
    --lime: #6abf2e;
    --lime-dark: #58a323;
    --white: #ffffff;
    --grey-light: #f7f7f7;
    --grey-mid: #e6e6e6;
    --text: #2b2b2b;
    --text-muted: #5f6b5c;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(45, 90, 39, 0.10);
    --shadow-hover: 0 14px 40px rgba(45, 90, 39, 0.18);
    --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--green-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--lime); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--green-dark); }

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

section { padding: 80px 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}
.btn-primary { background: var(--lime); color: var(--white); }
.btn-primary:hover { background: var(--lime-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green-dark); }
.btn-dark { background: var(--green-dark); color: var(--white); }
.btn-dark:hover { background: var(--green-dark-2); color: var(--white); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-logo { height: 52px; width: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 8px; }
.main-nav a {
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--green-dark);
    font-size: 0.98rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--lime); background: var(--grey-light); }
.main-nav a.nav-cta {
    background: var(--lime);
    color: var(--white) !important;
    padding: 10px 22px;
}
.main-nav a.nav-cta:hover { background: var(--lime-dark); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--green-dark);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, #366b2c 55%, var(--lime-dark) 130%);
    color: var(--white);
    text-align: center;
    padding: 110px 0 120px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(106,191,46,0.35) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-logo {
    background: var(--white);
    display: inline-block;
    padding: 22px 34px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.hero-logo img { height: 70px; }
.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 8px; letter-spacing: -0.5px; }
.hero .tagline {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--lime);
    background: rgba(255,255,255,0.12);
    display: inline-block;
    padding: 6px 22px;
    border-radius: 50px;
    margin-bottom: 26px;
}
.hero p.lead {
    max-width: 780px;
    margin: 0 auto 34px;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .eyebrow {
    color: var(--lime);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}
.section-head h2 { font-size: 2.2rem; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

.bg-grey { background: var(--grey-light); }

/* ---------- Feature cards ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--lime);
    display: flex;
    flex-direction: column;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon {
    width: 66px; height: 66px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--lime), var(--green-dark));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
}
.feature-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.feature-card .card-link { font-weight: 600; color: var(--green-dark); }
.feature-card .card-link i { transition: var(--transition); }
.feature-card .card-link:hover { color: var(--lime); }
.feature-card .card-link:hover i { transform: translateX(4px); }

/* ---------- Page banner ---------- */
.page-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, #366b2c 100%);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}
.page-banner h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
.breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 18px; }
.breadcrumb a { color: var(--lime); }

/* ---------- Intro text block ---------- */
.intro-block { max-width: 820px; margin: 0 auto; text-align: center; }
.intro-block p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 18px; }

/* ---------- Brand grid ---------- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.brand-card {
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 180px;
}
.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--lime);
}
.brand-logo-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
}
.brand-logo-wrap img { max-height: 80px; max-width: 100%; object-fit: contain; }
.brand-badge {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green-dark);
    padding: 20px 10px;
    line-height: 1.15;
}
.brand-badge span { color: var(--lime); }
.brand-name { font-weight: 600; color: var(--text); font-size: 1.02rem; }
.brand-card:hover .brand-name { color: var(--green-dark); }

.pre-order-note {
    margin-top: 46px;
    text-align: center;
    background: var(--grey-light);
    border-left: 4px solid var(--lime);
    border-radius: var(--radius);
    padding: 24px 30px;
    font-size: 1.05rem;
    color: var(--text-muted);
}
.pre-order-note strong { color: var(--green-dark); }

/* ---------- Services list ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    margin-top: 40px;
}
.service-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.service-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-item .s-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--grey-light);
    color: var(--lime);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.service-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service-item p { color: var(--text-muted); font-size: 0.98rem; }

.partners-band {
    background: linear-gradient(135deg, var(--green-dark) 0%, #366b2c 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    border-radius: var(--radius);
    margin-top: 20px;
}
.partners-band h2 { color: var(--white); margin-bottom: 14px; }
.partners-band p { max-width: 680px; margin: 0 auto 26px; color: rgba(255,255,255,0.9); }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--lime);
    color: var(--white);
    text-align: center;
    padding: 70px 0;
}
.cta-band h2 { color: var(--white); font-size: 2rem; margin-bottom: 14px; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}
.contact-info {
    background: linear-gradient(135deg, var(--green-dark) 0%, #366b2c 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 40px 34px;
}
.contact-info h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 18px; }
.contact-info p { color: rgba(255,255,255,0.9); margin-bottom: 26px; }
.contact-info .info-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .info-item i {
    font-size: 1.2rem; color: var(--lime);
    background: rgba(255,255,255,0.12);
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-info .info-item a { color: var(--white); }
.contact-info .info-item a:hover { color: var(--lime); }
.contact-info .info-item span.label { display: block; font-size: 0.82rem; opacity: 0.8; }

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--grey-mid);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--green-dark); font-size: 0.95rem; }
.form-group label .req { color: #d33; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--grey-mid);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(106,191,46,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.consent-group { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.consent-group input { width: auto; margin-top: 5px; flex-shrink: 0; }
.consent-group label { font-weight: 400; color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Alerts */
.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 0.98rem; }
.alert-success { background: #e8f7e0; color: #2d5a27; border: 1px solid #b7e39c; }
.alert-error { background: #fdeaea; color: #a12626; border: 1px solid #f3c0c0; }
.alert ul { margin: 8px 0 0 20px; }

.thankyou-box {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 60px 40px;
    box-shadow: var(--shadow);
    max-width: 640px;
    margin: 0 auto;
}
.thankyou-box .ty-icon {
    width: 84px; height: 84px; border-radius: 50%;
    background: var(--lime); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; margin: 0 auto 24px;
}
.thankyou-box h2 { margin-bottom: 12px; }
.thankyou-box p { color: var(--text-muted); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark-2); color: rgba(255,255,255,0.85); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 90px; background: var(--white); padding: 10px; border-radius: 12px; margin-bottom: 16px; }
.footer-tag { color: var(--lime); font-weight: 600; }
.footer-col h4 { color: var(--white); margin-bottom: 18px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: var(--lime); }
.footer-col p { margin-bottom: 10px; }
.footer-col i { color: var(--lime); width: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; text-align: center; font-size: 0.9rem; }
.footer-bottom p { color: rgba(255,255,255,0.7); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.3rem; }
}
@media (max-width: 680px) {
    section { padding: 56px 0; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.open { max-height: 400px; }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
    .main-nav a { display: block; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero .tagline { font-size: 1.1rem; }
    .hero-logo img { height: 52px; }
}
