/* ==========================================================================
 * Dream Motoring World - Portal light theme
 * File: css/portal.css
 * Scope: body.portal only.
 *
 * Specificity rule for this file: base element rules are wrapped in :where()
 * so they carry zero specificity and can never beat a component class. Fixes
 * are made by ordering and one class per component, never with !important.
 *
 * Contrast (WCAG 2.1 AA, computed):
 *   white on #1a73b5 (buttons)        5.04:1
 *   #0f5f9c link on #f2f2f2 panels    5.98:1
 *   #8cc8f5 kicker on #313131 hero    7.24:1
 *   #6b7280 placeholder on #ffffff    4.83:1
 *   #4b5563 on #dfe4e9 (disabled)     5.91:1
 * ========================================================================== */

body.portal {
    --p-bg:            #ffffff;
    --p-hero:          #313131;
    --p-hero-text:     #ffffff;
    --p-panel:         #f2f2f2;
    --p-border:        #dddddd;
    --p-text:          #000000;
    --p-muted:         #555555;
    --p-accent:        #3c9be1;   /* decorative borders and focus rings only */
    --p-accent-hover:  #2f87cb;
    --p-accent-strong: #1a73b5;
    --p-btn:           #1a73b5;
    --p-btn-hover:     #155f96;
    --p-btn-active:    #104b78;
    --p-link:          #0f5f9c;
    --p-focus:         #1a73b5;
    --p-danger:        #b3261e;
    --p-danger-bg:     #fdecea;
    --p-ok:            #1e7e34;
    --p-ok-bg:         #e6f4ea;
    --p-warn:          #8a5a00;
    --p-warn-bg:       #fff4d6;
    --p-plate:         #f7d117;
    --p-plate-blue:    #0b2f9f;
    --p-font: "Nunito Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --p-radius: 3px;

    margin: 0;
    min-height: 100vh;
    background: var(--p-bg);
    color: var(--p-text);
    font-family: var(--p-font);
    font-size: 16px;
    line-height: 1.55;
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
}

body.portal *,
body.portal *::before,
body.portal *::after {
    box-sizing: border-box;
}

:where(body.portal) :where(img) {
    max-width: 100%;
    height: auto;
}

:where(body.portal) :where(a) {
    color: var(--p-link);
    text-decoration: none;
    text-underline-offset: 3px;
}

:where(body.portal) :where(a):hover,
:where(body.portal) :where(a):focus-visible {
    color: var(--p-btn-hover);
    text-decoration: underline;
}

:where(body.portal) :where(:focus-visible) {
    outline: 2px solid var(--p-focus);
    outline-offset: 2px;
}

.portal-main:focus {
    outline: 0;
}

/* ------------------------------------------------------------ skip link --- */

.portal-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 10px 14px;
    background: #fff;
    color: #000;
    border: 2px solid var(--p-focus);
    border-radius: var(--p-radius);
    font-weight: 700;
    text-decoration: none;
}

.portal-skip:focus {
    left: 8px;
    top: 8px;
}

/* --------------------------------------------------------------- header --- */

.portal-header {
    background: #ffffff;
    border-bottom: 1px solid var(--p-border);
}

/* One line on desktop: logo left, menu centred, phone button right. */
.portal-header__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 28px;
    row-gap: 10px;
    min-height: 80px;
}

.portal-brand {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    text-decoration: none;
}

.portal-brand img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 100%;
}

/* The wordmark inside the PNG is unreadable below ~70px, so the name is
   rendered as real text next to the mark. */
.portal-brand__name {
    color: var(--p-hero);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.portal-nav {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 24px;
    min-width: 0;
}

.portal-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    color: var(--p-hero);
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.portal-nav a:hover,
.portal-nav a:focus-visible,
.portal-nav a[aria-current="page"] {
    color: var(--p-accent-strong);
    border-bottom-color: var(--p-accent);
    text-decoration: none;
}

.portal-header__phone {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--p-btn);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(26, 115, 181, 0.25);
    transition: background-color 0.15s linear, box-shadow 0.15s ease;
}

.portal-header__phone:hover,
.portal-header__phone:focus-visible {
    background: var(--p-btn-hover);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(26, 115, 181, 0.3);
}

.portal-header__phone:active {
    background: var(--p-btn-active);
}

.portal-header__phone-icon {
    font-size: 1.05rem;
    line-height: 1;
    color: #ffffff;
}

/* ----------------------------------------------------------------- main --- */

.portal-main {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 16px 60px;
}

.portal-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    margin: 0 0 32px;
    padding: 36px 20px;
    background: var(--p-hero);
    color: var(--p-hero-text);
    text-align: center;
}

.portal-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.65rem, 4vw, 2.4rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--p-hero-text);
}

.portal-hero p {
    margin: 0;
    max-width: 65ch;
    color: #e2e8f0;
    font-size: 1.05rem;
}

.portal-kicker {
    display: inline-block;
    margin: 0 0 10px;
    color: #8cc8f5;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- cards --- */

.portal-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.portal-cards li {
    display: flex;
}

.portal-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--p-border);
    border-top: 4px solid var(--p-accent);
    border-radius: var(--p-radius);
    background: var(--p-panel);
    color: var(--p-text);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.portal-card:hover,
.portal-card:focus-visible {
    transform: translateY(-2px);
    border-top-color: var(--p-accent-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.portal-card__tag {
    align-self: flex-start;
    padding: 3px 10px;
    border: 1px solid var(--p-border);
    border-radius: 999px;
    background: #fff;
    color: var(--p-accent-strong);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-card h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--p-text);
}

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

.portal-card__cta {
    margin-top: auto;
    color: var(--p-accent-strong);
    font-weight: 700;
}

/* ---------------------------------------------------------------- panels --- */

.portal-panel {
    padding: 24px;
    border: 1px solid var(--p-border);
    border-top: 4px solid var(--p-accent);
    border-radius: var(--p-radius);
    background: var(--p-panel);
}

.portal-panel + .portal-panel {
    margin-top: 20px;
}

.portal-panel h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    color: var(--p-text);
}

.portal-panel p {
    margin: 0 0 14px;
    color: var(--p-text);
}

/* Hints inside a panel keep their own colour and spacing. */
.portal-panel .portal-hint,
.portal-panel .portal-status {
    margin: 6px 0 0;
    color: var(--p-muted);
    font-size: 13px;
}

.portal-panel .portal-status {
    font-size: 14px;
}

.portal-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

/* -------------------------------------------------------------- sidebar --- */

.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portal-widget {
    padding: 20px;
    border: 1px solid var(--p-border);
    border-top: 3px solid var(--p-accent);
    border-radius: var(--p-radius);
    background: var(--p-panel);
}

.portal-widget__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--p-text);
}

.portal-widget__icon {
    flex: 0 0 auto;
    color: var(--p-accent-strong);
}

.portal-widget__lead {
    margin: 0 0 14px;
    color: var(--p-muted);
}

.portal-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

.portal-contact-list li:last-child {
    margin-bottom: 0;
}

.portal-contact-list a {
    color: var(--p-text);
    font-weight: 700;
    text-decoration: none;
}

.portal-contact-list a:hover,
.portal-contact-list a:focus-visible {
    color: var(--p-accent-strong);
    text-decoration: underline;
}

.portal-btn--block {
    display: flex;
    width: 100%;
}

.portal-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;
}

/* ------------------------------------------------------------------ form --- */

.portal-form {
    margin: 0;
}

.portal-field {
    margin: 0 0 18px;
}

.portal-field > label,
.portal-label {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--p-text);
}

.portal-required {
    color: var(--p-danger);
    font-weight: 700;
}

.portal-required-note {
    margin: 0 0 16px;
    color: var(--p-muted);
    font-size: 13px;
}

.portal-input,
.portal-select,
.portal-textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #b8bec5;
    border-radius: var(--p-radius);
    background: #fff;
    color: var(--p-text);
    font: inherit;
    font-size: 16px;
}

.portal-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23555' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.portal-textarea {
    min-height: 120px;
    resize: vertical;
}

.portal-input::placeholder,
.portal-textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

.portal-input:hover,
.portal-select:hover,
.portal-textarea:hover {
    border-color: #6b7280;
}

.portal-input:focus,
.portal-select:focus,
.portal-textarea:focus {
    border-color: var(--p-focus);
    outline: 2px solid var(--p-focus);
    outline-offset: 2px;
}

.portal-select:disabled {
    border-color: #c7ccd2;
    background-color: #eef1f4;
    color: #4b5563;
    cursor: not-allowed;
}

.portal-hint {
    display: block;
    margin: 6px 0 0;
    color: var(--p-muted);
    font-size: 13px;
}

.portal-error {
    display: block;
    margin: 6px 0 0;
    color: var(--p-danger);
    font-size: 13px;
    font-weight: 600;
}

.portal-error:empty {
    display: none;
}

.portal-form-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--p-danger);
    border-radius: var(--p-radius);
    background: var(--p-danger-bg);
    color: var(--p-danger);
    font-weight: 600;
}

.portal-form-error:empty {
    display: none;
}

.portal-noscript {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 4px solid var(--p-warn);
    background: var(--p-warn-bg);
    color: var(--p-text);
    font-size: 14px;
}

.portal-status {
    margin: 14px 0 0;
    min-height: 1.4em;
    color: var(--p-muted);
    font-size: 14px;
}

.portal-status:empty {
    margin: 0;
    min-height: 0;
}

/* --------------------------------------------------------------- buttons --- */

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--p-radius);
    background: var(--p-btn);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s linear, box-shadow 0.15s ease;
}

.portal-btn:hover {
    background: var(--p-btn-hover);
    color: #fff;
    text-decoration: none;
}

.portal-btn:active {
    background: var(--p-btn-active);
}

.portal-btn:disabled,
.portal-btn[aria-disabled="true"] {
    background: #dfe4e9;
    border-color: #c7ccd2;
    color: #4b5563;
    opacity: 1;
    cursor: not-allowed;
}

.portal-btn--ghost {
    background: #fff;
    border: 1px solid #b8bec5;
    color: var(--p-text);
}

.portal-btn--ghost:hover {
    border-color: var(--p-accent-strong);
    background: #f7fafc;
    color: var(--p-text);
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 24px 0 0;
}

/* ---------------------------------------------------------------- consent --- */

.portal-consent {
    margin: 20px 0 0;
    padding: 16px;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    background: #fff;
}

.portal-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--p-text);
}

.portal-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--p-btn);
    cursor: pointer;
}

.portal-consent a {
    color: var(--p-link);
    text-decoration: underline;
}

/* ----------------------------------------------------------------- terms --- */

.portal-terms {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--p-accent);
    border-radius: var(--p-radius);
    background: #fff;
    font-size: 14px;
    line-height: 1.65;
    text-align: left;
}

.portal-terms h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--p-text);
}

.portal-terms ol {
    margin: 0;
    padding-left: 20px;
}

.portal-terms li + li {
    margin-top: 8px;
}

/* --------------------------------------------------------------- captcha --- */

.portal-captcha-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.portal-captcha-row .portal-field {
    flex: 1 1 160px;
    margin-bottom: 0;
}

.portal-captcha-refresh {
    min-height: 48px;
    margin-top: 27px;
    padding: 0 16px;
    border: 1px solid #b8bec5;
    border-radius: var(--p-radius);
    background: #fff;
    color: var(--p-accent-strong);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.portal-captcha-refresh:hover {
    border-color: var(--p-accent-strong);
    background: #f7fafc;
}

/* --------------------------------------------------------------- honeypot --- */

.portal-hp,
.testdrive-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ------------------------------------------------------------ file upload --- */

.portal-file__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.portal-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.portal-file__button {
    min-width: 0;
}

.portal-file__input:focus-visible + .portal-file .portal-file__button,
.portal-file__input:focus + .portal-file .portal-file__button {
    outline: 2px solid var(--p-focus);
    outline-offset: 2px;
}

.portal-file__name {
    color: var(--p-muted);
    font-size: 14px;
}

.portal-file__preview {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 12px 0 0;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
}

.portal-file__preview[hidden] {
    display: none;
}

/* ------------------------------------------------------------ plate input --- */

.plate-input {
    display: block;
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    border: 2px solid #000;
    border-radius: 6px;
    background-color: var(--p-plate);
    color: #111;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.plate-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.plate-input:focus {
    outline: 2px solid var(--p-focus);
    outline-offset: 2px;
}

/* --------------------------------------------------------------- result --- */

.portal-result {
    padding: 26px;
    border: 1px solid #b7dfc4;
    border-top: 4px solid var(--p-ok);
    border-radius: var(--p-radius);
    background: var(--p-ok-bg);
}

.portal-result[hidden] {
    display: none;
}

.portal-result h2 {
    margin: 0 0 10px;
    color: var(--p-ok);
    font-size: 1.35rem;
}

.portal-result h2:focus {
    outline: 2px solid var(--p-focus);
    outline-offset: 4px;
}

.portal-result p {
    margin: 0 0 10px;
    color: var(--p-text);
}

.portal-result__ref {
    display: inline-block;
    margin: 8px 0;
    padding: 10px 16px;
    border: 1px dashed var(--p-accent-strong);
    border-radius: var(--p-radius);
    background: #fff;
    color: var(--p-accent-strong);
    font-family: "Courier New", Courier, monospace;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.portal-result__ref:empty {
    display: none;
}

/* --------------------------------------------------------------- footer --- */

.portal-footer {
    background: var(--p-panel);
    border-top: 4px solid var(--p-accent);
    padding: 36px 0 40px;
    color: var(--p-text);
    font-size: 15px;
}

.portal-footer__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.portal-footer__brand img {
    display: block;
    width: auto;
    height: 52px;
    margin-bottom: 10px;
}

.portal-footer__brand p {
    margin: 0 0 4px;
    font-weight: 700;
}

.portal-footer__legal {
    margin: 0;
    color: var(--p-muted);
    font-size: 13px;
    font-weight: 400;
}

.portal-footer__addresses,
.portal-footer__contact {
    display: grid;
    align-content: start;
    gap: 10px;
}

.portal-footer__addresses p,
.portal-footer__contact p {
    margin: 0;
    line-height: 1.5;
}

.portal-footer__addresses strong {
    color: var(--p-text);
}

.portal-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.portal-footer__links li {
    margin: 0;
}

.portal-footer a {
    color: var(--p-link);
}

/* ------------------------------------------------------------ responsive & animation --- */

@keyframes portalFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

body.portal {
    animation: portalFadeIn 0.3s ease-out;
}

.portal-card,
.portal-panel,
.portal-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.15s ease;
}

.portal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.portal-btn:active {
    transform: scale(0.98);
}

/* Tablet / mobile: logo left, phone right, menu on its own row. */
@media (max-width: 1023px) {
    .portal-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 16px;
        row-gap: 6px;
        padding: 10px 20px;
        min-height: 68px;
    }

    .portal-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .portal-header__phone {
        grid-column: 2;
        grid-row: 1;
    }

    .portal-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        gap: 0 20px;
    }
}

@media (max-width: 767px) {
    .portal-main {
        padding: 24px 16px 56px;
    }
    .portal-input,
    .portal-select,
    .portal-textarea,
    .portal-btn {
        min-height: 46px;
        font-size: 16px; /* Prevents mobile browser auto-zoom on input focus */
    }
    .portal-card {
        padding: 20px 16px;
    }
    .portal-hero {
        padding: 32px 20px;
        border-radius: 12px;
    }
    .portal-header__inner {
        padding: 10px 16px;
        column-gap: 12px;
    }
    .portal-brand img {
        height: 40px;
    }
    .portal-brand__name {
        font-size: 0.95rem;
        white-space: normal;
    }
    .portal-nav {
        gap: 0 12px;
    }
    .portal-header__phone {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    .portal-footer__brand img {
        height: 40px;
    }
}

@media (max-width: 479px) {
    .portal-main {
        padding: 20px 12px 48px;
    }

    .portal-panel {
        padding: 18px;
    }

    .portal-hero {
        min-height: 0;
        margin-bottom: 24px;
        padding: 28px 16px;
    }

    .portal-header__phone {
        padding: 10px 12px;
    }

    /* Icon off keeps the button compact enough for a 2-line wordmark at 360px. */
    .portal-header__phone-icon {
        display: none;
    }
}

/* Tiny phones: the mark alone, with the accessible name from the link label. */
@media (max-width: 359px) {
    .portal-brand__name {
        display: none;
    }
}

@media (min-width: 768px) {
    .portal-footer__inner {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 32px 40px;
    }
}

/* 1024+: single-row header, tighter than the widest tier. */
@media (min-width: 1024px) {
    .portal-header__inner {
        column-gap: 20px;
    }

    .portal-brand__name {
        font-size: 1rem;
    }

    .portal-nav {
        gap: 0 22px;
    }

    .portal-nav a {
        font-size: 1.125rem;
    }

    .portal-header__phone {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

/* Desktop: full type scale. */
@media (min-width: 1200px) {
    .portal-brand__name {
        font-size: 1.25rem;
    }

    .portal-nav {
        gap: 0 30px;
    }

    .portal-header__phone {
        padding: 10px 18px;
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .portal-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    }

    .portal-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ------------------------------------------------------------ motion --- */

@media (prefers-reduced-motion: reduce) {
    body.portal *,
    body.portal *::before,
    body.portal *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
