/* One-page homepage (Nov 2026): fixed menu, smooth section scrolling, and the
   About and Contact sections that used to be separate pages.
   26 Nov 2026: colors taken from the logo (#040083) for the menu bar, buttons,
   About and Contact. */

:root {
    --op-logo: #040083;      /* logo blue: menu bar, buttons */
    --op-logo-deep: #02004f; /* hover on logo blue */
    --op-action: #2d24d8;    /* links, small labels, focus */
    --op-tint: #eeedfc;      /* icon chips, selected states */
    --op-wash: #f7f7fe;      /* section background, inputs */
    --op-line: #e3e2f3;      /* borders */
    --op-line-strong: #c9c7ec;
    --op-ink: #0e0d33;       /* headings */
    --op-text: #4b4a68;      /* body text */
    --op-muted: #74738f;
    --op-on-dark: #c9c8f5;   /* small text on logo blue */
}

html { scroll-behavior: smooth; scroll-padding-top: 86px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The menu stays at the top while scrolling, in the logo blue */
.smopc-site-header.navbar {
    --header-navy: #040083;
    --header-accent: #c9c8f5;
    position: sticky;
    top: 0;
    border-bottom-color: #1d18a0;
}

/* Careers had 24px of extra room for jumps from the old pages; with the fixed
   menu it would stop lower than the other sections. */
.careers-section { scroll-margin-top: 0; }

/* Homepage buttons in the logo blue */
.home-btn-blue { background: var(--op-logo); color: #fff; }
.home-btn-blue:hover { background: var(--op-logo-deep); color: #fff; }
.home-btn-outline { border-color: var(--op-logo); background: #fff; color: var(--op-logo); }
.home-btn-outline:hover { border-color: var(--op-logo); background: var(--op-logo); color: #fff; }
.home-btn:focus-visible { outline: 3px solid #b9b6ff; }

/* ---------- shared ---------- */
.op-section { padding: clamp(64px, 8vw, 104px) 0; }
.op-title {
    margin: 0;
    color: var(--op-ink);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}
.op-head { max-width: 680px; margin-bottom: 36px; }
.op-head p { margin: 12px 0 0; color: var(--op-text); font-size: 1.05rem; line-height: 1.65; }
.op-card {
    padding: 32px;
    border: 1px solid var(--op-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(4, 0, 131, .04), 0 8px 24px rgba(4, 0, 131, .05);
}
.op-card h3 { margin: 0; color: var(--op-ink); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.op-card-head { display: flex; align-items: center; gap: 14px; }
.op-card-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--op-logo);
    color: #fff;
    font-size: 1rem;
}

/* ---------- about ---------- */
.op-about { background: var(--op-wash); }
.op-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.op-about-story p { margin: 16px 0 0; color: var(--op-text); font-size: 1.02rem; line-height: 1.75; }
.op-about-story .op-title + p { margin-top: 22px; }
.op-purpose { display: grid; gap: 16px; }
.op-purpose article {
    padding: 22px 24px;
    border: 1px solid var(--op-line);
    border-radius: 16px;
    background: #fff;
}
.op-purpose h3 { margin: 0; color: var(--op-action); font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.op-purpose .op-purpose-lead { margin: 6px 0 8px; color: var(--op-ink); font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.op-purpose p { margin: 0; color: var(--op-text); font-size: .95rem; line-height: 1.7; }

.op-values-head { margin: 56px 0 20px; }
.op-values-head h3 { margin: 0; color: var(--op-ink); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.op-values-head p { margin: 6px 0 0; color: var(--op-text); }
.op-values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.op-value { padding: 22px 20px 24px; border: 1px solid var(--op-line); border-radius: 16px; background: #fff; }
.op-value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--op-tint);
    color: var(--op-logo);
    font-size: 1.05rem;
}
.op-value h4 { margin: 0 0 6px; color: var(--op-ink); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.op-value p { margin: 0; color: var(--op-text); font-size: .9rem; line-height: 1.6; }

/* ---------- contact ---------- */
.op-contact { background: #f2f1fd; }
.op-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: stretch;
}

/* form */
.op-form { position: relative; display: flex; flex-direction: column; }
.op-form > .op-card-head { margin-bottom: 24px; }
.op-card-intro { margin: 2px 0 0; color: var(--op-text); font-size: .95rem; }
.op-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.op-field { margin-bottom: 16px; }
.op-field-grow { display: flex; flex: 1; flex-direction: column; }
.op-field label { display: block; margin-bottom: 7px; color: var(--op-ink); font-size: .9rem; font-weight: 600; }
.op-field input,
.op-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--op-line);
    border-radius: 10px;
    background: var(--op-wash);
    color: var(--op-ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.op-field textarea { flex: 1; min-height: 150px; resize: vertical; }
.op-field input:hover,
.op-field textarea:hover { border-color: var(--op-line-strong); }
.op-field input:focus,
.op-field textarea:focus { outline: none; border-color: var(--op-logo); background: #fff; box-shadow: 0 0 0 3px var(--op-tint); }
.op-send { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.op-send span { color: var(--op-muted); font-size: .85rem; }
.op-submit { flex: none; gap: 10px; min-width: 190px; }
.op-submit i { transition: transform .15s ease; }
.op-submit:hover i { transform: translateX(3px); }
.op-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.op-notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; font-size: .95rem; line-height: 1.5; }
.op-notice i { margin-top: 3px; }
.op-notice.is-ok { background: #e8f7ee; color: #166534; }
.op-notice.is-error { background: #fef0ef; color: #b42318; }

/* showrooms */
.op-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.op-visit { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.op-visit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.op-visit-head p { margin: 0; color: var(--op-muted); font-size: .88rem; }
.op-visit-head p i { margin-right: 6px; color: var(--op-action); }
.op-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op-branch {
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--op-line);
    border-radius: 14px;
    background: #fff;
    color: var(--op-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.op-branch-pin {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--op-wash);
    color: var(--op-muted);
    font-size: .9rem;
}
.op-branch-text { min-width: 0; }
.op-branch small { display: block; color: var(--op-action); font-size: .78rem; font-weight: 600; }
.op-branch b { display: block; margin-top: 2px; color: var(--op-ink); font-size: .98rem; line-height: 1.3; }
.op-branch-text > span { display: block; margin-top: 4px; font-size: .86rem; line-height: 1.5; }
.op-branch:hover { border-color: var(--op-line-strong); }
.op-branch:focus-visible { outline: 3px solid #b9b6ff; outline-offset: 2px; }
.op-branch[aria-pressed="true"] { border-color: var(--op-logo); background: var(--op-tint); box-shadow: inset 0 0 0 1px var(--op-logo); }
.op-branch[aria-pressed="true"] .op-branch-pin { background: var(--op-logo); color: #fff; }
.op-map { flex: 1; min-height: 260px; margin-top: 12px; overflow: hidden; border: 1px solid var(--op-line); border-radius: 14px; background: #e9e8f4; }
.op-map iframe { display: block; width: 100%; height: 100%; min-height: 260px; border: 0; }
.op-directions { width: 100%; margin-top: 12px; gap: 10px; }

/* call, email, Facebook */
/* Call, Email, Facebook: one strip in the logo blue */
.op-reach {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--op-logo);
    box-shadow: 0 12px 28px rgba(4, 0, 131, .18);
}
.op-reach a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 22px 24px;
    color: #fff;
    text-decoration: none;
    transition: background-color .15s ease;
}
.op-reach a + a { border-left: 1px solid rgba(255, 255, 255, .14); }
.op-reach a:hover { background: var(--op-logo-deep); color: #fff; }
.op-reach a:focus-visible { outline: 3px solid #b9b6ff; outline-offset: -3px; }
.op-reach-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.05rem;
}
.op-reach a > span:last-child { min-width: 0; }
.op-reach small { display: block; color: var(--op-on-dark); font-size: .8rem; }
.op-reach b { display: block; color: #fff; font-size: .98rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

/* ---------- smaller screens ---------- */
@media (max-width: 1199.98px) {
    .op-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .op-contact-grid { grid-template-columns: 1fr; gap: 16px; }
    .op-field textarea { flex: none; }
}
@media (max-width: 991.98px) {
    .op-about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767.98px) {
    html { scroll-padding-top: 76px; }
    .op-values, .op-two, .op-reach { grid-template-columns: 1fr; }
    .op-reach a { padding: 18px 20px; }
    .op-reach a + a { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
    .op-value { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
    .op-value-icon { grid-row: span 2; width: 42px; height: 42px; margin: 0; }
    .op-value p { grid-column: 2; }
    .op-card, .op-visit { padding: 20px; }
    .op-send { flex-direction: column-reverse; align-items: stretch; text-align: center; }
    .op-submit { width: 100%; }
    .op-field textarea { min-height: 140px; }
}
@media (max-width: 575.98px) {
    .op-branches { grid-template-columns: 1fr; }
    .op-map, .op-map iframe { min-height: 240px; }
}
