/**
 * Global styles — Hanlid Child Theme
 *
 * All values reference CSS variables generated by hcs_generate_customizer_css().
 * Never hardcode hex or rem values here. Always var(--hcs-*, fallback).
 *
 * Replace hcs in this file with your project prefix.
 */

/* ===================================================================
   1. Reset / normalize
   =================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--hcs-font-body, system-ui, sans-serif);
    color: var(--hcs-text, #1a1a1a);
    background: var(--hcs-bg-light, #fafaf5);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: var(--hcs-primary); }
a:hover { color: var(--hcs-primary-hover); }

/* ===================================================================
   2. Typography
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hcs-font-heading, Georgia, serif);
    color: var(--hcs-text);
    margin: 0 0 var(--hcs-space, 16px);
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }

p { margin: 0 0 var(--hcs-space, 16px); }

.hcs-eyebrow {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--hcs-accent);
    font-weight: 600;
    margin: 0 0 var(--hcs-space-sm, 8px);
}

/* ===================================================================
   3. Layout utilities
   =================================================================== */
.hcs-container {
    max-width: var(--hcs-container, 1200px);
    margin: 0 auto;
    padding-inline: var(--hcs-space, 16px);
}

.hcs-section {
    padding-block: var(--hcs-space-xl, 48px);
}

@media (min-width: 1024px) {
    .hcs-section { padding-block: var(--hcs-space-2xl, 80px); }
}

.hcs-grid {
    display: grid;
    gap: var(--hcs-space-lg, 24px);
}

/* ===================================================================
   4. Buttons (tap target ≥ 44px)
   =================================================================== */
.hcs-btn,
button.hcs-btn,
a.hcs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--hcs-space-sm, 8px);
    min-width: var(--hcs-tap-min, 44px);
    min-height: var(--hcs-tap-min, 44px);
    padding: 12px 24px;
    font: 600 .95rem/1 var(--hcs-font-body);
    border-radius: var(--hcs-radius, 8px);
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.hcs-btn:focus-visible {
    outline: 0;
    box-shadow: var(--hcs-focus-ring);
}

/* Primary */
.hcs-btn--primary {
    background: var(--hcs-primary);
    color: #fff;
}
.hcs-btn--primary:hover {
    background: var(--hcs-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--hcs-shadow);
}

/* Accent */
.hcs-btn--accent {
    background: var(--hcs-accent);
    color: #fff;
}
.hcs-btn--accent:hover {
    background: var(--hcs-accent-hover);
    color: #fff;
}

/* Ghost */
.hcs-btn--ghost {
    background: transparent;
    color: var(--hcs-primary);
    border: 1px solid var(--hcs-primary);
}
.hcs-btn--ghost:hover {
    background: var(--hcs-primary);
    color: #fff;
}

/* ===================================================================
   5. Cards
   =================================================================== */
.hcs-card {
    background: var(--hcs-surface);
    border-radius: var(--hcs-radius-lg);
    box-shadow: var(--hcs-shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hcs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hcs-shadow-lg);
}

.hcs-card__body {
    padding: var(--hcs-space-lg);
}

/* ===================================================================
   6. Forms
   =================================================================== */
.hcs-field {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font: 1rem/1.4 var(--hcs-font-body);
    color: var(--hcs-text);
    background: var(--hcs-surface);
    border: 1px solid var(--hcs-border);
    border-radius: var(--hcs-radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hcs-field:focus {
    outline: 0;
    border-color: var(--hcs-primary);
    box-shadow: var(--hcs-focus-ring);
}

label.hcs-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--hcs-text-muted);
    margin-bottom: 4px;
}

/* ===================================================================
   7. WhatsApp floating widget (Hanlid standard)
   =================================================================== */
.hcs-wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    text-decoration: none;
    transition: transform .15s ease;
}
.hcs-wa-float:hover { transform: scale(1.08); color: #fff; }
.hcs-wa-float svg { width: 28px; height: 28px; }

/* ===================================================================
   8. Responsive breakpoints (Hanlid standard)
   =================================================================== */
/* Mobile first; specialize up */
@media (min-width: 768px) {
    /* tablet */
}
@media (min-width: 1024px) {
    /* desktop */
}

/* Extra small Androids */
@media (max-width: 374px) {
    h1 { font-size: 1.5rem; }
    .hcs-container { padding-inline: 12px; }
}

/* ===================================================================
   9. Accessibility helpers
   =================================================================== */
.hcs-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================================================
   10. WP / Elementor overrides (light touch)
   =================================================================== */
.elementor-section { contain: layout style; }

.wp-block-image img { border-radius: var(--hcs-radius); }

/* Skip link visible on focus */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 16px;
    background: var(--hcs-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--hcs-radius);
    z-index: 100000;
}
.skip-link:focus { left: 16px; }
