/* ========== Base Reset-ish ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    /* Background gradient – no tiling */
    background: radial-gradient(circle at top left, #29313d 0, #0b0f14 40%, #05070a 100%);
    background-color: #05070a;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;

    color: #f4f4f4;
    line-height: 1.6;

    /* make room for fixed header */
    padding-top:20px;
}

/* ========== Layout ========== */

main {
    max-width: 2500px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
}

/* ========== Header / Nav ========== */

header {
    background: #070b0f;
    border-bottom: 1px solid #1f252e;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

#site-header nav {
    width: 100%;
    max-width: none;          /* don’t constrain it */
    margin: 0;                /* no auto-centering box */
    padding: 0.75rem 3rem;    /* how far from screen edges */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* logo image lives in /assets/img relative to this css file */
    background-image: url("../img/logo_standto_icon.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* no <img> inside .nav-logo anymore, so no extra rules */

.nav-brand {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e6eaf0;
}

/* Desktop nav links */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.nav-link {
    color: #c3cad6;
    text-decoration: none;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

/* Hover + active state */
.nav-link:hover {
    color: #ffffff;
    background: rgba(240, 180, 51, 0.15);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(240, 180, 51, 0.25);
    box-shadow: 0 0 0 1px rgba(240, 180, 51, 0.35);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.35rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #e6eaf0;
    border-radius: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hamburger animation */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Blog ========== */

.blog-hero {
    background: linear-gradient(135deg, rgba(240, 180, 51, 0.08), rgba(16, 35, 52, 0.35));
    border: 1px solid rgba(240, 180, 51, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
}

.blog-hero__inner {
    max-width: 900px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f0b433;
    font-weight: 600;
    font-size: 0.85rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.blog-card {
    background: #0c0f14;
    border: 1px solid #1f252e;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.blog-card.loading {
    text-align: center;
    color: #b9c3d3;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pill {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(240, 180, 51, 0.16);
    color: #f4e4c2;
    font-size: 0.8rem;
    border: 1px solid rgba(240, 180, 51, 0.35);
}

.pill--outline {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #c3cad6;
}

.blog-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
}

.blog-card p {
    color: #c3cad6;
    margin: 0;
}

.blog-hero--compact {
    padding: 1.75rem 1.5rem;
}

.blog-controls {
    background: #0c0f14;
    border: 1px solid #1f252e;
    border-radius: 14px;
    display: grid;
    gap: 1rem;
}

.blog-controls__row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.blog-search label {
    display: block;
    font-size: 0.9rem;
    color: #c3cad6;
    margin-bottom: 0.3rem;
}

.blog-search input {
    width: min(420px, 90vw);
    background: #0f131a;
    color: #fff;
    border: 1px solid #273040;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.blog-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-filter-rows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-chip {
    background: #0f131a;
    color: #d5dbea;
    border: 1px solid #283246;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip span {
    font-size: 0.8rem;
    color: #8fa2c0;
}

.filter-chip.active {
    background: rgba(240, 180, 51, 0.18);
    border-color: rgba(240, 180, 51, 0.4);
    color: #f4e4c2;
}

.filter-chip.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.pill--soft {
    background: rgba(111, 183, 255, 0.12);
    border-color: rgba(111, 183, 255, 0.35);
    color: #cde5ff;
}

.blog-post {
    background: #0c0f14;
    border: 1px solid #1f252e;
    border-radius: 14px;
    padding: 1.5rem;
}

.post-head {
    margin-bottom: 1rem;
}

.post-title {
    margin: 0.3rem 0 0.2rem;
}

.post-meta {
    color: #8fa2c0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.post-body p {
    color: #d7deec;
    line-height: 1.7;
}

.comments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.comment {
    background: #0f131a;
    border: 1px solid #1f252e;
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.comment__meta {
    display: flex;
    justify-content: space-between;
    color: #c3cad6;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.comment__body {
    color: #e7ebf3;
    white-space: pre-wrap;
}

.comment-form {
    background: #0c0f14;
    border: 1px solid #1f252e;
    border-radius: 10px;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    gap: 0.35rem;
}

.form-row input,
.form-row textarea {
    background: #0f131a;
    color: #fff;
    border: 1px solid #273040;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.muted {
    color: #9aa5b8;
}

.muted.small {
    font-size: 0.9rem;
}

.comment-form .muted.small.error {
    color: #ff8e8e;
}

/* ========== HERO ========== */

.hero {
    position: relative;
    /* less padding so it doesn’t get shoved down */
    padding: 2rem 1.5rem 3rem;
    /* fill the viewport minus the fixed header height */
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;   /* vertical center */
    justify-content: center; /* horizontal center */
}


/* Fade-up animation */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spade *is* the hero card */
.hero-inner {
    width: min(1150px, 95vw);      /* how wide the card can get */
    height: min(1000px, 120vh);    /* let it fill more vertical space */
    margin: 0 auto;
    padding: 3rem 2.5rem 3rem;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-image: url("../img/logo_standto_hero.png");
    background-size: 100%;         /* card fills nicely */
    background-repeat: no-repeat;
    background-position: center 50%;

    position: relative;
    z-index: 10;
    animation: heroFadeUp 0.7s ease-out 0.1s both;
}

.hero-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #f4f4f4;
    margin-bottom: 0.4rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.2rem);
    margin: 0.25rem 0 0.5rem;
    color: #f8f9fc;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-sub {
    font-size: 1.05rem;
    margin-top: 0.4rem;
    color: #f7f7f7;
    letter-spacing: 0.08em;
}

.hero-desc {
    max-width: 34rem;
    margin: 1.3rem auto 1.8rem;
    color: #fbecec;
    font-size: 0.96rem;
    line-height: 1.6;
}

/* Button anchored into the spade stem */
.hero-actions {
    position: absolute;
    left: 50%;
    bottom:-7.5%;          /* tweak this to sit perfectly in the stem */
    transform: translateX(-50%);

    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0;        /* no normal-flow margin */
}

/* ========== Buttons ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.05s ease,
        box-shadow 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: #f03333;
    border-color: #f03333;
    color: #16181d;
    font-weight: 600;
}

.btn-primary:hover {
    background: #ffcb57;
    border-color: #ffcb57;
    box-shadow: 0 8px 25px rgba(240, 180, 51, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: #523939;
    color: #dce3f0;
}

.btn-outline:hover {
    border-color: #f0b433;
    color: #ffffff;
}

.btn-secondary {
    background: rgba(240, 180, 51, 0.15);
    border-color: rgba(240, 180, 51, 0.5);
    color: #f7d88a;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(240, 180, 51, 0.3);
    border-color: #f0b433;
}

.btn-tertiary {
    background: transparent;
    border-color: #2e3642;
    color: #c3cad6;
}

.btn-tertiary:hover {
    border-color: #475266;
    color: #ffffff;
}

.btn.full-width {
    width: 100%;
}

/* ========== Generic Page Layouts (About, Services, Contact, Pricing) ========== */

.page-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5f7fb;
}

.page-subtitle {
    margin-bottom: 1.5rem;
    color: #b4bdcc;
    font-size: 0.98rem;
}

/* ========== Client Portal ========== */

.hidden {
    display: none !important;
}

.portal-hero {
    background: linear-gradient(135deg, rgba(240, 180, 51, 0.12), rgba(16, 35, 52, 0.4));
    border: 1px solid rgba(240, 180, 51, 0.2);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.portal-hero h1 {
    font-size: 2.1rem;
    margin-top: 0.35rem;
    margin-bottom: 0.4rem;
}

.portal-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f0b433;
    font-weight: 700;
    font-size: 0.9rem;
}

.portal-shell {
    display: grid;
    gap: 1.25rem;
}

.portal-dashboard__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.1rem 0.5rem;
}

.portal-actions {
    display: flex;
    gap: 0.6rem;
}

.portal-muted {
    color: #a7b1c2;
    margin-top: 0.35rem;
}

.portal-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portal-card {
    background: #0c0f14;
    border: 1px solid #1f252e;
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.portal-card__header {
    margin-bottom: 0.9rem;
}

.portal-auth-switch {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.portal-auth-switch .btn {
    flex: 1;
}

.portal-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.portal-card__sub {
    color: #9eabbd;
    font-size: 0.95rem;
}

.portal-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.portal-item {
    border: 1px solid #1e2430;
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #0f131b;
}

.portal-item--stacked {
    flex-direction: column;
    align-items: stretch;
}

.portal-item__title {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.portal-item__meta {
    color: #8f9aab;
    font-size: 0.92rem;
}

.portal-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portal-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #f7d88a;
}

.status-pill {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #2e3642;
    background: #0c1017;
}

.status-pill--success {
    border-color: #27ae60;
    color: #8be1ae;
    background: rgba(39, 174, 96, 0.12);
}

.status-pill--info {
    border-color: #3a6ea5;
    color: #9bc4ef;
    background: rgba(58, 110, 165, 0.12);
}

.status-pill--warning {
    border-color: #f0b433;
    color: #f0d08b;
    background: rgba(240, 180, 51, 0.16);
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    display: block;
    color: #cbd2df;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #242b36;
    background: #0b0f16;
    color: #e3eaf5;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(240, 180, 51, 0.6);
    border-color: rgba(240, 180, 51, 0.6);
}

.form-hint {
    color: #8c97a8;
    font-size: 0.9rem;
}

.form-error {
    color: #ff9494;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

@media (max-width: 720px) {
    .portal-dashboard__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-actions {
        width: 100%;
    }

    .portal-actions .btn {
        width: 100%;
    }

    .portal-item,
    .portal-item__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-item__row .btn {
        width: 100%;
    }
}

/* Section dividers + scroll reveal base */
.section {
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.section:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* When revealed */
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #e6ebf5;
    position: relative;
}

/* Small tactical accent bar above section titles */
.section h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #f03333;
    margin-bottom: 0.4rem;
}

/* ========== Services List / Cards ========== */

.services-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    padding: 0;
    margin-top: 1.25rem;
}

.service-item {
    background: rgba(15, 19, 26, 0.9);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid #252b37;
}

.service-item h3 {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
    color: #f5f7fb;
}

.service-item p {
    font-size: 0.9rem;
    color: #b9c3d4;
}

/* ========== Contact ========== */

.contact-info p {
    margin-bottom: 0.5rem;
    color: #c3cad6;
}

/* Contact form */
.contact-form {
    margin-top: 1rem;
    max-width: 600px;
}

.form-field {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #252b37;
    background: #0b0f14;
    color: #f4f4f4;
    font: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

/* ========== Pricing Helpers ========== */

.pricing-note {
    margin-bottom: 0.75rem;
    color: #c3cad6;
    font-style: italic;
}

.pricing-link-note {
    margin-top: 0.75rem;
}

/* ========== Book Now Section ========== */

.book-now {
    padding: 4rem 1.5rem;
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid #1f252e;
    border-bottom: 1px solid #1f252e;
}

.book-now-inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.book-now h2 {
    font-size: 1.7rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-now p {
    color: #c3cad6;
    font-size: 1rem;
    max-width: 600px;
    margin: 0.75rem auto 1.5rem;
}

.book-now-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}

/* ========== Footer ========== */

footer {
    background: #070b0f;
    border-top: 1px solid #1f252e;
    padding: 1.2rem 1.5rem;
    text-align: center;
    color: #8c95a4;
    font-size: 0.85rem;
}

/* ========== About Page Layout ========== */

.about-hero {
    padding-top: 2rem;
}

.about-layout {
    display: grid;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;   /* tweak 1000–1200 to taste */
    margin: 0 auto;
}

.about-photo img {
    width: 100%;
    max-width: 320px;
    border-radius: 18px;
    display: block;
    object-fit: cover;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.about-copy p {
    color: #c3cad6;
    margin-bottom: 0.9rem;
}

/* ===== About Page Service Photo Grid ===== */

/* Grid container */
.about-photo-grid {
    margin-top: 1.6rem;
    display: grid;
    gap: 1.25rem;
}

/* Each card frame */
.about-photo-grid figure {
    background: rgba(15, 19, 26, 0.98);
    border-radius: 14px;
    border: 1px solid #252b37;
    overflow: hidden;              /* ensures rounded corners clip image */
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Image – consistent landscape, same for all four */
.about-photo-grid figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;          /* consistent landscape shape */
    object-fit: cover;
    transform-origin: center;
}

/* Caption */
.about-photo-grid figcaption {
    padding: 0.6rem 0.85rem 0.75rem;
    font-size: 0.82rem;
    color: #b9c3d4;
    /* fixed caption box so card bottoms are uniform */
    height: 3.9em;                 /* ~3 lines of text at this font size */
    display: flex;
    align-items: flex-start;
}

/* ========== Contact Form – stacked & centered ========== */

.contact-form {
    margin-top: 1.5rem;
    max-width: 480px;              /* not full-width on desktop */
    margin-inline: auto;           /* center the form */
    display: flex;
    flex-direction: column;        /* stack everything vertically */
    gap: 0.75rem;                  /* space between fields */
}

.form-banner {
    border: 1px solid rgba(240, 180, 51, 0.25);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    background: rgba(12, 15, 20, 0.9);
    color: #f4f4f4;
}

.banner--success {
    border-color: rgba(90, 190, 140, 0.55);
    background: rgba(40, 90, 70, 0.35);
    color: #d8ffe8;
}

.form-banner[hidden] {
    display: none !important;
}

.banner--error {
    border-color: rgba(255, 80, 80, 0.55);
    background: rgba(255, 80, 80, 0.08);
    color: #ffb3b3;
}

.field-error {
    margin-top: 0.25rem;
    color: #ff9b9b;
    font-size: 0.85rem;
    min-height: 1.1em;
}

.input-error {
    border-color: #ff7878 !important;
    box-shadow: 0 0 0 1px rgba(255, 120, 120, 0.2);
}

.contact-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Inputs/selects/textarea all full width in the column */
.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;

    background: #0b0f14;
    color: #f4f4f4;
    border: 1px solid #252b37;
    border-radius: 6px;
    font: inherit;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Submit button */
.contact-form button[type="submit"] {
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.55rem 1.4rem;
    background: #f03333;           /* your brand red */
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease,
                box-shadow 0.15s ease;
}

.contact-form button[type="submit"].is-loading,
.contact-form button[type="submit"]:disabled {
    background: #8a1a1a;
    cursor: not-allowed;
    opacity: 0.85;
}

.contact-form button[type="submit"].is-loading::after {
    content: '';
    display: inline-block;
    margin-left: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-form button[type="submit"]:hover {
    background: #ffcb57;
    box-shadow: 0 8px 20px rgba(240, 180, 51, 0.45);
}

.contact-form button[type="submit"]:active {
    transform: translateY(1px);
}

/* Small tweak for very small screens */
@media (max-width: 600px) {
    .contact-form {
        max-width: 100%;
    }
}


/* ========== Responsive ========== */

@media (max-width: 767px) {
    #site-header nav {
        align-items: center;
        padding: 0.75rem 1.5rem;
        max-width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-right {
        position: absolute;
        top: 56px;
        right: 0;
        left: 0;
        padding: 0.75rem 1.5rem 1rem;
        background: rgba(7, 11, 15, 0.97);
        border-bottom: 1px solid #1f252e;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        display: none;
    }

    .nav-right.open {
        display: flex;
    }
}

@media (min-width: 768px) {
    .hero-inner {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-right {
        display: flex !important;
        position: static;
        padding: 0;
        background: none;
        flex-direction: row;
        align-items: center;
        border-bottom: 0;
    }

    .nav-toggle {
        display: none;
    }

    .about-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    }

    .about-photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 1rem 1.25rem 3.5rem;   /* room under nav */
        min-height: auto;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .hero-inner {
        width: 100%;
        height: auto;
        padding:3rem 1.5rem 4rem;
        background-size: 130%;          /* spade a bit smaller than before */
        background-position: center 28%;
    }

    .hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 0.18rem;
        margin-bottom:6rem;
        margin-top:2.5rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
        margin-top: 0.75rem;
    }

    .hero-sub {
        font-size: 0.95rem;
        margin-top: 0.4rem;
    }

    /* description goes BELOW the spade */
    .hero-desc {
        font-size: 0.9rem;
        max-width: 22rem;
        margin: 10rem auto 0;     /* pushes it under the bottom of the spade */
        text-align: center;
    }

    /* button sits under the description, not absolutely positioned */
    .hero-actions {
        position: static;
        transform: none;
        margin: 1.75rem auto 0;
        display: flex;
        justify-content: center;
    }
}

/* ===== HIDE SCROLLBARS GLOBAL ===== */

/* Chrome, Edge, Safari, Brave */
*::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
}

/* Firefox */
html,
body {
    scrollbar-width: none;    /* hide scrollbar */
    -ms-overflow-style: none; /* old Edge/IE */
}