/*
Theme Name: Beauty by Rhule
Theme URI: https://beautybyrhule.com
Author: Beauty by Rhule
Author URI: https://beautybyrhule.com
Description: A bespoke editorial luxury theme for Beauty by Rhule — a premium wig atelier based in Ghana. Built for WooCommerce with an intentional, high-fashion editorial aesthetic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: beautybyrhule
Tags: e-commerce, custom-menu, custom-logo, featured-images, theme-options

Beauty by Rhule — The Ethereal Atelier
*/

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* ── Signature & Accent ── */
    --color-primary: #E91E63;
    --color-primary-dark: #b80049;
    --color-primary-container: #FBEEF1;
    --color-on-primary: #ffffff;
    --color-on-primary-container: #880E4F;

    /* ── Surface Hierarchy (warm neutrals, subtle) ── */
    --color-background: #FDFBFB;
    --color-surface: #FDFBFB;
    --color-surface-dim: #E8E4E5;
    --color-surface-container-lowest: #ffffff;
    --color-surface-container-low: #F8F6F6;
    --color-surface-container: #F2EFEF;
    --color-surface-container-high: #ECEAEA;
    --color-surface-container-highest: #E6E3E3;

    /* ── Text ── */
    --color-on-background: #1C1B1B;
    --color-on-surface: #1C1B1B;
    --color-on-surface-variant: #514346;
    --color-secondary: #6A5D61;

    /* ── Borders & Outlines (used sparingly) ── */
    --color-outline: #837376;
    --color-outline-variant: #E6E1E2;

    /* ── Error ── */
    --color-error: #BA1A1A;
    --color-on-error: #ffffff;

    /* ── Typography ── */
    --font-serif: 'Playfair Display', 'Newsreader', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* ── Spacing Scale ── */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* ── Radius ── */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-pill: 9999px;

    /* ── Shadows (Ambient, Breathable) ── */
    --shadow-whisper: 0px 12px 32px rgba(233, 30, 99, 0.04);
    --shadow-soft: 0px 4px 16px rgba(28, 27, 27, 0.06);
    --shadow-elevated: 0px 8px 32px rgba(28, 27, 27, 0.08);

    /* ── Transitions ── */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 700ms ease;
    --transition-dramatic: 1000ms ease;

    /* ── Layout ── */
    --max-width: 1280px;
    --header-height: 90px;
}


/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

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

body {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-on-background);
    background-color: var(--color-background);
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

::selection {
    background-color: var(--color-primary-container);
    color: var(--color-on-primary-container);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}


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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-on-surface);
}

/* Display — Hero statements */
.display-lg {
    font-size: clamp(2.75rem, 6vw, 5.5rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

/* Headline — Section headers */
.headline-lg {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.headline-md {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/* Title — Cards, product names */
.title-lg {
    font-size: 1.375rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.title-md {
    font-size: 1.125rem;
    font-family: var(--font-body);
    font-weight: 500;
}

/* Body */
.body-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.body-md {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.body-sm {
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* Label — Tags, metadata, buttons */
.label-lg {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.label-md {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.label-sm {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Italic serif accent */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
}


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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.container--wide {
    max-width: 1440px;
}

.container--narrow {
    max-width: 800px;
}

.section-padding {
	position: relative;
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
}

@media (max-width: 768px) {
    .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

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


/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

/* Primary — Gradient fill */
.btn--primary {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-on-primary);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.25);
}

.btn--primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 24px rgba(233, 30, 99, 0.3);
}

/* Secondary — Surface fill with ghost border */
.btn--secondary {
    background: var(--color-surface-container-lowest);
    color: var(--color-on-surface);
    box-shadow: inset 0 0 0 1px rgba(244, 215, 223, 0.5);
}

.btn--secondary:hover {
    background: var(--color-surface-container);
    box-shadow: inset 0 0 0 1px var(--color-primary);
    color: var(--color-primary);
}

/* Tertiary — Text link style */
.btn--tertiary {
    background: none;
    color: var(--color-primary);
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(233, 30, 99, 0.3);
}

.btn--tertiary:hover {
    text-decoration-color: var(--color-primary);
}

/* Full width */
.btn--block {
    width: 100%;
}


/* ==========================================================================
   6. Form Elements
   ========================================================================== */

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    color: var(--color-on-surface);
    background: var(--color-surface-container-lowest);
    border: 1px solid rgba(244, 215, 223, 0.2);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

.form-input::placeholder {
    color: var(--color-outline);
}


/* ==========================================================================
   7. Card Base
   ========================================================================== */

.card {
    background: var(--color-surface-container-low);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-whisper);
}


/* ==========================================================================
   8. Screen Reader Only
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   9. WordPress Core Alignment
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: var(--space-lg);
    margin-bottom: var(--space-md);
}

.alignright {
    float: right;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--color-secondary);
    margin-top: var(--space-sm);
}
