:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f7fafc;
    --text: #0f1b2d;
    --muted: #5d6b7d;
    --accent: #1ca05f;
    --accent-2: #2fb070;
    --border: rgba(15, 27, 45, 0.08);
    --price-gold: #b8860b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: var(--surface);
    border-bottom: 1px solid rgba(15, 27, 45, 0.08);
    box-shadow: 0 16px 30px rgba(15, 27, 45, 0.08);
}

.nav-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-logo {
    width: 10rem !important;
    height: auto !important;
    max-height: 10rem !important;
    object-fit: contain;
    border-radius: 0.5rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    justify-self: center;
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.header-cta {
    padding: 0.85rem 1.35rem;
    font-weight: 700;
    box-shadow: 0 18px 35px rgba(28, 160, 95, 0.18);
    white-space: nowrap;
}

.hero {
    padding: 5.5rem 0 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 160, 95, 0.05), transparent 60%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(340px, 0.9fr);
    gap: 2.5rem;
    align-items: start;
}

.hero-panel {
    display: grid;
    gap: 1.5rem;
}

.hero-image {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(15, 27, 45, 0.12);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.eyebrow {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(28, 160, 95, 0.12);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin: 0 0 1.25rem;
}

.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 680px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 20px 40px rgba(28, 160, 95, 0.18);
}

.btn-secondary {
    background: var(--surface-2);
    border-color: rgba(28, 160, 95, 0.12);
    color: var(--text);
    box-shadow: none;
}

.hero-card,
.card,
.contact-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 27, 45, 0.06);
}

.hero-card {
    padding: 2rem;
    background: var(--surface-2);
    border: 1px solid rgba(28, 160, 95, 0.14);
    border-radius: 1.5rem;
}

.hero-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.hero-card ul {
    color: var(--muted);
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.addons-card {
    background: linear-gradient(180deg, rgba(28,160,95,0.02), rgba(28,160,95,0.04));
    border: 1px solid rgba(28, 160, 95, 0.12);
    padding: 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 18px 45px rgba(28,160,95,0.04);
}

.addons-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.addons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.addons-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid rgba(15, 27, 45, 0.06);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease;
}

.addons-list li:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(15,27,45,0.06);
}

.addon-item {
    display:flex;
    align-items:center;
    gap:0.9rem;
    width:100%;
    cursor:pointer;
}

.addon-item input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width:1.6rem;
    height:1.6rem;
    border-radius:50%;
    border:2px solid rgba(28,160,95,0.22);
    background:transparent;
    display:inline-grid;
    place-items:center;
    transition: all 180ms ease;
}

.addon-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #fff;
}

.addon-item input[type="checkbox"]:checked::after {
    content: '✓';
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

.addon-label {
    font-weight: 600;
    color: var(--text);
}

.hero-image img {
    transition: transform 420ms cubic-bezier(.2,.9,.2,1);
}

.hero-image:hover img {
    transform: scale(1.03) translateZ(0);
}

.eyebrow {
    box-shadow: 0 8px 20px rgba(28,160,95,0.04);
}

.hero-card li {
    margin-bottom: 0.75rem;
    list-style: disc inside;
}

.hero-card li + li {
    margin-top: 0.5rem;
}

/* ===== Hello section (full width) ===== */

.hello-section {
    width: 100%;
}

.hello-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hello-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 27, 45, 0.85) 0%, rgba(15, 27, 45, 0.55) 55%, rgba(15, 27, 45, 0.2) 100%);
}

.hello-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0.5rem;
    color: #ffffff;
    max-width: 760px;
}

.eyebrow-light {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hello-content h2 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0.75rem 0 1rem;
    color: #ffffff;
}

.hello-content .accent-text {
    color: var(--accent-2);
}

.hello-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 580px;
    margin-bottom: 2rem;
}

.hello-search {
    display: flex;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.5rem;
    border-radius: 999px;
    max-width: 560px;
    margin-bottom: 1.75rem;
}

.hello-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: #ffffff;
    padding: 0.6rem 1rem;
    outline: none;
}

.hello-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hello-search .btn {
    border-radius: 999px;
}

.hello-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hello-chips span {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.85rem;
    font-weight: 600;
}

.projects-page {
    padding: 4rem 0;
}

.projects-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-page .projects-hero {
    margin-bottom: 1.5rem;
}

.admin-panel {
    display: grid;
    gap: 2rem;
}

.admin-message {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid transparent;
}

.admin-message.success {
    background: rgba(28, 160, 95, 0.1);
    border-color: rgba(28, 160, 95, 0.2);
    color: #0d4f26;
}

.admin-message.error {
    background: rgba(255, 97, 97, 0.12);
    border-color: rgba(255, 97, 97, 0.2);
    color: #7d1f1f;
}

.admin-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 20px 45px rgba(15, 27, 45, 0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-grid label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-grid input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
}

/* Make selects match input appearance and improve visual hierarchy */
.form-grid select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 1rem) calc(1em + 2px), calc(100% - 0.6rem) calc(1em + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

/* Placeholder styling: lighter and slightly smaller than labels */
.form-grid input::placeholder,
.form-grid textarea::placeholder,
.form-grid select::placeholder {
    color: var(--muted);
    font-size: 0.95rem;
}

.form-grid label { font-size: 0.95rem; }
.form-grid input, .form-grid select, .form-grid textarea { font-size: 1rem; }

.full-width {
    grid-column: 1 / -1;
}

.admin-list {
    display: grid;
    gap: 1rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.admin-card {
    min-height: auto;
}

.delete-form {
    margin-top: 0.75rem;
}

.delete-form .btn-secondary {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1100px) {
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .form-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.projects-hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.projects-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(130px, 180px);
    gap: 1rem;
    align-items: end;
    width: 100%;
    margin-top: 0.75rem;
}

.project-filters .filter-group:last-child {
    justify-self: end;
    min-width: 130px;
    width: 100%;
}

.projects-hero form {
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.filter-group select {
    min-height: 3rem;
}

.project-filters button {
    min-height: 3rem;
    font-weight: 700;
    width: 100%;
}

.filter-group label {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 960px) {
    .project-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .project-filters {
        grid-template-columns: 1fr;
    }
    .project-filters button {
        width: 100%;
    }
}

.filter-group select,
.filter-group button {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.filter-group button {
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border-color: transparent;
}

.projects-count {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

/* ===== Project card: premium/minimal ===== */

.project-card {
    background: var(--surface);
    border: 1px solid rgba(15, 27, 45, 0.07);
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 16px rgba(15, 27, 45, 0.04);
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(15, 27, 45, 0.16);
}

.project-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-image-wrap {
    position: relative;
}

.project-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

/* Badges spread to opposite top corners: ID top-left, style top-right */
.project-image-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.project-badge {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    white-space: nowrap;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.project-badge-id {
    background: rgba(10, 18, 36, 0.72);
    color: #ffffff;
    text-transform: uppercase;
}

.project-badge-style {
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    text-transform: capitalize;
}

.project-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.project-category-chip {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(28, 160, 95, 0.1);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.project-title {
    margin: 0.1rem 0 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.project-specs-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 0.1rem 0;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.spec-item svg {
    color: var(--muted);
    flex-shrink: 0;
}

.project-plot {
    margin: -0.15rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.project-divider {
    display: block;
    height: 0;
    border: none;
    border-top: 1px solid rgba(15, 27, 45, 0.08);
    margin: 0.4rem 0;
    width: 100%;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: auto;
}

.project-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.price-caption {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

.project-price {
    margin: 0;
    color: var(--price-gold);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
}

.project-view-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .projects-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}

.section {
    padding: 3rem 0;
}

.section-title {
    margin-bottom: 1.25rem;
}

.section-title h2 {
    margin: 0 0 0.4rem;
    font-size: 1.8rem;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card {
    padding: 1.25rem;
}

.card h3 { margin-top: 0; }

.card p { color: var(--muted); margin-bottom: 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}

.stat strong { display: block; font-size: 1.25rem; }

.contact-card {
    padding: 1.5rem;
}

form {
    display: grid;
    gap: 0.9rem;
}

label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font: inherit;
}

textarea { min-height: 120px; resize: vertical; }

.form-message {
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    background: rgba(76, 201, 240, 0.12);
    border: 1px solid rgba(76, 201, 240, 0.3);
    color: #c8f4ff;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0 2rem;
    color: var(--muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 850px) {
    .hero-grid,
    .about-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-cta {
        width: 100%;
    }

    .hello-bg {
        min-height: 480px;
    }

    .hello-content {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .nav-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero {
        padding-top: 3rem;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .hello-search {
        flex-direction: column;
        border-radius: 1.25rem;
    }
    .hello-search .btn {
        width: 100%;
    }
}