/* ====== FONT CONFIG ====== */
@import url('./font-config.css');

/* ====== BASE VARIABLES ====== */
:root {
    --font-family: var(--site-font), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-family-readable: var(--site-font-legible), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --hero-overlap: clamp(8px, 1.6vw, 20px);
    --ink-900: #1e2126;
    --ink-700: #39414b;
    --paper-100: #f8f6f1;
    --brand-slate: #6d7a8a;
    --brand-mist: #c2c7cb;
    --accent-gold: #bf8f4d;
}

/* ====== MINIMAL RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: #5f6d7c;
}

html,
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

li {
    font-family: var(--font-family-readable);
}

/* ====== HERO ====== */
.hero-section {
    width: 100%;
    min-height: 90vh;
    position: relative;
    overflow: visible;
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.6) 0 24%, transparent 25%),
        linear-gradient(140deg, #cbd2d8 0%, #b8bfc6 52%, #acb5be 100%);
    padding: clamp(1rem, 2.2vw, 2rem) clamp(1.2rem, 5vw, 5rem) clamp(2.5rem, 7vh, 4.5rem);
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(240px, 360px);
    gap: clamp(1rem, 2.2vw, 2.6rem);
    align-items: center;
}

.hero-topbar {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.hero-topbar-item {
    font-family: var(--font-family-readable);
    color: var(--paper-100);
    background: var(--ink-900);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.7rem;
    border: 2px solid #000;
}

.hero-topbar-link {
    text-decoration: none;
}

.hero-content {
    max-width: 640px;
    position: relative;
    z-index: 5;
}

.eyebrow {
    font-family: var(--font-family-readable);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    color: var(--ink-700);
    margin-bottom: 0.7rem;
}

.hero-content h1 {
    font-size: clamp(1.9rem, 4.4vw, 3.45rem);
    line-height: 0.98;
    color: var(--ink-900);
    max-width: 15ch;
    margin-bottom: 0.85rem;
}

.hero-copy {
    font-family: var(--font-family-readable);
    max-width: 52ch;
    color: #2f353d;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.hero-cta {
    text-decoration: none;
    font-family: var(--font-family-readable);
    letter-spacing: 0.03em;
    font-size: 0.92rem;
    padding: 0.72rem 1rem;
    border: 2px solid #000;
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.hero-cta-primary {
    background: var(--ink-900);
    color: var(--paper-100);
    box-shadow: 4px 4px 0 #000;
}

.hero-cta-secondary {
    background: #ece5d8;
    color: #1f242a;
    box-shadow: 4px 4px 0 #8f6d3d;
    border-color: #8f6d3d;
}

.hero-cta:hover {
    transform: translate(-1px, -1px);
    filter: brightness(1.02);
}

.hero-cta:active {
    transform: translate(1px, 1px);
}

.hero-trust-list {
    display: grid;
    gap: 0.5rem;
    list-style: none;
    font-family: var(--font-family-readable);
    color: #28303a;
}

.hero-trust-list li {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(30, 33, 38, 0.18);
    padding: 0.5rem 0.7rem;
    animation: trustItemSlideIn 700ms cubic-bezier(0.2, 0.9, 0.24, 1) 1.02s both;
    will-change: transform;
}

.hero-trust-list li:nth-child(2) {
    animation-delay: 1.14s;
}

.hero-trust-list li:nth-child(3) {
    animation-delay: 1.26s;
}

@keyframes trustItemSlideIn {
    0% {
        transform: translateX(-120vw);
    }

    78% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

.hero-review-card {
    align-self: start;
    justify-self: end;
    background: var(--paper-100);
    border: 3px solid #1a1d22;
    box-shadow: 8px 8px 0 rgba(20, 21, 24, 0.38);
    padding: 1rem;
    max-width: 340px;
    position: relative;
    z-index: 6;
    animation: reviewCardSlideIn 700ms cubic-bezier(0.2, 0.9, 0.24, 1) 1.02s both;
    will-change: transform;
}

@keyframes reviewCardSlideIn {
    0% {
        transform: translateX(120vw);
    }

    78% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

.review-label {
    font-family: var(--font-family-readable);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.72rem;
    color: #4f5864;
    margin-bottom: 0.7rem;
}

.review-quote {
    font-size: 1.06rem;
    line-height: 1.38;
    color: #1f242a;
    margin-bottom: 0.75rem;
    min-height: 5.8rem;
}

.review-author {
    font-family: var(--font-family-readable);
    color: #2e3740;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.review-source {
    font-family: var(--font-family-readable);
    color: #5a6572;
    font-size: 0.78rem;
}

/* ====== Star Rating Styles (SVG outline + clipped fill) ====== */
.review-stars {
    display: inline-flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    align-items: center;
}
.review-stars .star {
    position: relative;
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
}
.review-stars .star svg {
    width: 100%;
    height: 100%;
    display: block;
}
.review-stars .star svg .outline {
    fill: var(--ink-900);
    stroke: none;
}
.review-stars .star svg .fill {
    fill: #FFD54F;
    stroke: none;
}
@media (max-width: 680px) {
    .review-stars .star { width: 1rem; height: 1rem; }
}

/* Hero review card link styling */
.hero-review-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.hero-review-link:focus {
    outline: 3px solid rgba(100, 120, 180, 0.22);
    outline-offset: 3px;
}

/* Footer social link */
.footer-social {
    margin-left: 0.8rem;
    color: var(--paper-100);
    text-decoration: none;
    background: transparent;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.06);
}
.footer-social:hover { opacity: 0.95; }

/* Meet The Team styles */
.team-section {
    width: 100%;
    background: linear-gradient(180deg, #687B8C 0%, #647182 64%, #5c6878 100%);
    border-top: 4px solid var(--ink-900);
    padding: 2.5rem 6vw 4.25rem;
    position: relative;
    z-index: 1;
}
.team-header {
    max-width: 760px;
    margin: 0 0 1.8rem 0;
    text-align: left;
}
.team-kicker {
    font-family: var(--font-family-readable);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d5dde6;
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
}
.team-sub {
    font-family: var(--font-family-readable);
    color: #e5e8ed;
    margin-top: 0.35rem;
}
.team-header h2 {
    color: #f8f6f1;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}
.team-header p {
    font-family: var(--font-family-readable);
    color: #e5e8ed;
    line-height: 1.5;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto;
}
.team-card {
    background: #eef1f4;
    border: 2px solid #1f242a;
    box-shadow: 6px 6px 0 rgba(25, 28, 32, 0.45);
    padding: 1rem;
    text-align: center;
    min-height: 260px;
}
.team-photo-wrap {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #1f242a;
    background: #dce2e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
}
.team-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-name {
    font-weight: 700;
    color: #1e2329;
    margin-bottom: 0.25rem;
}
.team-position {
    font-family: var(--font-family-readable);
    color: #2c353f;
    margin-bottom: 0.45rem;
}
.team-phone {
    display: block;
    font-family: var(--font-family-readable);
    color: #1e2329;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    text-decoration: none;
}
.team-phone:hover { text-decoration: underline; }
.team-email {
    font-family: var(--font-family-readable);
    color: #1e2329;
    text-decoration: none;
    font-size: 0.92rem;
    display: block;
    margin-top: 0.08rem;
}
.team-email:hover {
    text-decoration: underline;
}

@media (max-width: 920px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .team-grid { grid-template-columns: 1fr; }
}

.hero-section .hero-art {
    position: absolute;
    bottom: calc(-1 * var(--hero-overlap));
    right: clamp(0.8rem, 8vw, 9.5rem);
    width: clamp(180px, 38vw, 540px);
    height: auto;
    transform-origin: bottom right;
    object-fit: contain;
    z-index: 4;
    pointer-events: none;
    user-select: none;
    display: block;
    opacity: 1;
    animation: heroTowerGrowIn 900ms cubic-bezier(0.22, 0.9, 0.28, 1) 80ms both;
    will-change: transform;
}

@keyframes heroTowerGrowIn {
    0% {
        transform: scale(0.001);
    }

    68% {
        transform: scale(1.12);
    }

    84% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.hero-section .hero-logo {
    position: absolute;
    top: clamp(16px, 3vh, 36px);
    left: clamp(16px, 3vw, 44px);
    width: clamp(150px, 18vw, 290px);
    height: auto;
    z-index: 4;
    user-select: none;
    display: block;
}

/* ====== OFFERINGS ====== */
.offerings {
    width: 100%;
    background:
        linear-gradient(180deg, #687B8C 0%, #647182 64%, #5c6878 100%);
    border-top: 4px solid var(--ink-900);
    padding: 2.5rem 6vw 8vh;
    position: relative;
    z-index: 1;
}

.offerings-header {
    max-width: 760px;
    margin-bottom: 2rem;
}

.offerings-kicker {
    font-family: var(--font-family-readable);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d5dde6;
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
}

.offerings-header h2 {
    color: #f8f6f1;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.65rem;
}

.offerings-header p {
    font-family: var(--font-family-readable);
    color: #e5e8ed;
    line-height: 1.5;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 1rem;
}

.offering-card {
    background: #eef1f4;
    border: 2px solid #1f242a;
    box-shadow: 6px 6px 0 rgba(25, 28, 32, 0.45);
    padding: 1rem;
    min-height: 170px;
}

body.scroll-reveal-ready .offering-card {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 520ms ease,
        transform 620ms cubic-bezier(0.22, 0.9, 0.24, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

body.scroll-reveal-ready .offering-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.offering-card h3 {
    color: #1e2329;
    margin-bottom: 0.45rem;
    font-size: 1.12rem;
}

.offering-card p {
    font-family: var(--font-family-readable);
    color: #2c353f;
    line-height: 1.45;
}

.states-panel {
    margin-top: 2rem;
    max-width: 980px;
    border: 2px solid rgba(249, 248, 244, 0.65);
    padding: 1rem;
    background: rgba(26, 31, 38, 0.14);
}

.states-panel h3 {
    color: #f6f4ed;
    margin-bottom: 0.45rem;
}

.states-panel p {
    color: #e6ebf1;
    font-family: var(--font-family-readable);
    line-height: 1.45;
}

/* ====== LEGAL PAGE ====== */
.legal-page {
    padding-top: 3rem;
}

/* Close button in top-right for legal pages */
.legal-close {
    position: fixed;
    top: clamp(12px, 1.6vw, 18px);
    right: clamp(12px, 1.6vw, 18px);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-100);
    color: var(--ink-900);
    border: 2px solid #000;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
    z-index: 1200;
}
.legal-close:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.legal-shell {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin: 0 auto 1.8rem;
}

.legal-header h2 {
    max-width: 24ch;
    margin-left: auto;
    margin-right: auto;
}

.legal-header p {
    max-width: 74ch;
    margin-left: auto;
    margin-right: auto;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 1rem;
    align-items: start;
}

.legal-card {
    background: #eef1f4;
    border: 2px solid #1f242a;
    box-shadow: 6px 6px 0 rgba(25, 28, 32, 0.45);
    padding: 1.2rem;
}

.legal-card h3 {
    color: #1e2329;
    margin-bottom: 0.55rem;
    font-size: 1.1rem;
}

.legal-card h4 {
    color: #1f242a;
    margin-top: 0.95rem;
    margin-bottom: 0.35rem;
    font-size: 0.96rem;
    letter-spacing: 0.02em;
}

.legal-card p,
.legal-card li,
.legal-card address {
    font-family: var(--font-family-readable);
    color: #2c353f;
    line-height: 1.55;
}

.legal-card p + p {
    margin-top: 0.55rem;
}

.legal-card ul {
    margin: 0.45rem 0 0.2rem 1.2rem;
}

.legal-card li + li {
    margin-top: 0.32rem;
}

.legal-card a {
    color: #1f242a;
    text-decoration-thickness: 1.6px;
}

.legal-card-wide,
.legal-card-contact {
    grid-column: 1 / -1;
}

.legal-card address {
    margin-top: 0.5rem;
    font-style: normal;
}

.legal-updated {
    margin-top: 0.5rem;
    font-weight: 700;
}

/* ====== FOOTER ====== */
.site-footer {
    background: var(--ink-900);
    color: #ffffff;
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
    font-family: var(--font-family-readable);
}

.site-footer .footer-inner {
    max-width: none;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.footer-name {
    color: var(--paper-100);
}

.footer-location {
    color: var(--paper-100);
    margin-left: calc(34px + 0.6rem);
}

.footer-contact {
    margin-left: calc(34px + 0.6rem);
}

.footer-contact a {
    color: var(--paper-100);
    text-decoration: none;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    margin-left: auto;
}
.footer-right p {
    margin: 0;
    color: var(--paper-100);
    font-family: var(--font-family-readable);
    font-size: 0.95rem;
    line-height: 1;
}
.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
}
.footer-social-list {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
}

.footer-social img,
.footer-social .footer-social-img {
    width: auto;
    height: 32px;
    display: block;
    padding-top: 0;
}

/* Footer bottom copyright row */
.site-footer .footer-bottom {
    margin-top: 0.6rem;
    text-align: center;
    font-family: var(--font-family-readable);
    color: var(--paper-100);
    font-size: 0.95rem;
}

.site-footer .footer-bottom a {
    color: var(--paper-100);
    text-decoration: underline;
}

@media (max-width: 680px) {
    .site-footer .footer-inner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
    }
    .footer-left {
        order: 1;
        flex: 1 1 auto;
        align-items: flex-start;
        min-width: 0;
    }
    .footer-right {
        order: 2;
        margin-left: 0;
        flex: 0 0 auto;
    }
    .footer-location,
    .footer-contact { margin-left: 0; }
    .footer-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

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

@media (max-width: 1080px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 5rem;
    }

    .hero-review-card {
        justify-self: start;
        max-width: 480px;
        margin-top: 0.3rem;
    }

    .hero-section .hero-art {
        right: 0.2rem;
        width: clamp(160px, 34vw, 360px);
    }

    .offerings-grid {
        grid-template-columns: repeat(2, minmax(210px, 1fr));
    }
}

@media (max-width: 680px) {
    .hero-section {
        padding: 4.6rem 1rem 2.8rem;
        min-height: auto;
    }

    .hero-section .hero-logo {
        top: 0.8rem;
        width: 170px;
    }

    .hero-content h1 {
        max-width: 100%;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-review-card {
        width: 100%;
    }

    .hero-section .hero-art {
        display: none;
    }

    .offerings {
        padding: 2rem 1rem 4.5rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    .hero-section .hero-art,
    .hero-review-card,
    .hero-trust-list li {
        animation: none;
    }

    body.scroll-reveal-ready .offering-card,
    body.scroll-reveal-ready .offering-card.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
