/* public.css
   Global marketing / public-facing styles
*/

/* Imports */
@import url("forms.css");
@import url("blog.css");
@import url("directory.css");

/* CSS Reset / Base */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background-color: #f3f4f6;
    line-height: 1.5;
}

/* Layout helpers */

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
    background-color: #f3f4f6;
}

.section-light {
    padding: 4rem 0;
    background-color: #ffffff;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Typography */

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: clamp(2.1rem, 3vw, 2.7rem);
}

h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.1rem);
    margin-top: 2rem;
}

h3 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 0.75rem;
    color: #4b5563;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header / Nav */

.site-header {
    background-color: #0f172a;
    color: #e5e7eb;
    border-bottom: 1px solid #111827;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
}

.main-nav a {
    color: #e5e7eb;
    padding: 0.3rem 0.4rem;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
    background-color: #111827;
    color: #f9fafb;
    text-decoration: none;
}

/* Mobile nav toggle */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #e5e7eb;
    font-size: 1.5rem;
}

/* Hero */

.hero {
    background: radial-gradient(circle at top left, #1d4ed8 0, #0f172a 52%, #020617 100%);
    color: #f9fafb;
    padding: 4.5rem 0 4rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    max-width: 560px;
    font-size: 1.02rem;
    color: #e5e7eb;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.1s ease, background-color 0.1s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: #2563eb;
    color: #f9fafb;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background-color: #f9fafb;
    color: #111827;
    border-color: #e5e7eb;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    text-decoration: none;
}

/* Lists / bullet grid */

.bullet-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.5rem;
    margin: 1rem 0;
    padding: 0;
}

.bullet-grid li {
    position: relative;
    padding-left: 1.5rem;
    color: #4b5563;
    font-size: 0.96rem;
}

.bullet-grid li::before {
    content: "•";
    position: absolute;
    left: 0.1rem;
    color: #2563eb;
    font-weight: 900;
}

/* Alerts */

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fed7aa;
}

.flash-messages {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
    padding: 1.5rem 0 2rem;
    margin-top: 2rem;
    font-size: 0.88rem;
    color: #6b7280;
}

.site-footer p {
    margin-bottom: 0.25rem;
}

.site-footer a {
    color: #2563eb;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Page-specific helpers */

.hero + .section {
    padding-top: 3rem;
}

/* Breadcrumbs */

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 0.35rem;
    color: #9ca3af;
}

.breadcrumb-item a {
    color: #4b5563;
}

/* Forms in marketing pages */

.contact-form,
.search-landing-form {
    margin-top: 1rem;
    max-width: 540px;
}

/* Cards */

.card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

/* Sections CTA row */

.cta-row {
    margin-top: 2rem;
}

/* Responsive */

@media (max-width: 768px) {
    .header-inner {
        align-items: center;
    }

    .main-nav {
        position: absolute;
        top: 56px;
        right: 0;
        background-color: #020617;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        min-width: 210px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease, transform 0.15s ease;
        z-index: 50;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        text-align: left;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
