/*
Theme Name: SMP Cahaya Qur'an
Theme URI: https://smpcahayaquran.sch.id
Author: kangniam.com
Author URI: https://kangniam.com
Description: Bespoke, lightweight WordPress theme for SMP Cahaya Qur'an — an Islamic education institution. Built native (no page builder), Tailwind-utility-driven, Core Web Vitals-optimized, with custom post types, JSON-LD structured data for SEO/AEO/GEO, and a modular customizer for hero, profile, and brand colors.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: scq
Tags: education, islamic-school, custom-theme, block-styles
*/

:root {
  --color-primary-dark: #134E3A;
  --color-primary-darker: #0F382C;
  --color-accent-gold: #C5A059;
  --color-accent-gold-strong: #D4AF37;
  --color-bg-pearl: #F8FAF9;
  --color-bg-white: #FFFFFF;
  --color-text-charcoal: #1F2937;
  --color-text-slate: #374151;

  --font-heading: 'Playfair Display', 'Amiri', serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;

  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 10px 30px -12px rgba(15, 56, 44, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-charcoal);
  background-color: var(--color-bg-pearl);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-darker);
}

.text-balance {
  text-wrap: balance;
}

/* Fluid type scale */
.fluid-h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.75rem); line-height: 1.1; }
.fluid-h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.5rem); line-height: 1.15; }
.fluid-h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.6rem); line-height: 1.25; }
.fluid-body { font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem); line-height: 1.7; }

/* Buttons */
.btn-gold {
  background-color: var(--color-accent-gold);
  color: var(--color-primary-darker);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold:hover {
  background-color: var(--color-accent-gold-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Off-canvas mobile menu */
.scq-offcanvas {
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.scq-offcanvas.is-open {
  transform: translateX(0);
}
.scq-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.scq-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary-darker);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
}

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

/* Custom logo (Customize → Site Identity) — WP renders the logo at its
   native cropped size with no cap, so constrain it here regardless of
   the source file's resolution. */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.custom-logo-link img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .custom-logo-link img {
    height: 56px;
  }
}
