/* CSS Variables */
:root {
    --primary-color: #0B1D3D;
    --primary-dark: #081428;
    --deep-blue: #132E5E;
    --secondary-color: #D4AF37;
    --secondary-light: #E3C566;
    --text-dark: #111111;
    --text-light: #333333;
    --text-muted: #5A5A5A;
    --bg-light: #F7F5F0;
    --bg-white: #ffffff;
    --border-color: #D9D9D9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

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

ul {
    list-style: none;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    display: block;
    width: 54px;
    height: 54px;
    max-width: none;
    object-fit: contain;
}

.logo .logo-text {
    display: block;
    height: auto;
    width: auto;
    max-width: none;
    object-fit: initial;
}

/* Navigation - Nested Dropdown */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list > li {
    position: relative;
}

/* Anchor nested flyouts to their own parent item */
.dropdown li.has-dropdown {
    position: relative;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    white-space: nowrap;
}

.nav-list > li > a:hover {
    color: var(--secondary-color);
}

.nav-list > li > a i {
    font-size: 10px;
    transition: var(--transition);
}

.nav-list > li:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown - First level appears below parent */
.nav-list > .has-dropdown > .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--bg-white);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: var(--transition);
    z-index: 1000;
    padding: 8px 0;
}

.nav-list > .has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Nested Dropdown - flies out to the right, aligned with parent */
.dropdown .has-dropdown > .dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background-color: var(--bg-white);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: var(--transition);
    z-index: 1000;
    padding: 8px 0;
}

.dropdown .has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dropdown > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown > li > a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

.dropdown > li > a i {
    font-size: 10px;
    color: var(--text-muted);
}

.dropdown > li > a:hover i {
    color: var(--secondary-color);
}

/* Hover highlight for parent items */
.has-dropdown:hover > a {
    color: var(--secondary-color);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.phone-link i {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary-color);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(3px) brightness(0.9);
    transform: scale(1.06);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(11, 29, 61, 0.88) 0%, rgba(11, 29, 61, 0.65) 50%, rgba(11, 29, 61, 0.45) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 46px;
    color: var(--bg-white);
    margin-bottom: 20px;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(247, 245, 240, 0.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(247, 245, 240, 0.9);
    font-size: 14px;
}

.badge i {
    color: var(--secondary-color);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon i {
    font-size: 28px;
    color: var(--bg-white);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.service-list {
    margin-bottom: 24px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-light);
}

.service-list i {
    color: var(--secondary-color);
    font-size: 12px;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
    padding: 32px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.step p {
    color: var(--text-light);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-lead {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature i {
    color: var(--secondary-color);
    font-size: 20px;
}

.feature span {
    font-weight: 500;
    color: var(--text-dark);
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.image-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.image-placeholder p {
    font-size: 18px;
    opacity: 0.9;
}

/* Partner Section */
.partner {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--deep-blue) 100%);
    color: var(--bg-white);
    text-align: center;
}

.partner-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.partner h2 {
    font-size: 36px;
    color: var(--bg-white);
    margin-bottom: 16px;
}

.partner > .container > .partner-content > p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.partner-intro {
    line-height: 1.8;
}

.partner-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.partner-service {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.partner-service:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.partner-service i {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.partner-service h4 {
    font-size: 18px;
    color: var(--bg-white);
    margin-bottom: 8px;
}

.partner-service p {
    font-size: 14px;
    opacity: 0.8;
}

/* Remote Notary Section */
.remote-notary {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.notary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.notary-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.notary-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.notary-content > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.notary-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.notary-benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.notary-benefit i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 4px;
}

.notary-benefit h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.notary-benefit p {
    font-size: 14px;
    color: var(--text-light);
}

.notary-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Why Choose Us */
.why-choose-us {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.feature-card:hover {
    background-color: var(--bg-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 32px;
    color: var(--text-dark);
}

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

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
}

.info-item i {
    font-size: 20px;
    color: var(--secondary-color);
    margin-top: 4px;
}

.info-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
}

.info-item a {
    color: var(--primary-color);
}

.info-item a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--bg-white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 16px;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--secondary-color);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(247, 245, 240, 0.75);
    font-size: 14px;
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 13px !important;
    opacity: 1;
    color: rgba(247, 245, 240, 0.9);
    border-left: 3px solid var(--secondary-color);
    padding-left: 14px;
    max-width: 860px;
    margin: 12px auto 0;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (max-width: 768px) {
    .nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header .logo img,
    .mobile-nav-header .logo img {
        width: 44px;
        height: 44px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-badges {
        flex-direction: column;
        gap: 12px;
    }

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

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

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

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

    .partner-services {
        grid-template-columns: 1fr;
    }

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

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

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

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

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav-item {
    margin-bottom: 4px;
}

.mobile-nav-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--bg-light);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-item > a i {
    transition: var(--transition);
}

.mobile-nav-item.active > a i {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    padding: 8px 0 8px 16px;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu .mobile-nav-item > a {
    font-size: 13px;
    padding: 10px 14px;
    background-color: var(--bg-light);
    margin-bottom: 2px;
}

.mobile-submenu .mobile-submenu {
    padding-left: 16px;
}

.mobile-submenu-group {
    margin-bottom: 12px;
}

.mobile-submenu-group h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-color);
    padding: 8px 12px;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-submenu-group ul li {
    font-size: 12px;
    color: var(--text-light);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-submenu-group ul li:last-child {
    border-bottom: none;
}

.mobile-nav-cta {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-cta .btn {
    width: 100%;
    margin-bottom: 10px;
}

.mobile-nav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.mobile-nav-phone i {
    color: var(--secondary-color);
}

/* Form Success Message */
.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 4px;
    margin-top: 16px;
    display: none;
}

.form-success.show {
    display: block;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: 4px;
    margin-top: 16px;
    display: none;
}

.form-error.show {
    display: block;
}
