:root {
    --primary-color: #002D5B; /* Deep Navy Blue */
    --secondary-color: #00509E; /* Medium Blue */
    --accent-color: #D4AF37; /* Gold/Bronze for luxury feel */
    --text-color: #333333;
    --light-text: #ffffff;
    --background-light: #f4f4f4;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased; /* Retina ready font smoothing */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul, ol {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Retina Ready Helpers */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { 
    /* High DPI specific adjustments if needed */
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
}

.header__links {
    display: flex;
    gap: 30px;
}

.main__link > a {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}

.main__link > a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.dropdown__inner {
    display: none; /* Simplified dropdown for now */
    position: absolute;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px;
    min-width: 150px;
}

.main__link:hover .dropdown__inner {
    display: block;
}

.dropdown__inner a {
    display: block;
    padding: 8px 12px;
    color: var(--text-color);
}

.dropdown__inner a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

/* Hero Section with Video */
.container {
    margin-top: 80px; /* Offset fixed header */
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
}

.container__inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container__inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container__left, .container__right {
    position: relative;
    z-index: 1;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container__left {
    align-items: flex-start;
}

.hero-logo {
    max-width: 300px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.container__right {
    align-items: flex-end;
}

.slider--news {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.news__item h2 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.button:hover {
    background-color: var(--primary-color);
}

/* Info Block (Hard Numbers) */
.infoBlock {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 45, 91, 0.9); /* Semi-transparent primary */
    color: var(--white);
    padding: 20px 0;
}

.infoBlock__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.infoBlock__item.title h3 {
    font-size: 24px;
    color: var(--accent-color);
}

.priceRow {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price {
    font-size: 36px;
    font-weight: 700;
}

.price__info {
    font-size: 14px;
    text-transform: uppercase;
}

.companyName {
    font-weight: 600;
    margin-top: 5px;
}

.text--opacity {
    opacity: 0.7;
    font-size: 12px;
}

/* Grid Blocks */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.block {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.block:hover {
    transform: translateY(-5px);
}

.block__image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ccc; /* Placeholder color */
}

.block__inner {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.title h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.link__container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.block__item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.infoNumber {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    text-align: center;
    border-radius: 4px;
    min-width: 50px;
}

.infoNumber .number {
    font-size: 18px;
    font-weight: 700;
}

.infoNumber .info {
    font-size: 12px;
    text-transform: uppercase;
}

.text {
    font-size: 14px;
    color: var(--text-color);
}

.link--line {
    margin-top: auto;
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-block;
    padding-top: 15px;
}

.link--line:hover {
    color: var(--primary-color);
}

/* Mobile App Buttons */
.app-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    text-decoration: none;
}

.app-btn svg {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    fill: #fff;
}

.app-btn-text span {
    display: block;
    font-size: 10px;
}

.app-btn-text strong {
    display: block;
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: 60px;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.link--footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.link--footer:hover {
    color: var(--white);
}

.footer__text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header__links {
        display: none; /* Implement burger menu if needed, simplified for now */
    }
    
    .container {
        height: auto;
        flex-direction: column;
        min-height: 500px;
    }

    .container__left, .container__right {
        padding: 20px;
    }

    .infoBlock__container {
        flex-direction: column;
        gap: 20px;
    }

    .priceRow {
        justify-content: center;
    }

    .infoBlock__item {
        text-align: center;
    }
}

/* Internal Page Styles */
.hero-banner {
    margin-top: 80px; /* Account for fixed header */
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 45, 91, 0.8), rgba(0, 45, 91, 0.8)), url('../images/houses.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero-banner h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    margin-top: 40px;
    font-size: 1.8rem;
}

.section-title:first-of-type {
    margin-top: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    background: var(--white);
    border-color: var(--accent-color);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.btn:hover {
    background: var(--primary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--white);
}

th, td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background-color: #f8f8f8;
    color: var(--primary-color);
    font-weight: 700;
}

tr:hover td {
    background-color: #fcfcfc;
}

/* FAQ Styles */
.faq-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Split Section (Text + Image) */
.split-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
}

.split-section:nth-child(even) {
    flex-direction: row-reverse;
}

.split-section__content {
    flex: 1;
}

.split-section__image {
    flex: 1;
}

.split-section__image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
    height: 300px;
}

@media (max-width: 768px) {
    .split-section {
        flex-direction: column !important;
        gap: 20px;
        margin: 40px 0;
    }
    .split-section__image img {
        height: auto;
        max-height: 250px;
    }
    
    .hero-banner {
        padding: 60px 20px;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .page-content {
        padding: 20px;
        margin: 20px auto;
    }
    
    .header__inner {
        padding: 0 15px;
    }

    /* Mobile Navigation */
    .header__burger {
        display: block !important;
        cursor: pointer;
        z-index: 1001;
    }

    .header__burger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    /* Animate Burger to X */
    body.nav-active .header__burger span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    body.nav-active .header__burger span:nth-child(2) {
        opacity: 0;
    }
    body.nav-active .header__burger span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .header__links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        padding-top: 60px;
        gap: 20px;
        z-index: 999;
        display: flex; /* Ensure flex is active when shown */
    }

    body.nav-active .header__links {
        right: 0;
    }

    .dropdown__inner {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        width: 100%;
        text-align: center;
        display: none;
    }
    
    .main__link:hover .dropdown__inner {
        display: block;
    }
    
    /* Table Responsive */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Desktop Defaults for Burger */
.header__burger {
    display: none;
}
