/* ============================================
   AUSTIN HARLEY — SHARED STYLESHEET
   "Financial clarity for people who build things."
   Visual: Charleston coastal + personal brand
   ============================================ */

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

:root {
    --navy:        #0a1628;
    --navy-light:  #0f1f38;
    --navy-mid:    #182d4a;
    --navy-border: #1e3554;
    --white:       #FFFFFF;
    --off-white:   #F4F6F9;
    --gray-100:    #E2E6ED;
    --gray-300:    #C0C7D4;
    --gray-500:    #8A94A6;
    --gray-700:    #5A6478;
    --accent:      #3B82F6;
    --accent-hover:#2563EB;
    --accent-soft: rgba(59, 130, 246, 0.08);
    --accent-mid:  rgba(59, 130, 246, 0.15);
    --gold:        #C8A951;
    --gold-soft:   rgba(200, 169, 81, 0.1);
    --warm:        #B8977E;
    --text-body:   #C8CED8;
    --max-width:   1080px;
    --content-width: 720px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--navy);
    color: var(--text-body);
    line-height: 1.7;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--white);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--white); font-weight: 600; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

/* ============================================
   NAVIGATION — Sticky, glassmorphism
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 53, 84, 0.5);
    padding: 0 1.5rem;
    transition: background 0.3s;
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__brand {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav__brand span {
    color: var(--gold);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__links a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav__links a:hover,
.nav__links a.active {
    color: var(--white);
}

.nav__cta {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: var(--gold) !important;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gold);
    border-radius: 5px;
    transition: background 0.2s, color 0.2s !important;
}

.nav__cta:hover {
    background: var(--gold) !important;
    color: var(--navy) !important;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-300);
    margin: 5px 0;
    transition: transform 0.2s, opacity 0.2s;
}

/* ============================================
   HERO — Full-width image with overlay
   ============================================ */
.hero-image {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.75) 0%,
        rgba(10, 22, 40, 0.65) 40%,
        rgba(10, 22, 40, 0.85) 80%,
        rgba(10, 22, 40, 1) 100%
    );
    z-index: 1;
}

.hero-image > * {
    position: relative;
    z-index: 2;
}

.hero-image h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-image__sub {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    color: var(--gray-100);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Page-level hero (non-image) */
.hero-page {
    padding: 7rem 0 4rem;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--navy-light);
    border-top: 1px solid var(--navy-border);
    border-bottom: 1px solid var(--navy-border);
    padding: 1.25rem 1.5rem;
}

.trust-bar__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--gray-300);
    font-weight: 500;
}

.trust-bar__icon {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
}

/* ============================================
   AFFILIATIONS BAR — Logo-style text strip
   ============================================ */
.affiliations {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.affiliations__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.affiliations__logos {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.affiliations__item {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.2s;
}

.affiliations__item:hover {
    color: var(--gray-300);
}

.affiliations__item--accent {
    color: var(--gold);
    opacity: 0.7;
}

.affiliations__item--accent:hover {
    opacity: 1;
}

.affiliations__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--navy-border);
    flex-shrink: 0;
}

/* ============================================
   PHOTO PLACEHOLDER
   ============================================ */
.photo-placeholder {
    background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
    border: 2px dashed var(--navy-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    min-height: 280px;
}

.photo-placeholder__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.photo-placeholder__icon {
    width: 48px;
    height: 48px;
    color: var(--gray-500);
    opacity: 0.5;
}

.photo-placeholder__label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.photo-placeholder__note {
    font-size: 0.75rem;
    color: var(--gray-700);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.9375rem 2.25rem;
    background: var(--accent);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    background: var(--accent-hover);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.btn:active { transform: scale(0.985); }

.btn--outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
}

.btn--outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.07);
    color: var(--white);
    box-shadow: none;
}

.btn--gold {
    background: var(--gold);
    color: var(--navy);
}

.btn--gold:hover {
    background: #d4b35a;
    color: var(--navy);
    box-shadow: 0 4px 20px rgba(200, 169, 81, 0.3);
}

.btn--full { width: 100%; }

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   CARDS — Elevated
   ============================================ */
.card {
    background: var(--navy-light);
    border: 1px solid var(--navy-border);
    border-radius: 10px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    border-color: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Service card with icon */
.service-card {
    padding: 2.5rem 2rem;
    position: relative;
}

.service-card__icon {
    width: 48px;
    height: 48px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-mid);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-input {
    width: 100%;
    padding: 0.9375rem 1.125rem;
    margin-bottom: 0.875rem;
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder { color: var(--gray-500); }

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
}

/* ============================================
   BLOG CARDS — Editorial
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.blog-card {
    background: var(--navy-light);
    border: 1px solid var(--navy-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    border-color: var(--accent);
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.blog-card__image {
    height: 200px;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--navy-border);
    overflow: hidden;
}

.blog-card__image-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    background: rgba(10, 22, 40, 0.7);
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    backdrop-filter: blur(8px);
}

.blog-card__body {
    padding: 1.75rem 2rem 2rem;
}

.blog-card__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.875rem;
}

.blog-card__title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-card__excerpt {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.blog-card__meta {
    font-size: 0.8125rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card--featured .blog-card__title {
    font-size: 1.375rem;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section--alt { background: var(--navy-light); }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-small { font-size: 0.875rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   DIVIDER — with subtle gradient
   ============================================ */
.divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--navy-border), transparent);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-header p {
    color: var(--gray-300);
    margin-top: 0.75rem;
}

/* ============================================
   EYEBROW
   ============================================ */
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

/* ============================================
   STAT HIGHLIGHT
   ============================================ */
.stat-row {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ============================================
   GRIDS
   ============================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* ============================================
   CALLOUT BOX
   ============================================ */
.callout {
    background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
    border: 1px solid var(--navy-border);
    border-radius: 12px;
    padding: clamp(2.5rem, 5vw, 3.5rem);
    position: relative;
    overflow: hidden;
}

.callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

/* ============================================
   FOOTER — Warm, with location
   ============================================ */
.footer {
    padding: 4rem 0 3rem;
    border-top: 1px solid var(--navy-border);
    background: var(--navy-light);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__brand h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.footer__brand p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.footer__nav h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.footer__nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__nav a {
    font-size: 0.875rem;
    color: var(--gray-300);
}

.footer__nav a:hover { color: var(--white); }

.footer__bottom {
    border-top: 1px solid var(--navy-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__tagline {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-300);
    font-style: italic;
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--gray-700);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .blog-card--featured { grid-column: 1 / -1; }
    .blog-card--featured .blog-card__image { height: 240px; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }

    section { padding: 4rem 0; }

    .hero-image {
        min-height: 70vh;
        padding: 7rem 1.5rem 4rem;
    }

    .hero-page { padding: 6rem 0 3rem; }

    .nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--navy-border);
    }

    .nav__links.open { display: flex; }
    .nav__toggle { display: block; }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-group .btn { text-align: center; }

    .trust-bar__inner {
        gap: 1.5rem;
        justify-content: center;
    }

    .affiliations__logos { gap: 1.5rem; }
    .affiliations__sep { display: none; }

    .stat-row { gap: 2rem; }

    .footer__top { flex-direction: column; }
    .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container, .container--narrow { padding: 0 1.25rem; }
    .trust-bar__item { font-size: 0.75rem; }
    .affiliations__item { font-size: 0.8125rem; }
}
