/* ═══════════════════════════════════════════════════════════════
   AHINSA DENIM — GLOBAL STYLESHEET
   Design system, reusable components, base styles.
   Fonts loaded via <link> in header.php (not @import here).
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   1. RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }

/* ─────────────────────────────────────────────
   2. TYPOGRAPHY — Poppins only
───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────
   3. CSS VARIABLES (theme tokens in theme.css)
───────────────────────────────────────────── */
:root {
    --orange:       rgb(243, 113, 33);
    --orange-light: rgb(255, 140, 60);
    --orange-dim:   rgba(243, 113, 33, 0.12);
    --orange-glow:  rgba(243, 113, 33, 0.25);
    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    20px;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.12);
    --shadow-md:    0 8px 24px rgba(0,0,0,0.18);
    --shadow-lg:    0 20px 48px rgba(0,0,0,0.28);
    --transition:   all 0.25s ease;
    --nav-h:        68px;
}

/* ─────────────────────────────────────────────
   4. LAYOUT UTILITIES
───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.container-sm  { max-width: 900px;  margin: 0 auto; padding: 0 2rem; }
.container-xs  { max-width: 640px;  margin: 0 auto; padding: 0 2rem; }
.section-pad   { padding: 5rem 0; }
.section-pad-sm{ padding: 3rem 0; }
@media (max-width: 768px) {
    .container, .container-sm, .container-xs { padding: 0 1.25rem; }
    .section-pad    { padding: 3.5rem 0; }
    .section-pad-sm { padding: 2rem 0; }
}

/* ─────────────────────────────────────────────
   5. PAGE BANNER — Inner page hero (reusable)
───────────────────────────────────────────── */
.page-banner {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    padding: var(--nav-h) 0 3rem;
    background: var(--bg2, #111114);
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(243,113,33,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.page-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
}
.page-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.page-banner-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.75rem;
}
.page-banner h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text, #e4e4e7);
    margin-bottom: 1rem;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-sub, rgba(255,255,255,0.5));
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-sub, rgba(255,255,255,0.5)); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { font-size: 0.6rem; opacity: 0.4; }
@media (max-width: 768px) {
    .page-banner { min-height: 200px; padding-bottom: 2rem; }
    .page-banner-content { padding: 0 1.25rem; }
}

/* ─────────────────────────────────────────────
   6. BUTTONS
───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 4px 16px rgba(243,113,33,0.3);
}
.btn-primary:hover {
    background: var(--orange-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(243,113,33,0.45);
}
.btn-outline {
    background: transparent;
    color: var(--text, #e4e4e7);
    border: 1px solid var(--border, rgba(255,255,255,0.15));
}
.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-dim);
}
.btn-orange-outline {
    background: transparent;
    color: var(--orange);
    border: 1px solid var(--orange);
}
.btn-orange-outline:hover {
    background: var(--orange);
    color: #fff;
}
@media (max-width: 480px) { .btn { padding: 0.65rem 1.2rem; font-size: 0.78rem; } }

/* ─────────────────────────────────────────────
   7. SECTION HEADER (shared across pages)
───────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--text, #e4e4e7);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-sub, rgba(255,255,255,0.55));
    max-width: 580px;
    margin: 0 auto;
}
.section-divider {
    width: 40px;
    height: 2px;
    background: var(--orange);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* ─────────────────────────────────────────────
   8. CARDS
───────────────────────────────────────────── */
.card {
    background: var(--card-bg, #18181b);
    border: 1px solid var(--card-border, rgba(255,255,255,0.07));
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-body { padding: 1.5rem; }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ─────────────────────────────────────────────
   9. BACK-TO-TOP BUTTON
───────────────────────────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 16px rgba(243,113,33,0.4);
    border: none;
    cursor: pointer;
}
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#back-to-top:hover { background: var(--orange-light); transform: translateY(-2px); }

/* ─────────────────────────────────────────────
   10. SCROLL LINE ANIMATION (orange grow line)
───────────────────────────────────────────── */
.line-space {
    height: 15vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.line-grow {
    width: 2px;
    background: var(--orange);
    transform: scaleY(0);
    transform-origin: top;
    animation: growLine 0.8s ease-out forwards;
}
@keyframes growLine {
    from { height: 0; }
    to   { height: 15vh; }
}

/* ─────────────────────────────────────────────
   11. FORM ELEMENTS
───────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-sub, rgba(255,255,255,0.6));
    margin-bottom: 0.45rem;
    letter-spacing: 0.04em;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg3, #18181b);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: var(--radius-sm);
    color: var(--text, #e4e4e7);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
}
.form-control::placeholder { color: var(--text-sub, rgba(255,255,255,0.3)); }
.form-control:focus {
    border-color: var(--orange);
    background: rgba(243,113,33,0.04);
    box-shadow: 0 0 0 3px rgba(243,113,33,0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ─────────────────────────────────────────────
   12. BADGE / TAG
───────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
}
.badge-orange { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(243,113,33,0.25); }
.badge-dark   { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.1); }

/* ─────────────────────────────────────────────
   13. TABLE
───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border, rgba(255,255,255,0.07)); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: var(--bg3, #18181b);
    color: var(--text, #e4e4e7);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
}
.data-table td {
    padding: 0.85rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-sub, rgba(255,255,255,0.65));
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.05));
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ─────────────────────────────────────────────
   14. AOS INTEGRATION
───────────────────────────────────────────── */
[data-aos].aos-animate { transform: scaleY(1) !important; }

/* ─────────────────────────────────────────────
   15. PAGE LOADER
───────────────────────────────────────────── */
#loader {
    position: fixed;
    inset: 0;
    background: var(--orange);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#loader.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}
#loader img { max-width: 180px; object-fit: contain; }

/* ─────────────────────────────────────────────
   16. RESPONSIVE HELPERS
───────────────────────────────────────────── */
.hide-mobile  { display: block; }
.show-mobile  { display: none; }
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
}
.text-center { text-align: center; }
.text-left   { text-align: left; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ─────────────────────────────────────────────
   17. OLD FOOTER COMPAT (footer.php uses .site-footer)
   site-footer styles are in footer.php inline <style>.
   These rules keep old .footer class working on other pages.
───────────────────────────────────────────── */
.footer {
    background: var(--bg, #0a0a0c);
    color: var(--text, #e4e4e7);
    padding: 3rem 2rem 1.5rem;
    font-family: 'Poppins', sans-serif;
}
.footer-container { display: flex; flex-wrap: wrap; gap: 2.5rem; border-bottom: 1px solid var(--border, rgba(255,255,255,0.07)); padding-bottom: 2.5rem; }
.footer-left { flex: 1; min-width: 240px; max-width: 300px; }
.footer-title { margin: 1.25rem 0 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--text, #e4e4e7); }
address { font-style: normal; font-size: 0.82rem; line-height: 1.7; color: var(--text-sub, rgba(255,255,255,0.5)); }
address a { color: rgba(243,113,33,0.8); transition: color 0.2s; }
address a:hover { color: var(--orange); }
.follow-title { margin-top: 1.5rem; font-weight: 600; font-size: 0.82rem; color: var(--text, #e4e4e7); }
.social-icons { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.social-icons a { color: var(--text-sub, rgba(255,255,255,0.55)); font-size: 1rem; transition: color 0.2s; }
.social-icons a:hover { color: var(--orange); }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; flex: 3; }
.footer-links h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; color: var(--text, #e4e4e7); }
.footer-links a { display: block; font-size: 0.8rem; color: var(--text-sub, rgba(255,255,255,0.5)); margin-bottom: 0.45rem; transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--orange); padding-left: 0.3rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; color: var(--text-sub, rgba(255,255,255,0.35)); font-size: 0.75rem; padding-top: 1.25rem; gap: 0.75rem; }
.footer-bottom a { color: var(--text-sub, rgba(255,255,255,0.35)); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--orange); }
@media (max-width: 768px) { .footer-bottom { justify-content: center; text-align: center; } }
