@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* =============================================
   The Next Date — Bold Contemporary Design
   Palette:
     --primary:    #5C537C  (muted purple-gray)
     --secondary:  #E2A48E  (warm peach-coral)
     --bg:         #F8F7F9  (light lilac-white)
     --text:       #2B2930  (soft dark gray)
     --accent:     #7FA99B  (muted mint-green)
============================================= */

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

:root {
  --primary:      #5C537C;
  --primary-dk:   #47406A;
  --primary-lt:   #EAE8F2;
  --secondary:    #E2A48E;
  --secondary-dk: #C98870;
  --accent:       #7FA99B;
  --accent-dk:    #5E8F80;
  --bg:           #F8F7F9;
  --bg-alt:       #EEECF5;
  --text:         #2B2930;
  --text-muted:   #7A7280;
  --white:        #ffffff;
  --border:       #DDD9EA;

  --radius-sm:    6px;
  --radius:       14px;
  --radius-lg:    24px;
  --transition:   all 0.25s ease;
  --shadow-sm:    0 2px 8px rgba(92,83,124,0.10);
  --shadow:       0 6px 24px rgba(92,83,124,0.14);
  --shadow-lg:    0 14px 40px rgba(92,83,124,0.18);

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --max-w:        1140px;
  --header-h:     68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--secondary-dk); }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
}

/* ─────────────── HEADER ─────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand img {
  height: 40px;
  width: auto;
  display: block;
}

.header-brand .site-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-brand .site-name { display: none; }
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  background: var(--primary-lt);
  color: var(--primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--primary-lt);
    flex-direction: column;
    padding: 12px 16px 16px;
    gap: 4px;
    box-shadow: var(--shadow);
  }

  .header-nav.open { display: flex; }

  .header-nav a {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
  }
}

/* ─────────────── HERO ─────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #7068A0 60%, #876CA8 100%);
  color: var(--white);
  padding: 80px 24px 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -50px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(226,164,142,0.12);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(226,164,142,0.25);
  border: 1px solid rgba(226,164,142,0.5);
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 700px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 999px;
  transition: var(--transition);
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--secondary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(226,164,142,0.4);
}

/* ─────────────── SECTIONS ─────────────── */
.section {
  padding: 64px 24px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-title span {
  color: var(--secondary-dk);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

/* ─────────────── CONTENT BODY (index main text) ─────────────── */
.content-body {
  width: 100%;
}

.content-body img {
  border-radius: var(--radius);
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.content-body h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: var(--primary);
}

.content-body h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
  color: var(--text);
}

/* ─────────────── ADDING SECTION ─────────────── */
.adding-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-top: 48px;
}

.adding-section h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.adding-section > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.formula-block {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.formula-block:last-of-type {
  border-left-color: var(--accent);
}

.formula-block .section-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.formula-block h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.formula-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .adding-section { padding: 24px 20px; }
  .formula-block { flex-direction: column; gap: 12px; }
  .formula-block .section-image { width: 60px; height: 60px; }
}

/* ─────────────── ARTICLE CARDS (articles page) ─────────────── */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.article-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary-lt);
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
  border-color: var(--primary);
}

.article-card:hover::before {
  background: var(--secondary);
  width: 6px;
}

.article-card:nth-child(3n+2):hover::before { background: var(--accent); }
.article-card:nth-child(3n):hover::before { background: var(--primary); }

.card-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-lt);
  line-height: 1;
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
  transition: var(--transition);
}

.article-card:hover .card-num {
  color: var(--secondary);
}

.card-content { flex: 1; }

.card-content h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: var(--transition);
}

.article-card:hover .card-content h2 {
  color: var(--primary);
}

.card-content .card-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.card-arrow {
  font-size: 1.3rem;
  color: var(--border);
  transition: var(--transition);
  align-self: center;
  flex-shrink: 0;
}

.article-card:hover .card-arrow {
  color: var(--secondary);
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .article-card { padding: 20px 16px; gap: 14px; }
  .card-num { font-size: 1.8rem; min-width: 38px; }
}

/* ─────────────── ABOUT PAGE ─────────────── */
.about-hero {
  background: var(--primary);
  padding: 64px 24px;
  color: var(--white);
}

.about-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 14px;
}

.about-hero .page-meta {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.about-content {
  width: 100%;
  font-size: 1.07rem;
  line-height: 1.9;
}

.about-content p {
  margin-bottom: 1.4rem;
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.about-feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.about-feature-icon.purple { background: var(--primary-lt); }
.about-feature-icon.coral  { background: rgba(226,164,142,0.2); }
.about-feature-icon.mint   { background: rgba(127,169,155,0.2); }

.about-feature h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ─────────────── ARTICLE PAGE ─────────────── */
.article-hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  padding: 56px 24px 64px;
  color: var(--white);
}

.article-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 24px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--secondary);
}

.back-link svg {
  transition: var(--transition);
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.article-hero .article-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  font-style: italic;
  max-width: 600px;
}

.article-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--secondary);
  line-height: 1.3;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.15rem;
}

.article-body img {
  border-radius: var(--radius);
  margin: 28px 0;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.article-body .article-image {
  height: auto;
  object-fit: unset;
}


/* ─────────────── PAGE HEADER (articles.html, about_us.html) ─────────────── */
.page-header {
  background: var(--primary);
  padding: 56px 24px 60px;
}

.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 10px;
}

.page-header .page-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* ─────────────── TAG PILL ─────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary-lt);
  color: var(--primary);
  margin-bottom: 14px;
}

/* ─────────────── DIVIDER ─────────────── */
.divider {
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin: 16px 0 28px;
}

/* ─────────────── FOOTER ─────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 44px 24px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand img {
  height: 36px;
  width: auto;
  filter: brightness(10);
  opacity: 0.85;
}

.footer-brand .site-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}

.footer-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: transparent;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom .copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ─────────────── UTILITIES ─────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
