/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #0F2453;
    background-color: #F6F7FB;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 16px;
}

.btn--primary {
    background-color: #C8A34A;
    color: #0F2453;
    border-color: #C8A34A;
}

.btn--primary:hover {
    background-color: #B8932A;
    border-color: #B8932A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 163, 74, 0.3);
}

.btn--secondary {
    background-color: transparent;
    color: #C8A34A;
    border-color: #C8A34A;
}

.btn--secondary:hover {
    background-color: #C8A34A;
    color: #0F2453;
}

.btn--outline {
    background-color: transparent;
    color: #0F2453;
    border-color: #0F2453;
    padding: 8px 16px;
    font-size: 14px;
}

.btn--outline:hover {
    background-color: #0F2453;
    color: white;
}

.btn--full {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F2453;
    margin-bottom: 20px;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 36, 83, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0F2453;
}

.nav__list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav__link:hover {
    color: #C8A34A;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C8A34A;
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    z-index: 1001;
}

.hamburger__line {
    width: 25px;
    height: 3px;
    background-color: #0F2453;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0F2453 0%, #1a3a6b 100%);
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    padding: 100px 0;
    background-color: white;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about__paragraph {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about__features-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0F2453;
}

.features-list__item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.features-list__icon {
    width: 24px;
    height: 24px;
    background-color: #C8A34A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.features-list__text {
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services {
    padding: 100px 0;
    background-color: #F6F7FB;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 36, 83, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(15, 36, 83, 0.15);
}

.service-card__icon {
    margin-bottom: 20px;
    font-size: 3rem;
}

.service-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0F2453;
}

.service-card__description {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio {
    padding: 100px 0;
    background-color: white;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 36, 83, 0.1);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(15, 36, 83, 0.15);
}

.property-card__image {
    position: relative;
    overflow: hidden;
}

.property-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-card__img {
    transform: scale(1.05);
}

.property-card__content {
    padding: 25px;
}

.property-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0F2453;
}

.property-card__address {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.property-card__features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.property-card__feature {
    background-color: #F6F7FB;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #0F2453;
    font-weight: 500;
}

.property-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-card__price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #C8A34A;
}

/* ========================================
   REFERENCES SECTION
   ======================================== */

.references {
    padding: 100px 0;
    background-color: #F6F7FB;
}

.references__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reference-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 36, 83, 0.1);
    transition: all 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(15, 36, 83, 0.15);
}

.reference-card__avatar {
    margin-bottom: 20px;
}

.reference-card__avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.reference-card__text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

.reference-card__name {
    font-weight: 600;
    color: #0F2453;
}

.reference-card__location {
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq {
    padding: 100px 0;
    background-color: white;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(15, 36, 83, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #F6F7FB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item__header:hover {
    background-color: #eef0f5;
}

.faq-item__header[aria-expanded="true"] {
    background-color: #C8A34A;
    color: white;
}

.faq-item__question {
    font-weight: 500;
    font-size: 1.1rem;
    text-align: left;
}

.faq-item__icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item__header[aria-expanded="true"] .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item__content.active {
    max-height: 200px;
}

.faq-item__answer {
    padding: 25px;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    padding: 100px 0;
    background-color: #F6F7FB;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 36, 83, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0F2453;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #C8A34A;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    display: none;
    border: 1px solid #c3e6cb;
}

.contact-info__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0F2453;
}

.contact-info__item {
    margin-bottom: 20px;
}

.contact-info__label {
    font-weight: 500;
    color: #0F2453;
    display: block;
    margin-bottom: 5px;
}

.contact-info__value {
    color: #666;
}

.contact-info__value a {
    color: #C8A34A;
    transition: color 0.3s ease;
}

.contact-info__value a:hover {
    color: #B8932A;
}

.contact__map {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: #0F2453;
    color: white;
    padding: 60px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #C8A34A;
}

.footer__text {
    opacity: 0.8;
}

.footer__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer__link:hover {
    opacity: 1;
    color: #C8A34A;
}

.footer__social {
    display: flex;
    gap: 15px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(200, 163, 74, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background-color: #C8A34A;
    transform: translateY(-2px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer__copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal__content {
    background-color: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

.modal__close:hover {
    color: #333;
}

.modal__body {
    padding: 30px;
}

.modal__image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.modal__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0F2453;
}

.modal__address {
    color: #666;
    margin-bottom: 15px;
}

.modal__features {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal__description {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.modal__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C8A34A;
    margin-bottom: 25px;
}

.modal__contact-btn {
    width: 100%;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and small laptops */
@media (max-width: 1024px) {
    .section-header__title {
        font-size: 2.2rem;
    }
    
    .hero__title {
        font-size: 3rem;
    }
    
    .about__content {
        gap: 40px;
    }
    
    .contact__content {
        gap: 40px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 80px 30px 30px;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .nav__link {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
    }
    
    .hamburger {
        display: flex;
    }
    
    .section-header__title {
        font-size: 2rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 15px 30px;
        width: 100%;
        max-width: 280px;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .portfolio__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .references__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer__menu {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .section-header__title {
        font-size: 1.8rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .property-card__content {
        padding: 20px;
    }
    
    .reference-card {
        padding: 25px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .modal__body {
        padding: 20px;
    }
    
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    
    .property-card__features {
        gap: 8px;
    }
    
    .property-card__feature {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}