/* ============================================
   INTERVALLUM LABS — GLOBAL STYLES
   ============================================ */

:root {
  --spruce: #2A3D35;
  --honey: #D4920A;
  --ivory: #F6F3EC;
  --fern: #7BA38C;
  --dark-spruce: #1E2E27;
  --light-fern: #E4EDE8;
  --white: #ffffff;
  --border: #E0DBCF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  background: var(--ivory);
  color: var(--spruce);
}

img { max-width: 100%; }

/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--spruce);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 16px;
}

.nav-logo {
  display: block;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--fern);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus { color: var(--ivory); }

.nav-subscribe {
  background: var(--honey);
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-subscribe:hover { opacity: 0.88; color: #fff; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ============================================
   SHARED ELEMENTS
   ============================================ */

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--honey);
  margin-bottom: 10px;
}

.accent-line {
  width: 40px;
  height: 3px;
  background: var(--honey);
  border-radius: 2px;
  margin-bottom: 18px;
}

.accent-line.centered {
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: var(--honey);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.88; color: #fff; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ivory);
  padding: 12px 24px;
  border-radius: 8px;
  border: 1.5px solid var(--fern);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--ivory); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  background: var(--light-fern);
  color: var(--spruce);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: var(--spruce);
  padding: 72px 48px;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text { flex: 1; min-width: 0; }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--honey);
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text h1 .accent { color: var(--honey); }

.hero-text > p {
  color: var(--fern);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-photo { flex-shrink: 0; }

.photo-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--honey);
  overflow: hidden;
  background: var(--dark-spruce);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-initials {
  font-size: 56px;
  font-weight: 700;
  color: var(--fern);
  display: none;
}

/* ============================================
   STATS BAND
   ============================================ */

.stats-band {
  background: var(--honey);
  padding: 24px 48px;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.stat-item {
  text-align: center;
  padding: 0 32px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: rgba(42, 61, 53, 0.25);
}

.stat-number {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--spruce);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--spruce);
  opacity: 0.75;
  margin-top: 3px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  background: var(--white);
  padding: 64px 48px;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 3px solid var(--honey);
  object-fit: cover;
  display: block;
}

.about-photo .photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 3px solid var(--honey);
  background: var(--light-fern);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  color: var(--fern);
}

.about-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 2px;
}

.about-title {
  font-size: 13px;
  color: var(--honey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* ============================================
   CONTENT PILLARS
   ============================================ */

.pillars-section {
  background: var(--ivory);
  padding: 64px 48px;
}

.pillars-inner {
  max-width: 900px;
  margin: 0 auto;
}

.pillars-header { margin-bottom: 36px; }

.pillars-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pillars-header p {
  font-size: 15px;
  color: var(--fern);
  max-width: 600px;
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--white);
  border-radius: 12px;
  border: 0.5px solid var(--border);
  padding: 28px;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  background: var(--light-fern);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 8px;
  line-height: 1.35;
}

.pillar-card p {
  font-size: 13px;
  color: var(--fern);
  line-height: 1.65;
}

/* ============================================
   LATEST ARTICLES
   ============================================ */

.articles-section {
  background: var(--white);
  padding: 64px 48px;
}

.articles-inner {
  max-width: 900px;
  margin: 0 auto;
}

.articles-header { margin-bottom: 36px; }

.articles-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 10px;
}

.articles-header p {
  font-size: 15px;
  color: var(--fern);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.article-card {
  background: var(--white);
  border-radius: 12px;
  border: 0.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card-top {
  background: var(--spruce);
  padding: 10px 16px;
}

.article-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--honey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.article-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--spruce);
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 12px;
  color: var(--fern);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.article-read-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--honey);
  text-decoration: none;
}

.article-read-link:hover { text-decoration: underline; }

.articles-cta { text-align: center; }

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-section {
  background: var(--spruce);
  padding: 72px 48px;
  text-align: center;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-inner h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 12px;
  line-height: 1.25;
}

.newsletter-inner > p {
  font-size: 15px;
  color: var(--fern);
  margin-bottom: 28px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 12px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: var(--ivory);
  color: var(--spruce);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
}

.newsletter-form input[type="email"]::placeholder { color: var(--fern); }

.newsletter-form input[type="email"]:focus {
  box-shadow: 0 0 0 2px var(--honey);
}

.newsletter-form button {
  background: var(--honey);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.newsletter-form button:hover { opacity: 0.88; }

.newsletter-fine {
  font-size: 11px;
  color: var(--fern);
  opacity: 0.7;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--dark-spruce);
  padding: 28px 48px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  font-size: 12px;
  color: var(--fern);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--fern);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--ivory); }

/* ============================================
   INNER PAGE SHARED
   ============================================ */

.page-hero {
  background: var(--spruce);
  padding: 56px 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 12px;
  line-height: 1.25;
}

.page-hero p {
  font-size: 16px;
  color: var(--fern);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.content-section {
  background: var(--white);
  padding: 64px 48px;
}

.content-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Articles full page */
.articles-page-section {
  background: var(--ivory);
  padding: 48px;
}

.articles-page-inner {
  max-width: 900px;
  margin: 0 auto;
}

.articles-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  background: var(--light-fern);
  color: var(--spruce);
  border: none;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--honey);
  color: #fff;
}

/* Archive */
.archive-section {
  margin-top: 56px;
}

.archive-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 16px;
}

.archive-year {
  border-top: 1px solid var(--border);
}

.archive-year:last-child {
  border-bottom: 1px solid var(--border);
}

.archive-year-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--spruce);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.archive-year-summary::-webkit-details-marker { display: none; }

.archive-year-summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--honey);
  transition: transform 0.2s;
}

.archive-year[open] > .archive-year-summary::after {
  content: '−';
}

.archive-year-body {
  padding: 0 0 8px 16px;
}

.archive-month {
  border-top: 1px solid var(--border);
}

.archive-month-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--spruce);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.archive-month-summary::-webkit-details-marker { display: none; }

.archive-month-summary::after {
  content: '+';
  font-size: 16px;
  font-weight: 400;
  color: var(--honey);
}

.archive-month[open] > .archive-month-summary::after {
  content: '−';
}

.archive-article-list {
  list-style: none;
  padding: 4px 0 12px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-article-list a {
  font-size: 14px;
  color: var(--spruce);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.archive-article-list a:hover {
  color: var(--honey);
  border-bottom-color: var(--honey);
}

/* Work With Me */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.service-card {
  background: var(--ivory);
  border-radius: 12px;
  border: 0.5px solid var(--border);
  padding: 28px;
}

.service-card .service-icon {
  width: 40px;
  height: 40px;
  background: var(--light-fern);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 13px;
  color: var(--fern);
  line-height: 1.65;
}

.contact-form-wrap h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 6px;
}

.contact-form-wrap > p {
  font-size: 14px;
  color: var(--fern);
  margin-bottom: 28px;
}

.contact-form { max-width: 560px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--spruce);
  background: var(--ivory);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--honey); }

.form-group textarea { min-height: 140px; resize: vertical; }

/* Article template */
.article-hero {
  background: var(--spruce);
  padding: 56px 48px 48px;
}

.article-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-hero .article-tag {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 11px;
}

.article-hero h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 13px;
  color: var(--fern);
}

.article-body {
  background: var(--white);
  padding: 56px 48px;
}

.article-body-inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 12px;
  margin-top: 36px;
}

.article-body p {
  font-size: 15px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 15px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 8px;
}

.article-body a { color: var(--honey); }

.article-body .callout {
  background: var(--light-fern);
  border-left: 4px solid var(--honey);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.article-body .callout p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--spruce);
}

/* About full page */
.about-full-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.about-full-photo img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 3px solid var(--honey);
  object-fit: cover;
  display: block;
}

.about-full-photo .photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 3px solid var(--honey);
  background: var(--light-fern);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  color: var(--fern);
}

.about-full-text .about-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 2px;
}

.about-full-text .about-role {
  font-size: 13px;
  color: var(--honey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.about-full-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-expertise {
  background: var(--ivory);
  padding: 64px 48px;
}

.about-expertise-inner {
  max-width: 900px;
  margin: 0 auto;
}

.about-expertise h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 24px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.expertise-item {
  background: var(--white);
  border-radius: 10px;
  border: 0.5px solid var(--border);
  padding: 20px;
}

.expertise-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--spruce);
  margin-bottom: 6px;
}

.expertise-item p {
  font-size: 12px;
  color: var(--fern);
  line-height: 1.55;
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */

@media (max-width: 768px) {
  /* NAV */
  .nav { padding: 0 20px; }

  .nav-hamburger { display: flex; }

  .nav-links-wrap {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--spruce);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-top: 1px solid rgba(246, 243, 236, 0.08);
    z-index: 99;
  }

  .nav-links-wrap.open { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .nav-subscribe {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
  }

  /* HERO */
  .hero { padding: 48px 24px; }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 32px;
    text-align: center;
  }

  .hero-text h1 { font-size: 26px; }

  .hero-buttons { justify-content: center; }

  /* STATS */
  .stats-band { padding: 20px 16px; }

  .stats-inner {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .stat-item { padding: 0 16px; }

  .stat-item + .stat-item::before { display: none; }

  /* ABOUT */
  .about-section { padding: 48px 24px; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo { max-width: 180px; margin: 0 auto; }

  /* PILLARS */
  .pillars-section { padding: 48px 24px; }

  .pillars-grid { grid-template-columns: 1fr; }

  /* ARTICLES */
  .articles-section { padding: 48px 24px; }

  .articles-grid { grid-template-columns: 1fr; }

  /* NEWSLETTER */
  .newsletter-section { padding: 48px 24px; }

  .newsletter-form { flex-direction: column; }

  /* FOOTER */
  .footer { padding: 24px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  /* INNER PAGES */
  .page-hero { padding: 48px 24px; }

  .content-section { padding: 48px 24px; }

  .articles-page-section { padding: 32px 24px; }

  .services-grid { grid-template-columns: 1fr; }

  .article-hero { padding: 48px 24px 36px; }

  .article-hero h1 { font-size: 24px; }

  .article-body { padding: 48px 24px; }

  .about-full-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-full-photo { max-width: 180px; margin: 0 auto; }

  .about-expertise { padding: 48px 24px; }

  .expertise-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE — TABLET (769–1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-text h1 { font-size: 32px; }

  .articles-grid { grid-template-columns: repeat(2, 1fr); }

  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
