/* =====================================================================
   EG / TCP Affordable Plots — frontend design system
   Loaded after the legacy template CSS so it wins. Scoped mostly under
   .eg-* classes on new markup; a few overrides target the shared header,
   footer and the registration-form component's Bootstrap inputs.
   Subject: government-approved (TCP Haryana) affordable residential plots,
   allotted by lucky draw. Signature: survey/blueprint plot-grid + govt seal.
   ===================================================================== */

:root {
    --eg-forest:      #1b4332;
    --eg-forest-2:    #123024;
    --eg-forest-soft: #2b6a4f;
    --eg-gold:        #c69528;
    /* Hero scrim, as channels so the gradients can vary the alpha. Overridden
       along with the rest of the palette when an admin sets a theme colour. */
    --eg-scrim-rgb:   12,34,25;
    --eg-gold-2:      #a97c1c;
    --eg-ink:         #17211c;
    --eg-muted:       #5c6b63;
    --eg-paper:       #f7f3ea;
    --eg-line:        #e4ddcd;
    --eg-white:       #ffffff;
    --eg-radius:      14px;
    --eg-radius-lg:   22px;
    --eg-shadow:      0 18px 40px -24px rgba(18, 48, 36, .45);
    --eg-shadow-sm:   0 8px 22px -16px rgba(18, 48, 36, .5);
    --eg-display:     'Bricolage Grotesque', 'Montserrat', system-ui, sans-serif;
    --eg-body:        'Inter', 'Roboto', system-ui, sans-serif;
}

/* ---- base ---------------------------------------------------------- */
body {
    font-family: var(--eg-body);
    color: var(--eg-ink);
    background: var(--eg-white);
    -webkit-font-smoothing: antialiased;
}
.eg-section { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.eg-container { width: min(1180px, 92%); margin-inline: auto; }
.eg-display { font-family: var(--eg-display); }

.eg-eyebrow {
    font-family: var(--eg-body);
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .74rem;
    color: var(--eg-gold-2);
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.eg-eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--eg-gold);
    display: inline-block;
}
.eg-h2 {
    font-family: var(--eg-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--eg-forest);
    margin: .5rem 0 0;
}
.eg-lead { color: var(--eg-muted); font-size: 1.05rem; max-width: 60ch; }

/* survey-grid signature (used as a subtle background) */
.eg-grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* ---- buttons ------------------------------------------------------- */
.eg-btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--eg-display);
    font-weight: 600;
    font-size: 1rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    line-height: 1;
}
.eg-btn:hover { transform: translateY(-2px); text-decoration: none; }
.eg-btn-gold { background: var(--eg-gold); color: #241a02; box-shadow: 0 10px 24px -12px rgba(198,149,40,.8); }
.eg-btn-gold:hover { background: #d5a736; color: #241a02; }
.eg-btn-forest { background: var(--eg-forest); color: #fff; }
.eg-btn-forest:hover { background: var(--eg-forest-2); color:#fff; }
.eg-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.eg-btn-ghost:hover { background: rgba(255,255,255,.12); color:#fff; }
.eg-btn-outline { background: transparent; color: var(--eg-forest); border-color: var(--eg-line); }
.eg-btn-outline:hover { border-color: var(--eg-forest); color: var(--eg-forest); }

/* =====================================================================
   HEADER  (overrides the legacy header markup we rewrite in header.blade)
   ===================================================================== */
.eg-topbar {
    background: var(--eg-forest-2);
    color: #dfeee6;
    font-size: .82rem;
}
.eg-topbar .eg-container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .5rem 0; flex-wrap: wrap;
}
.eg-topbar a { color: #dfeee6; text-decoration: none; }
.eg-topbar a:hover { color: var(--eg-gold); }
.eg-topbar .eg-topbar-contact { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.eg-topbar .eg-badge-approved {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--eg-gold);
    font-weight: 600; letter-spacing: .02em;
}

.eg-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--eg-line);
}
.eg-header .eg-container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .6rem 0;
}
.eg-header .eg-logo img { height: 60px; width: auto; display: block; }
.eg-nav { display: flex; align-items: center; gap: 1.6rem; }
.eg-nav a {
    font-family: var(--eg-display);
    font-weight: 500; color: var(--eg-ink); text-decoration: none;
    font-size: .98rem;
}
.eg-nav a:hover { color: var(--eg-forest-soft); }
.eg-header-cta { display: flex; align-items: center; gap: 1rem; }
.eg-header-phone {
    font-family: var(--eg-display); font-weight: 600;
    color: var(--eg-forest); text-decoration: none; white-space: nowrap;
}
.eg-header-phone:hover { color: var(--eg-gold-2); }
@media (max-width: 760px) {
    .eg-nav { display: none; }
    .eg-header-phone span { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.eg-hero {
    position: relative;
    background: radial-gradient(120% 120% at 85% 0%, var(--eg-forest-soft) 0%, var(--eg-forest) 45%, var(--eg-forest-2) 100%);
    color: #eaf3ee;
    overflow: hidden;
}
.eg-hero .eg-container {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.5rem, 4vw, 3.2rem);
    align-items: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.eg-hero-eyebrow { color: var(--eg-gold); }
.eg-hero-eyebrow::before { background: var(--eg-gold); }
.eg-hero h1 {
    font-family: var(--eg-display);
    font-weight: 800;
    font-size: clamp(2.1rem, 5.2vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -.02em;
    margin: 1rem 0 1.1rem;
    color: #fff;
}
.eg-hero h1 .eg-hl { color: var(--eg-gold); }
.eg-hero p.eg-hero-sub { color: #cfe2d7; font-size: 1.12rem; max-width: 42ch; margin-bottom: 1.8rem; }
.eg-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.eg-hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.9rem; }
.eg-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    color: #eaf3ee;
    padding: .5rem .9rem; border-radius: 999px; font-size: .86rem; font-weight: 500;
}
.eg-chip i { color: var(--eg-gold); }

/* hero visual — large framed township render with a gold offset accent */
.eg-hero-visual { position: relative; }
.eg-hero-visual::before {
    content: ""; position: absolute; z-index: 0;
    inset: 22px -18px -22px 26px;
    border: 2px solid rgba(198,149,40,.55);
    border-radius: var(--eg-radius-lg);
    pointer-events: none;
}
.eg-hero-frame {
    position: relative; z-index: 1;
    border-radius: var(--eg-radius-lg);
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.9);
    box-shadow: 0 48px 90px -42px rgba(0,0,0,.7);
    background: #0d1f18;
}
.eg-hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.eg-draw-badge {
    position: absolute; left: 14px; bottom: 14px; z-index: 3;
    background: rgba(18,48,36,.86);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(198,149,40,.55);
    border-radius: var(--eg-radius);
    padding: .7rem 1rem; color: #fff; max-width: 78%;
    display: flex; align-items: center; gap: .7rem;
    text-decoration: none;
}
.eg-draw-badge:hover { color:#fff; border-color: var(--eg-gold); }
.eg-draw-badge .eg-draw-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--eg-gold);
    box-shadow: 0 0 0 0 rgba(198,149,40,.7); animation: egPulse 2s infinite;
    flex-shrink: 0;
}
@keyframes egPulse {
    0% { box-shadow: 0 0 0 0 rgba(198,149,40,.6); }
    70% { box-shadow: 0 0 0 10px rgba(198,149,40,0); }
    100% { box-shadow: 0 0 0 0 rgba(198,149,40,0); }
}
.eg-draw-badge small { display:block; color: var(--eg-gold); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.eg-draw-badge b { font-family: var(--eg-display); font-size: .95rem; line-height: 1.15; }

@media (max-width: 860px) {
    .eg-hero .eg-container { grid-template-columns: 1fr; }
    .eg-hero-visual { order: -1; }
}

/* =====================================================================
   TRUST STRIP
   ===================================================================== */
.eg-trust {
    background: var(--eg-paper);
    border-bottom: 1px solid var(--eg-line);
}
.eg-trust .eg-container {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--eg-line);
    border-inline: 1px solid var(--eg-line);
}
.eg-trust-item { background: var(--eg-paper); padding: 1.5rem 1.2rem; text-align: center; }
.eg-trust-item .eg-trust-num {
    font-family: var(--eg-display); font-weight: 800; color: var(--eg-forest);
    font-size: clamp(1.5rem, 3.2vw, 2.15rem); line-height: 1;
}
.eg-trust-item .eg-trust-label { color: var(--eg-muted); font-size: .84rem; margin-top: .4rem; }
@media (max-width: 640px) { .eg-trust .eg-container { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================================
   FEATURE CARDS  (why TCP / overview)
   ===================================================================== */
.eg-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
.eg-feature {
    background: #fff; border: 1px solid var(--eg-line); border-radius: var(--eg-radius);
    padding: 1.5rem 1.35rem; box-shadow: var(--eg-shadow-sm);
    transition: transform .18s ease, box-shadow .2s ease;
}
.eg-feature:hover { transform: translateY(-4px); box-shadow: var(--eg-shadow); }
.eg-feature .eg-feature-ico {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 1rem;
    background: rgba(27,67,50,.08); color: var(--eg-forest); font-size: 1.15rem;
}
.eg-feature h3 { font-family: var(--eg-display); font-weight: 700; font-size: 1.08rem; color: var(--eg-forest); margin: 0 0 .4rem; }
.eg-feature p { color: var(--eg-muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .eg-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .eg-feature-grid { grid-template-columns: 1fr; } }

.eg-overview-note {
    margin-top: 2.2rem; padding: 1.4rem 1.6rem;
    background: var(--eg-paper); border-left: 4px solid var(--eg-gold);
    border-radius: 0 var(--eg-radius) var(--eg-radius) 0; color: #40514a; font-size: .96rem;
}

/* =====================================================================
   PROCESS STEPPER  (allotment journey)
   ===================================================================== */
.eg-process { background: var(--eg-forest); color: #eaf3ee; position: relative; }
.eg-process .eg-h2 { color: #fff; }
.eg-process .eg-lead { color: #bcd4c8; }
.eg-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.4rem; counter-reset: egstep; }
.eg-step {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--eg-radius); padding: 1.6rem 1.3rem; position: relative;
}
.eg-step::before {
    counter-increment: egstep; content: counter(egstep, decimal-leading-zero);
    font-family: var(--eg-display); font-weight: 800; font-size: 1.15rem; color: var(--eg-gold);
    display: block; margin-bottom: .8rem;
}
.eg-step h4 { font-family: var(--eg-display); font-weight: 700; font-size: 1.05rem; color: #fff; margin: 0 0 .35rem; }
.eg-step p { color: #bcd4c8; font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .eg-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .eg-steps { grid-template-columns: 1fr; } }

/* =====================================================================
   PROJECTS
   ===================================================================== */
.eg-projects { background: var(--eg-paper); }
.eg-project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.4rem; }
.eg-project-card {
    background: #fff; border: 1px solid var(--eg-line); border-radius: var(--eg-radius-lg);
    overflow: hidden; box-shadow: var(--eg-shadow-sm); display: flex; flex-direction: column;
    transition: transform .18s ease, box-shadow .2s ease;
}
.eg-project-card:hover { transform: translateY(-5px); box-shadow: var(--eg-shadow); }
.eg-project-media { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--eg-forest-soft), var(--eg-forest-2)); overflow: hidden; }
.eg-project-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eg-project-media .eg-project-fallback {
    position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6);
    font-family: var(--eg-display); font-weight: 700; letter-spacing: .04em; text-align:center; padding: 1rem;
}
.eg-project-noc {
    position: absolute; top: 12px; left: 12px;
    background: rgba(18,48,36,.85); color: var(--eg-gold);
    font-size: .72rem; font-weight: 600; letter-spacing: .02em;
    padding: .35rem .7rem; border-radius: 999px; border: 1px solid rgba(198,149,40,.5);
}
.eg-project-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.eg-project-body h3 { font-family: var(--eg-display); font-weight: 700; font-size: 1.3rem; color: var(--eg-forest); margin: 0 0 .5rem; }
.eg-project-body p { color: var(--eg-muted); font-size: .93rem; margin: 0 0 1rem; }
.eg-project-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.eg-project-meta span {
    background: var(--eg-paper); border: 1px solid var(--eg-line); color: #40514a;
    font-size: .8rem; padding: .35rem .7rem; border-radius: 8px;
}
.eg-project-body .eg-btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 720px) { .eg-project-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   REGISTRATION FORM SECTION  (restyles the x-registration-form component)
   ===================================================================== */
.eg-form-section { background: #fff; }
.eg-form-shell {
    margin-top: 2.2rem;
    border: 1px solid var(--eg-line);
    border-radius: var(--eg-radius-lg);
    box-shadow: var(--eg-shadow);
    overflow: hidden;
}
.eg-form-shell .container,
.eg-form-shell .container-fluid { max-width: 100% !important; }
.eg-form-section .form-control,
.eg-form-section .form-select,
.eg-form-section select,
.eg-form-section input[type="text"],
.eg-form-section input[type="email"],
.eg-form-section input[type="number"],
.eg-form-section input[type="tel"] {
    border-radius: 10px !important;
    border: 1px solid var(--eg-line) !important;
    padding: .6rem .8rem !important;
    font-family: var(--eg-body) !important;
}
.eg-form-section .form-control:focus,
.eg-form-section .form-select:focus,
.eg-form-section select:focus {
    border-color: var(--eg-forest-soft) !important;
    box-shadow: 0 0 0 .18rem rgba(43,106,79,.15) !important;
}

/* =====================================================================
   FOOTER  (keeps the legacy skyline .copy_right; adds a top block)
   ===================================================================== */
.eg-footer { background: var(--eg-forest-2); color: #cfe2d7; }
.eg-footer .eg-container {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.eg-footer h4 { font-family: var(--eg-display); font-weight: 700; color: #fff; font-size: 1rem; letter-spacing: .02em; margin: 0 0 1rem; text-transform: uppercase; }
.eg-footer a { color: #cfe2d7; text-decoration: none; }
.eg-footer a:hover { color: var(--eg-gold); }
.eg-footer .eg-foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.eg-footer .eg-foot-logo { height: 66px; margin-bottom: 1rem; background:#fff; padding:.4rem .6rem; border-radius:10px; }
.eg-footer .eg-foot-about { font-size: .92rem; color: #a9c4b7; max-width: 34ch; }
.eg-footer .eg-foot-contact { display: grid; gap: .6rem; font-size: .92rem; }
.eg-footer .eg-foot-contact i { color: var(--eg-gold); width: 18px; }
@media (max-width: 780px) { .eg-footer .eg-container { grid-template-columns: 1fr; gap: 1.6rem; } }

/* =====================================================================
   HERO IMAGE SLIDER  (lean landing — image-forward, auto-advancing)
   ===================================================================== */
.eg-hero-slider {
    position: relative;
    min-height: clamp(460px, 76vh, 780px);
    display: flex; align-items: center;
    background: var(--eg-forest-2);
    color: #eaf3ee; overflow: hidden;
}
.eg-slides { position: absolute; inset: 0; z-index: 0; }
.eg-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.1s ease; transform: scale(1.04);
}
.eg-slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1.1s ease, transform 7s ease; }
.eg-slider-scrim {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(var(--eg-scrim-rgb),.95) 0%, rgba(var(--eg-scrim-rgb),.82) 33%, rgba(var(--eg-scrim-rgb),.42) 63%, rgba(var(--eg-scrim-rgb),.12) 100%);
}
.eg-slider-content { position: relative; z-index: 3; max-width: 640px; padding-block: clamp(2.5rem, 7vw, 4rem); }
.eg-slider-content h1 {
    font-family: var(--eg-display); font-weight: 800;
    font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.04; letter-spacing: -.02em;
    margin: 1rem 0 1.1rem; color: #fff;
}
.eg-slider-content h1 .eg-hl { color: var(--eg-gold); }
.eg-slider-content .eg-hero-sub { color: #cfe2d7; font-size: 1.12rem; max-width: 44ch; margin-bottom: 1.8rem; }
.eg-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); color: #fff;
    font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.eg-slider-nav:hover { background: rgba(255,255,255,.28); }
.eg-prev { left: 18px; } .eg-next { right: 18px; }
.eg-slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: .5rem; }
.eg-slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: all .2s; }
.eg-slider-dots button.is-active { background: var(--eg-gold); width: 26px; border-radius: 6px; }
/* ---------------------------------------------------------------------
   HERO ON A PHONE — image band on top, words underneath

   The banner is uploaded at 1920×800 (2.4∶1, as the CMS asks for). Laying
   text over it means the image has to fill a tall portrait box, and
   background-size:cover then scales it to the box's HEIGHT: on a 390px
   screen the image was drawn 1538px wide and clipped to 390 of them. Three
   quarters of the banner — both edges of it — was simply not on screen, and
   what remained sat under a scrim dark enough to read white text over. The
   photograph the client chose was, in effect, invisible on a phone.

   So below 760px the two stop competing. The slides become a block in normal
   flow with a 16∶9 band of their own — the same ratio the CMS preview shows
   the admin — and the words move underneath onto the brand green. About 74%
   of the image width survives instead of 25%, the text needs no scrim to be
   legible, and the Register button moves up the page.

   Desktop is untouched: it has the width to do both at once, which is the
   whole reason the overlay works there and not here.
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
    .eg-hero-slider {
        display: block;
        min-height: 0;
    }

    /* Out of the absolute layer and into the flow, so it occupies real height
       and the content below it starts where it ends. */
    .eg-slides {
        position: relative;
        aspect-ratio: 16 / 9;
    }

    /* The scrim existed to keep white text readable over a photograph. There
       is no text over the photograph any more. */
    .eg-slider-scrim {
        display: none;
    }

    .eg-slider-content {
        max-width: none;
        padding-block: 1.7rem 2rem;
    }

    /* The desktop floor of 2.1rem ran the heading to three lines on a phone
       and pushed the buttons below the fold. */
    .eg-slider-content h1 {
        font-size: clamp(1.75rem, 7.4vw, 2.4rem);
        margin: .6rem 0 .8rem;
    }

    .eg-slider-content .eg-hero-sub {
        font-size: 1rem;
        max-width: none;
        margin-bottom: 1.3rem;
    }

    /* Share a row where there is width for both and stack where there is not,
       rather than either crushing them together on a phone or stretching them
       across a whole tablet. Below about 460px two of these cannot fit, so
       they wrap to full width on their own. */
    .eg-hero-actions .eg-btn {
        flex: 1 1 210px;
        justify-content: center;
        text-align: center;
    }

    /* Swipe works; the arrows are desktop pointer affordances. */
    .eg-slider-nav {
        display: none;
    }

    /* Dots belong on the image, not stranded at the foot of the text block —
       which is where "bottom" now is. 56.25vw is the height of a full-bleed
       16∶9 band, so this sits them just inside its lower edge. */
    .eg-slider-dots {
        bottom: auto;
        top: calc(56.25vw - 26px);
    }
}

/* short intro / content */
.eg-intro { text-align: center; }
.eg-intro-inner { max-width: 760px; margin-inline: auto; }
.eg-intro .eg-eyebrow { justify-content: center; }
.eg-intro .eg-lead { margin: .9rem auto 0; }
.eg-intro-chips { justify-content: center; margin-top: 1.6rem; }
.eg-chip-dark {
    background: var(--eg-paper); border: 1px solid var(--eg-line); color: var(--eg-forest);
    font-weight: 600;
}
.eg-chip-dark i { color: var(--eg-gold-2); }

/* CTA band (register / lucky draw) */
.eg-cta-band { background: var(--eg-forest); color: #eaf3ee; }
.eg-cta-band .eg-container {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    padding: clamp(1.8rem, 4vw, 2.6rem) 0;
}
.eg-cta-band h3 { font-family: var(--eg-display); font-weight: 700; color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0; }
.eg-cta-band p { color: #bcd4c8; margin: .35rem 0 0; }
.eg-cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.eg-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.eg-btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* =====================================================================
   INNER PAGES — hero band + readable prose
   ===================================================================== */
.eg-page-hero {
    background: radial-gradient(120% 150% at 88% 0%, var(--eg-forest-soft), var(--eg-forest) 55%, var(--eg-forest-2));
    color: #eaf3ee; position: relative; overflow: hidden;
}
.eg-page-hero .eg-container { position: relative; z-index: 2; padding: clamp(2rem, 5vw, 3.6rem) 0; }
.eg-page-hero h1 {
    font-family: var(--eg-display); font-weight: 800; color: #fff;
    font-size: clamp(1.85rem, 4vw, 2.9rem); letter-spacing: -.02em; margin: .55rem 0 0;
}
.eg-page-hero .eg-crumb { font-size: .86rem; color: #bcd4c8; letter-spacing: .01em; }
.eg-page-hero .eg-crumb a { color: var(--eg-gold); text-decoration: none; }
.eg-page-hero .eg-crumb a:hover { text-decoration: underline; }
.eg-page-hero .eg-page-sub { color: #cfe2d7; margin-top: .7rem; max-width: 60ch; }

/* readable prose for about / faq / policy content */
.eg-prose { color: #33413a; font-size: 1rem; line-height: 1.75; max-width: 860px; }
.eg-prose > .tittle,
.eg-prose .text-center > .tittle { display: none; }   /* title now lives in the page-hero */
.eg-prose h2 { font-family: var(--eg-display); font-weight: 700; color: var(--eg-forest); font-size: 1.5rem; margin: 2rem 0 .7rem; }
.eg-prose h3 { font-family: var(--eg-display); font-weight: 700; color: var(--eg-forest); font-size: 1.2rem; margin: 1.6rem 0 .55rem; }
.eg-prose p { margin: 0 0 1rem; text-align: left !important; }
.eg-prose ul, .eg-prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.eg-prose li { margin-bottom: .5rem; text-align: left !important; }
.eg-prose a { color: var(--eg-forest-soft); }
.eg-prose strong { color: var(--eg-ink); }
.eg-prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.eg-prose th, .eg-prose td { border: 1px solid var(--eg-line); padding: .6rem .8rem; text-align: left; }
.eg-prose th { background: var(--eg-paper); color: var(--eg-forest); }

/* contact cards + info */
.eg-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.2rem; align-items: start; }
.eg-contact-card { background: #fff; border: 1px solid var(--eg-line); border-radius: var(--eg-radius-lg); padding: 1.8rem; box-shadow: var(--eg-shadow-sm); }
.eg-contact-list { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.eg-contact-list .eg-ci { display: flex; gap: .9rem; align-items: flex-start; }
.eg-contact-list .eg-ci-ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(27,67,50,.08); color: var(--eg-forest); display: grid; place-items: center; flex-shrink: 0; }
.eg-contact-list .eg-ci b { display: block; color: var(--eg-forest); font-family: var(--eg-display); }
.eg-contact-list .eg-ci a, .eg-contact-list .eg-ci span { color: var(--eg-muted); text-decoration: none; }
@media (max-width: 760px) { .eg-contact-grid { grid-template-columns: 1fr; } }

/* FAQ accordion */
.eg-faq { max-width: 820px; margin-top: 2rem; }
.eg-faq details { border: 1px solid var(--eg-line); border-radius: var(--eg-radius); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.eg-faq summary {
    list-style: none; cursor: pointer; padding: 1.05rem 1.3rem;
    font-family: var(--eg-display); font-weight: 600; color: var(--eg-forest);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.eg-faq summary::-webkit-details-marker { display: none; }
.eg-faq summary::after { content: "+"; font-size: 1.4rem; color: var(--eg-gold-2); line-height: 1; }
.eg-faq details[open] summary::after { content: "\2013"; }
.eg-faq details[open] summary { border-bottom: 1px solid var(--eg-line); }
.eg-faq .eg-faq-body { padding: 1.1rem 1.3rem; color: #33413a; line-height: 1.7; }

/* =====================================================================
   PROJECT DETAIL PAGE
   ===================================================================== */
.project-hero { width: 100%; height: clamp(260px, 40vw, 500px); object-fit: cover; border-radius: var(--eg-radius-lg); box-shadow: var(--eg-shadow); }
.projects-crumb { color: var(--eg-muted); font-size: .88rem; margin-bottom: 1rem; }
.projects-crumb a { color: var(--eg-forest-soft); text-decoration: none; }
.projects-crumb a:hover { text-decoration: underline; }
.project-description { color: #33413a; line-height: 1.75; }
.container-lg h1 { font-family: var(--eg-display); font-weight: 800; color: var(--eg-forest); letter-spacing: -.01em; }
.container-lg h4, .container-lg h5 { font-family: var(--eg-display); color: var(--eg-forest); }
.responsive-img-box { border-radius: var(--eg-radius); overflow: hidden; border: 1px solid var(--eg-line); box-shadow: var(--eg-shadow-sm); }
.project-sidebar { position: sticky; top: 90px; }
.project-sidebar .card { border: 1px solid var(--eg-line) !important; border-radius: var(--eg-radius-lg) !important; box-shadow: var(--eg-shadow-sm); }
.strongcolor { color: var(--eg-forest) !important; }
.muted-small { color: var(--eg-muted); font-size: .9rem; }
.container-lg .btn-outline-primary { border: 1.5px solid var(--eg-line); color: var(--eg-forest); border-radius: 999px; font-family: var(--eg-display); font-weight: 600; }
.container-lg .btn-outline-primary:hover { background: var(--eg-forest); border-color: var(--eg-forest); color: #fff; }

/* Registration form — make every field a uniform full width (inputs and selects
   alike) and give the refundable note the same left alignment as the fields. */
.eg-form-section .floting-input { width: 100%; }
.eg-form-section .form-control,
.eg-form-section .form-select,
.eg-form-section select,
.eg-form-section input[type="text"],
.eg-form-section input[type="email"],
.eg-form-section input[type="number"],
.eg-form-section input[type="tel"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block;
}

/* =====================================================================
   PUBLIC DATA TABLE  (lucky draw list)
   ===================================================================== */
.eg-table-card {
    background: #fff; border: 1px solid var(--eg-line);
    border-radius: var(--eg-radius-lg); box-shadow: var(--eg-shadow-sm);
    padding: clamp(1rem, 3vw, 1.75rem); margin-top: 2rem;
}
.eg-table { width: 100%; border-collapse: collapse; }
.eg-table thead th {
    background: var(--eg-forest); color: #fff;
    font-family: var(--eg-display); font-weight: 600; font-size: .84rem;
    padding: .85rem 1rem; text-align: left; white-space: nowrap; border: none;
}
.eg-table thead th:first-child { border-radius: 10px 0 0 0; }
.eg-table thead th:last-child { border-radius: 0 10px 0 0; }
.eg-table tbody td { padding: .75rem 1rem; border-bottom: 1px solid var(--eg-line); color: #33413a; font-size: .92rem; }
.eg-table tbody tr:nth-child(even) { background: var(--eg-paper); }
.eg-table tbody tr:hover { background: rgba(27,67,50,.06); }
.eg-table tbody td:first-child { font-weight: 600; color: var(--eg-forest); }

/* DataTables 2.x chrome, tuned to the brand */
.eg-table-card .dt-layout-row { margin-bottom: 1rem; align-items: center; }
.eg-table-card .dt-search label,
.eg-table-card .dt-length label { font-weight: 600; color: var(--eg-forest); }
.eg-table-card .dt-search input {
    border: 1px solid var(--eg-line); border-radius: 999px; padding: .5rem 1rem; margin-left: .5rem; min-width: 220px;
}
.eg-table-card .dt-search input:focus { outline: none; border-color: var(--eg-forest-soft); box-shadow: 0 0 0 .18rem rgba(43,106,79,.15); }
.eg-table-card .dt-length select { border: 1px solid var(--eg-line); border-radius: 8px; padding: .35rem .5rem; }
.eg-table-card .dt-info { color: var(--eg-muted); font-size: .88rem; }
.eg-table-card .dt-paging .dt-paging-button { border-radius: 8px !important; margin: 0 2px; padding: .35rem .7rem; }
.eg-table-card .dt-paging .dt-paging-button.current,
.eg-table-card .dt-paging .dt-paging-button.current:hover {
    background: var(--eg-forest) !important; border-color: var(--eg-forest) !important; color: #fff !important;
}
