/* --- Imports & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Global Resets & Typography --- */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    color: #475569; /* Slate 600 */
    background-color: #f8fafc;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: #0f172a; /* Slate 900 */
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Responsive Headings */
@media (max-width: 768px) {
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2.25rem; }
    .display-5 { font-size: 2rem; }
}

a { text-decoration: none; transition: all 0.2s; }

/* --- Brand Colors --- */
:root {
    --brand-blue: #236CB1;
    --brand-blue-dark: #1a528a;
    --brand-yellow: #FFC90D;
    --brand-yellow-hover: #e6b500;
    --success-green: #10b981;
    --error-red: #ef4444;
}

.text-primary { color: var(--brand-blue) !important; }
.text-dark { color: #0f172a !important; }

/* --- Components: Buttons --- */
.btn { 
    border-radius: 50rem; 
    padding: 0.75rem 1.75rem; 
    font-weight: 600; 
    transition: all 0.2s ease-in-out; 
    font-size: 0.95rem;
}

.btn:active { transform: scale(0.98); }

.btn-primary { 
    background-color: var(--brand-blue); 
    border-color: var(--brand-blue); 
    box-shadow: 0 4px 6px -1px rgba(35, 108, 177, 0.2), 0 2px 4px -1px rgba(35, 108, 177, 0.1);
}

.btn-primary:hover { 
    background-color: var(--brand-blue-dark); 
    border-color: var(--brand-blue-dark); 
    box-shadow: 0 10px 15px -3px rgba(35, 108, 177, 0.3); 
    transform: translateY(-1px);
}

.btn-outline-dark {
    border-color: #e2e8f0;
    color: #475569;
    background: white;
}
.btn-outline-dark:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* --- Components: Cards --- */
.card { 
    border: 1px solid #e2e8f0; 
    border-radius: 1rem; 
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .hover-lift:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01) !important;
    border-color: rgba(35, 108, 177, 0.3) !important;
}

/* --- Components: Forms --- */
.form-control, .form-select { 
    border-radius: 0.75rem; 
    padding: 0.75rem 1rem; 
    border-color: #e2e8f0; 
    font-size: 1rem;
}

.form-control:focus, .form-select:focus { 
    box-shadow: 0 0 0 4px rgba(35, 108, 177, 0.1); 
    border-color: var(--brand-blue); 
}

/* --- Layout: Hero Section --- */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    padding: 5rem 0 3rem 0; 
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2rem 0;
    }
}

.hero-shape {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.hero-shape-right {
    top: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    background: var(--brand-blue);
}

.hero-shape-left {
    bottom: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: var(--brand-yellow);
}

.hero-underline-svg {
    position: absolute;
    width: 100%;
    bottom: -12px;
    left: 0;
    height: 15px;
    color: #FFC90D;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

.trust-signals {
    max-width: 600px;
    border-color: rgba(0,0,0,0.05) !important;
    flex-wrap: wrap; /* Ensure items wrap on small screens */
    width: 100%;
}

/* --- Layout: Domain Search Bar & Results --- */
.domain-search-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.75rem !important;
    width: 100%;
}

.domain-search-container:focus-within {
    transform: scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(35, 108, 177, 0.15);
    border-color: var(--brand-blue);
}

.domain-search-container input {
    font-weight: 500;
    color: #0f172a;
    font-size: 1.1rem;
}

/* Mobile adjustments for Search Bar */
@media (max-width: 576px) {
    .domain-search-container {
        border-radius: 1.5rem !important;
        padding: 1rem !important;
    }
    .domain-search-container form {
        flex-direction: column;
        gap: 0.75rem;
    }
    .domain-search-container .search-icon-wrapper {
        display: none; /* Hide icon on mobile for more space */
    }
    .domain-search-container input {
        padding-left: 0.75rem !important;
        text-align: center;
        width: 100%;
    }
    .domain-search-container button {
        width: 100%;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Search Result Animation */
#searchResults {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Result Card Styling */
.result-card-main {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-left: 5px solid var(--brand-blue);
    transition: all 0.3s ease;
}

.result-card-main.available {
    border-left-color: var(--success-green);
    background: linear-gradient(to right, #f0fdf4, #ffffff);
}

.result-card-main.unavailable {
    border-left-color: var(--error-red);
    background: #fef2f2;
}

/* Suggestions Styling */
.list-group-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.list-group-item:hover {
    background-color: #f8fafc;
    z-index: 1;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
}

/* --- Layout: Services Section --- */
.services-section {
    background-color: #ffffff;
    padding: 3rem 0 5rem 0; 
    position: relative;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Service Gradients */
.icon-gradient-blue { background: linear-gradient(135deg, #236CB1, #3b82f6); }
.icon-gradient-yellow { background: linear-gradient(135deg, #FFC90D, #f59e0b); }
.icon-gradient-dark { background: linear-gradient(135deg, #1e293b, #334155); }
.icon-gradient-green { background: linear-gradient(135deg, #10b981, #059669); }

/* --- Navigation --- */
.navbar-custom { 
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.75rem 0;
}

/* Remove Double Arrows */
.navbar-custom .dropdown-toggle::after {
    display: none !important;
}

.navbar-custom .nav-link { 
    font-weight: 600; 
    color: #64748b; 
    padding: 0.5rem 1rem !important; 
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active { 
    color: var(--brand-blue); 
    background-color: rgba(35, 108, 177, 0.08);
}

.dropdown-menu.megamenu {
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    margin-top: 1rem;
    padding: 2rem;
    animation: slideUp 0.2s ease-out;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
    .dropdown-menu.megamenu {
        box-shadow: none;
        padding: 1rem;
        margin-top: 0.5rem;
    }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.footer-modern {
    background-color: #1e293b;
    color: #94a3b8;
    font-size: 0.95rem;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.footer-heading {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #94a3b8;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
    color: var(--brand-yellow);
    transform: translateX(4px);
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 0.75rem;
    transition: all 0.3s;
}

.social-icon-btn:hover {
    background: var(--brand-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #0f172a;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utilities */
.bg-light-subtle { background-color: #f8fafc !important; }
.bg-primary-subtle { background-color: rgba(35, 108, 177, 0.1) !important; }
/* --- Navbar Hover Effects (Desktop) --- */
@media (min-width: 992px) {
    .navbar-custom .nav-item:hover .dropdown-menu {
        display: block;
        animation: slideUp 0.2s ease-out;
    }
    .navbar-custom .dropdown-menu {
        margin-top: 0;
    }
}

/* Utilities */
.opacity-10 { opacity: 0.1 !important; }

/* --- Modern Updates (Index Refactor) --- */

/* Modern Card Style */
.card-modern {
    position: relative; /* Essential for stretched-link */
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem; /* rounded-4 equivalent */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: rgba(35, 108, 177, 0.4);
}

/* Modern Accordion */
.accordion-modern .accordion-item {
    border: 1px solid #f1f5f9;
    margin-bottom: 1rem;
    border-radius: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    overflow: hidden;
    background: white;
}

.accordion-modern .accordion-button {
    border-radius: 1rem !important;
    background-color: white;
    font-weight: 600;
    padding: 1.5rem;
    box-shadow: none !important;
    font-size: 1.1rem;
    color: #334155;
}

.accordion-modern .accordion-button:not(.collapsed) {
    background-color: #f8fafc;
    color: var(--brand-blue);
    border-bottom: 1px solid #e2e8f0;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.accordion-modern .accordion-body {
    padding: 1.5rem;
    color: #64748b;
    line-height: 1.7;
}

/* Testimonial Card Dark Mode (Optional usage) */
.card-modern-dark {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.05);
}
.card-modern-dark h6, .card-modern-dark .text-dark { color: white !important; }
.card-modern-dark .text-muted { color: #94a3b8 !important; }
.card-modern-dark .bg-white { background: rgba(255,255,255,0.05) !important; }

/* Abstract Shapes for Modern Hero */
.shape-blob {
    position: absolute;
    filter: blur(50px);
    z-index: 0;
    opacity: 0.4;
    animation: blobFloat 10s infinite alternate;
}
@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

/* --- Top Bar & Dropdowns --- */
/* Removed simple CSS hover to allow JS control for persistence */
/* .dropdown-hover:hover .dropdown-menu-custom {
    display: block !important;
    animation: fadeIn 0.2s ease-out;
} */

.dropdown-menu-custom {
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 10px; /* Push down to clear top bar */
}

/* Dropdown Wrapper: Relative on desktop, Static on mobile to align dropdowns to container */
.dropdown-wrapper {
    position: relative;
}

@media (max-width: 768px) {
    .dropdown-wrapper {
        position: static;
    }
    .dropdown-wrapper .dropdown-menu-custom {
        left: 0;
        right: auto;
        /* Ensure it doesn't overflow screen */
        max-width: 100%;
        /* Align to container left edge */
        transform: translateX(0);
    }
}

/* Autofill Override: Keep background white (or transparent-ish looking) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Arrow indicator on dropdown items if needed, or just standard hover */
.hover-bg-light { transition: background-color 0.15s; }
.hover-bg-light:hover { background-color: #f1f5f9; color: var(--brand-blue) !important; }
.hover-bg-light:hover i { color: var(--brand-blue) !important; } /* Force icon color on hover */

.hover-text-primary:hover { color: var(--brand-blue) !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ensure z-index works for absolute positioning context */
.position-relative { position: relative !important; }

/* Custom Form Control Sm override for Dropdown */
.dropdown-menu-custom .form-control-sm {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .dropdown-menu-custom .form-control-sm {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}

/* --- Mobile Step Icons --- */
.step-icon {
    width: 120px;
    height: 120px;
}

@media (max-width: 768px) {
    .step-icon {
        width: 100px;
        height: 100px;
    }
}

/* --- Promo Bar --- */
.promo-bar {
    background: #3b82f6; /* Fallback */
    background: linear-gradient(90deg, #3b82f6 0%, var(--brand-blue) 100%);
    color: white;
    font-size: 0.9rem;
    position: relative;
    z-index: 1000;
}

.promo-bar a.btn {
    font-size: 0.8rem;
    padding: 0.25rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promo-bar a.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
