/* ==========================================================================
   Bluefin Sylvanor — unified stylesheet
   One design system. One button component. One form component.
   ========================================================================== */

:root {
    --primary: #1a3c5e;
    --primary-dark: #12293f;
    --secondary: #c19a6b;
    --secondary-dark: #a67e4d;
    --light: #f7f5f1;
    --white: #ffffff;
    --dark: #22282f;
    --gray: #6b7280;
    --border: #e6e2da;
    --shadow: 0 15px 40px rgba(26, 60, 94, 0.09);
    --shadow-lg: 0 25px 60px rgba(26, 60, 94, 0.16);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px;
    line-height: 1.25;
}

p { margin: 0 0 16px; color: var(--gray); }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

.section-tag {
    display: block;
    text-align: center;
    color: var(--secondary-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

section { padding: 88px 0; }
section.alt { background: var(--light); }

/* ==========================================================================
   BUTTON COMPONENT — the ONE button system used everywhere on the page
   Base: .btn   Variants: .btn-primary / .btn-outline / .btn-ghost / .btn-light
   Size:  add .btn-block for full width, .btn-sm for compact
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 15px 32px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-dark {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-light {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
}
.btn-light:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

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

.logo a {
    font-family: Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

nav#main-nav ul {
    display: flex;
    gap: 30px;
}

nav#main-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

nav#main-nav a:hover,
nav#main-nav a.active {
    color: var(--secondary-dark);
    border-bottom-color: var(--secondary);
}

.header-cta { display: flex; align-items: center; }

@media (max-width: 860px) {
    .mobile-menu-btn { display: block; }
    .header-cta { display: none; }

    nav#main-nav {
        position: fixed;
        top: 84px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.12);
        transition: max-height 0.35s ease;
        z-index: 499;
    }
    nav#main-nav.active { max-height: 480px; }
    nav#main-nav ul { flex-direction: column; padding: 10px 24px 24px; gap: 0; }
    nav#main-nav li { border-bottom: 1px solid var(--border); }
    nav#main-nav a { display: block; padding: 14px 0; }
}

/* ==========================================================================
   HERO / BANNER
   ========================================================================== */
.banner {
    padding: 0;
    background: var(--primary);
}
.banner-flex {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 0;
}
.banner-image { height: 100%; overflow: hidden; }
.banner-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.banner-content {
    padding: 60px;
    color: var(--white);
}
.banner-content .section-tag { text-align: left; color: var(--secondary); }
.banner-content h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.banner-content p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 6px; }
.banner-content .btn { margin-top: 26px; }

@media (max-width: 860px) {
    .banner-flex { grid-template-columns: 1fr; }
    .banner-content { padding: 40px 24px; text-align: center; }
    .banner-content .section-tag { text-align: center; }
}

/* ==========================================================================
   HIGHLIGHTS
   ========================================================================== */
.highlights {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.highlight-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 16px;
    text-align: center;
    transition: var(--transition);
}
.highlight-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.highlight-item i { font-size: 28px; color: var(--secondary-dark); margin-bottom: 12px; }
.highlight-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.highlight-item p { margin: 0; font-size: 0.85rem; color: var(--gray); }

@media (max-width: 992px) { .highlights { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .highlights { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   PRICE TABLE
   ========================================================================== */
.table-container { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); }
.price-table th {
    background: var(--primary);
    color: var(--white);
    text-align: left;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.price-table td { padding: 18px 24px; border-bottom: 1px solid var(--border); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--light); }

.value-proposition { margin-top: 64px; }
.value-proposition h3 { text-align: center; margin-bottom: 36px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    transition: var(--transition);
}
.value-item:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.value-icon { font-size: 32px; margin-bottom: 14px; }
.value-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.value-item p { font-size: 0.9rem; margin: 0; }

.price-cta {
    margin-top: 64px;
    background: var(--primary);
    border-radius: var(--radius);
    padding: 50px 30px;
    text-align: center;
    color: var(--white);
}
.price-cta h3 { color: var(--white); }
.price-cta p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 28px; }
.cta-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 992px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .value-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   BROCHURE STRIP
   ========================================================================== */
.brochure-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.brochure-image img { border-radius: var(--radius-sm); }
@media (max-width: 700px) {
    .brochure-container { grid-template-columns: 1fr; text-align: center; }
    .brochure-image { max-width: 160px; margin: 0 auto; }
}

/* ==========================================================================
   AMENITIES
   ========================================================================== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.amenity-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 20px;
    text-align: center;
    transition: var(--transition);
}
.amenity-item:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.amenity-item i { font-size: 34px; color: var(--secondary-dark); margin-bottom: 16px; }
.amenity-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.amenity-item p { font-size: 0.88rem; margin: 0; }

@media (max-width: 992px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .amenities-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FLOOR PLAN
   ========================================================================== */
.floorplan-content { display: grid; gap: 40px; margin-top: 40px; }
.floor-box h3 { margin-bottom: 20px; }
.floor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plan-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.image-container { position: relative; }
.image-container img { width: 100%; height: 260px; object-fit: cover; }
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 60, 94, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.plan-card:hover .overlay { opacity: 1; }
.plan-card h4 { padding: 16px 4px 0; font-size: 0.98rem; text-align: center; }

@media (max-width: 700px) { .floor-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   LOCATION
   ========================================================================== */
.connectivity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
}
.connectivity-card {
    display: flex;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: var(--transition);
}
.connectivity-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    color: var(--secondary-dark);
    font-size: 18px;
}
.card-content h4 { font-size: 1rem; margin-bottom: 8px; }
.card-content ul li { font-size: 0.88rem; color: var(--gray); margin-bottom: 6px; padding-left: 14px; position: relative; }
.card-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--secondary); }

.map-frame { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 460px; border: 0; display: block; }

@media (max-width: 992px) { .connectivity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .connectivity-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 14px;
}
.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); transition: var(--transition); }
.gallery-grid a:hover img { transform: scale(1.04); filter: brightness(0.9); }

@media (max-width: 860px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

/* ==========================================================================
   BUILDER
   ========================================================================== */
.builder-content { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.builder-logo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.builder-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.stat-item { background: var(--light); border-radius: var(--radius); padding: 24px 12px; text-align: center; }
.stat-item h3 { font-size: 1.8rem; margin-bottom: 4px; }
.stat-item p { margin: 0; font-size: 0.85rem; }

@media (max-width: 860px) {
    .builder-content { grid-template-columns: 1fr; text-align: center; }
    .builder-logo { max-width: 320px; margin: 0 auto; }
    .builder-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-container { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--white); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: none;
    text-align: left;
    padding: 20px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}
.faq-question i { transition: transform 0.3s ease; color: var(--secondary-dark); }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 24px; transition: max-height 0.4s ease, padding 0.3s ease; background: var(--light); }
.faq-answer.open { max-height: 400px; padding: 4px 24px 22px; }
.faq-answer p { margin: 0; font-size: 0.94rem; }

/* ==========================================================================
   FORM COMPONENT — the ONE form used both inline and inside the modal
   ========================================================================== */
.contact-form-section { background: var(--primary); color: var(--white); }
.contact-form-section .section-title,
.contact-form-section .section-tag { color: var(--white); }
.contact-form-section .section-tag { color: var(--secondary); }
.contact-form-section .section-subtitle { color: rgba(255,255,255,0.75); }

.form-shell { max-width: 640px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); }

.lead-form .form-group { margin-bottom: 18px; }
.lead-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(193,154,107,0.18); }
textarea.form-control { min-height: 100px; resize: vertical; }

.phone-group { display: flex; gap: 10px; }
.phone-group .country-code-select { flex: 0 0 120px; }
.phone-group input { flex: 1; }

.form-note { text-align: center; margin-top: 18px; font-size: 0.82rem; color: var(--gray); }
.contact-form-section .form-note { color: rgba(255,255,255,0.65); }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 30, 45, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 26px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--white);
}
.modal-header h3 { margin: 0; font-size: 1.2rem; }
.close-modal { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--gray); }
.close-modal:hover { color: var(--primary); }
.modal-body { padding: 26px; }
.modal-body .lead-form .form-group:last-child { margin-bottom: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.65); padding: 30px 0; }
footer p { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin: 0; line-height: 1.7; }
footer a { color: var(--secondary); }

/* ==========================================================================
   MISC
   ========================================================================== */
.breadcrumb { background: var(--light); padding: 12px 0; font-size: 0.85rem; }
.breadcrumb a { color: var(--gray); }

/* ==========================================================================
   DATA TABLES — used across Overview, Villa Types, Connectivity, etc.
   ========================================================================== */
.data-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin: 24px 0; }
.data-table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--white); }
.data-table th {
    background: var(--primary);
    color: var(--white);
    text-align: left;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.9rem;
}
.data-table td { padding: 13px 20px; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--dark); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--light); }
.data-table td:first-child { font-weight: 600; color: var(--primary); }

/* Simple bullet list used for feature/checklist content */
.simple-list { columns: 2; column-gap: 40px; margin: 20px 0; }
.simple-list li {
    break-inside: avoid;
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 0.94rem;
    color: var(--dark);
}
.simple-list li::before { content: '•'; position: absolute; left: 0; color: var(--secondary-dark); font-weight: 700; }
@media (max-width: 700px) { .simple-list { columns: 1; } }

.info-note {
    background: var(--light);
    border-left: 4px solid var(--secondary);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--dark);
    margin: 24px 0;
}
.info-note strong { color: var(--primary); }

.subsection-title { font-size: 1.25rem; margin-top: 36px; margin-bottom: 14px; color: var(--primary); }

.source-tag { font-size: 0.75rem; color: var(--gray); text-align: right; margin-top: -10px; margin-bottom: 20px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.strength-grid, .risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.strength-item, .risk-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    font-size: 0.92rem;
}
.strength-item { border-left: 4px solid var(--secondary); }
.risk-item { border-left: 4px solid #b9502f; }
@media (max-width: 860px) { .strength-grid, .risk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .strength-grid, .risk-grid { grid-template-columns: 1fr; } }
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 400;
}
