/* Luteus site — page layout and the pieces the design system has no component for
   (client cards, contact section layout, lead form). Uses tokens.css only. */

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 26px;
    background: var(--surface);
    color: var(--ink-strong);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.skip-link {
    position: absolute; left: var(--space-4); top: -100px; z-index: 200;
    padding: var(--space-2) var(--space-4);
    background: var(--surface-inverse); color: var(--ink-inverse);
    border-radius: var(--radius-pill); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: var(--space-3); outline: 2px solid var(--gold-text); outline-offset: 2px; }

/* Header stays visible while scrolling */
.lu-header { position: sticky; top: 0; z-index: 100; }

/* Hero photo is wrapped in <picture> for WebP + JPEG */
.lu-hero picture { display: block; min-width: 0; }
.lu-hero-img { height: auto; }

/* Sections after the hero are separated by a hairline */
.page-section { border-top: 1px solid var(--line); }

/* Section wrapper for non-component sections (same rhythm as .lu-services) */
.section-in { max-width: 1200px; margin: 0 auto; padding: var(--space-12) var(--space-8); }

/* CLIENTS — follows the service-card styling */
.client-list {
    list-style: none; margin: var(--space-8) 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-4);
}
.client {
    background: var(--surface-raised); border: 1px solid var(--line);
    border-radius: var(--radius-md); padding: var(--space-6);
    display: flex; flex-direction: column;
}
.client-logo-tile {
    align-self: flex-start;
    background: #ffffff; border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--line);
}
.client-logo { display: block; height: 32px; width: auto; max-width: 160px; object-fit: contain; }
.client-context { margin: var(--space-4) 0 0; font-size: 15px; line-height: 24px; font-weight: 500; color: var(--ink-strong); }
.client-results {
    list-style: none; margin: var(--space-4) 0 0; padding: var(--space-4) 0 0;
    border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: var(--space-3);
}
.client-results li { position: relative; padding-left: var(--space-4); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.client-results li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--cage-gold);
}
.client-results strong { font-weight: 500; color: var(--ink-strong); }

/* CONTACT — intro on the left, ContactBlock on the right */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.lu-contact-list dd { min-width: 0; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.lu-contact { max-width: none; }
.contact-alt { margin: var(--space-6) 0 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.contact-alt a { color: var(--gold-text); text-underline-offset: 3px; }
.contact-alt a:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; border-radius: 2px; }
.lu-contact-address strong { font-weight: 500; color: var(--ink-strong); }

/* Tagline as the footer sign-off (tagline style) */
.footer-tagline { margin: var(--space-4) 0 0; font-size: 24px; line-height: 32px; font-weight: 500; color: var(--ink-strong); }

/* Hero headline holds the two-sentence tagline */
.lu-hero-title { max-width: none; }
.nowrap { white-space: nowrap; }

/* Footer wordmark link inherits component colours */
.lu-footer-brand .lu-logo { color: var(--ink-wordmark); }

/* LEAD FORM (section currently commented out in index.html) */
.lead-form {
    margin-top: var(--space-8);
    background: var(--surface-raised); border: 1px solid var(--line);
    border-radius: var(--radius-md); padding: var(--space-8);
    display: flex; flex-direction: column; gap: var(--space-8);
}
.lead-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.lead-form legend { padding: 0; margin-bottom: var(--space-4); font-size: 22px; line-height: 30px; font-weight: 600; color: var(--ink-strong); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field > span { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-strong); }
.field input, .field select, .field textarea {
    font: inherit; font-size: 15px; line-height: 22px;
    padding: 10px 12px; width: 100%;
    color: var(--ink-strong); background: var(--surface);
    border: 1px solid var(--ink-muted); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    outline: 2px solid var(--gold-text); outline-offset: 2px;
}
.chip-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
    display: inline-block; padding: 6px 14px;
    border: 1px solid var(--ink-muted); border-radius: var(--radius-pill);
    font-size: 14px; line-height: 20px; color: var(--ink-muted);
    transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover span { border-color: var(--ink-strong); color: var(--ink-strong); }
.chip input:checked + span { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--ink-inverse); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.consent input { margin-top: 3px; accent-color: var(--gold-text); }
.consent a { color: var(--gold-text); }
.form-actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.form-actions .lu-btn:disabled { cursor: wait; }
.form-status { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* RESPONSIVE */
@media (max-width: 760px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
    .form-grid { grid-template-columns: 1fr; }
    /* On a phone the buttons open Zalo/WhatsApp directly; a QR on the same screen can't be scanned */
    .lu-contact-qr { display: none; }
    .lead-form { padding: var(--space-6) var(--space-4); }
    .lu-section-title { font-size: 26px; line-height: 34px; }
    .footer-tagline { font-size: 20px; line-height: 28px; }
}
@media (max-width: 480px) {
    .lu-hero, .lu-services, .section-in, .lu-footer-in, .lu-footer-note { padding-left: var(--space-4); padding-right: var(--space-4); }
    .lu-hero { padding-top: var(--space-8); padding-bottom: var(--space-8); gap: var(--space-8); }
    .lu-hero-title { font-size: min(30px, 7.4vw); line-height: 1.25; }
    .client-list { grid-template-columns: 1fr; }
    .lu-header .lu-btn { display: none; }
}
