/* ==========================================================================
   KHLG — Interior Page Styles
   --------------------------------------------------------------------------
   Extends the design system defined in /styles.css (colors, fonts, spacing
   tokens from :root) for pages the frontend developer has not yet designed
   a bespoke layout for (About, Products) and for the Contact form, which
   previously depended on Tailwind CSS that isn't loaded on these pages.
   Only loaded on interior pages via @push('styles'); the homepage is
   untouched by this file.
   ========================================================================== */

.page-hero {
    position: relative;
    padding: clamp(160px, 22vw, 220px) 0 clamp(64px, 8vw, 96px);
    background: linear-gradient(160deg, var(--khlg-navy, #102a43) 0%, var(--khlg-blue, #1b5589) 100%);
    color: #fff;
    overflow: hidden;
}

.page-hero__eyebrow {
    display: inline-block;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--khlg-light-cyan, #8edcf5);
    margin: 0 0 1rem;
}

.page-hero__title {
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 600;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.12;
    margin: 0;
    max-width: 22ch;
}

.page-placeholder {
    background: var(--surface, #fff);
}

.page-placeholder__inner {
    max-width: 640px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.page-placeholder__note {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft, #5d6673);
    margin: 0;
}

.page-placeholder__note code {
    font-family: "Roboto Mono", "Courier New", monospace;
    background: var(--surface-2, #f0f3f6);
    padding: 0.1em 0.45em;
    border-radius: 4px;
    color: var(--ink, #101827);
    font-size: 0.9em;
}

/* ── Contact page layout ─────────────────────────────────────────────── */

.contact-layout {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: 0.85fr 1.15fr;
    }
}

.contact-info__note {
    font-family: "Roboto", Arial, sans-serif;
    color: var(--ink-soft, #5d6673);
    line-height: 1.7;
    margin: 0 0 1.75rem;
}

.contact-info__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contact-info__list a,
.contact-info__list span {
    font-family: "Roboto", Arial, sans-serif;
    color: var(--ink, #101827);
}

.contact-info__list a {
    text-decoration: none;
    border-bottom: 1px solid var(--line, rgba(16, 24, 39, .14));
    transition: border-color .2s var(--ease, ease), color .2s var(--ease, ease);
}

.contact-info__list a:hover {
    color: var(--khlg-blue, #1b5589);
    border-color: var(--khlg-blue, #1b5589);
}

.contact-info__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft, #5d6673);
    margin-bottom: 0.2rem;
}

.khlg-form-card {
    background: var(--surface-2, #f0f3f6);
    border-radius: var(--radius, 24px);
    padding: clamp(24px, 3.5vw, 44px);
}

/* ── Form (used by livewire/contact-form.blade.php) ─────────────────── */

.khlg-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-family: "Roboto", Arial, sans-serif;
}

.khlg-form__row {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .khlg-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.khlg-form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink, #101827);
    margin-bottom: 0.4rem;
}

.khlg-form__label .is-optional {
    font-weight: 400;
    color: var(--ink-soft, #5d6673);
}

.khlg-form__required {
    color: #c0362c;
}

.khlg-form__control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink, #101827);
    background: #fff;
    border: 1.5px solid var(--line-strong, rgba(16, 24, 39, .26));
    border-radius: 12px;
    transition: border-color .2s var(--ease, ease), box-shadow .2s var(--ease, ease);
}

.khlg-form__control:focus {
    outline: none;
    border-color: var(--khlg-blue, #1b5589);
    box-shadow: 0 0 0 4px rgba(27, 85, 137, 0.12);
}

.khlg-form__control.has-error {
    border-color: #c0362c;
}

.khlg-form__control.has-error:focus {
    box-shadow: 0 0 0 4px rgba(192, 54, 44, 0.1);
}

textarea.khlg-form__control {
    resize: vertical;
    min-height: 130px;
}

.khlg-form__error {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: #c0362c;
}

.khlg-form__privacy {
    margin: 0;
    font-size: 0.78rem;
    color: var(--ink-soft, #5d6673);
}

.khlg-form__privacy a {
    color: var(--khlg-blue, #1b5589);
}

.khlg-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--khlg-blue, #1b5589);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s var(--ease, ease), transform .2s var(--ease, ease);
}

.khlg-form__submit:hover {
    background: var(--khlg-deep-blue, #044b85);
}

.khlg-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.khlg-form__submit svg {
    width: 1.1rem;
    height: 1.1rem;
}

.khlg-form__success {
    text-align: center;
    padding: 2.5rem 1rem;
    font-family: "Roboto", Arial, sans-serif;
}

.khlg-form__success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: #1c8a53;
    display: grid;
    place-items: center;
    color: #fff;
}

.khlg-form__success h3 {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 1.4rem;
    color: var(--ink, #101827);
    margin: 0 0 0.5rem;
}

.khlg-form__success p {
    color: var(--ink-soft, #5d6673);
    max-width: 32ch;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

.khlg-form__reset {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    background: var(--khlg-blue, #1b5589);
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.khlg-form__reset:hover {
    background: var(--khlg-deep-blue, #044b85);
}
