@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #001D31;
    --primary-light: #0A2540;
    --primary-dark: #00101C;
    --accent: #FF6B00;
    --accent-hover: #E05A00;
    --accent-light: #FF8A3D;
    --text-dark: #1A2B3C;
    --text-light: #6B7C93;
    --text-muted: #9EABB8;
    --bg-light: #F8F9FA;
    --bg-dark: #001D31;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0, 29, 49, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 29, 49, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 29, 49, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

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

body {
    font-family: 'Mulish', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
}

/* Header & Navigation */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 20px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-light);
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

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

.nav-cta-btn {
    text-decoration: none;
    background: var(--primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}

.nav-cta-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Unified Buttons */
.btn-custom {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, #FF851B 100%);
    color: var(--white) !important;
    padding: 16px 36px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25);
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
}

.btn-custom:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 29, 49, 0.96) 0%, rgba(0, 16, 28, 0.92) 100%), 
                url('https://images.unsplash.com/photo-1582268611958-ebfd161ef9cf?w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 480px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    max-width: 800px;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: -1px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 500;
}

/* General Layout Sections */
.section-padding {
    padding: 100px 24px;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

/* Estimator Card & Suggestions */
.estimator-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.estimator-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.estimator-card p.subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

.input-container {
    position: relative;
    margin-bottom: 24px;
    text-align: left;
}

.form-control-custom {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    font-family: inherit;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control-custom:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}

#suggestions {
    position: absolute;
    width: 100%;
    left: 0;
    top: 102%;
    background: var(--white);
    z-index: 1000;
    text-align: left;
    max-height: 240px;
    overflow-y: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: none;
}

.suggestion-item {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid #F1F5F9;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #F1F5F9;
    color: var(--accent);
}

.result-container {
    margin-top: 30px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#result {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    animation: fadeIn 0.4s ease-out;
}

.estimator-card .disclaimer {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ShowingNew Widget */
.widget-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 24px;
    color: var(--white);
    text-align: center;
}

.widget-section h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 12px;
}

.widget-section p.subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 18px;
}

.search-group {
    display: flex;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 22px 28px;
    border: none;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    color: var(--text-dark);
}

.search-submit {
    padding: 22px 40px;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--accent-hover);
}

.powered-by {
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: var(--white);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* About Page Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 0, 0.3);
}

.step-num {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 24px;
    margin: 0 auto 25px auto;
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* Contact Page Grid & Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    border-left: 5px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.info-card h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
}

.contact-form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form-container h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-form-container p.subtitle {
    color: var(--text-light);
    margin-bottom: 35px;
    font-size: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group-full {
    grid-column: span 2;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-light);
}

.textarea-custom {
    resize: none;
    min-height: 120px;
}

/* Success Modal Overlay */
.success-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 29, 49, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.success-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px auto;
}

.success-card h3 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--primary);
}

.success-card p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

/* Footer & Legal Modals */
footer {
    background: #EEF2F5;
    padding: 60px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    list-style: none;
}

.footer-nav a {
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--primary-light);
    font-size: 15px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent);
}

.legal-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.legal-link:hover {
    color: var(--accent);
}

.copyright-text {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 29, 49, 0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    color: var(--text-dark);
    text-align: left;
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.25s ease-out;
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent);
}

.modal h2 {
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 12px;
}

.modal p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
    color: var(--text-light);
}

.modal p strong {
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Styles */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        animation: fadeIn 0.25s ease-out;
    }

    .nav-menu.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .nav-cta-btn {
        width: 100%;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group-full {
        grid-column: span 1;
    }
    
    .section-padding {
        padding: 60px 16px;
    }
    
    .estimator-card {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .search-group {
        flex-direction: column;
        background: none;
        box-shadow: none;
        gap: 12px;
    }
    .search-input {
        border-radius: var(--border-radius);
        width: 100%;
        box-shadow: var(--shadow-sm);
    }
    .search-submit {
        border-radius: var(--border-radius);
        width: 100%;
        padding: 18px;
        box-shadow: var(--shadow-md);
    }
}
