/*
Theme Name:  Hujan As Salam
Theme URI:   https://parenting.hujanassalam.my.id
Author:      Hujan As Salam
Author URI:  https://hujanassalam.my.id
Description: Tema WordPress modern untuk platform Parenting Islami. Dirancang khusus untuk bekerja bersama plugin Parenting Hujan As Salam. Fitur: desain elegan bernuansa Islami, tipografi premium, layout responsif, integrasi penuh dengan AI Generator, Forum, Checklist, dan semua fitur plugin PHA.
Version:     1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: has
Tags:        islamic, parenting, blog, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, footer-widgets, full-width-template
*/

/* === IMPORT FONT === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

/* =====================================================
   TOKENS
===================================================== */
:root {
    /* Brand */
    --has-forest:     #1a4731;
    --has-forest-m:   #2d7a56;
    --has-forest-l:   #4aad7a;
    --has-forest-xl:  #6ee7b7;
    --has-mint:       #d1f0e0;
    --has-mint-l:     #ecfdf5;
    --has-gold:       #c9a84c;
    --has-gold-d:     #a8852e;
    --has-gold-l:     #f5e9c4;
    --has-gold-xl:    #fef9ec;

    /* Neutrals */
    --has-cream:      #fdf8f0;
    --has-cream-d:    #f3ece0;
    --has-white:      #ffffff;
    --has-ink:        #1c1c1c;
    --has-ink-m:      #444444;
    --has-ink-l:      #777777;
    --has-ink-xl:     #aaaaaa;

    /* UI */
    --has-border:     rgba(26,71,49,.1);
    --has-border-m:   rgba(26,71,49,.18);
    --has-shadow:     0 2px 20px rgba(26,71,49,.07);
    --has-shadow-m:   0 4px 32px rgba(26,71,49,.11);
    --has-shadow-l:   0 8px 48px rgba(26,71,49,.16);

    /* Spacing */
    --has-gap:        1.5rem;
    --has-gap-l:      2.5rem;

    /* Radius */
    --has-r-sm:       8px;
    --has-r-md:       14px;
    --has-r-lg:       20px;
    --has-r-xl:       28px;

    /* Typography */
    --has-font-head:  'Playfair Display', Georgia, serif;
    --has-font-body:  'Plus Jakarta Sans', system-ui, sans-serif;
    --has-font-ara:   'Amiri', serif;

    /* Transitions */
    --has-tr:         all .2s ease;
}

/* =====================================================
   RESET & BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--has-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--has-ink);
    background: var(--has-cream);
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--has-forest-m); transition: var(--has-tr); }
a:hover { color: var(--has-forest); }
ul, ol { padding-left: 1.4rem; }
table { width: 100%; border-collapse: collapse; }
input, select, textarea, button {
    font-family: var(--has-font-body);
    font-size: inherit;
}

/* =====================================================
   LAYOUT
===================================================== */
.has-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.has-container-wide { max-width: 1400px; }
.has-container-narrow { max-width: 820px; }

.has-site-wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

/* Content + Sidebar */
.has-content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    padding: 3rem 0;
    align-items: start;
}
.has-content-area.has-full-width {
    grid-template-columns: 1fr;
}
@media (max-width: 1024px) {
    .has-content-area { grid-template-columns: 1fr; }
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--has-font-head);
    font-weight: 700;
    line-height: 1.25;
    color: var(--has-ink);
    margin-bottom: .75rem;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.has-lead {
    font-size: 1.15rem;
    color: var(--has-ink-m);
    line-height: 1.8;
    font-weight: 400;
}
.has-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--has-forest-m);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}
.has-section-title {
    font-family: var(--has-font-head);
    font-size: clamp(1.65rem, 3.2vw, 2.4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: .5rem;
}
.has-section-title em { font-style: normal; color: var(--has-forest-m); }
.has-divider {
    width: 52px; height: 3px;
    background: linear-gradient(90deg, var(--has-forest-m), var(--has-gold));
    border-radius: 2px;
    margin: .7rem 0 1.4rem;
}
.has-divider-center { margin-left: auto; margin-right: auto; }

/* Arabic */
.has-arabic {
    font-family: var(--has-font-ara);
    direction: rtl;
    font-size: 1.5rem;
    line-height: 2;
    color: var(--has-forest);
}

/* =====================================================
   BUTTONS
===================================================== */
.has-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .72rem 1.65rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: .875rem;
    cursor: pointer;
    border: none;
    transition: var(--has-tr);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.has-btn-primary { background: var(--has-forest); color: #fff; }
.has-btn-primary:hover { background: var(--has-forest-m); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,71,49,.28); }
.has-btn-secondary { background: var(--has-gold); color: #fff; }
.has-btn-secondary:hover { background: var(--has-gold-d); color: #fff; transform: translateY(-2px); }
.has-btn-outline { background: transparent; color: var(--has-forest); border: 2px solid var(--has-forest); }
.has-btn-outline:hover { background: var(--has-mint); color: var(--has-forest); }
.has-btn-ghost { background: var(--has-mint); color: var(--has-forest); }
.has-btn-ghost:hover { background: var(--has-mint-l); color: var(--has-forest); }
.has-btn-sm { padding: .48rem 1.1rem; font-size: .8rem; }
.has-btn-lg { padding: .95rem 2.2rem; font-size: 1rem; }

/* =====================================================
   CARDS
===================================================== */
.has-card {
    background: var(--has-white);
    border-radius: var(--has-r-lg);
    border: 1px solid var(--has-border);
    overflow: hidden;
    transition: var(--has-tr);
}
.has-card:hover {
    box-shadow: var(--has-shadow-m);
    transform: translateY(-3px);
    border-color: var(--has-mint);
}
.has-card-body { padding: 1.5rem; }
.has-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--has-border);
    background: var(--has-cream);
}

/* =====================================================
   BADGES & TAGS
===================================================== */
.has-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--has-mint);
    color: var(--has-forest);
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    transition: var(--has-tr);
}
.has-badge:hover { background: var(--has-forest); color: #fff; }
.has-badge-gold { background: var(--has-gold-l); color: #7a5c10; }
.has-badge-gold:hover { background: var(--has-gold); color: #fff; }

/* =====================================================
   FORMS
===================================================== */
.has-form-group { margin-bottom: 1.25rem; }
.has-label {
    display: block;
    font-size: .83rem;
    font-weight: 700;
    color: var(--has-ink);
    margin-bottom: .42rem;
}
.has-input, .has-select, .has-textarea {
    width: 100%;
    padding: .72rem 1rem;
    border: 1.5px solid var(--has-border-m);
    border-radius: var(--has-r-sm);
    background: var(--has-white);
    color: var(--has-ink);
    font-size: .9rem;
    transition: var(--has-tr);
    outline: none;
}
.has-input:focus, .has-select:focus, .has-textarea:focus {
    border-color: var(--has-forest-m);
    box-shadow: 0 0 0 3px rgba(45,122,86,.12);
}
.has-textarea { min-height: 130px; resize: vertical; }

/* =====================================================
   ALERTS
===================================================== */
.has-alert {
    padding: .9rem 1.2rem;
    border-radius: var(--has-r-sm);
    font-size: .88rem;
    margin: 1rem 0;
    border-left: 4px solid;
}
.has-alert-success { background: var(--has-mint-l); color: var(--has-forest); border-color: var(--has-forest-m); }
.has-alert-warning { background: #fef9ec; color: #7a5c10; border-color: var(--has-gold); }
.has-alert-error   { background: #fff0f0; color: #9b1c1c; border-color: #e11d48; }
.has-alert-info    { background: #eff6ff; color: #1e40af; border-color: #3b82f6; }

/* =====================================================
   SKIP LINK
===================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--has-forest);
    color: white;
    padding: .5rem 1rem;
    border-radius: 0 0 8px 8px;
    font-size: .85rem;
    z-index: 9999;
    transition: top .2s;
}
.skip-link:focus { top: 0; }

/* =====================================================
   BREADCRUMBS
===================================================== */
.has-breadcrumb {
    padding: .85rem 0;
    font-size: .8rem;
    color: var(--has-ink-l);
    border-bottom: 1px solid var(--has-border);
    margin-bottom: 2rem;
}
.has-breadcrumb a { color: var(--has-forest-m); }
.has-breadcrumb a:hover { color: var(--has-forest); }
.has-breadcrumb .sep { margin: 0 .4rem; opacity: .5; }
.has-breadcrumb .current { color: var(--has-ink-m); }

/* =====================================================
   PAGINATION
===================================================== */
.has-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 2.5rem 0;
    flex-wrap: wrap;
}
.has-pagination a, .has-pagination span {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--has-r-sm);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--has-border);
    background: var(--has-white);
    color: var(--has-ink-m);
    transition: var(--has-tr);
}
.has-pagination a:hover { background: var(--has-forest); color: #fff; border-color: var(--has-forest); }
.has-pagination .current { background: var(--has-forest); color: #fff; border-color: var(--has-forest); }

/* =====================================================
   ENTRY CONTENT (Prose)
===================================================== */
.has-entry-content {
    line-height: 1.85;
    color: var(--has-ink-m);
    font-size: 1.02rem;
}
.has-entry-content h2,
.has-entry-content h3,
.has-entry-content h4 { color: var(--has-ink); margin-top: 2rem; }
.has-entry-content a { color: var(--has-forest-m); border-bottom: 1px dashed var(--has-forest-l); }
.has-entry-content a:hover { color: var(--has-forest); border-bottom-style: solid; }
.has-entry-content ul, .has-entry-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.has-entry-content li { margin-bottom: .4rem; }
.has-entry-content blockquote {
    border-left: 4px solid var(--has-forest-m);
    background: var(--has-mint-l);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--has-r-sm) var(--has-r-sm) 0;
    font-style: italic;
    color: var(--has-forest);
}
.has-entry-content code {
    background: var(--has-cream-d);
    padding: .15rem .45rem;
    border-radius: 5px;
    font-size: .88em;
    font-family: 'Courier New', monospace;
    color: var(--has-forest);
}
.has-entry-content pre {
    background: var(--has-ink);
    color: var(--has-forest-xl);
    padding: 1.25rem;
    border-radius: var(--has-r-sm);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: .875rem;
}
.has-entry-content pre code { background: none; color: inherit; padding: 0; }
.has-entry-content img { border-radius: var(--has-r-md); margin: 1.5rem 0; }
.has-entry-content table { margin: 1.5rem 0; }
.has-entry-content th {
    background: var(--has-forest);
    color: white;
    padding: .65rem 1rem;
    text-align: left;
    font-size: .85rem;
}
.has-entry-content td {
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--has-border);
    font-size: .9rem;
}
.has-entry-content tr:nth-child(even) td { background: var(--has-cream); }
.has-entry-content hr { border: none; border-top: 2px solid var(--has-border); margin: 2rem 0; }

/* =====================================================
   RESPONSIVE UTILITIES
===================================================== */
.has-hide-mobile  { display: block; }
.has-show-mobile  { display: none; }
@media (max-width: 768px) {
    .has-hide-mobile { display: none; }
    .has-show-mobile { display: block; }
}
.has-text-center { text-align: center; }
.has-mt-1 { margin-top: 1rem; }
.has-mt-2 { margin-top: 2rem; }
.has-mb-1 { margin-bottom: 1rem; }
.has-mb-2 { margin-bottom: 2rem; }

/* =====================================================
   WORDPRESS ALIGNMENT CLASSES
===================================================== */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide  { margin-left: -2rem; margin-right: -2rem; }
.alignfull  { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--has-ink-l); text-align: center; padding: .4rem 0; }
img.aligncenter { margin-left: auto; margin-right: auto; }

/* =====================================================
   SCREEN READER
===================================================== */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute;
    height: 1px; width: 1px;
    overflow: hidden;
}
