/* ===========================
   CSS RESET & VARIABLES
   =========================== */

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

:root {
    /* Color Palette - Luxury Real Estate */
    --primary-color: #2c3e50;
    --secondary-color: #8b7355;
    --accent-gold: #d4af37;
    --accent-green: #54724c;
    --light-bg: #f8f8f5;
    --white: #ffffff;
    --off-white: #fafaf8;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #e0e0e0;
    --success: #4caf50;
    --error: #f44336;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(44, 62, 80, 0.95);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 20px 0;
}

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

.logo img {
    border-radius: 12px;
    object-fit: cover;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    white-space: nowrap;
    color: var(--white) !important;
}

#header.scrolled .logo a {
    color: var(--primary-color) !important;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
}

#header.scrolled .logo h1 {
    color: var(--primary-color);
}

.logo .ampersand {
    color: var(--accent-gold);
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

#header.scrolled .nav-links a {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.language-switcher {
    position: relative;
}

.lang-btn {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

#header.scrolled .lang-btn {
    color: var(--primary-color);
    border-color: var(--light-gray);
}

.lang-btn:hover {
    border-color: var(--accent-gold);
}

.lang-btn .arrow {
    font-size: 0.7rem;
    margin-left: 5px;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 10px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    min-width: 100px;
}

.language-switcher:hover .lang-menu,
.language-switcher.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--primary-color);
    white-space: nowrap;
}

.lang-menu li a:hover {
    background: var(--light-bg);
}

/* Dropdown Menu Styles */
.nav-links .has-dropdown {
    position: relative;
}

.nav-links .has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 10px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    min-width: 220px;
    padding: 8px 0;
}

.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--primary-color);
    white-space: nowrap;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    padding-left: 25px;
}

/* Nested Submenu Styles */
.dropdown-submenu {
    position: absolute;
    top: 0;
    right: auto;
    left: 100%;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-left: 5px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 101;
    min-width: 200px;
    padding: 8px 0;
}

/* Position submenu to the left if parent is close to right edge */
.dropdown-menu .has-dropdown:last-child > .dropdown-submenu,
.dropdown-menu .has-dropdown:nth-last-child(2) > .dropdown-submenu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 5px;
    transform: translateX(10px);
}

.dropdown-menu .has-dropdown:hover > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-menu .has-dropdown:last-child:hover > .dropdown-submenu,
.dropdown-menu .has-dropdown:nth-last-child(2):hover > .dropdown-submenu {
    transform: translateX(0);
}

.dropdown-menu .has-dropdown:hover > a .dropdown-arrow {
    transform: rotate(0deg);
}

.dropdown-submenu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dropdown-submenu li a:hover {
    background: var(--light-bg);
    padding-left: 25px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

#header.scrolled .mobile-menu-toggle span {
    background: var(--primary-color);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3d5a7c 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--accent-gold);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    background: #c5a032;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 20% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   SECTION STYLES
   =========================== */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 1rem auto 0;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    margin: 0 auto;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.about-intro p {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.about-logo-center {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.about-logo-center .image-placeholder {
    max-width: 500px;
    width: 100%;
}

.features-centered {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.features {
    margin-top: 0;
}

.feature-item {
    display: flex;
    gap: 24px;
    margin-bottom: 2rem;
    padding: 28px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-gold) 0%, #c99b2e 100%);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(212, 175, 55, 0.2);
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c99b2e 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Apartment card hover effects */
.feature-card a h3:hover {
    color: var(--accent-gold);
    transform: scale(1.02);
}

.feature-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-text p {
    font-size: 1rem;
    margin: 0;
    color: var(--medium-gray);
    line-height: 1.6;
}

.about-image {
    position: relative;
}

.image-placeholder {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(44, 62, 80, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(212, 175, 55, 0.1) 25%,
        transparent 50%,
        rgba(212, 175, 55, 0.1) 75%,
        transparent 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.5s;
}

.image-placeholder:hover::before {
    opacity: 1;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.image-placeholder:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 100px rgba(44, 62, 80, 0.35);
    border-color: rgba(212, 175, 55, 0.5);
}

.image-placeholder img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 15px 40px rgba(0, 0, 0, 0.2));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.image-placeholder:hover img {
    transform: scale(1.05);
}

/* ===========================
   LOCATIONS SECTION
   =========================== */

.locations-section {
    background: var(--primary-color);
    color: var(--white);
}

.locations-section h2 {
    color: var(--white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 3rem;
}

.location-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.location-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.location-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.location-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-weight: 300;
}

.location-card > p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.location-highlights {
    list-style: none;
}

.location-highlights li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.location-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* ===========================
   PROJECTS SECTION
   =========================== */

.projects-section {
    background: var(--light-bg);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    background: var(--white);
    color: var(--medium-gray);
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gold);
    color: var(--white);
    border-color: var(--accent-gold);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: var(--light-gray);
    cursor: pointer;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.project-content h3 {
    transition: var(--transition);
    cursor: pointer;
}

.project-content h3:hover {
    color: var(--accent-gold);
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.project-status.disponibile {
    background: rgba(76, 175, 80, 0.9);
}

.project-status.venduto {
    background: rgba(158, 158, 158, 0.9);
}

.project-status.prossimamente {
    background: rgba(255, 152, 0, 0.9);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-location {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-description {
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.project-features .icon {
    font-size: 1.2rem;
}

.project-link {
    color: var(--accent-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.project-link:hover {
    gap: 10px;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-section {
    background: var(--off-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 3rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    padding: 15px 40px;
    background: var(--accent-gold);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    justify-self: start;
}

.submit-button:hover {
    background: #c5a032;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.form-message {
    grid-column: 1 / -1;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-info-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-info-item p {
    color: var(--medium-gray);
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--accent-gold);
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section img {
    border-radius: 12px;
    object-fit: cover;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #c5a032;
    transform: translateY(-5px);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .about-content {
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links > li {
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-links > li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        color: var(--primary-color);
    }

    /* Mobile Dropdown Styles */
    .nav-links .has-dropdown > a {
        justify-content: center;
        padding: 12px 10px;
        gap: 8px;
    }

    .nav-links > li > a {
        padding: 12px 10px;
        display: block;
        text-align: center;
    }

    .nav-links .dropdown-arrow {
        font-size: 0.7rem;
        display: inline-block;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        background: var(--light-bg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.active > .dropdown-menu {
        max-height: 500px;
    }

    .has-dropdown.active > a .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu li a {
        padding: 12px 20px 12px 30px;
        font-size: 0.95rem;
    }

    .dropdown-menu li a:hover {
        padding-left: 35px;
    }

    /* Mobile Nested Submenu Styles */
    .dropdown-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-menu .has-dropdown.active > .dropdown-submenu {
        max-height: 300px;
    }

    .dropdown-menu .has-dropdown > a {
        justify-content: space-between;
    }

    .dropdown-menu .has-dropdown.active > a .dropdown-arrow {
        transform: rotate(90deg);
    }

    .dropdown-submenu li a {
        padding: 10px 20px 10px 50px;
        font-size: 0.9rem;
    }

    .dropdown-submenu li a:hover {
        padding-left: 55px;
    }

    /* Language Switcher on Mobile */
    .language-switcher {
        padding: 10px 10px;
        border-top: 1px solid var(--light-gray);
        margin-top: 5px;
    }

    .lang-btn {
        width: 100%;
        text-align: left;
        color: var(--primary-color);
        border-color: var(--light-gray);
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .lang-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0;
        margin-top: 5px;
        background: var(--light-bg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .language-switcher.active .lang-menu {
        max-height: 150px;
    }

    .lang-menu li a {
        color: var(--primary-color);
        padding: 10px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        min-height: 70vh;
        height: auto;
        padding: 100px 20px 40px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 0.95rem;
        width: auto;
        display: inline-block;
    }

    .scroll-indicator {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .features-centered {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 20px 18px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo a {
        font-size: 1.3rem !important;
    }

    .hero {
        min-height: 65vh;
        padding: 90px 15px 30px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 18px 15px;
    }
}
