/*
Theme Name: Son Academy
Theme URI: https://example.com/son-academy
Author: Sonsonn Design
Author URI: https://example.com
Description: Son Academy — a premium, dark, gold-accented education theme for course businesses. Luxury, bold urban and tech-forward styling. WooCommerce- and LMS-plugin friendly.
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: son-academy
Tags: education, dark, one-column, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, responsive
*/

/* -------------------------------------------------------------
   Son Academy — base stylesheet
   Design tokens live here. Layout/components live in
   assets/css/main.css (enqueued after this file).
------------------------------------------------------------- */

:root {
  --sa-bg: #17140f;
  --sa-surface: #211d16;
  --sa-surface-2: #2b261d;
  --sa-border: #3a3327;
  --sa-text: #f7f4ee;
  --sa-muted: #b6ae9e;

  --sa-primary: #e8b43c;      /* overridden by Customizer */
  --sa-secondary: #47b7d1;    /* overridden by Customizer */
  --sa-primary-ink: #201a0c;

  --sa-radius: 16px;
  --sa-radius-lg: 24px;
  --sa-maxw: 1200px;
  --sa-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.9);
  --sa-shadow-gold: 0 20px 60px -25px rgba(232, 180, 60, 0.45);

  --sa-font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sa-font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--sa-bg);
  color: var(--sa-text);
  font-family: var(--sa-font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sa-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--sa-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover, a:focus { color: var(--sa-text); }

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

::selection { background: rgba(232, 180, 60, 0.35); }

:focus-visible {
  outline: 2px solid var(--sa-primary);
  outline-offset: 3px;
}

/* Accessibility helpers required by WordPress */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  padding: 12px 18px;
  background: var(--sa-primary);
  color: var(--sa-primary-ink);
  border-radius: 10px;
  font-weight: 700;
}

/* WordPress core alignment + caption classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 0 auto 1.5rem; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-element-caption {
  font-size: 0.85rem;
  color: var(--sa-muted);
  text-align: center;
  margin-top: 0.5rem;
}
.sticky .sa-card { border-color: var(--sa-primary); }
.bypostauthor { display: block; }
.gallery-caption { color: var(--sa-muted); }
