/* ===== OREGON AERIAL — SHARED STYLES ===== */

:root {
    --bg: #0B1220;
    --surface: #111A2B;
    --surface-elevated: #162034;
    --accent: #F59E0B;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --accent-dim: #D97706;
    --text: #93A3B8;
    --text-bright: #C7D2E0;
    --white: #ffffff;
    --border: #1E2A3F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.3rem 8%;
    background: rgba(11, 18, 32, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 3px;
}
.logo span { color: var(--accent); }

/* strip browser default link styling on the logo anchor (blue underline on
   tap, red/purple on visit, tap highlight) — the wordmark is not a text link */
header > a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}
header > a:hover,
header > a:visited {
    text-decoration: none;
    color: inherit;
}

.header-tag {
    font-size: 0.62rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent-dim);
    padding: 5px 12px;
    border-radius: 2px;
}

.header-contact { font-size: 0.8rem; color: var(--text-bright); letter-spacing: 1px; }
.header-contact a { color: var(--accent); text-decoration: none; }

.header-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.header-nav a {
    font-size: 0.72rem;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 3px;
    transition: 0.2s;
}
.header-nav a:hover { color: var(--accent); border-color: var(--accent-dim); }
.header-nav a.active { color: var(--accent); border-color: var(--accent-dim); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 8% 10vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background-image: url('assets/hero_band.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0;
    filter: brightness(1.04) saturate(1.1) contrast(1.03);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,18,32,0.15) 0%, rgba(11,18,32,0) 35%, rgba(11,18,32,0.55) 100%);
    z-index: 1;
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    z-index: 2;
}

.hero-content { position: relative; z-index: 10; max-width: 780px; }

.hero-label {
    display: inline-block;
    font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; color: var(--accent);
    margin-bottom: 1.5rem; padding: 8px 16px;
    border: 1px solid rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.05);
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900; color: var(--white); text-transform: uppercase; letter-spacing: 2px;
    line-height: 1.1; margin-bottom: 1.75rem;
}
.hero h1 .accent { color: var(--accent); }

.hero-bio {
    font-size: 1rem; font-weight: 300; line-height: 1.9; color: var(--text-bright);
    border-left: 3px solid var(--accent); padding-left: 24px; margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-cta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero-trust span {
    font-size: 0.66rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-bright);
    border-left: 2px solid var(--accent); padding-left: 12px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block; padding: 1rem 2.2rem; background: var(--accent); color: var(--bg);
    text-decoration: none; font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 2px; transition: 0.3s; border: none; cursor: pointer;
}
.btn:hover { background: #fff; box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent-dim); }
.btn-outline:hover { background: rgba(245, 158, 11, 0.1); box-shadow: 0 0 30px var(--accent-glow); }

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-dim) 50%, transparent 100%);
    margin: 0 8%; opacity: 0.4;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; color: var(--white);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem;
}
.section-header p { font-size: 0.95rem; color: var(--text); max-width: 640px; margin: 0 auto; }

/* ===== STANDARD / ACCURACY ===== */
.standard-section { padding: 9vh 8%; }
.standard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: start; }
.standard-text p { font-size: 0.95rem; color: var(--text-bright); line-height: 1.9; margin-bottom: 1.2rem; }
.standard-text strong { color: var(--white); }
.spec-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.spec-item {
    background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
    border-radius: 4px; padding: 1.1rem 1.3rem;
}
.spec-item .spec-num { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--accent); }
.spec-item .spec-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text); margin-top: 4px; }

/* ===== SERVICE BRANCH CARDS (home page teasers) ===== */
.services-section { padding: 9vh 8%; }

.branch-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.branch-card:hover { border-color: var(--accent-dim); box-shadow: 0 0 20px var(--accent-glow); }

.branch-card-head {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 200px;
}

.branch-card-img { position: relative; overflow: hidden; }
.branch-card-img img { width: 100%; height: 100%; object-fit: cover; max-height: 220px; position: absolute; inset: 0; }
.branch-card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 55%, var(--surface) 100%);
}

.branch-card-title {
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.branch-card-title .kicker {
    font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
    margin-bottom: 0.75rem;
}
.branch-card-title h3 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 900; color: var(--white); text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.branch-card-title .sub {
    font-size: 0.88rem; color: var(--text-bright); line-height: 1.7; margin-bottom: 0.75rem;
}
.branch-card-title .card-spec {
    font-size: 0.78rem; color: var(--accent); line-height: 1.6; margin-bottom: 1rem;
}
.branch-card-title .card-link {
    font-size: 0.72rem; color: var(--accent); text-decoration: none;
    text-transform: uppercase; letter-spacing: 2px;
    border: 1px solid var(--accent-dim); padding: 0.5rem 1.2rem;
    transition: 0.2s; align-self: flex-start;
}
.branch-card-title .card-link:hover { background: rgba(245, 158, 11, 0.1); }

/* ===== FULL BRANCH PAGE (service detail pages) ===== */
.branch {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 3rem;
}

.branch-head {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 200px;
}

.branch-img { position: relative; overflow: hidden; }
.branch-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.branch-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 55%, var(--surface) 100%);
}

.branch-title { padding: 2.5rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.branch-title .kicker {
    font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
    margin-bottom: 0.75rem;
}
.branch-title h3 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900; color: var(--white); text-transform: uppercase; letter-spacing: 1px;
}
.branch-title .sub { font-size: 0.9rem; color: var(--text-bright); margin-top: 0.75rem; line-height: 1.8; }
.branch-spec { margin-top: 0.9rem; font-size: 0.85rem; color: var(--accent); line-height: 1.7; }

.branch-body { padding: 1.5rem 2.5rem 2.5rem; border-top: 1px solid var(--border); }

.branch-body h4 {
    font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 700;
    color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin: 1.5rem 0 0.75rem;
}

.svc-list { list-style: none; }
.svc-list li {
    font-size: 0.88rem; color: var(--text); padding: 0.5rem 0;
    display: flex; gap: 0.9rem; align-items: flex-start;
}
.svc-list li::before { content: '▸'; color: var(--accent); font-size: 0.8rem; flex-shrink: 0; }

.branch-prose { font-size: 0.95rem; color: var(--text-bright); line-height: 1.9; margin-bottom: 1rem; }
.branch-prose strong { color: var(--white); font-weight: 700; }

.branch-cta {
    display: inline-block; margin-top: 1.25rem; color: var(--accent); text-decoration: none;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px;
    border: 1px solid var(--accent-dim); padding: 0.6rem 1.3rem; transition: 0.3s;
}
.branch-cta:hover { background: rgba(245, 158, 11, 0.1); }

/* ===== PROCESS ===== */
.process-section { padding: 9vh 8%; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.process-step {
    border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 2rem;
}
.process-step .step-num {
    font-family: 'Montserrat', sans-serif; font-size: 0.7rem; font-weight: 700; color: var(--accent);
    letter-spacing: 3px; margin-bottom: 1rem;
}
.process-step h3 {
    font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--white);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.9rem;
}
.process-step p { font-size: 0.9rem; color: var(--text); line-height: 1.8; }

/* ===== ORTHOMOSAIC SHOWCASE ===== */
.ortho-section { padding: 9vh 8%; }
.ortho-wrap {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start;
}
.ortho-frame {
    border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface);
    cursor: zoom-in;
}
.ortho-frame img { width: 100%; display: block; max-height: 70vh; object-fit: cover; object-position: center top; }
.ortho-cap {
    padding: 0.9rem 1.2rem; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text); border-top: 1px solid var(--border);
}
.ortho-info h3 {
    font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 900; color: var(--white);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.2rem;
}
.ortho-info p { font-size: 0.95rem; color: var(--text-bright); line-height: 1.9; margin-bottom: 1.2rem; }

.accuracy-box {
    background: var(--surface-elevated); border-left: 3px solid var(--accent);
    padding: 1.3rem 1.4rem; margin-top: 1.5rem; border-radius: 0 4px 4px 0;
}
.accuracy-box p { font-size: 0.9rem; color: var(--text); line-height: 1.8; margin: 0; }

/* ===== 3D MODEL VIEWER ===== */
.models-section { padding: 9vh 8%; }
.models-section .section-header { margin-bottom: 2.5rem; }

.models-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.model-card {
    border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface);
    margin-bottom: 0;
}
.model-viewer-wrap {
    width: 100%;
    background: #111A2B;
    border-bottom: 1px solid var(--border);
}
.model-viewer {
    width: 100%;
    height: 420px;
    background: #111A2B;
    border: none;
    border-radius: 0;
    cursor: grab;
}
.model-card:hover .model-viewer { cursor: grabbing; }

.model-cap {
    padding: 0.9rem 1.2rem; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text); border-top: 1px solid var(--border);
}
.model-cap .model-badge {
    color: var(--accent); font-weight: 700;
}
.model-cap .model-desc { color: var(--text); font-weight: 400; }

/* ===== ABOUT ===== */
.about-section { padding: 9vh 8%; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text h2 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900;
    color: var(--white); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem;
}
.about-text p { font-size: 0.95rem; color: var(--text-bright); margin-bottom: 1.5rem; line-height: 1.9; }
.about-list { list-style: none; margin-top: 2rem; }
.about-list li {
    font-size: 0.85rem; color: var(--text); padding: 0.8rem 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 1rem;
}
.about-list li::before { content: '▸'; color: var(--accent); font-size: 0.8rem; }

.about-side {
    background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2.5rem;
}
.about-side h3 {
    font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--white);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem;
}
.about-side .stat { margin-bottom: 1.5rem; }
.about-side .stat-number {
    font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 900; color: var(--accent);
}
.about-side .stat-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text); margin-top: 4px;
}

/* ===== CONTACT ===== */
.contact-section {
    padding: 9vh 8%; text-align: center; background: var(--surface); border-top: 1px solid var(--border);
}
.contact-section h2 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900;
    color: var(--white); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem;
}
.contact-section p { font-size: 0.95rem; color: var(--text); max-width: 560px; margin: 0 auto 2.5rem; }
.contact-line { font-size: 0.85rem; color: var(--text-bright); margin-bottom: 0.5rem; }
.contact-line a { color: var(--accent); text-decoration: none; }

/* ===== FOOTER ===== */
footer {
    padding: 4vh 8%; text-align: center; border-top: 1px solid var(--border);
    font-size: 0.7rem; color: #5A6B85; letter-spacing: 2px; text-transform: uppercase;
}
footer .footer-accent { color: var(--accent-dim); }

/* ===== MODAL ===== */
.modal {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.92); align-items: center; justify-content: center; padding: 3vh 3vw;
}
.modal.open { display: flex; }
.modal img {
    max-width: 100%; max-height: 92vh; border-radius: 4px;
    transition: transform 0.15s ease; cursor: grab; transform-origin: center center;
}
.modal .close {
    position: absolute; top: 20px; right: 30px; color: var(--white); font-size: 2.4rem;
    cursor: pointer; line-height: 1; background: none; border: none;
}

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem; color: var(--accent); text-decoration: none;
    text-transform: uppercase; letter-spacing: 2px;
    border: 1px solid var(--accent-dim); padding: 0.5rem 1.2rem;
    transition: 0.2s; margin-bottom: 2rem;
}
.back-link:hover { background: rgba(245, 158, 11, 0.1); }

/* ===== HAMBURGER (hidden until the nav collapses) ===== */
.hamburger { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    header { padding: 0.9rem 5%; gap: 0.5rem; }
    div[style*="padding-top: 5rem"] { padding-top: 0 !important; }
    .logo { font-size: 1.15rem; letter-spacing: 2px; }
    .header-tag { display: none; }
    .header-contact { font-size: 0.75rem; margin-left: auto; }

    /* nav collapses into a hamburger panel */
    .hamburger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        background: none; border: none; cursor: pointer;
        padding: 4px 6px; min-width: 36px; order: 2;
    }
    .hamburger span {
        display: block; width: 22px; height: 2px;
        background: var(--text-bright); border-radius: 1px; transition: 0.25s;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .header-nav {
        display: none;
        order: 3; width: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        margin-top: 0.6rem; padding: 0 0 0.5rem 0;
        border-top: 1px solid var(--border);
    }
    .header-nav.open { display: flex; }
    .header-nav a {
        padding: 0.75rem 0; border: none; border-bottom: 1px solid var(--border);
        border-radius: 0; font-size: 0.8rem; letter-spacing: 1.5px; text-align: center;
    }
    .header-nav a:last-child { border-bottom: none; }
    .header-nav a:hover,
    .header-nav a.active { background: rgba(245, 158, 11, 0.07); border-color: var(--border); }
    .header-nav a.active { color: var(--accent); }

    /* hero — !important needed to beat the inline min-height on service pages */
    .hero { min-height: auto !important; padding: 4.5rem 5% 4vh !important; align-items: flex-start; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); letter-spacing: 1px; margin-bottom: 1rem; }
    .hero-bio { font-size: 0.85rem; padding-left: 14px; margin-bottom: 1.5rem; line-height: 1.7; }
    .hero-cta { flex-direction: column; gap: 0.7rem; }
    .hero-cta .btn { width: 100%; text-align: center; padding: 0.85rem 1.5rem; font-size: 0.78rem; }
    .hero-trust { flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
    .hero-trust span { font-size: 0.6rem; padding-left: 10px; }

    /* dim the sky/sun so hero text stays readable — the base scrim is lightest
       at the top (0.15), which is exactly where the bright sky/sun sits */
    .hero-bg::after {
        background: linear-gradient(180deg,
            rgba(11,18,32,0.78) 0%,
            rgba(11,18,32,0.60) 40%,
            rgba(11,18,32,0.52) 65%,
            rgba(11,18,32,0.72) 100%);
    }
    .hero h1, .hero-label, .hero-bio {
        text-shadow: 0 2px 14px rgba(0,0,0,0.95), 0 1px 3px rgba(0,0,0,0.6);
    }

    .section-divider { margin: 0 5%; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
    .section-header p { font-size: 0.82rem; }

    .standard-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .standard-text p { font-size: 0.85rem; line-height: 1.75; }
    .spec-item { padding: 0.85rem 1rem; }
    .spec-item .spec-num { font-size: 1.2rem; }

    .branch-card { margin-bottom: 1.25rem; }
    .branch-card-head { grid-template-columns: 1fr; min-height: auto; }
    .branch-card-img { height: 140px; }
    .branch-card-img::after { background: linear-gradient(180deg, transparent 50%, var(--surface) 100%); }
    .branch-card-title { padding: 1rem 1.1rem; }
    .branch-card-title .kicker { font-size: 0.58rem; letter-spacing: 2px; }
    .branch-card-title h3 { font-size: clamp(1.1rem, 5vw, 1.4rem); }
    .branch-card-title .sub { font-size: 0.8rem; margin-bottom: 0.5rem; }
    .branch-card-title .card-spec { font-size: 0.7rem; margin-bottom: 0.7rem; }
    .branch-card-title .card-link { font-size: 0.65rem; padding: 0.4rem 1rem; align-self: stretch; text-align: center; }

    .branch { margin-bottom: 2rem; }
    .branch-head { grid-template-columns: 1fr; min-height: auto; }
    .branch-img { height: 140px; }
    .branch-img::after { background: linear-gradient(180deg, transparent 50%, var(--surface) 100%); }
    .branch-title { padding: 1rem 1.1rem; }
    .branch-title .kicker { font-size: 0.58rem; }
    .branch-title h3 { font-size: clamp(1.1rem, 5vw, 1.4rem); }
    .branch-title .sub { font-size: 0.8rem; }
    .branch-spec { font-size: 0.75rem; }
    .branch-body { padding: 1rem 1.1rem 1.5rem; }
    .branch-body h4 { font-size: 0.75rem; margin: 1.2rem 0 0.5rem; }
    .svc-list li { font-size: 0.8rem; padding: 0.4rem 0; }
    .branch-prose { font-size: 0.85rem; line-height: 1.75; }

    .process-grid { grid-template-columns: 1fr; gap: 1rem; }
    .process-step { padding: 1.25rem; }
    .process-step .step-num { font-size: 0.62rem; }
    .process-step h3 { font-size: 0.95rem; }
    .process-step p { font-size: 0.8rem; }

    .ortho-wrap { grid-template-columns: 1fr; gap: 1.25rem; }
    .ortho-frame img { max-height: 50vh; }
    .ortho-info h3 { font-size: 1.1rem; }
    .ortho-info p { font-size: 0.85rem; }
    .accuracy-box { padding: 0.9rem 1rem; }
    .accuracy-box p { font-size: 0.8rem; }

    .models-grid { grid-template-columns: 1fr; gap: 1rem; }
    .model-viewer { height: 280px; }

    .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-text h2 { font-size: clamp(1.2rem, 6vw, 1.6rem); margin-bottom: 1rem; }
    .about-text p { font-size: 0.85rem; line-height: 1.75; margin-bottom: 1rem; }
    .about-list li { font-size: 0.75rem; padding: 0.6rem 0; }
    .about-side { padding: 1.5rem; }
    .about-side h3 { font-size: 0.95rem; margin-bottom: 1rem; }
    .about-side .stat-number { font-size: 1.5rem; }
    .about-side .stat-label { font-size: 0.62rem; }

    .contact-section h2 { font-size: clamp(1.2rem, 6vw, 1.6rem); }
    .contact-section p { font-size: 0.82rem; margin-bottom: 1.5rem; }
    .contact-line { font-size: 0.78rem; }

    .services-section, .standard-section, .process-section, .ortho-section,
    .about-section, .contact-section, .models-section { padding: 5vh 5%; }
}

/* ===== small phones ===== */
@media (max-width: 400px) {
    header { padding: 0.6rem 4%; }
    .logo { font-size: 0.95rem; letter-spacing: 1.5px; }
    .header-contact { font-size: 0.62rem; }
    .hero { padding: 4rem 4% 4vh !important; }
    .hero-bio { font-size: 0.78rem; padding-left: 10px; }
    .section-divider { margin: 0 4%; }
    .services-section, .standard-section, .process-section, .ortho-section,
    .about-section, .contact-section, .models-section { padding: 4vh 4%; }
    .branch-card-title { padding: 0.8rem 0.9rem; }
    .branch-body { padding: 0.8rem 0.9rem 1.2rem; }
    .branch-title { padding: 0.8rem 0.9rem; }
}
