/*
Theme Name: Singularity Connection
Theme URI: https://singularity-connection.com/
Author: Singularity Connection
Author URI: https://singularity-connection.com/
Description: 合同会社Singularity Connectionの公式コーポレートテーマ。モノトーン基調＋ゴールドアクセント、Serif見出しのプレミアムデザイン。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: singularity-connection
Tags: corporate, business, monochrome, serif, responsive, custom-menu, featured-images
*/

/* ============================================
   Design tokens
============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Palette — A案 monochrome + gold */
    --bg: #ffffff;
    --bg-soft: #fbfaf7;
    --bg-cream: #f5f3ee;
    --bg-dark: #0f0f10;
    --bg-darker: #070708;
    --text: #1a1a1a;
    --text-body: #2a2a2a;
    --text-muted: #6b6b6b;
    --text-subtle: #9a9a9a;
    --border: rgba(15, 15, 16, 0.08);
    --border-strong: rgba(15, 15, 16, 0.18);
    --gold: #b8941f;
    --gold-hover: #8f7118;
    --gold-soft: rgba(184, 148, 31, 0.12);

    /* Typography */
    --font-serif: "Cormorant Garamond", "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
    --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", system-ui, sans-serif;

    /* Scale */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4rem;
    --space-7: 6rem;
    --space-8: 8rem;

    --max-narrow: 780px;
    --max-default: 1120px;
    --max-wide: 1360px;

    --radius: 2px;
    --radius-lg: 4px;

    --transition: 260ms cubic-bezier(0.2, 0.7, 0.3, 1);

    --header-height: 80px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

/* ============================================
   Typography
============================================ */
.heading,
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.01em;
    line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
h4 { font-size: 1.125rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.02em; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
}

.lede {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 52ch;
}

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

/* ============================================
   Layout primitives
============================================ */
.container {
    width: 100%;
    max-width: var(--max-default);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container--narrow { max-width: var(--max-narrow); }
.container--wide { max-width: var(--max-wide); }

.section {
    padding: var(--space-8) 0;
}

.section--tight { padding: var(--space-6) 0; }

.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--bg-cream); }

.section--dark {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.9);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #ffffff; }

.section--dark .lede { color: rgba(255, 255, 255, 0.7); }
.section--dark .eyebrow { color: var(--gold); }

.section-heading {
    text-align: center;
    margin-bottom: var(--space-6);
}

.section-heading .eyebrow { margin-bottom: var(--space-2); }
.section-heading h2 { margin-bottom: var(--space-3); }
.section-heading .lede { margin: 0 auto; }

.rule {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin: var(--space-3) auto;
    border: 0;
}

/* ============================================
   Header
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
}

.site-header__inner {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 var(--space-4);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.site-brand {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text);
    line-height: 1;
}

.site-brand small {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-4);
}

.primary-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
    position: relative;
    padding: 8px 0;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text);
    padding: 10px 22px;
    border: 1px solid var(--text);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}

.nav-cta:hover {
    background: var(--text);
    color: #fff;
}

.mobile-toggle {
    display: none;
    width: 32px;
    height: 32px;
    position: relative;
}

.mobile-toggle span {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 1px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition), top var(--transition);
}

.mobile-toggle span:nth-child(1) { top: 11px; }
.mobile-toggle span:nth-child(2) { top: 16px; }
.mobile-toggle span:nth-child(3) { top: 21px; }

.mobile-toggle.is-active span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

/* Push content below fixed header */
.site-main { padding-top: var(--header-height); }

/* ============================================
   Buttons
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
}

.btn--primary {
    background: var(--text);
    color: #ffffff;
    border-color: var(--text);
}
.btn--primary:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #ffffff;
}

.btn--gold {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
}
.btn--gold:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}
.btn--ghost:hover {
    background: var(--text);
    color: #ffffff;
}

.btn--ghost-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost-light:hover {
    background: #ffffff;
    color: var(--text);
    border-color: #ffffff;
}

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

/* ============================================
   Page Hero
============================================ */
.page-hero {
    padding: calc(var(--header-height) + 100px) 0 var(--space-7);
    background: var(--bg-soft);
    text-align: center;
}

.page-hero__eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.page-hero h1 { margin-bottom: var(--space-2); }

.page-hero__lede {
    max-width: 620px;
    margin: var(--space-2) auto 0;
    color: var(--text-muted);
}

/* ============================================
   Home hero
============================================ */
.home-hero {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-7);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(184, 148, 31, 0.10), transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(184, 148, 31, 0.06), transparent 55%),
        linear-gradient(180deg, #0a0a0b 0%, #151517 100%);
    color: #ffffff;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.home-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-3);
}

.home-hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    color: #ffffff;
    margin-bottom: var(--space-3);
    max-width: 880px;
    line-height: 1.2;
}

.home-hero__lede {
    font-size: 1.075rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin-bottom: var(--space-5);
}

.home-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.home-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: var(--space-3);
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    pointer-events: none;
}

/* ============================================
   Services grid (home)
============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    padding: var(--space-5) var(--space-4);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    transition: background var(--transition);
}

.service-card:hover { background: var(--bg-soft); }

.service-card__icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.service-card__num {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.2em;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
}

.service-card p { color: var(--text-muted); margin: 0; }

.service-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-2);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    align-self: flex-start;
}

.service-card__more::after {
    content: "→";
    transition: transform var(--transition);
}

.service-card__more:hover::after { transform: translateX(4px); }

/* ============================================
   Stats
============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    text-align: center;
}

.stat__value {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat__value--text {
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.08em;
    letter-spacing: 0.02em;
}

.stat__big {
    font-size: 2.8em;
    line-height: 1;
    font-weight: 500;
}

.stat__label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.section--dark .stat__label { color: rgba(255, 255, 255, 0.55); }

/* ============================================
   CTA band
============================================ */
.cta-band {
    text-align: center;
    padding: var(--space-7) 0;
    background: var(--bg-cream);
}

.cta-band h2 { margin-bottom: var(--space-2); }
.cta-band p { color: var(--text-muted); margin-bottom: var(--space-4); }
.cta-band__actions { display: flex; justify-content: center; gap: var(--space-2); flex-wrap: wrap; }

/* ============================================
   About — company table
============================================ */
.company-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--border);
}

.company-table th,
.company-table td {
    padding: var(--space-3) var(--space-2);
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-size: 0.95rem;
}

.company-table th {
    width: 220px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
    background: transparent;
}

.company-table td { color: var(--text-body); }

.company-table td img.repname {
    height: 42px;
    width: auto;
}

/* Message from CEO */
.ceo-message {
    max-width: var(--max-narrow);
    margin: 0 auto;
}

.ceo-message blockquote {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text);
    border-left: 2px solid var(--gold);
    padding-left: var(--space-3);
    margin-bottom: var(--space-4);
}

.ceo-message__body p {
    color: var(--text-body);
    margin-bottom: var(--space-3);
}

.ceo-signature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.ceo-signature__role {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ceo-signature img {
    height: 44px;
    width: auto;
}

/* ============================================
   Business sections
============================================ */
.biz-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-7) 0;
    border-bottom: 1px solid var(--border);
}

.biz-row:last-child { border-bottom: 0; }
.biz-row--reverse { direction: rtl; }
.biz-row--reverse > * { direction: ltr; }

.biz-row__meta {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.biz-row h2 { margin-bottom: var(--space-3); }
.biz-row p { color: var(--text-muted); }

.biz-row ul {
    list-style: none;
    margin: var(--space-3) 0;
}

.biz-row ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-body);
}

.biz-row ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 12px;
    height: 1px;
    background: var(--gold);
}

.biz-row__visual {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-serif);
}

.biz-row__visual--livers { background: linear-gradient(135deg, #0f0f10 0%, #2a2a2d 100%); }
.biz-row__visual--shop   { background: linear-gradient(135deg, #1a1510 0%, #2d2418 100%); }
.biz-row__visual--beauty { background: linear-gradient(135deg, #201820 0%, #2c2028 100%); }
.biz-row__visual--web    { background: linear-gradient(135deg, #101820 0%, #1c2532 100%); }

.biz-row__visual::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(184, 148, 31, 0.35);
    border-radius: var(--radius);
    pointer-events: none;
}

.biz-row__visual-label {
    position: relative;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.4);
}

.biz-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

/* ============================================
   Contact
============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-6);
    align-items: start;
}

.contact-form-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
}

.contact-form-wrap h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
}

.form-field { margin-bottom: var(--space-3); }
.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

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

.form-required { color: var(--gold); margin-left: 4px; }

.form-agree {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.form-agree input { margin-top: 5px; }

.contact-info {
    font-size: 0.95rem;
}

.contact-info__block { margin-bottom: var(--space-4); }
.contact-info__block h3 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-1);
}

.contact-info__block p { color: var(--text-body); }

/* FAQ */
.faq { max-width: var(--max-narrow); margin: 0 auto; }
.faq-item {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: 0; }

.faq-item__q {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 8px;
}

.faq-item__q::before {
    content: "Q.";
    color: var(--gold);
    margin-right: 8px;
}

.faq-item__a {
    color: var(--text-muted);
}

.faq-item__a::before {
    content: "A.";
    color: var(--gold);
    margin-right: 8px;
    font-weight: 600;
}

/* Map */
.map-embed {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
    filter: grayscale(0.15) contrast(1.02);
}

/* ============================================
   Form feedback
============================================ */
.form-message {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-top: var(--space-3);
    display: none;
}

.form-message.is-success {
    display: block;
    background: #edf6ef;
    color: #1a5a2b;
    border-left: 3px solid #2f8a48;
}

.form-message.is-error {
    display: block;
    background: #fbecec;
    color: #842424;
    border-left: 3px solid #b33a3a;
}

/* ============================================
   Footer
============================================ */
.site-footer {
    background: var(--bg-darker);
    color: rgba(255,255,255,0.7);
    padding: var(--space-7) 0 var(--space-4);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.site-footer p, .site-footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.8; }
.site-footer a:hover { color: var(--gold); }

.footer-brand { font-family: var(--font-serif); font-size: 1.4rem; color: #ffffff; letter-spacing: 0.04em; margin-bottom: var(--space-2); }
.footer-brand small { display: block; font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 6px; }

.footer-list { list-style: none; }
.footer-list li { margin-bottom: 8px; }

.social-row {
    display: flex;
    gap: 10px;
    margin-top: var(--space-2);
}

.social-row a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.social-row a:hover { border-color: var(--gold); color: var(--gold); }

.social-row svg { width: 16px; height: 16px; }

.site-footer__bottom {
    text-align: center;
    padding-top: var(--space-4);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.08em;
}

/* ============================================
   Reveal animation
============================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
============================================ */
@media (max-width: 960px) {
    .services-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
    .biz-row { grid-template-columns: 1fr; direction: ltr; }
    .biz-row--reverse { direction: ltr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }

    .section { padding: var(--space-6) 0; }
    .page-hero { padding: calc(var(--header-height) + 60px) 0 var(--space-5); }

    .primary-nav ul,
    .primary-nav .nav-cta { display: none; }

    .mobile-toggle { display: block; }

    .primary-nav.is-open {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        background: #ffffff;
        border-top: 1px solid var(--border);
        padding: var(--space-3) var(--space-4);
        display: flex;
        flex-direction: column;
    }

    .primary-nav.is-open ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .primary-nav.is-open ul li {
        border-bottom: 1px solid var(--border);
    }

    .primary-nav.is-open ul a {
        display: block;
        padding: 14px 0;
    }

    .primary-nav.is-open .nav-cta {
        display: inline-flex;
        margin-top: var(--space-2);
        justify-content: center;
    }

    .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-4); }

    .company-table th { width: 130px; font-size: 0.85rem; }
    .company-table th, .company-table td { padding: var(--space-2) var(--space-1); font-size: 0.9rem; }

    .home-hero { min-height: 80vh; }
    .btn { min-width: 0; width: 100%; }
    .home-hero__ctas .btn { width: 100%; }
}

/* ============================================
   Accessibility helpers
============================================ */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

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