/* =============================================
   H.A.I.R — Glowy Template Clone
   Fonts: Marcellus (headings), Lato (body)
   Palette: Teal #1A989D, Cream #FFFEFD, Dark #1F2833
   Buttons: square (0 radius), outlined
   ============================================= */

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === Design Tokens === */
:root {
    --color-bg: #FFFEFD;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F7F5F3;
    --color-cream: #FFFEFD;
    --color-cream-dark: #F5F0EB;

    --color-primary: #1A989D;
    --color-primary-hover: #158285;
    --color-primary-light: rgba(26, 152, 157, 0.08);
    --color-primary-medium: rgba(26, 152, 157, 0.15);
    --color-accent: #1A989D;

    --color-dark: #1F2833;
    --color-dark-light: #2A3544;
    --color-heading: #1F2833;
    --color-text: #405570;
    --color-text-muted: #7A8494;
    --color-text-light: rgba(255, 255, 255, 0.73);

    --color-border: #E8E2DC;
    --color-border-dark: #1F2833;
    --color-border-light: #F0EBE6;
    --color-danger: #DC2626;
    --color-warning: #D97706;
    --color-star: #F0AD4E;

    --font-heading: 'Marcellus', Georgia, 'Times New Roman', serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --radius-pill: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 6px 6px 9px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);

    --container-width: 1200px;
    --container-narrow: 750px;
    --header-height: 100px;
    --section-padding: 100px;
}

/* === Base === */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.25;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background-color: var(--color-primary);
    color: #fff;
}

/* === Container === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* === H.A.I.R. Logo === */
.logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}
.hair-logo {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2.2rem;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: baseline;
}
.hair-logo .h,
.hair-logo .r {
    color: var(--color-heading);
}
.hair-logo .ai {
    color: var(--color-primary);
}
.hair-logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-cream);
    height: var(--header-height);
    transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* App header (wizard) — compact, no landing nav */
.site-header--app {
    height: 70px;
}
.site-header--app ~ .site-main {
    margin-top: 70px;
}
.app-header-logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}
.site-header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.site-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.site-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* === Navigation === */
.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-nav a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--color-heading);
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--color-primary);
}

/* === Language Switcher === */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.lang-switcher a,
.lang-switcher span.active {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.lang-switcher a:hover {
    color: var(--color-heading);
}
.lang-switcher span.active {
    color: var(--color-primary);
    font-weight: 700;
}
.lang-switcher-sep {
    color: var(--color-border);
    font-size: 0.85rem;
    user-select: none;
}

.tenant-name {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
    padding-left: 1rem;
    border-left: 1px solid var(--color-border);
}

/* === Main === */
.site-main {
    flex: 1;
    width: 100%;
    margin-top: var(--header-height);
}

/* === Footer === */
.site-footer {
    background: var(--color-dark);
    color: var(--color-text-light);
    padding: 100px 0 0;
}
.site-footer a {
    color: var(--color-text-light);
    transition: color 0.3s;
}
.site-footer a:hover {
    color: var(--color-primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text-light);
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.6rem;
}
.footer-col ul li a {
    font-size: 0.9rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.footer-logo .hair-logo .h,
.footer-logo .hair-logo .r {
    color: #fff;
}

.disclaimer {
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-top: 1.5rem;
    opacity: 0.6;
}

/* === Buttons (Glowy: square, outlined) === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 16px 26px;
    border: 1px solid var(--color-border-dark);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    background: transparent;
    color: var(--color-heading);
}
.btn:hover {
    text-decoration: none;
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #fff;
}

.btn-dark {
    background: var(--color-dark);
    color: #fff;
    border-color: var(--color-dark);
}
.btn-dark:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-border-dark);
    color: var(--color-heading);
}
.btn-outline:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.btn-outline-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--color-dark);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    padding: 8px 16px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 0.9rem;
}
.btn-ghost:hover {
    color: var(--color-primary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 11px;
}
.btn-lg {
    padding: 18px 36px;
    font-size: 13px;
}
.btn-block {
    width: 100%;
}

/* === Cards === */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* === Form Elements === */
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 13px;
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--color-surface);
    color: var(--color-text);
}
.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.form-input::placeholder {
    color: var(--color-text-muted);
}

/* === Section Helpers === */
.section {
    padding: var(--section-padding) 0;
}
.section-cream {
    background: var(--color-cream-dark);
}
.section-dark {
    background: var(--color-dark);
    color: var(--color-text-light);
}
.section-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-heading);
    line-height: 1.25;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.section-subtitle {
    color: var(--color-text);
    font-size: 1rem;
    max-width: 560px;
    line-height: 1.7;
}
.section-header {
    margin-bottom: 3.5rem;
}
.section-header--center {
    text-align: center;
}
.section-header--center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* === Stars === */
.stars {
    color: var(--color-star);
    font-size: 1rem;
    letter-spacing: 2px;
}

/* === Utilities === */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-sm { font-size: 0.875rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
    :root {
        --section-padding: 70px;
    }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --section-padding: 50px;
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    .site-nav { display: none; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .container {
        padding: 0 20px;
    }
}
