/*
 * Global Stylesheet
 *
 * Base reset, typography defaults, layout utilities, and shared tokens.
 * Do not add component or template-specific styles here.
 *
 * Structure:
 *   1. CSS Custom Properties (tokens)
 *   2. Reset / Normalize
 *   3. Typography Base
 *   4. Layout Utilities
 *   5. Common Elements
 *   6. WordPress Core Classes
 */


/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
    /* Spacing scale */
    --space-xs:  0.25rem;   /* 4px  */
    --space-sm:  0.5rem;    /* 8px  */
    --space-md:  1rem;      /* 16px */
    --space-lg:  1.5rem;    /* 24px */
    --space-xl:  2rem;      /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */

    /* Container */
    --container-max: 1200px;
    --container-pad: var(--space-lg);

    /* Header */
    --header-height: 64px;

    /* Drawer */
    --drawer-width: 320px;
    --drawer-transition: 0.3s ease;

    /* Z-index layers */
    --z-header:  100;
    --z-drawer:  200;
    --z-overlay: 190;

    /* Brand colors */
    --color-black:   #000000;
    --color-white:   #ffffff;
    --color-green:   #a6ce39;
    --color-lime:    #d7e61a;

    /* UI tokens */
    --color-bg:      #ffffff;
    --color-text:    #111111;
    --color-muted:   #666666;
    --color-border:  #e0e0e0;
    --color-primary: #a6ce39;
    --color-accent:  #d7e61a;

    /* Typography */
    --font-base:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Billion Dreams', serif;
    --font-mono:    'Courier New', Courier, monospace;
    --text-sm:      0.875rem;
    --text-base:    1rem;
    --text-md:      1.125rem;
    --text-lg:      1.25rem;
    --text-xl:      1.5rem;
    --text-2xl:     2rem;
    --text-3xl:     2.5rem;
    --line-height:  1.6;
}


/* ==========================================================================
   2. Reset / Normalize
   ========================================================================== */

/* Already set in critical.css – only additions below */

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    padding: 0;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
}


/* ==========================================================================
   3. Typography Base
   ========================================================================== */

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-md);
}

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


/* ==========================================================================
   4. Layout Utilities
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.content-area {
    padding-block: var(--space-2xl);
}

.section {
    padding-block: var(--space-3xl);
}


/* ==========================================================================
   5. Common Elements
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-primary);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.button:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* Generic page header */
.page-header {
    padding-block: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
}

.page-header__title {
    font-size: var(--text-2xl);
}

/* Archive header */
.archive-header {
    padding-block: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-xl);
}

.archive-header__title {
    font-size: var(--text-2xl);
}

/* Posts grid – basic single-column default */
.posts-grid {
    display: grid;
    gap: var(--space-xl);
}

/* Entry */
.entry {
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}

.entry__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.entry__title a {
    text-decoration: none;
}

.entry__meta {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin-bottom: var(--space-md);
}

.entry__content {
    font-size: var(--text-base);
}

.entry__footer {
    margin-top: var(--space-md);
}

.entry__read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Post navigation */
.post-navigation {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

/* 404 */
.error-404 {
    padding-block: var(--space-3xl);
    text-align: center;
}

.error-404__title {
    margin-bottom: var(--space-lg);
}

/* No results */
.no-results {
    padding-block: var(--space-3xl);
    text-align: center;
}

.no-results__title {
    margin-bottom: var(--space-lg);
}


/* ==========================================================================
   6. WordPress Core Classes
   ========================================================================== */

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin-top: var(--space-xs);
}

.alignleft  { float: left;  margin: 0 var(--space-lg) var(--space-md) 0; }
.alignright { float: right; margin: 0 0 var(--space-md) var(--space-lg); }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { margin-inline: calc(var(--container-pad) * -1); }
.alignfull  { margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw; }

.wp-block-image figcaption {
    font-size: var(--text-sm);
    color: var(--color-muted);
}


/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--color-green, #a6ce39);
    color: #000;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(166, 206, 57, 0.45);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 24px rgba(166, 206, 57, 0.6);
    text-decoration: none;
    color: #000;
}

.whatsapp-float i {
    line-height: 1;
    pointer-events: none;
}
