/* ========================= Mind360 - Global Styles ========================= */
/* Design Tokens + Typography + Safe-Area (place this at very top of global.css) */

:root {
  /* Fonts */
  --heading-font: 'Playfair Display', serif;
  --body-font: Georgia, 'Times New Roman', serif;

  /* Colors */
  --lilac: #D2C1FE;
  --baby-blue: #C1E7EE;
  --denim-blue: #1671B0;
  --violet: #6B54A6;

  --bg-navbar: rgba(221, 238, 255, 1);
  --primary-ink: #154F9C;
  --primary-blue: #1571B0;
  --primary-gradient-start: #0F81FC;
  --primary-gradient-end: #A78BDB;
  --text-primary: #2b3b88;
  --text-secondary: #3a3a50;
  --text-muted: #6b6f8a;
  --bg-soft: #DBEFFA;
  --purple-primary: #6B54A6;
  --blue-accent: #0060B0;
  --gray-text: #4B5563;
  --surface: #ffffff;
  --alt: #f5f6fb;
  --page-max: 1212px;
  --radius-xxl: 20px;
  --radius-xl: 14px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

/* Safe-area padding (handles notches/status bars) */
html,
body {
  padding-top: env(safe-area-inset-top, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
}

/* Reset + base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  color: #1b2141;
  line-height: 1.6;
  background: linear-gradient(180deg, #F7FBFE 0%, rgba(195, 216, 230, 0.3) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings should use Playfair Display (consistent across pages) */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  margin: 0 0 .5rem 0;
}

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

/* Container */
.container {
  width: min(var(--page-max), 100% - 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}


/* ========================= HEADER ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(235, 243, 250, 1);
  padding: .8rem 0;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-img {
  width: 183px;
  height: 54px;
}

.main-nav {
  display: flex;
  gap: clamp(.5rem, 2vw, 1rem);
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: clamp(.875rem, 1.5vw, 1rem);
  text-decoration: none;
  color: #27355b;
  padding: .55rem 1rem;
  border-radius: var(--radius-xl);
  opacity: .8;
  transition: .2s;
}

.nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link.active {
  background: rgba(255, 255, 255, .6);
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================= BUTTONS ========================= */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  color: #fff;
  text-decoration: none;
  padding: .8rem 1.2rem;
  border-radius: 1000px;
  background: rgba(107, 84, 166, 1);
  box-shadow: 0 8px 20px rgba(15, 129, 252, .25);
  transition: .2s;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.pill {
  border-radius: 1000px;
}

.btn.link {
  background: none !important;
  box-shadow: none !important;
  color: rgba(107, 84, 166, 1);
  padding: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 3.6%;
}

.btn.link:hover {
  color: var(--blue-accent);
}

/* ========================= FOOTER ========================= */
.site-footer {
  background-color: rgba(212, 242, 251, 1);
  padding: clamp(2rem, 4vw, 3rem) 0;
  margin-top: 3rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  text-align: left;
  font-size: 0.875rem;
  color: rgba(111, 108, 144, 1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 2vw, 2rem);
  margin-bottom: clamp(1.5rem, 2vw, 2rem);
  border-bottom: 1px solid rgba(217, 219, 233, 1);
}

.site-footer p,
.site-footer a,
.site-footer li,
.site-footer h4 {
  color: rgba(111, 108, 144, 1);
  text-decoration: none;
}

.site-footer a:hover {
  color: #4A3AFF;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand,
.foot-brand {
  max-width: 280px;
}

.footer-logo,
.footer-logo img {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p,
.foot-brand p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.social-links,
.socials {
  display: flex;
  gap: 1rem;
}

.social-links a,
.socials a {
  font-size: 1.25rem;
  text-decoration: none;
}

.footer-column h4,
.foot-col h4 {
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.footer-column ul,
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-column ul li img {
  height: 1.5rem;
  width: auto;
}

.footer-bottom a {
  color: rgba(74, 58, 255, 1);
}

.footer-column a,
.foot-col a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-column a:hover,
.foot-col a:hover {
  color: var(--primary-blue);
}

.footer-bottom,
.foot-copy {
  text-align: center;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom a,
.foot-copy a {
  color: rgba(74, 58, 255, 1);
  text-decoration: none;
}

/* ========================= GENERIC SECTIONS ========================= */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section.alt {
  background: var(--alt);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(1.2rem, 2.4vw, 1.8rem);
}

/* ========================= GENERIC CARDS ========================= */
.card {
  background: #fff;
  border-radius: var(--radius-xxl);
  padding: clamp(1rem, 2vw, 1.2rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}