/* ============================================================
   styles.css — G.B. Tutorial Global Stylesheet
   Shared across ALL pages. Load first on every page.
*/

:root {
  --ink: #0f0e0c;
  --paper: #faf8f3;
  --cream: #f0ece0;
  --gold: #c9a84c;
  --gold-light: #e8d08a;
  --gold-dark: #a07830;
  --rust: #b84a2a;
  --teal: #1a6b72;
  --teal-light: #d4ecee;
  --text-muted: #6b6456;
  --border: #e0d8c8;

  --shadow: 0 4px 32px rgba(15, 14, 12, 0.12);
  --shadow-lg: 0 16px 64px rgba(15, 14, 12, 0.18);

  --radius: 4px;
  --radius-lg: 12px;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
}


/* ─────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: var(--sans);
}


/* ─────────────────────────────────────────
   3. NOISE TEXTURE OVERLAY
───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}


/* ─────────────────────────────────────────
   4. SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}


/* ─────────────────────────────────────────
   5. BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, border-color 0.2s,
    color 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background: none;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Ghost — bordered, transparent fill */
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

/* ✅ NEW: Ghost on dark section backgrounds */
.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--paper);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--paper);
  transform: translateY(-1px);
}

/* Primary — solid dark */
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(160, 120, 48, 0.3);
}

/* Gold — main CTA */
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160, 120, 48, 0.4);
}

/* Teal — teacher pages / success states */
.btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
}

.btn-teal:hover {
  background: #145a60;
  border-color: #145a60;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 107, 114, 0.3);
}

/* Size modifiers */
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}


/* ─────────────────────────────────────────
   6. SECTION UTILITIES
───────────────────────────────────────── */
section {
  padding: 100px 5%;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold-dark);
  flex-shrink: 0;
}

.section-label.centered {
  justify-content: center;
}

.section-label.centered::before {
  display: none;
}

.section-label.on-dark {
  color: var(--gold);
}

.section-label.on-dark::before {
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-title.on-dark {
  color: var(--paper);
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.section-desc.on-dark {
  color: rgba(250, 248, 243, 0.6);
}

.section-desc.centered {
  margin: 0 auto;
  text-align: center;
}


/* ─────────────────────────────────────────
   7. FORM ELEMENTS
   Base rules for the contact form on
   index.php which doesn't load form.css.
   Full extended form system → form.css.
───────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

/* ✅ FIXED: was written twice — merged into one rule */
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-label.on-dark {
  color: rgba(250, 248, 243, 0.5);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* Dark background variant */
.form-input.on-dark,
.form-select.on-dark,
.form-textarea.on-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}

.form-input.on-dark::placeholder,
.form-textarea.on-dark::placeholder {
  color: rgba(250, 248, 243, 0.25);
}

.form-input.on-dark:focus,
.form-select.on-dark:focus,
.form-textarea.on-dark:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-select.on-dark option {
  background: #1a1810;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


/* ─────────────────────────────────────────
   8. ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Remove spinner arrow from input type Number (Chrome, Safari, Edge) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove arrows in Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* ─────────────────────────────────────────
   9. GLOBAL RESPONSIVE
   ✅ FIXED: nav rules removed — in header.css
   ✅ FIXED: footer rules removed — in footer.css
───────────────────────────────────────── */
@media (max-width: 768px) {
  section {
    padding: 72px 4%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}