/* ==========================================================================
   BookingMoko — HOMEPAGE STYLES  v3.1  (navy + gold)
   Only homepage layout lives here. Colours, type, buttons, forms and cards
   come from shared/css (design-tokens, global, components).
   Dark panels use the class "on-navy" (defined in components.css).
   v3.1: self-hosted fonts, header keeps language + Log in on phones,
   44px touch targets, 14px minimum text, one development note,
   consistent "Planned" badges, tablet hero card, back-to-top, form states.
   ========================================================================== */

/* ---------- Self-hosted fonts (no request to Google) ----------
   Variable fonts, Latin subset: English, German (ä ö ü ß) and Tagalog (ñ).
   If a file is missing, the fallback stack from design-tokens.css is used. */
@font-face {
    font-family: "Inter";
    src: url("../share/assets/fonts/inter-latin-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../share/assets/fonts/bricolage-grotesque-latin-variable.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- Text wrapping: balanced headings, no one-word last lines ---------- */
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
p, li { text-wrap: pretty; }

/* ---------- Header (dark glass) ---------- */
.site-header {
    position: sticky; top: 0; z-index: var(--bm-z-header);
    background: rgba(8, 20, 44, .8);
    -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--bm-line);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.nav-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bm-space-4); min-height: var(--bm-header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-family: var(--bm-font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none; color: var(--bm-ink); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; background: var(--bm-accent); color: var(--bm-on-accent); font-size: 1.05rem; }
.brand-accent { color: var(--bm-accent); }
.main-nav { display: flex; gap: .25rem; margin-inline: auto; }
.main-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: var(--bm-r-pill); color: var(--bm-ink-2); font-size: var(--bm-text-sm); font-weight: 500; text-decoration: none; transition: background var(--bm-fast), color var(--bm-fast); }
.main-nav a:not(.btn):hover { background: var(--bm-surface-2); color: var(--bm-ink); }
.nav-register-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.site-header .btn-sm { min-height: 44px; padding: .4rem 1rem; }

/* Language switch (EN | DE | TL) — the language chosen here is used on login, register and forgot-password too */
.lang-switch { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--bm-line-strong); border-radius: var(--bm-r-pill); background: var(--bm-surface); }
.lang-switch button { min-width: 44px; min-height: 44px; padding: 0 .55rem; border: 0; border-radius: var(--bm-r-pill); background: transparent; color: var(--bm-ink-2); font-size: var(--bm-text-sm); font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: background var(--bm-fast), color var(--bm-fast); }
.lang-switch button:hover { background: var(--bm-surface-2); color: var(--bm-ink); }
.lang-switch button.is-active { background: var(--bm-accent); color: var(--bm-on-accent); }
/* Compact language choice, only shown on phones (see the 640px rules) */
.lang-select { display: none; height: 44px; min-height: 44px; padding: 0 1.3rem 0 .55rem; border: 1px solid var(--bm-line-strong); border-radius: var(--bm-r-pill); background-color: var(--bm-surface); color: var(--bm-ink); font-family: inherit; font-size: 1rem; /* 16px: iPhone Safari zooms the page into smaller fields */ font-weight: 700; cursor: pointer; }
/* Safari ignores min-height on native dropdowns, so both dropdowns draw their own box and a small chevron (colour = text colour) */
.lang-select, .contact-form select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-repeat: no-repeat; background-size: 5px 5px, 5px 5px; background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%; }
.contact-form select { padding-right: 2.25rem; background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; }
.mobile-menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--bm-line-strong); border-radius: var(--bm-r-sm); background: var(--bm-surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--bm-ink); transition: transform var(--bm-base) var(--bm-ease), opacity var(--bm-fast); }
.nav-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Links that sit inside text need a 44px touch area too */
.text-link { min-height: 44px; }

/* ---------- Photos (every photo box has a navy fallback if the file is missing) ---------- */
.photo { position: relative; overflow: hidden; margin: 0; background: linear-gradient(150deg, var(--bm-navy-700), var(--bm-navy-900)); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: clip;
    padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(4rem, 3rem + 5vw, 7.5rem);
    background:
        radial-gradient(55% 70% at 85% 10%, rgba(217, 164, 65, .18), transparent 65%),
        radial-gradient(60% 80% at 0% 100%, rgba(40, 90, 180, .35), transparent 70%),
        linear-gradient(180deg, var(--bm-navy-900), var(--bm-navy-950));
}
/* fine pinstripe, like a tailored suit */
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px);
}
.hero-grid { position: relative; display: grid; gap: clamp(2.5rem, 1rem + 4vw, 5rem); align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero-copy h1 { margin-bottom: var(--bm-space-5); font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.9rem); line-height: 1.06; }
.hero-copy h1 .soft { display: block; color: var(--bm-ink-3); }
.hero-description { font-size: var(--bm-text-lg); color: var(--bm-ink-2); max-width: 54ch; margin-bottom: var(--bm-space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--bm-space-3); margin-bottom: var(--bm-space-6); }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: var(--bm-text-sm); color: var(--bm-ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--bm-accent); }

.hero-visual { position: relative; }
.hero-photo { aspect-ratio: 4 / 5; border-radius: var(--bm-r-xl) var(--bm-r-xl) var(--bm-r-xl) 90px; box-shadow: var(--bm-shadow-lg); border: 1px solid var(--bm-line-strong); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 15, 32, .55)); }

/* Schedule card floats over the photo: the one memorable element */
.day-card {
    position: absolute; left: clamp(-3.5rem, -6vw, -1rem); bottom: clamp(1.25rem, 3vw, 2.5rem); z-index: 2;
    width: min(88%, 380px); padding: 1.15rem;
    background: rgba(9, 22, 46, .78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--bm-line-strong); border-radius: var(--bm-r-lg); box-shadow: var(--bm-shadow-lg);
}
.day-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.day-top h2 { font-size: var(--bm-text-lg); margin: 0; }
.day-slots { display: grid; gap: .55rem; }
.slot { --tone: #6aa8ff; display: grid; grid-template-columns: 3rem 1fr; gap: .75rem; align-items: center; padding: .6rem .75rem; border-radius: var(--bm-r-sm); background: var(--bm-surface); border-left: 3px solid var(--tone); opacity: 0; transform: translateY(10px); animation: slot-in .6s var(--bm-ease) forwards; }
.slot-1 { animation-delay: .2s; } .slot-2 { --tone: #4fd1a5; animation-delay: .4s; } .slot-3 { --tone: #f2b84b; animation-delay: .6s; }
.slot-time { font-size: var(--bm-text-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.slot-info { display: flex; flex-direction: column; line-height: 1.3; }
.slot-info strong { font-size: var(--bm-text-sm); }
.slot-info span { font-size: var(--bm-text-sm); color: var(--bm-ink-3); }
@keyframes slot-in { to { opacity: 1; transform: none; } }
.demo-disclaimer { margin: .9rem 0 0; font-size: var(--bm-text-sm); color: var(--bm-ink-3); }
.badge { font-size: var(--bm-text-sm); }

/* ---------- Section headings ---------- */
.section-heading { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-heading p { font-size: var(--bm-text-lg); color: var(--bm-ink-2); margin: 0; }

/* ---------- One note about the development state ---------- */
.dev-note-section { padding-bottom: var(--bm-space-7); }
.dev-note { display: flex; align-items: flex-start; gap: var(--bm-space-3); max-width: 860px; margin: 0; padding: var(--bm-space-4) var(--bm-space-5); border: 1px solid var(--bm-line-strong); border-left: 4px solid var(--bm-accent); border-radius: var(--bm-r-md); background: var(--bm-accent-soft); }
.dev-note svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--bm-ink-2); }
.dev-note p { margin: 0; font-size: var(--bm-text-sm); color: var(--bm-ink-2); }
.dev-note strong { color: var(--bm-ink); }

/* ---------- Services (four photo cards, 2 x 2) ---------- */
.services-grid { display: grid; gap: var(--bm-space-5); grid-template-columns: repeat(2, 1fr); }
.service-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--bm-r-lg); background: var(--bm-surface); border: 1px solid var(--bm-line); transition: transform var(--bm-base) var(--bm-ease), box-shadow var(--bm-base); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--bm-shadow-md); }
.service-photo { aspect-ratio: 4 / 3; }
.service-photo img { transition: transform .7s var(--bm-ease); }
.service-card:hover .service-photo img { transform: scale(1.05); }
.service-body { display: flex; flex-direction: column; flex: 1; padding: var(--bm-space-5) var(--bm-space-5) var(--bm-space-6); }
.service-tag { display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; margin-bottom: var(--bm-space-4); padding: .3rem .75rem .3rem .6rem; border-radius: var(--bm-r-pill); font-size: var(--bm-text-sm); font-weight: 700; }
.service-tag svg { width: 16px; height: 16px; }
.service-body h3 { font-size: var(--bm-text-xl); }
.service-body > p { color: var(--bm-ink-2); font-size: var(--bm-text-sm); }
.tick-list { display: grid; gap: .5rem; margin: var(--bm-space-2) 0 var(--bm-space-5); font-size: var(--bm-text-sm); color: var(--bm-ink-2); }
.tick-list li { display: flex; gap: .6rem; align-items: start; }
.tick-list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--bm-accent-hover); }
.service-body .text-link { margin-top: auto; }

/* ---------- Features: bento grid ---------- */
.features-section { background: var(--bm-surface-2); }
.features-grid { display: grid; gap: var(--bm-space-4); grid-template-columns: repeat(6, 1fr); }
.feature-card { position: relative; display: flex; flex-direction: column; padding: var(--bm-space-5) var(--bm-space-5) var(--bm-space-6); border: 1px solid var(--bm-line); background: var(--bm-surface); border-radius: var(--bm-r-lg); transition: border-color var(--bm-base), box-shadow var(--bm-base); }
.feature-card:hover { border-color: var(--bm-line-strong); box-shadow: var(--bm-shadow-md); }
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p { margin: 0; color: var(--bm-ink-2); font-size: var(--bm-text-sm); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--bm-space-5); border-radius: 14px 14px 14px 5px; background: var(--bm-primary-soft); color: var(--bm-primary); }
.feature-icon svg { width: 22px; height: 22px; }
/* "Planned" badge: always in the top right corner of the card, on every card */
.feature-card .badge { position: absolute; top: var(--bm-space-5); right: var(--bm-space-5); }
.feature-card.has-badge h3 { padding-right: 6.5rem; }
.fc-1 { grid-column: span 4; border-color: transparent; background: radial-gradient(70% 120% at 100% 0%, rgba(217, 164, 65, .22), transparent 60%), var(--bm-navy-900); color: #fff; }
.fc-1 h3 { font-size: var(--bm-text-2xl); }
.fc-1 p { color: #c5d0e8; max-width: 48ch; font-size: var(--bm-text-base); }
.fc-1 .feature-icon { background: rgba(255, 255, 255, .12); color: var(--bm-accent); }
.fc-1:hover { border-color: transparent; }
.fc-2 { grid-column: span 2; background: var(--bm-accent-soft); border-color: transparent; }
.fc-2 .feature-icon { background: var(--bm-surface); color: var(--bm-accent-hover); }
.fc-3, .fc-4, .fc-5 { grid-column: span 2; }
.fc-6 { grid-column: span 6; flex-direction: row; align-items: center; gap: var(--bm-space-5); background: transparent; border: 1.5px dashed var(--bm-line-strong); }
.fc-6 .feature-icon { margin: 0; flex: none; }

/* ---------- Three paths for businesses ---------- */
.client-options-grid { display: grid; gap: var(--bm-space-4); grid-template-columns: repeat(3, 1fr); }
.client-option-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--bm-r-lg); background: var(--bm-primary-soft); }
.client-option-card.on-navy { background: linear-gradient(150deg, var(--bm-navy-700), var(--bm-navy-900)); }
.client-option-card h3 { font-size: var(--bm-text-2xl); }
.client-option-card p { color: var(--bm-ink-2); margin-bottom: var(--bm-space-5); max-width: 46ch; }
.client-option-card .text-link { margin-top: auto; color: var(--bm-ink); }
.on-navy .text-link { color: var(--bm-accent); }

/* ---------- Steps (a real sequence) ---------- */
.steps-grid { display: grid; gap: var(--bm-space-5); grid-template-columns: repeat(3, 1fr); }
.step-card { position: relative; padding-top: var(--bm-space-6); }
.step-card::before { content: ""; position: absolute; top: 19px; left: 56px; right: calc(-1 * var(--bm-space-5)); border-top: 2px dashed var(--bm-line-strong); }
.step-card:last-child::before { display: none; }
.step-number { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bm-accent); color: var(--bm-on-accent); font-family: var(--bm-font-display); font-weight: 700; }
.step-card h3 { margin-top: var(--bm-space-4); }
.step-card p { color: var(--bm-ink-2); max-width: 36ch; }

/* ---------- Call to action ---------- */
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--bm-space-6); padding: clamp(2rem, 1rem + 4vw, 4.5rem); border-radius: var(--bm-r-xl); border: 1px solid var(--bm-line-strong);
    background: radial-gradient(55% 140% at 100% 0%, rgba(217, 164, 65, .3), transparent 60%), linear-gradient(135deg, var(--bm-navy-700), var(--bm-navy-900)); }
.cta-copy { max-width: 620px; }
.cta-copy p { color: var(--bm-ink-2); margin: 0; }

/* ---------- Contact ---------- */
.contact-content { display: grid; gap: var(--bm-space-6) clamp(2rem, 1rem + 4vw, 5rem); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.contact-intro p { color: var(--bm-ink-2); font-size: var(--bm-text-lg); }
.contact-intro .contact-mail { margin: var(--bm-space-5) 0 0; font-size: var(--bm-text-base); }
.mail-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--bm-primary); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.mail-link:hover { color: var(--bm-accent-hover); }
.contact-form { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border: 1px solid var(--bm-line); border-radius: var(--bm-r-lg); background: var(--bm-surface); box-shadow: var(--bm-shadow-sm); }
.contact-form .btn { width: 100%; }
/* Form states: a clear focus ring and a visible (not colour-only) error state */
.contact-form :is(input, select, textarea):focus-visible { border-color: var(--bm-accent-hover); box-shadow: var(--bm-focus); }
.contact-form :is(input, select, textarea):user-invalid,
.contact-form :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--bm-danger); border-width: 2px; box-shadow: 0 0 0 3px var(--bm-danger-soft); }
.contact-form .field-error { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: var(--bm-text-sm); font-weight: 600; color: var(--bm-danger); }
.contact-form .form-note { margin: 0 0 var(--bm-space-4); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--bm-section-y); padding-top: var(--bm-space-8); background: var(--bm-navy-950); border-top: 1px solid var(--bm-line); }
.footer-content { display: grid; gap: var(--bm-space-6); grid-template-columns: 1.6fr 1fr 1fr; }
.footer-brand p { margin: var(--bm-space-3) 0 0; max-width: 34ch; color: var(--bm-ink-3); font-size: var(--bm-text-sm); }
.footer-links { display: flex; flex-direction: column; gap: .1rem; }
.footer-links h2 { margin-bottom: .25rem; font-family: var(--bm-font-body); font-size: var(--bm-text-sm); font-weight: 700; letter-spacing: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: var(--bm-ink-2); font-size: var(--bm-text-sm); text-decoration: none; }
.footer-links a:hover { color: var(--bm-accent); text-decoration: underline; }
/* Social icons (placeholders until the accounts exist, see the comment in index.html) */
.social-wrap { display: flex; align-items: center; gap: var(--bm-space-3); margin-top: var(--bm-space-5); }
.social-title { margin: 0; font-family: var(--bm-font-body); font-size: var(--bm-text-sm); font-weight: 700; letter-spacing: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: var(--bm-space-2); margin: var(--bm-space-2) 0 0; padding: 0; list-style: none; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--bm-line-strong); border-radius: var(--bm-r-pill); color: var(--bm-ink-2); transition: background var(--bm-fast), color var(--bm-fast), border-color var(--bm-fast); }
.social-links a:hover { color: var(--bm-accent); border-color: var(--bm-accent); }
.social-links a[data-soon="true"] { opacity: .55; cursor: default; }
.social-links svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; margin-top: var(--bm-space-7); padding-block: var(--bm-space-5); border-top: 1px solid var(--bm-line); }
.footer-bottom p { margin: 0; font-size: var(--bm-text-sm); color: var(--bm-ink-3); }
.back-to-top { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--bm-line-strong); border-radius: var(--bm-r-pill); color: var(--bm-ink-2); font-size: var(--bm-text-sm); font-weight: 600; text-decoration: none; transition: background var(--bm-fast), color var(--bm-fast), border-color var(--bm-fast); }
.back-to-top svg { transform: rotate(-90deg); }
.back-to-top:hover { background: var(--bm-surface-2); color: var(--bm-accent); border-color: var(--bm-accent); }

/* ---------- Header collapses early because German and Tagalog labels are longer ----------
   The menu button opens the page links. Language and Log in stay visible in the header. */
@media (max-width: 1100px) {
    .brand { order: 1; }
    .nav-actions { order: 2; margin-left: auto; }
    .mobile-menu-toggle { display: inline-flex; order: 3; margin-left: 0; }
    .main-nav { display: none; order: 4; width: 100%; }
    .nav-open .main-nav { display: flex; flex-direction: column; margin: 0; padding: .25rem 0 var(--bm-space-4); }
    .nav-open { background: var(--bm-navy-900); }
    .main-nav a:not(.btn) { padding: 0 1rem; border-radius: var(--bm-r-sm); }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
    .hero-grid, .contact-content { grid-template-columns: minmax(0, 1fr); }
    .hero-photo { aspect-ratio: 4 / 3; border-radius: var(--bm-r-xl); }
    /* The schedule card sits inside the photo, bottom left, instead of hanging off its edge */
    .day-card { left: var(--bm-space-4); bottom: var(--bm-space-4); width: min(400px, calc(100% - 2 * var(--bm-space-4))); }
    .services-grid, .client-options-grid { grid-template-columns: minmax(0, 1fr); }
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-1, .fc-6 { grid-column: span 2; }
    .fc-2, .fc-3, .fc-4, .fc-5 { grid-column: span 1; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    /* Even vertical rhythm on tablet and phone */
    .section { padding-block: clamp(3rem, 2.4rem + 3vw, 4.5rem); }
    .hero { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
    .section-heading { margin-bottom: var(--bm-space-6); }
    .dev-note-section { padding-bottom: var(--bm-space-6); }
    .site-footer { margin-top: 0; padding-top: var(--bm-space-7); }
}

/* Tablet only: full-width cards with a wide photo crop. The service photo files are portrait with
   white bands, so the crop must stay wide (2:1) to show only the real picture. */
@media (min-width: 641px) and (max-width: 960px) {
    .service-photo { aspect-ratio: 2 / 1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .nav-wrap { gap: .4rem; }
    .brand { font-size: 1.05rem; gap: .45rem; }
    .brand-mark { width: 32px; height: 32px; }
    .nav-actions { gap: .4rem; }
    .lang-switch { display: none; }
    .lang-select { display: inline-block; }
    .nav-register { display: none; }
    .nav-open .nav-register-mobile { display: inline-flex; margin-top: var(--bm-space-2); width: 100%; }
    .site-header .btn-sm { padding: .4rem .6rem; }

    .hero-copy h1 { margin-bottom: var(--bm-space-4); }
    .hero-description { margin-bottom: var(--bm-space-5); }
    .hero-actions { margin-bottom: var(--bm-space-5); }
    .hero-photo { aspect-ratio: 16 / 11; }
    /* Too small to hold the card: it sits just under the photo, slightly overlapping it */
    .day-card { position: relative; left: auto; bottom: auto; width: auto; margin: -2.5rem var(--bm-space-3) 0; }
    .service-photo { aspect-ratio: 16 / 9; }

    .features-grid, .client-options-grid, .steps-grid, .footer-content { grid-template-columns: minmax(0, 1fr); }
    .fc-1, .fc-2, .fc-3, .fc-4, .fc-5, .fc-6 { grid-column: auto; }
    .fc-6 { flex-direction: column; align-items: flex-start; gap: var(--bm-space-5); }
    .step-card::before { display: none; }
    .hero-actions .btn, .cta-card .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
    .cta-card .btn { width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Narrow phones (360 to 400px): keep brand, language, Log in and menu on one row, also in German and Tagalog */
@media (max-width: 400px) {
    .nav-wrap { gap: .3rem; }
    .brand { font-size: .95rem; gap: .35rem; }
    .brand-mark { width: 30px; height: 30px; font-size: .95rem; }
    .lang-select { padding: 0 1.15rem 0 .4rem; background-position: calc(100% - 11px) 52%, calc(100% - 6px) 52%; }
    .site-header .btn-sm { padding: .4rem .35rem; }
}

/* 360px phones: a little more room for the Tagalog Log in button */
@media (max-width: 380px) {
    .brand { font-size: .9rem; }
    .brand-mark { width: 28px; height: 28px; }
    .nav-wrap { gap: .25rem; }
}

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
    .slot { animation: none; opacity: 1; transform: none; }
    .service-card:hover, .service-card:hover .service-photo img { transform: none; }
}
