/* CSS Fonts */
@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/MyriadPro-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/MyriadPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary: #076db7;
    --primary-bg: #f1f3f6;
    --secondary-bg: #fafafa;
    --card-bg: #ffffff;
    --developer-bg: #ffffff;
    --developer-text: #ffffff;
    --text-dark: #0a0a0a;
    --text-muted: #525252;
    --text-light: #a3a3a3;
    --accent: #000000;
    --border-light: #e2e8f0;

    --font-main: 'Myriad Pro', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-main);
    font-weight: var(--font-weight-light);
    background-color: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3 {
    font-weight: var(--font-weight-regular);
    letter-spacing: -0.02em;
}


/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Global focus style */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* dl / dt / dd resets */
dl, dt, dd {
    margin: 0;
    padding: 0;
}

/* ul resets where list-style is unwanted */
ul.project-advantage {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Sticky Header */
.vpsf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vpsf-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vpsf-logo-img {
    height: 50px;
    width: auto;
}

.auth-partner-text {
    font-size: 0.95rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-muted);
    border-left: 2px solid var(--border-light);
    padding-left: 1rem;
    line-height: 1.2;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
}

.vpsf-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.vpsf-tagline {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Banner */
.builder-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #000;
}

.carousel-slides {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.builder-hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    display: none;
}

.builder-hero-title {
    font-size: 3rem;
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    color: #ffffff;
}

.builder-hero-subtitle {
    font-size: 1.25rem;
    font-weight: var(--font-weight-light);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
}

/* Builder Info Section */
.builder-info {
    padding: 3.5rem 0 3.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.builder-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.builder-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .builder-layout {
        grid-template-columns: 200px 1fr;
        gap: 3.5rem;
        align-items: flex-start;
    }
    .builder-logo {
        justify-content: flex-start;
    }

    .builder-hero-content {
        display: block;
    }
}

.builder-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.builder-logo-img {
    max-width: 180px;
    height: auto;
}

.builder-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.builder-blurb {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-light);
    line-height: 1.7;
    text-align: left;
}

.builder-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 2.5rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .builder-stats {
    }
}

@media (min-width: 1024px) {
    .builder-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

.stat-item {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--font-weight-regular);
}

/* Controls Section */
.controls-section {
    padding: 4rem 0 3rem;
    display: flex;
    justify-content: flex-start;
}

.city-filter-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.city-switcher-label {
    font-size: 1.5rem;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    min-width: 250px;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    font-size: 1.5rem;
    font-weight: var(--font-weight-regular);
    color: var(--primary);
    background: none;
    border: none;
    border-bottom: 2px solid var(--primary);
    width: 100%;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-smooth);
}
.custom-select-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 3px;
}

.custom-select-trigger .caret {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .caret {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border-light);
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: background var(--transition-smooth), color var(--transition-smooth);
}

.custom-option:hover {
    background: #e0e7fa;
    color: var(--primary);
}

.custom-option.selected {
    background: var(--primary);
    color: #ffffff;
    font-weight: var(--font-weight-regular);
}

/* Projects Grid */
.projects-section {
    padding: 0 0 8rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5rem 3rem;
    }
}

.project-card {
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 8px 15px -6px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
    box-shadow: 0 20px 40px -5px rgba(33, 64, 154, 0.16), 0 15px 20px -6px rgba(33, 64, 154, 0.08);
    border-color: rgba(33, 64, 154, 0.35);
    transform: translateY(-6px);
}

.project-card:hover .card-image {
    transform: scale(1.05);
}

.card-image-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-light);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 2rem;
}

.project-title {
    font-size: 1.45rem;
    font-weight: var(--font-weight-regular);
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.project-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-smooth);
}

.project-title a:hover {
    color: var(--primary);
}

.project-locality {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-light);
}

.project-locality .spec-icon {
    color: var(--primary);
    width: 14px;
    height: 14px;
    margin-right: 0;
}

/* Specs Rows */
.project-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    /* padding-bottom: 1.5rem; */
    /* border-bottom: 1px solid var(--border-light); */
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* justify-content: space-between; */
    background: transparent;
    padding: 0.25rem 0;
    /* border-bottom: 1px dashed rgba(0, 0, 0, 0.08); */
    transition: var(--transition-smooth);
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


.spec-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.spec-icon {
    color: var(--primary);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

.spec-value {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Key Advantage highlight container */
.project-advantage {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #f4f6fc;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.advantage-text {
    font-size: 0.8rem;
    font-weight: var(--font-weight-regular);
}

/* Buttons */
.card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 1.25rem;
    font-weight: var(--font-weight-regular);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-main);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
    border-radius: 6px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(33, 64, 154, 0.15);
}

.btn-primary:hover {
    background-color: #1a337a;
    border-color: #1a337a;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(33, 64, 154, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(33, 64, 154, 0.05);
    transform: translateY(-2px);
}

/* Utility */
.hidden {
    display: none !important;
}

.no-js-msg {
    padding: 1rem;
    background: var(--secondary-bg);
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: var(--font-weight-light);
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
}

/* Footer */
.site-footer {
    background: var(--developer-bg);
    color: var(--developer-text);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
        gap: 2rem;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-copy-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-copy-wrapper {
        align-items: flex-end;
    }
}

.footer-copy {
    font-size: 0.85rem;
    color: #a3a3a3;
}

.footer-subcopy {
    font-size: 0.75rem;
    color: #737373;
}

@media (max-width: 639px) {
    .vpsf-brand, .footer-brand {
        gap: 0.5rem;
    }
    .vpsf-logo-img, .footer-logo {
        height: 45px;
    }
    .auth-partner-text {
        font-size: 0.75rem;
        padding-left: 0.5rem;
        border-left: 1px solid var(--border-light);
    }

    .builder-hero { height: 300px; }
    .builder-hero-title { font-size: 2.5rem; }
    .builder-hero-subtitle { font-size: 1rem; }

    .stat-number { font-size: 1.75rem; }
    .builder-logo-img { max-width: 110px; }

    /* Tighter card layout on mobile */
    .projects-grid { gap: 1.5rem; }

    .card-image-wrapper { height: 180px; }

    .card-content { padding: 1rem; }

    .project-title { font-size: 1.2rem; margin-bottom: 0.25rem; }

    .project-locality { margin-bottom: 0.75rem; }

    .project-specs {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .spec-item { padding: 0.4rem 0; }

    .project-advantage { margin-bottom: 1rem; padding: 0.6rem 0.75rem; }

    .card-actions { gap: 0.6rem; }

    .btn { padding: 0.7rem 0.75rem; font-size: 0.75rem; }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-heading {
    font-size: 1.6rem;
    font-weight: var(--font-weight-regular);
    margin-bottom: 0.35rem;
    color: var(--text-dark);
    text-align: center;
}

.modal-subheading {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-highlight {
    color: #e53e3e;
    font-weight: var(--font-weight-regular);
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-dark);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 64, 154, 0.12);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    margin-top: 0.25rem;
}

.form-checkbox {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.modal-alert {
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.modal-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0 0.5rem;
    gap: 0.75rem;
}

.modal-success[hidden] {
    display: none !important;
}

.modal-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-regular);
}

.modal-success-heading {
    font-size: 1.3rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-dark);
    margin: 0;
}

.modal-success-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.modal-submit {
    width: 100%;
    margin-top: 0.25rem;
    justify-content: center;
}

.modal-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.modal-call-btn {
    display: flex;
    width: 100%;
    margin-top: 0.75rem;
    justify-content: center;
    background-color: #1a7a3c;
    border-color: #1a7a3c;
    text-decoration: none;
}

.modal-call-btn:hover {
    background-color: #155f2e;
    border-color: #155f2e;
    color: #ffffff;
}
