/* ============================================
   NUTRITIVE HARMONY — Stylesheet
   Brand colors:
     #F4EFE9 — cream background
     #007A3F — leaf green (primary accent)
     #3E661E — wordmark olive (text)
   ============================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F4EFE9;
  color: #3E661E;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   BRAND HEADER
   ============================================ */
.brand-header {
  text-align: center;
  padding: 20px 24px 0px;
}

.brand-logo,
.brand-logo-fallback {
  display: inline-block;
  height: auto;
  width: 100%;
   max-width: 400px;
  margin-bottom: 0;
}

.brand-name {
  font-family: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  color: #3E661E;
  font-size: 18px;
  letter-spacing: 2.5px;
  font-weight: normal;
  margin: 0;
   display: none;
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-section {
  text-align: center;
  padding: 16px 28px 36px;
}

.welcome-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  color: #3E661E;
  margin-bottom: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.welcome-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  color: #3E661E;
  opacity: 0.85;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

.welcome-text em {
  font-style: italic;
}

/* ============================================
   SECTION LABELS (the small italic labels)
   ============================================ */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: #007A3F;
  text-align: center;
  margin-bottom: 18px;
  font-weight: 600;
}

/* ============================================
   SOCIAL SECTION (Instagram + Facebook)
   ============================================ */
.social-section {
  background: #ffffff;
  padding: 32px 28px;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.social-card {
  background: #F4EFE9;
  padding: 18px 14px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(0, 122, 63, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.social-card:hover,
.social-card:active {
  transform: translateY(-2px);
  border-color: rgba(0, 122, 63, 0.4);
}

.social-icon {
  width: 22px;
  height: 22px;
  color: #007A3F;
  margin-bottom: 4px;
}

.social-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #007A3F;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.social-handle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  color: #3E661E;
  opacity: 0.85;
}

/* ============================================
   TOOLS SECTION (Book / Diary / Intake)
   ============================================ */
.tools-section {
  padding: 40px 28px;
}

.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto;
}

.tool-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  border: 1px solid rgba(0, 122, 63, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #3E661E;
}

.tool-card:hover,
.tool-card:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 63, 0.08);
}

.tool-card-primary {
  background: #007A3F;
  border-color: #007A3F;
  color: #F4EFE9;
}

.tool-icon-wrap {
  width: 46px;
  height: 46px;
  background: rgba(0, 122, 63, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-card-primary .tool-icon-wrap {
  background: rgba(244, 239, 233, 0.15);
}

.tool-icon {
  width: 22px;
  height: 22px;
  color: #007A3F;
}

.tool-card-primary .tool-icon {
  color: #F4EFE9;
}

.tool-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tool-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-style: italic;
  opacity: 0.8;
}

.tool-card-primary .tool-subtitle {
  opacity: 0.9;
}

.tool-arrow {
  width: 18px;
  height: 18px;
  color: #007A3F;
  flex-shrink: 0;
}

.tool-card-primary .tool-arrow {
  color: #F4EFE9;
}

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
  margin-top: auto;
  padding: 28px 28px 36px;
  text-align: center;
  border-top: 1px solid rgba(62, 102, 30, 0.12);
  background: #F4EFE9;
}

.footer-email {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  color: #3E661E;
  opacity: 0.85;
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 102, 30, 0.2);
  padding-bottom: 1px;
}

.footer-email:hover {
  opacity: 1;
  border-bottom-color: rgba(62, 102, 30, 0.5);
}

.footer-copyright {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  color: #3E661E;
  opacity: 0.55;
  margin-top: 8px;
}

/* ============================================
   SHARED STYLES FOR SUB-PAGES (diary.html, intake.html)
   ============================================ */
.page-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 32px 28px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.back-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #007A3F;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.page-header {
  text-align: center;
  margin-bottom: 28px;
}

.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  color: #3E661E;
  margin-bottom: 12px;
  font-weight: 500;
}

.page-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  color: #3E661E;
  opacity: 0.8;
  font-style: italic;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

.info-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(0, 122, 63, 0.18);
  margin-bottom: 18px;
}

.info-card-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  color: #3E661E;
  line-height: 1.7;
}

.form-iframe-wrap {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 122, 63, 0.18);
  overflow: hidden;
  margin-top: 8px;
}

.form-iframe-wrap iframe {
  width: 100%;
  border: none;
  display: block;
  min-height: 480px;
}

.placeholder-notice {
  background: #ffffff;
  border-left: 3px solid #007A3F;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #3E661E;
  line-height: 1.6;
  margin-top: 24px;
}

.placeholder-notice strong {
  font-weight: 600;
  color: #007A3F;
}

/* ============================================
   RESPONSIVE — phone optimization
   ============================================ */
@media (max-width: 480px) {
  .brand-header {
    padding: 32px 20px 16px;
  }
  
  .brand-logo,
  .brand-logo-fallback {
    max-width: 320px;
  }
  
  .brand-name {
    font-size: 16px;
    letter-spacing: 2px;
  }
  
  .welcome-title {
    font-size: 24px;
  }
  
  .welcome-text {
    font-size: 15px;
  }
  
  .social-section {
    padding: 24px 20px;
  }
  
  .tools-section {
    padding: 32px 20px;
  }
  
  .tool-card {
    padding: 18px;
  }
  
  .page-container {
    padding: 24px 20px 50px;
  }
}

/* ============================================
   PWA — Standalone (installed) view tweaks
   ============================================ */
@media (display-mode: standalone) {
  .app-container {
    padding-top: env(safe-area-inset-top);
  }
}
