/* --------------------------------------------------
   RESET & GLOBAL
-------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    background: #F3F5F2;
    color: #2B312C;
    overflow-x: hidden;
}

/* --------------------------------------------------
   THEME TOKENS
-------------------------------------------------- */

:root {
    --bg: #F3F5F2;
    --bg-alt: #E8EFE6;
    --surface: #FFFFFF;
    --surface-soft: #F6F8F4;
    --border: #D4DDCF;
    --border-soft: #E2E9DE;
    --primary: #3F854B;
    --primary-soft: #DDEADD;
    --primary-dark: #2E6A38;
    --accent: #C9A66B;
    --text-main: #283028;
    --text-subtle: #627064;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(13, 39, 22, 0.08);
    --transition: 0.25s ease;
}

/* --------------------------------------------------
   PAGE LAYOUT
-------------------------------------------------- */

.page {
    display: flex;
    justify-content: center;
    padding: 24px 12px 32px;
    background: radial-gradient(circle at top left, #E6F0E6 0, #F3F5F2 45%, #F3F5F2 100%);
}

.wrapper {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

/* --------------------------------------------------
   ESTIMATOR CARD
-------------------------------------------------- */

.card--estimator {
    background: var(--surface);
    border-radius: 24px;
    padding: 22px 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    max-width: 100%;
}

/* --------------------------------------------------
   HEADER / HERO
-------------------------------------------------- */

.header-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.header-row > div {
    flex: 1 1 260px;
    min-width: 0;
}

.header-row h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
    color: var(--primary-dark);
    letter-spacing: 0.01em;
}

.header-row p {
    margin: 0;
    color: var(--text-subtle);
    line-height: 1.6;
    font-size: 14px;
}

/* HERO */

.hero {
    flex: 1 1 260px;
    min-width: 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-pill {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-text h2 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-dark);
}

.hero-text p {
    margin: 0;
    font-size: 13px;
    color: var(--text-subtle);
}

.hero-avatar {
    margin-top: 10px;
    width: 100%;
    height: 120px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 20%, #F6FFF5 0, #D8EDDB 35%, transparent 70%),
        linear-gradient(135deg, #CBE0C7, #F7FBF5);
    position: relative;
    overflow: hidden;
}

.hero-avatar::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: inherit;
    border: 1px dashed rgba(255, 255, 255, 0.7);
}
.hero-avatar {
    margin-top: 10px;
    width: 100%;
    height: 120px;
    border-radius: 18px;
    overflow: hidden;
}
.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* --------------------------------------------------
   FORM SECTIONS
-------------------------------------------------- */

.step h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--primary-dark);
}

.step p {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-subtle);
}

/* --------------------------------------------------
   PROJECT GRID – 2 COL MOBILE
-------------------------------------------------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.project-card {
    background: var(--surface-soft);
    border-radius: 16px;
    padding: 12px 12px 13px;
    border: 1px solid var(--border-soft);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(23, 77, 34, 0.12);
    transform: translateY(-1px);
}

.project-card.active {
    border-color: var(--primary);
    background: #E6F2E5;
}

.project-img {
    width: 100%;
    height: 64px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(63,133,75,0.15), rgba(255,255,255,0.1)),
        radial-gradient(circle at 10% 20%, #F1FAF0 0, #D5E7D2 40%, #C1D8BE 80%);
    position: relative;
    overflow: hidden;
}

.project-img::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.55);
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
}

.project-note {
    font-size: 12px;
    color: var(--text-subtle);
}

/* Larger grids for tablets / desktop */

@media (min-width: 600px) {
    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 900px) {
    .project-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* --------------------------------------------------
   SLIDER + INPUT
-------------------------------------------------- */

.slider-row {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.slider-row input[type="range"] {
    flex: 1 1 160px;
    min-width: 0;
}

.slider-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slider-value input[type="number"] {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 14px;
    width: 120px;
    outline: none;
}

.slider-value input[type="number"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(63, 133, 75, 0.2);
}

.unit-label {
    font-size: 11px;
    color: var(--text-subtle);
}

/* --------------------------------------------------
   GROUP BOXES (SOFTSCAPE, HARDSCAPE, PREP)
-------------------------------------------------- */

.group-box {
    margin-top: 14px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
}

.group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.group-sub {
    font-size: 12px;
    color: var(--text-subtle);
    margin-bottom: 8px;
}

.option-row,
.toggle-row {
    margin: 8px 0;
    font-size: 13px;
    color: var(--text-main);
}

.option-row label,
.toggle-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.option-row input[type="checkbox"],
.toggle-row input[type="radio"] {
    accent-color: var(--primary);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #EDF0E7;
    font-size: 11px;
    color: var(--text-subtle);
}

/* --------------------------------------------------
   TIER CARDS
-------------------------------------------------- */

.tier-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

.tier-card {
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    color: var(--text-subtle);
}

.tier-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-dark);
}

.tier-card:hover {
    border-color: var(--primary);
    background: #E9F3E8;
}

/* --------------------------------------------------
   NAV FOOTER (BUTTONS)
-------------------------------------------------- */

.nav-footer {
    border-top: 1px solid var(--border-soft);
    margin-top: 20px;
    padding-top: 18px;
}

.nav-footer__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.btn {
    border-radius: 999px;
    border: none;
    padding: 11px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(26, 90, 39, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-0.5px);
    box-shadow: 0 10px 24px rgba(26, 90, 39, 0.45);
}

.btn-secondary {
    background: #E3E8DF;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #D5DED1;
}

.nav-footer__note {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-subtle);
}

/* --------------------------------------------------
   RESPONSIVE BREAKPOINTS
-------------------------------------------------- */

/* Small tablets and up */
@media (min-width: 600px) {
    .card--estimator {
        padding: 26px 22px;
    }

    .header-row {
        margin-bottom: 20px;
    }

    .nav-footer__buttons {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-footer__buttons .btn {
        width: auto;
    }

    .tier-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Large tablets / small desktop */
@media (min-width: 900px) {
    .card--estimator {
        padding: 28px 26px 26px;
    }

    .header-row h1 {
        font-size: 30px;
    }

    .header-row p {
        font-size: 14px;
        max-width: 640px;
    }

    .tier-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Wide desktop */
@media (min-width: 1200px) {
    .card--estimator {
        padding: 32px 30px 26px;
        border-radius: 26px;
    }
}

.selected-project-display {
    background: #f4f8f3;
    border: 1px solid #d7e5d4;
    padding: 14px 18px;
    margin: 20px 0 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2a5d31;
}

.project-grid--links .project-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --------------------------------------------------
   HOMEPAGE SEO SECTIONS (NEW)
-------------------------------------------------- */

.homepage-section {
    margin-top: 40px;
    padding: 32px 0 40px;
}

/* Title + intro */
.homepage-header {
    text-align: center;
    margin-bottom: 28px;
}

.homepage-title {
    font-size: 26px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.homepage-intro {
    max-width: 780px;
    margin: 0 auto;
    font-size: 15px;
    color: var(--text-subtle);
}

/* Full-width image placeholder */
.hp-full-image {
    width: 100%;
    height: 340px;
    border-radius: 22px;
    background: #dfe9df;
    border: 1px dashed var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b604b;
    font-size: 16px;
    margin: 28px 0 36px;
}
.hp-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4 info boxes */
.hp-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
}

.hp-info-box {
    background: var(--surface-soft);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    padding: 18px 18px 16px;
}

.hp-info-box h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--primary-dark);
}

.hp-info-box p {
    margin: 0;
    font-size: 14px;
    color: var(--text-subtle);
}

/* USP row */
.usp-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.usp-box {
    flex: 1;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    padding: 18px 18px 16px;
    text-align: center;
}

.usp-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--primary-soft);
}

.usp-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.usp-text {
    font-size: 13px;
    color: var(--text-subtle);
}

/* FAQ */
.faq-section {
    margin-bottom: 40px;
}

.faq-title {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq {
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    overflow: hidden;
}

.faq input {
    display: none;
}

.faq label {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.25s ease, padding 0.25s ease;
    font-size: 14px;
    color: var(--text-subtle);
}

.faq input:checked ~ .faq-content {
    max-height: 200px;
    padding: 10px 16px 14px;
}

/* Footer */
.site-footer {
    margin-top: 20px;
    padding: 32px 0 24px;
    border-top: 1px solid var(--border-soft);
    background: #E8EFE6;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.footer-col {
    max-width: 260px;
}

.footer-col h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--primary-dark);
}

.footer-col p {
    margin: 0;
    font-size: 14px;
    color: var(--text-subtle);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin: 6px 0;
}

.footer-col ul li a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-main);
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--text-subtle);
}

/* Responsive for new sections */
@media (min-width: 768px) {
    .hp-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .usp-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hp-info-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* MOBILE FOOTER FIX */
@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        gap: 30px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col h4 {
        margin-bottom: 12px;
    }

    .footer-col ul li {
        margin: 8px 0;
    }
}
/* Hide hero section on mobile */
@media (max-width: 768px) {
    .hero {
        display: none !important;
    }
}
/* Default: desktop image visible, mobile hidden */
.hp-img-desktop {
    width: 100%;
    height: auto;
    display: block;
}

.hp-img-mobile {
    display: none;
    width: 100%;
    height: auto;
}

/* Mobile: switch images */
@media (max-width: 768px) {
    .hp-img-desktop {
        display: none;
    }

    .hp-img-mobile {
        display: block;
    }
}
/* ------------------------------
   HOMEPAGE CENTER LOGO
------------------------------ */
.homepage-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.homepage-logo img {
    height: 68px;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0.98;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .homepage-logo img {
        height: 54px;
    }
}
