/* ============================================================
   TunaGrow CBO — CSS Custom Properties & Global Reset
   File: css/variables.css
   ============================================================ */

:root {
  --earth:   #3b2a1a;
  --soil:    #6b4226;
  --harvest: #c97d2e;
  --sun:     #f2b84b;
  --leaf:    #4a7c3f;
  --sprout:  #7db567;
  --cream:   #fdf6ec;
  --light:   #fff9f0;
  --muted:   #8a7060;
  --white:   #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Shared Button Styles ── */
.btn-primary {
  background: var(--leaf); color: var(--white); border: none;
  padding: 13px 30px; border-radius: 30px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover {
  background: var(--soil); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107,66,38,0.2);
}

.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(107,66,38,0.35);
  padding: 12px 28px; border-radius: 30px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--leaf); color: var(--leaf); }

.btn-accent {
  background: var(--harvest); color: var(--white); border: none;
  padding: 14px 32px; border-radius: 30px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
  text-decoration: none; display: inline-block; margin-top: 20px;
}
.btn-accent:hover {
  background: var(--soil); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,125,46,0.3);
}

/* ── Shared Page Header ── */
.page-header {
  min-height: 280px; padding-top: 68px;
  background: linear-gradient(135deg, var(--earth) 0%, var(--soil) 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 60px 5%; position: relative; z-index: 1;
}
.page-header-label {
  font-family: 'Caveat', cursive; font-size: 1.1rem;
  color: var(--sun); margin-bottom: 8px;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem,5vw,3rem); color: var(--white);
}
.page-header p {
  color: rgba(255,255,255,0.7); margin-top: 12px;
  max-width: 540px; font-size: 1rem;
}

/* ── Shared Section Inner ── */
.section-inner {
  max-width: 1400px; margin: 0 auto; padding: 80px 5%;
}
.section-label {
  font-family: 'Caveat', cursive; font-size: 1.1rem;
  color: var(--harvest); margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem,3.5vw,2.5rem); color: var(--text); margin-bottom: 16px;
}
.divider {
  width: 60px; height: 3px; background: var(--harvest);
  border-radius: 2px; margin: 16px 0;
}

/* ── Shared Grid Utilities ── */
.grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ── Toast Notification ── */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  background: var(--leaf); color: var(--white);
  padding: 14px 24px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 8px 30px rgba(74,124,63,0.35);
  transform: translateY(80px); opacity: 0; transition: all 0.4s;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Section-level visibility (SPA routing) ── */
section { display: none; }
section.active { display: block; }

/* ════════════════════════════════
   Large screens (≥ 1440px)
   ════════════════════════════════ */
@media (min-width: 1440px) {
  .section-wrap, .container { padding: 100px 8%; }
  .section-title { font-size: 2.4rem; }
  .section-subtitle { font-size: 1.1rem; max-width: 700px; }
}

/* ════════════════════════════════
   XL screens (≥ 1920px / 24"+)
   ════════════════════════════════ */
@media (min-width: 1920px) {
  .section-wrap, .container { padding: 120px 10%; }
  .section-title { font-size: 2.8rem; }
  .section-subtitle { font-size: 1.2rem; max-width: 860px; }
}

/* ════════════════════════════════
   QHD screens (≥ 2560px / 27–32")
   ════════════════════════════════ */
@media (min-width: 2560px) {
  .section-wrap, .container { max-width: 1900px; padding: 140px 8%; }
  .section-title    { font-size: 3.2rem; }
  .section-subtitle { font-size: 1.35rem; max-width: 1000px; }
}

/* ════════════════════════════════
   4K screens (≥ 3840px / 38"+)
   ════════════════════════════════ */
@media (min-width: 3840px) {
  .section-wrap, .container { max-width: 2600px; padding: 160px 8%; }
  .section-title    { font-size: 4rem; }
  .section-subtitle { font-size: 1.6rem; max-width: 1300px; }
}
