/*
Theme Name: Sargeant Solutions
Author: Billy Sargeant
Version: 2.0.0
*/

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
    --black:      #0C0C0C;
    --dark:       #141414;
    --dark-mid:   #1A1A1A;
    --border:     #2A2A2A;
    --border-mid: #3A3A3A;
    --red:        #C8202A;
    --red-dark:   #9E1820;
    --white:      #FFFFFF;
    --grey:       #777777;
    --grey-light: #BBBBBB;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'Inter', sans-serif;
    --max-width:  1160px;
    --transition: 0.18s ease;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.15rem; letter-spacing: 0.06em; }
h5 { font-size: 0.75rem; letter-spacing: 0.16em; color: var(--grey); }

p { color: var(--grey-light); }
p + p { margin-top: 1.1rem; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

section { padding: 100px 0; }

/* ─── Rule ───────────────────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--border); }

/* ─── Tagline Bar ────────────────────────────────────────── */
.tagline-bar {
    background: var(--red);
    padding: 0;
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tagline-bar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    width: 100%;
}

.tagline-bar span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    padding: 0 28px;
    border-right: 1px solid rgba(255,255,255,0.25);
    height: 48px;
    display: flex;
    align-items: center;
}

.tagline-bar span.accent { color: var(--white); font-size: 0.95rem; }
.tagline-bar span:last-child { border-right: none; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 14px 36px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--border-mid);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-white {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(12,12,12,0.96);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.1;
}

.logo-sub {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey);
    display: block;
    margin-top: 3px;
}

.logo-divider {
    width: 1px;
    height: 36px;
    background: var(--border-mid);
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
}

.site-nav a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey);
    padding: 10px 18px;
    border-right: 1px solid var(--border);
    display: block;
    transition: all var(--transition);
}

.site-nav a:hover,
.site-nav .current-menu-item a {
    color: var(--white);
    background: var(--dark);
}

.site-nav .nav-cta a {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.site-nav .nav-cta a:hover { background: var(--red-dark); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-mid);
    cursor: pointer;
    padding: 8px 10px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200,32,42,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-main {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 120px 0 60px;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--red);
}

.hero h1 { margin-bottom: 28px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--red); }

.hero-sub {
    font-size: 1.1rem;
    color: var(--grey-light);
    margin-bottom: 44px;
    max-width: 52ch;
}

.hero-actions { display: flex; gap: 0; }
.hero-actions .btn { border-right-width: 0; }
.hero-actions .btn:last-child { border-right-width: 2px; }

.hero-meta {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    gap: 48px;
}

.hero-meta-item {}
.hero-meta-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 4px;
}
.hero-meta-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
}

/* ─── Section Label ──────────────────────────────────────── */
.section-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--red);
    display: block;
}

.section-heading { margin-bottom: 56px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p { font-size: 1.05rem; max-width: 60ch; }

/* ─── Services Grid ──────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--border);
}

.service-card {
    padding: 48px 44px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: background var(--transition);
}

.service-card:nth-child(2n) { border-right: none; }
.service-card:nth-last-child(-n+2) { border-bottom: none; }

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--red);
    transition: width 0.35s ease;
}

.service-card:hover { background: var(--dark); }
.service-card:hover::after { width: 100%; }

.service-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--red);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: var(--white);
}

.service-card p { font-size: 0.95rem; color: var(--grey); max-width: none; }

.service-number {
    position: absolute;
    top: 28px; right: 32px;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    user-select: none;
}

/* ─── About Strip ────────────────────────────────────────── */
.about-strip {
    background: var(--dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.about-strip h2 { margin-bottom: 24px; }
.about-strip p { font-size: 1rem; }
.about-strip .btn { margin-top: 36px; }

.capability-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
}

.capability-item {
    padding: 24px 28px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grey-light);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition);
}

.capability-item:hover { background: var(--dark-mid); color: var(--white); }
.capability-item:nth-child(2n) { border-right: none; }
.capability-item:nth-last-child(-n+2) { border-bottom: none; }

.capability-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red);
    flex-shrink: 0;
}

/* ─── CTA Strip ──────────────────────────────────────────── */
.cta-strip {
    background: var(--red);
    padding: 0;
}

.cta-strip-inner {
    display: flex;
    align-items: stretch;
    min-height: 180px;
}

.cta-strip-text {
    flex: 1;
    padding: 48px 60px 48px 0;
    border-right: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-strip h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.8rem); }
.cta-strip p { color: rgba(255,255,255,0.75); margin-top: 8px; max-width: 55ch; }

.cta-strip-action {
    display: flex;
    align-items: center;
    padding: 48px 0 48px 60px;
    flex-shrink: 0;
}

/* ─── Page Hero ──────────────────────────────────────────── */
.page-hero {
    padding-top: 140px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
    background: var(--dark);
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; max-width: 60ch; }

/* ─── About Page ─────────────────────────────────────────── */
.about-body-text p { font-size: 1.05rem; }
.about-body-text .btn { margin-top: 36px; }

.about-credentials {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
}

.credential-item {
    padding: 36px 32px;
    border-right: 1px solid var(--border);
}

.credential-item:last-child { border-right: none; }

.credential-item h5 { margin-bottom: 12px; }

.credential-item p {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    max-width: none;
}

/* ─── Services Page ──────────────────────────────────────── */
.services-detail {
    border: 1px solid var(--border);
}

.service-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.service-row:last-child { border-bottom: none; }
.service-row:hover { background: var(--dark); }

.service-row-label {
    padding: 48px 40px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-row-label h3 { font-size: 1.4rem; }

.service-row-body { padding: 48px 44px; }
.service-row-body p { font-size: 0.98rem; margin-bottom: 0; }

.service-tags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border: 1px solid var(--border-mid);
    color: var(--grey);
}

/* ─── Contact Page ───────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 80px;
    align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 0; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.form-row .form-group:first-child {
    border-right: 1px solid var(--border);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group:not(.form-row .form-group) {
    border-bottom: 1px solid var(--border);
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--grey);
    padding: 16px 24px 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 8px 24px 16px;
    outline: none;
    width: 100%;
    transition: background var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { background: var(--dark); }

.form-group textarea { resize: vertical; min-height: 160px; }
.form-group select option { background: var(--dark); }

.contact-form-wrap {
    border: 1px solid var(--border);
}

.form-submit {
    padding: 24px;
    border-top: 1px solid var(--border);
    background: var(--dark);
}

.form-notice {
    padding: 14px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.form-notice.success { background: rgba(34,197,94,0.08); color: #86efac; border-color: rgba(34,197,94,0.2); }
.form-notice.error   { background: rgba(200,32,42,0.08);  color: #fca5a5; border-color: rgba(200,32,42,0.2); }

.contact-aside {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
}

.contact-card {
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
}

.contact-card:last-child { border-bottom: none; }

.contact-card h5 { margin-bottom: 10px; }

.contact-card p {
    font-size: 0.92rem;
    color: var(--grey-light);
    max-width: none;
}

.contact-card a { color: var(--white); font-weight: 600; }
.contact-card a:hover { color: var(--red); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.footer-col {
    padding: 56px 40px;
    border-right: 1px solid var(--border);
}

.footer-col:last-child { border-right: none; }

.footer-brand .site-logo { margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; color: var(--grey); max-width: 36ch; }

.footer-col h5 { margin-bottom: 20px; }

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
    font-size: 0.9rem;
    color: var(--grey);
    transition: color var(--transition);
}

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

.footer-bottom {
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--grey);
    max-width: none;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .about-strip-inner,
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }

    .contact-aside { position: static; }
    .about-credentials { grid-template-columns: 1fr; }
    .credential-item { border-right: none; border-bottom: 1px solid var(--border); }
    .credential-item:last-child { border-bottom: none; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card { border-right: none; }
    .service-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .service-card:last-child { border-bottom: none; }

    .footer-top { grid-template-columns: 1fr; }
    .footer-col { border-right: none; border-bottom: 1px solid var(--border); padding: 36px; }
    .footer-col:last-child { border-bottom: none; }

    .service-row { grid-template-columns: 1fr; }
    .service-row-label { border-right: none; border-bottom: 1px solid var(--border); }

    .cta-strip-inner { flex-direction: column; }
    .cta-strip-text { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 40px 0; }
    .cta-strip-action { padding: 32px 0; }
}

@media (max-width: 640px) {
    section { padding: 64px 0; }
    .nav-toggle { display: flex; }
    .site-nav { display: none; position: fixed; inset: 72px 0 0; background: var(--black); border-top: 1px solid var(--border); overflow-y: auto; }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav a { border-right: none; border-bottom: 1px solid var(--border); padding: 18px 24px; }
    .hero-actions { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .form-row .form-group:first-child { border-right: none; border-bottom: 1px solid var(--border); }
    .capability-list { grid-template-columns: 1fr; }
    .capability-item { border-right: none; }
    .capability-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .footer-bottom { flex-direction: column; align-items: flex-start; padding: 24px; }
    .hero-meta { flex-wrap: wrap; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
