@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================
   APPLE.COM / 2026 DESIGN SYSTEM - ORLOVSKOE POLESYE
========================================================== */

:root {
    --bg-base: #f5f5f7;
    --surface: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --accent: #234b32; /* Deep modern forest */
    --accent-hover: #163321;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 14px;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-blur: blur(20px) saturate(180%);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.08);
    --shadow-float: 0 30px 60px rgba(0, 0, 0, 0.12);
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.47059;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

/* ==========================================================
   HEADER
========================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 9000;
    transition: all 0.4s var(--easing);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.1;
}
.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}
nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
    opacity: 0.8;
}
nav a:hover {
    opacity: 1;
    color: var(--accent);
}

.header-contacts {
    display: flex;
    align-items: center;
}
.header-phone {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.04);
    border-radius: 40px;
    transition: all 0.3s ease;
}
.header-phone:hover {
    background: rgba(0,0,0,0.08);
}

/* ==========================================================
   BUTTONS
========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: var(--text-main);
    color: #fff !important;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--easing);
}
.btn:hover {
    background-color: var(--accent);
    transform: scale(1.02);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.05);
    color: var(--text-main) !important;
}
.btn-small:hover {
    background: var(--text-main);
    color: #fff !important;
}

/* ==========================================================
   HERO
========================================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background-image: url('images/house1/house1_thumb.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    /* Apple style: full bleed image, no rounding at the top */
}
/* Subtle dark gradient overlay to make text pop perfectly */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: -50px;
}
.hero h1 {
    font-size: 5.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero .btn {
    background: #fff;
    color: var(--text-main) !important;
    padding: 18px 40px;
    font-size: 1.1rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.hero .btn:hover {
    background: var(--bg-base);
    transform: scale(1.05);
}

/* ==========================================================
   BOOKING (FLOATING APPLE CARD)
========================================================== */

/* ==========================================================
   BOOKING (THOUGHTFUL APPLE CARD)
========================================================== */
#booking {
    position: relative;
    z-index: 10;
    margin-top: -140px; 
    padding: 0 5%;
}
.thoughtful-booking-form {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 40px 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 1000px;
    margin: 0 auto;
}
.booking-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}
.booking-row {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}
.booking-params {
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
}
.booking-contacts {
    grid-template-columns: 1fr 1fr 1fr;
}
.form-group > label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon svg {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-main);
    background: rgba(255,255,255,0.8);
    transition: all 0.3s var(--easing);
}
.input-with-icon select, .input-with-icon input[type="number"], .input-with-icon input[type="text"], .input-with-icon input[type="tel"] {
    padding-left: 44px;
}
.input-with-icon input[type="date"] {
    padding-left: 16px; /* dates usually have native icons, don't pad them heavily */
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    background: #fff;
    border-color: rgba(0,0,0,0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.extras-group {
    display: flex;
    flex-direction: column;
}
.extras-checkboxes {
    display: flex;
    gap: 20px;
    height: 100%;
    align-items: center;
}
.custom-checkbox {
    margin: 0 !important;
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    background: rgba(255,255,255,0.6);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.2s;
    user-select: none;
}
.custom-checkbox:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.custom-checkbox span { line-height: 1; margin: 0; padding: 0; display: inline-flex; align-items: center; margin-top: -2px; }
.custom-checkbox input {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(0,0,0,0.08);
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    padding: 0;
}
.custom-checkbox input:checked {
    background: var(--accent);
}
.custom-checkbox input:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.booking-total {
    display: flex;
    flex-direction: column;
}
.total-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.total-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}
.btn-whatsapp {
    background-color: #25D366;
    color: white !important;
    font-size: 1.1rem;
    padding: 16px 36px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

@media (max-width: 900px) {
    .booking-params { grid-template-columns: 1fr 1fr; }
    .booking-contacts { grid-template-columns: 1fr; }
    .booking-footer { flex-direction: column; gap: 20px; align-items: stretch; text-align: center; }
    .thoughtful-booking-form { padding: 32px 24px; }
}
@media (max-width: 600px) {
    .booking-params { grid-template-columns: 1fr; }
    .extras-checkboxes { flex-direction: column; align-items: stretch; }
    .custom-checkbox {
    margin: 0 !important; justify-content: center; }
}


/* ==========================================================
   SECTIONS
========================================================== */
section {
    padding: 120px 5%;
}
section h2 {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}
.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================
   ABOUT / FEATURES
========================================================== */
.about-content {
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--text-main);
    font-weight: 500;
    letter-spacing: -0.015em;
}
.about-content strong {
    color: #000;
    font-weight: 700;
}

.features-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}
.features-grid li {
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 24px;
    padding: 32px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--easing);
}
.features-grid li:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.feature-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}
.feature-text strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-text {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ==========================================================
   HOUSES (PRODUCT CARDS)
========================================================== */
.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.house-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s var(--easing);
    display: flex;
    flex-direction: column;
}
.house-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: var(--shadow-float);
}
.house-preview {
    height: 320px;
    background-size: cover;
    background-position: center;
}
.house-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.house-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.house-card .price {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
}
.house-card ul {
    list-style: none;
    color: var(--text-main);
    margin-bottom: 24px;
    flex: 1;
}
.house-card ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.house-card ul li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-main);
}
.house-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==========================================================
   REVIEWS
========================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}
.review-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    max-width: 400px;
    width: 100%;
    transition: all 0.4s var(--easing);
}
.review-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    overflow: hidden;
    flex-shrink: 0;
}
.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-author {
    font-weight: 700;
    font-size: 1.1rem;
}
.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.review-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-main);
}

/* ==========================================================
   CONTACTS & FOOTER
========================================================== */
#contacts {
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-info svg {
    color: var(--text-muted);
}

footer {
    background: var(--surface);
    padding: 60px 5%;
    border-top: 1px solid rgba(0,0,0,0.05);
}
footer h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
footer p {
    color: var(--text-muted);
}

/* ==========================================================
   ANIMATIONS (REVEAL)
========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: all 1s var(--easing);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .hero p { font-size: 1.25rem; }
    section h2 { font-size: 3rem; }
}

@media (max-width: 768px) {
    header { padding: 12px 20px; flex-direction: column; gap: 12px; background: var(--surface); backdrop-filter: none; }
    .hero { margin-top: 90px; height: 80vh; border-radius: 0 0 32px 32px; }
    .hero h1 { font-size: 3rem; }
    #booking { margin-top: -60px; }
    .compact-booking-form { padding: 24px; border-radius: var(--radius-lg); }
    .booking-inputs-wrap { flex-direction: column; align-items: stretch; }
    .features-grid { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
    nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
    section { padding: 80px 5%; }
}

/* ==========================================================
   CHAT BOT WIDGET (Apple Style 2026)
========================================================== */
.chatbot-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--text-main);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-float);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.4s var(--easing);
}
.chatbot-fab:hover {
    transform: scale(1.08) translateY(-4px);
    background: var(--accent);
}

.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: var(--surface);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-float);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.5s var(--easing);
}
.chatbot-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.chatbot-header {
    background: var(--surface);
    color: var(--text-main);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.chatbot-title {
    font-size: 1.15rem;
    font-weight: 700;
}
.chatbot-close {
    background: rgba(0,0,0,0.04);
    border: none;
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.chatbot-close:hover {
    background: rgba(0,0,0,0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-message {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
    animation: messagePop 0.4s var(--easing) forwards;
}
@keyframes messagePop {
    0% { opacity: 0; transform: translateY(10px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-message.bot { background: var(--surface); color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-soft); }
.chat-message.user { background: var(--text-main); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: var(--shadow-soft); }

.chatbot-input { display: flex; padding: 16px 20px; background: var(--surface); border-top: 1px solid rgba(0,0,0,0.05); gap: 12px; }
.chatbot-input input { flex: 1; padding: 12px 20px; border: none; border-radius: 20px; outline: none; background: rgba(0,0,0,0.04); transition: all 0.3s; font-family: inherit; font-size: 0.95rem; }
.chatbot-input input:focus { background: rgba(0,0,0,0.08); }
.chatbot-input button { background: var(--text-main); color: white; border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; transition: all 0.3s; display: flex; justify-content: center; align-items: center; }
.chatbot-input button:hover { background: var(--accent); transform: scale(1.05); }
.chat-message.typing span { animation: typingBlink 1.4s infinite both; font-size: 1.5rem; line-height: 0.5; }
.chat-message.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-message.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBlink { 0% { opacity: 0.2; } 20% { opacity: 1; } 100% { opacity: 0.2; } }

/* ==========================================================
   SCROLL TO TOP BTN
========================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-float);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--easing);
    z-index: 999;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
