/* ============================================
   RECITE & RISE - Design System
   WordPress-Ready Foundation
   ============================================ */

/* --------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------- */
:root {
    /* Colour Palette */
    --color-jade: #5B9A8B;
    --color-jade-dark: #4A857A;
    --color-jade-light: #7AB5A8;
    --color-warm-white: #f5f4f2;
    --color-cream: #f5f4f2;
    --color-gold: #8C7A54;
    --color-gold-muted: #A99573;
    --color-text-dark: #2D3436;
    --color-text-body: #4A5568;
    --color-text-light: #718096;
    --color-border: #BFB49E;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-body: 'Lora', 'Georgia', 'Times New Roman', serif;
    
    /* Font Sizes (Mobile-first) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing */
    --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;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
}

/* --------------------------------------------
   CSS Reset & Base Styles
   -------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-body);
    background-color: var(--color-warm-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

a {
    color: var(--color-jade);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-jade-dark);
    text-decoration: underline;
}

ul, ol {
    list-style-position: inside;
}

/* --------------------------------------------
   Typography
   -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

h1 {
    font-size: var(--text-3xl);
}

h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
}

/* Section titles need more breathing room */
.section h2,
.section-cream h2,
.section-white h2 {
    margin-bottom: var(--space-xl);
}

h3 {
    font-size: var(--text-xl);
}

h4 {
    font-size: var(--text-lg);
}

h5, h6 {
    font-size: var(--text-base);
}

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

.lead {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold);
}

.text-jade {
    color: var(--color-jade);
}

/* --------------------------------------------
   Layout & Container
   -------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container-narrow {
    max-width: var(--container-md);
}

main {
    flex: 1;
}

/* Section Spacing */
.section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
}

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

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

/* Section backgrounds only (not cards/boxes) */
.section-cream,
.section-white {
    background-image: url('/images/background.png');
    background-repeat: repeat;
    background-size: 400px;
    background-position: center;
}

.section-cream {
}

.section-white {
}

/* --------------------------------------------
   Header & Navigation
   -------------------------------------------- */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo a:hover {
    text-decoration: none;
}

.site-logo-link {
    gap: var(--space-md);
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-dark);
}

.site-logo-text:hover {
    color: var(--color-text-dark);
}

.logo-img {
    height: 90px;
    max-width: 100%;
    width: auto;
    transition: transform var(--transition-fast);
    filter: brightness(1.08) saturate(1.1);
    /* Crop out the black circular border baked into the logo image */
    clip-path: inset(8% 8% 8% 8%);
}

.logo-img:hover {
    transform: scale(1.02);
}

/* Navigation */
.main-nav {
    display: none;
}

.main-nav.active {
    display: block;
    width: 100%;
    order: 3;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.nav-list a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-body);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--color-jade);
    text-decoration: none;
}

.nav-list a.active {
    color: var(--color-jade);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: transform var(--transition-fast);
}

.header-cta {
    display: none;
}

/* --------------------------------------------
   Buttons
   -------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1.5;
}

.btn:hover,
.btn:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Primary Button - Jade */
.btn-primary {
    background-color: var(--color-jade);
    border-color: var(--color-jade);
    color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-jade-dark);
    border-color: var(--color-jade-dark);
    color: var(--color-white);
}

/* Secondary Button - Outline */
.btn-secondary {
    background-color: transparent;
    border-color: var(--color-jade);
    color: var(--color-jade);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-jade);
    color: var(--color-white);
}

/* Gold Accent Button */
.btn-gold {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

/* WhatsApp Button - min 44px tap target for mobile */
.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: var(--color-white);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #20BD5A;
    border-color: #20BD5A;
    color: var(--color-white);
}

/* Payment CTA - calm, site-consistent */
.payment-cta {
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-cream);
    border-radius: var(--radius-md);
    max-width: 400px;
    margin: 0 auto;
}

.payment-cta .btn-payment {
    background-color: var(--color-jade);
    border-color: var(--color-jade);
    color: var(--color-white);
    min-height: 44px;
    padding: var(--space-md) var(--space-xl);
}

.payment-cta .btn-payment:hover,
.payment-cta .btn-payment:focus {
    background-color: var(--color-jade-dark);
    border-color: var(--color-jade-dark);
    color: var(--color-white);
}

.payment-cta-note {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-top: var(--space-md);
    margin-bottom: 0;
}


.btn-gold:hover,
.btn-gold:focus {
    background-color: var(--color-gold-muted);
    border-color: var(--color-gold-muted);
    color: var(--color-white);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --------------------------------------------
   Cards
   -------------------------------------------- */
.card {
    background-color: #f5f4f2;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card-with-image,
.card-white {
    background-color: #FFFFFF;
}

.card-dark {
    background-color: #2D2D2D;
    color: #FFFFFF;
}

.card-dark .card-title,
.card-dark h3,
.card-dark h4,
.card-dark strong {
    color: #FFFFFF;
}

.card-dark .card-text {
    color: rgba(255, 255, 255, 0.88);
}
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-border);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: var(--space-xl);
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.card-text {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-cream);
    border-top: 1px solid var(--color-border);
}

/* Card Grid */
.card-grid {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
}

/* --------------------------------------------
   Tables
   -------------------------------------------- */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background-color: var(--color-jade);
    color: var(--color-white);
    font-weight: 600;
    font-family: var(--font-body);
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: var(--color-cream);
}

tr:hover {
    background-color: rgba(91, 154, 139, 0.08);
}

/* Pricing Table Specific */
.pricing-highlight {
    background-color: rgba(201, 169, 98, 0.1);
    font-weight: 600;
}

/* --------------------------------------------
   Forms
   -------------------------------------------- */
.form-group {
    margin-bottom: var(--space-xl);
}

.form-label {
    display: block;
    margin-bottom: var(--space-md);
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: var(--text-base);
}

.form-label.required::after {
    content: ' *';
    color: #E53E3E;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-body);
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-jade);
    box-shadow: 0 0 0 3px rgba(91, 154, 139, 0.15);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-top: var(--space-sm);
}

/* Centered form containers */
.text-center .form-group {
    text-align: left;
}

.text-center form {
    margin-top: var(--space-2xl);
}

/* Better button spacing in forms */
.form-group .btn {
    margin-top: var(--space-sm);
}

/* Privacy notice styling */
.form-privacy {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-top: var(--space-lg);
}

/* --------------------------------------------
   Footer
   -------------------------------------------- */
.site-footer {
    background-color: #2D2D2D;
    color: var(--color-white);
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-lg);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-md);
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-gold-muted);
}

.footer-section p,
.footer-section li {
    color: var(--color-white);
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-md);
}

.footer-section p {
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.footer-section a {
    color: var(--color-white);
    opacity: 0.9;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--color-gold-muted);
    text-decoration: none;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-style: italic;
    color: var(--color-gold-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.88);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-sm);
    opacity: 0.7;
    margin-bottom: 0;
}

.footer-bottom p + p {
    margin-top: var(--space-sm);
}

.footer-bottom a {
    color: var(--color-cream);
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--color-gold-muted);
    opacity: 1;
}

/* --------------------------------------------
   Hero Section
   -------------------------------------------- */
.hero {
    background-color: var(--color-jade);
    padding: var(--space-4xl) 0;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(74, 133, 122, 0.85), rgba(45, 52, 54, 0.75));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1,
.hero .lead {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .lead {
    opacity: 0.95;
}

.hero .btn-primary {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-jade);
}

.hero .btn-primary:hover,
.hero .btn-primary:focus {
    background-color: var(--color-cream);
    border-color: var(--color-cream);
    color: var(--color-jade-dark);
}

.hero .btn-secondary {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero .btn-secondary:hover,
.hero .btn-secondary:focus {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-jade);
}

.hero-content {
    max-width: var(--container-md);
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.hero .lead {
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
}

/* Page Header */
.page-header {
    background-color: var(--color-jade);
    padding: var(--space-4xl) 0;
    text-align: center;
    border-bottom: none;
    color: var(--color-white);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(74, 133, 122, 0.85), rgba(45, 52, 54, 0.8));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    margin-bottom: var(--space-sm);
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: var(--text-4xl);
}

.page-header .lead {
    margin-bottom: 0;
    max-width: var(--container-md);
    margin-left: auto;
    margin-right: auto;
    color: var(--color-white);
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Individual page header backgrounds */
.page-header--about {
    background-image: url('../../images/quran-study-group-arabic-language.png');
}

.page-header--courses {
    background-image: url('../../images/learn-quran-with-tajweed-online.png');
}

.page-header--fees {
    background-image: url('../../images/tajweed-course-for-adults-online.png');
}

.page-header--enrolment {
    background-image: url('../../images/Recite and Rise Arabic Tuition.png');
}

.page-header--contact {
    background-image: url('../../images/quranic-arabic-lessons-online-women.png');
}

.page-header--policies {
    background-image: url('../../images/classical-arabic-quran-lessons.png');
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    list-style: none;
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    justify-content: center;
}

.breadcrumb li {
    color: rgba(255, 255, 255, 0.88);
}

.breadcrumb li::after {
    content: '/';
    margin-left: var(--space-xs);
    color: rgba(255, 255, 255, 0.88);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
}

.breadcrumb a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* --------------------------------------------
   Feature List
   -------------------------------------------- */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: var(--space-lg);
}

.feature-list li {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-jade);
    font-weight: bold;
}

/* --------------------------------------------
   Utility Classes
   -------------------------------------------- */

/* Margins */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }
.mt-6 { margin-top: var(--space-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }
.mb-6 { margin-bottom: var(--space-3xl); }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.py-1 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-2 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-3 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-4 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-5 { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }

.px-2 { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-3 { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-4 { padding-left: var(--space-xl); padding-right: var(--space-xl); }

.p-3 { padding: var(--space-lg); }
.p-4 { padding: var(--space-xl); }
.p-5 { padding: var(--space-2xl); }

/* Max Widths for Content - responsive: cap at 100% on narrow viewports */
.max-w-sm { max-width: min(var(--container-sm), 100%); }
.max-w-md { max-width: min(var(--container-md), 100%); }
.max-w-lg { max-width: min(var(--container-lg), 100%); }
.max-w-600 { max-width: min(600px, 100%); }
.max-w-700 { max-width: min(700px, 100%); }
.max-w-800 { max-width: min(800px, 100%); }
.max-w-900 { max-width: min(900px, 100%); }
.max-w-1000 { max-width: min(1000px, 100%); }

/* Display & Flex */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }
.gap-4 { gap: var(--space-xl); }

/* Grid Layouts - grid-2/3/4 only used at larger breakpoints; grid-auto safe for mobile */
.grid { display: grid; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

/* Text Utilities */
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-light { color: var(--color-text-light); }
.text-dark { color: var(--color-text-dark); }
.text-white { color: var(--color-white); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.italic { font-style: italic; }

/* Width Utilities */
.w-full { width: 100%; }

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

/* --------------------------------------------
   CTA Section (Jade Gradient)
   -------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--color-jade) 0%, var(--color-jade-dark) 100%);
    color: var(--color-white);
    padding: var(--space-4xl) 0;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-xl);
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: var(--space-2xl);
}

.cta-section .btn-white {
    background: var(--color-white);
    color: var(--color-jade);
    border-color: var(--color-white);
}

.cta-section .btn-white:hover {
    background: var(--color-cream);
    border-color: var(--color-cream);
}

.cta-section .btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.cta-section .btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-jade);
}

/* --------------------------------------------
   Icon Circle (for step numbers)
   -------------------------------------------- */
.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--color-jade);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-xl);
    margin: 0 auto var(--space-lg);
}

.icon-circle-lg {
    width: 80px;
    height: 80px;
    font-size: var(--text-2xl);
}

.icon-circle-gold {
    background: var(--color-gold);
}

/* --------------------------------------------
   Category/Tag Badges
   -------------------------------------------- */
.badge {
    display: inline-block;
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-jade {
    background: var(--color-jade);
    color: var(--color-white);
}

.badge-gold {
    background: var(--color-gold);
    color: var(--color-white);
}

.badge-jade-dark {
    background: var(--color-jade-dark);
    color: var(--color-white);
}

/* --------------------------------------------
   Notice/Alert Box
   -------------------------------------------- */
.notice {
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.notice-jade {
    background: linear-gradient(135deg, var(--color-jade) 0%, var(--color-jade-dark) 100%);
    color: var(--color-white);
}

.notice-jade h2,
.notice-jade h3 {
    color: var(--color-white);
}

.notice-cream {
    background: var(--color-cream);
    color: var(--color-text-body);
}

/* --------------------------------------------
   Decorative Icon (emoji style)
   -------------------------------------------- */
.icon-lg {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.icon-xl {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    line-height: 1;
    color: var(--color-jade);
}

/* --------------------------------------------
   Activity Card Images
   -------------------------------------------- */
.activity-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.activity-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: var(--space-lg);
    background: var(--color-cream);
}

.activity-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.card:hover .activity-image-wrapper img {
    transform: scale(1.05);
}

/* --------------------------------------------
   Responsive Breakpoints
   -------------------------------------------- */

/* Mobile (< 768px): prevent overflow, relax spacing */
@media screen and (max-width: 767px) {
    .site-header,
    .header-inner,
    .site-logo,
    .site-logo-link {
        background-color: #f5f4f2;
    }

    .site-header {
        border-bottom-color: transparent;
    }

    .section,
    .section-lg {
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-3xl);
    }
    
    .section-sm {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }
    
    .hero,
    .page-header {
        padding: var(--space-3xl) 0;
    }
    
    .hero h1,
    .page-header h1 {
        font-size: var(--text-2xl);
        line-height: 1.25;
    }
    
    .hero .lead,
    .page-header .lead {
        font-size: var(--text-base);
    }
    
    .card-body {
        padding: var(--space-lg);
    }
    
    .lead {
        margin-bottom: var(--space-lg);
    }
    
    h2 {
        font-size: var(--text-xl);
    }
    
    p, h1, h2, h3, h4 {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .logo-img {
        height: 72px;
        filter: none;
    }
    
    .site-logo-text {
        font-size: calc(var(--text-lg) * 1.5);
    }
}

/* Tablet (768px and up) */
@media screen and (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    
    h1 {
        font-size: var(--text-4xl);
    }
    
    h2 {
        font-size: var(--text-3xl);
    }
    
    h3 {
        font-size: var(--text-2xl);
    }
    
    .hero h1 {
        font-size: var(--text-4xl);
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
    }
    
    .nav-list {
        flex-direction: row;
        gap: var(--space-xs);
    }
    
    .header-cta {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px and up) */
@media screen and (min-width: 1024px) {
    h1 {
        font-size: var(--text-5xl);
    }
    
    .hero h1 {
        font-size: var(--text-5xl);
    }
    
    .page-header h1 {
        font-size: var(--text-5xl);
    }
    
    .page-header {
        padding: var(--space-4xl) 0 var(--space-4xl);
    }
    
    .hero {
        padding: var(--space-4xl) 0 var(--space-4xl);
    }
    
    .container {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* --------------------------------------------
   Print Styles
   -------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* --------------------------------------------
   Accessibility Focus Styles
   -------------------------------------------- */
:focus-visible {
    outline: 3px solid var(--color-jade);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-jade);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

