/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #003366; /* dark blue text */
    background-color: #ffffff; /* white background */
}

/* Update header background and text colors */
.header {
    background-color: #001f4d !important; /* deep blue */
    color: white !important;
}

/* Update links and nav menu colors */
.nav-menu a {
    color: white;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-menu a:hover {
    color: #003366 !important; /* deep blue on hover */
}

/* Update buttons */
.btn-primary {
    background-color: #001f4d !important; /* deep blue */
    color: white !important;
}

.btn-primary:hover {
    background-color: #000f26 !important; /* darker deep blue */
}

/* Update footer */
.footer {
    background-color: #001f4d !important; /* deep blue */
    color: white !important;
}

/* Update section headers */
.section-header {
    color: #003366; /* dark blue */
}

/* Update links in footer */
.footer-section ul li a {
    color: #ffffff !important;
}

.footer-section ul li a:hover {
    color: #001f4d !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #003366;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color:rgb(0, 0, 0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #e67e22;
    color: white;
}

.btn-primary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #34495e;
    color: white;
}

.btn-secondary:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #e67e22;
    border: 2px solid #e67e22;
}

.btn-outline:hover {
    background-color: #e67e22;
    color: white;
}

.btn-light {
    background-color: white;
    color: #2c3e50;
}

.btn-light:hover {
    background-color: #ecf0f1;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e67e22;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: #e67e22;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Admin Link */
.admin-link {
    background-color: #e67e22;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-link:hover {
    background-color: #d35400;
    color: white !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(44, 62, 80, 0.993), rgb(44, 62, 80)),
                url('../attached_assets/office-building.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white !important;
}

.hero-content p {
    color: white !important;
}

.footer-bottom {
    color: white !important;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ecf0f1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Page Header */
.page-header {
    background-color: #34495e;
    color: white;
    padding: 6rem 0 4rem;
    margin-top: 80px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}

.breadcrumb {
    color: #bdc3c7;
}

.breadcrumb a {
    color: #e67e22;
    text-decoration: none;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 2rem;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: #e67e22;
    margin: 1rem auto;
}

/* Grid Layouts */
.services-grid, .projects-grid, .properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: #e67e22;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: #ecf0f1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #e67e22, #f39c12);
    opacity: 0.1;
}

.project-content {
    padding: 1.5rem;
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    width: 100%;
    height: 200px;
    background-color: #ecf0f1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #e67e22;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

.property-content {
    padding: 1.5rem;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* About Section */
.about-preview, .about-section {
    background-color: #f8f9fa;
}

.about-content ul {
    margin-left: 2rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-section {
    background-color: #2c3e50;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #bdc3c7;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding-left: 0;
    list-style: none;
    font-size: 1rem; /* reduced font size */
    font-weight: bold; /* make text bold */
}

.contact-info .contact-item {
    margin-bottom: 0.5rem;
    line-height: 2; /* increased line height */
    word-wrap: break-word;
    white-space: normal; /* allow automatic line breaks */
    display: flex;
    margin-right: 1rem;
}

.contact-info .contact-item i {
    margin-right: 0.5rem;
    color: #e67e22;
    min-width: 20px;
    display: inline-block;
    text-align: center;
}

.contact-info .contact-item h4 {
    margin: 0;
    white-space: nowrap;
}


/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e67e22;
}

/* Contact CTA */
.contact-cta {
    background-color: #e67e22;
    color: white;
    text-align: center;
}

.contact-cta h2 {
    color: white;
}

.contact-cta p {
    color: #fff;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    text-transform: uppercase;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.footer-content > .footer-section {
    flex: 1 1 45%;
    min-width: 250px;
}
@media (max-width: 480px) {
    .footer-content > .footer-section {
        flex: 1 1 100%;
    }
}

.footer-section h3 {
    color: #e67e22;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}

.footer-section.footer-contact h3 {
    font-weight: bold;
}

.footer-section ul li a {
    text-transform: uppercase;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.footer-section ul li a:hover {
    color: #e67e22;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #e67e22;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-nav a {
    padding: 0.5rem 1rem;
    background-color: #34495e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: #e67e22;
}

.admin-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Login Form */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
}

.login-form {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Rich Text Editor */
.editor-container {
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    min-height: 300px;
}

.editor-toolbar {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.editor-btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

.editor-btn:hover {
    background-color: #e67e22;
    color: white;
}

.editor-content {
    padding: 1rem;
    min-height: 250px;
    outline: none;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Image Upload */
.image-upload {
    border: 2px dashed #e1e8ed;
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.image-upload:hover {
    border-color: #e67e22;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin: 1rem auto;
    border-radius: 5px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.hidden { display: none; }

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #cce7ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .projects-grid,
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .admin-nav {
        flex-wrap: wrap;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .editor-toolbar {
        flex-wrap: wrap;
    }
    
    /* Footer mobile view adjustments */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Team Members Section */
.team-members {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease forwards;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}

.team-member {
    text-align: center;
    max-width: 200px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: var(--delay);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .property-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Site Settings Styles */
.logo-manager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.current-logo {
    padding: 1rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.logo-preview {
    text-align: center;
    padding: 1rem;
}

.no-content {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.upload-area {
    border: 2px dashed #e1e8ed;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.upload-area:hover {
    border-color: #e67e22;
    background-color: #fef9f3;
}

.upload-content i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: block;
}

.upload-content p {
    margin: 1rem 0;
    color: #495057;
}

.upload-content small {
    color: #6c757d;
    font-size: 0.875rem;
}

.logo-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e8ed;
}

.admin-section h2 i {
    margin-right: 0.5rem;
    color: #e67e22;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-form .form-group {
    margin-bottom: 1rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.admin-form label i {
    margin-right: 0.5rem;
    color: #e67e22;
    width: 20px;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.1);
}

.admin-form textarea {
    resize: vertical;
    font-family: inherit;
}

/* Mobile responsiveness for site settings */
@media (max-width: 768px) {
    .logo-manager {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .logo-actions {
        flex-direction: column;
    }
}

/* Footer specific text color overrides */
#footer-company-tagline {
    color: white !important;
}

.footer-bottom p {
    color: white !important;
}

/* Footer contact info text arrangement */
.footer-section.footer-contact ul {
    padding-left: 0;
    list-style: none;
    font-size: 1rem; /* reduced font size */
    font-weight: bold; /* make text bold */

}

.footer-section.footer-contact ul li {
    margin-bottom: 0.5rem;
    line-height: 2; /* increased line height */
    word-wrap: break-word;
    white-space: normal; /* allow automatic line breaks */
    display: flex;
    margin-right: 1rem;
}

.footer-section.footer-contact ul li i {
    margin-right: 0.5rem;
    color: #e67e22;
    min-width: 20px;
    display: inline-block;
    text-align: center;
}
