/* ============================================
   EDSO Gut Guide — Marketing Website Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --ink: #071A2B;
  --teal: #12B8B1;
  --navy: #0A2540;
  --aqua: #4ECDC4;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --teal-light: rgba(18, 184, 177, 0.1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--aqua);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--gray {
  background: var(--gray-50);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy p {
  color: var(--white);
}

.section--navy p {
  opacity: 0.85;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header p {
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1.125rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.logo__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link--active {
  color: var(--teal);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav__links--open {
    display: flex;
  }

  .nav__links .nav__link {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav__links .btn {
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--aqua);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn--secondary:hover {
  background: var(--teal-light);
  color: var(--teal);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

/* --- Hero --- */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--navy) 0%, #0f3460 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(18, 184, 177, 0.08);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero__content h1 span {
  color: var(--aqua);
}

.hero__content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__mockup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-placeholder {
  width: 280px;
  height: 560px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-placeholder:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(78, 205, 196, 0.4);
  box-shadow: 0 20px 50px rgba(18, 184, 177, 0.15);
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content h1 {
    font-size: 2.25rem;
  }

  .hero__content p {
    margin: 0 auto 2rem;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__mockup {
    display: none;
  }
}

/* --- Problem Section --- */
.problem {
  text-align: center;
}

.problem__symptoms {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.problem__symptom {
  padding: 0.75rem 1.5rem;
  background: var(--teal-light);
  border-radius: 50px;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--transition);
  cursor: default;
}

.problem__symptom:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(18, 184, 177, 0.3);
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: default;
}

.step:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.step:hover .step__number {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(18, 184, 177, 0.4);
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  transition: all var(--transition);
}

.step h3 {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --- Cards Grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--teal);
}

.card:hover .card__icon {
  transform: scale(1.15);
  background: var(--teal);
  color: var(--white);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  transition: all var(--transition);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* --- Lead Capture Form --- */
.lead-form {
  max-width: 480px;
  margin: 0 auto;
}

.lead-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lead-form input[type="text"],
.lead-form input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--transition);
}

.lead-form input:focus {
  outline: none;
  border-color: var(--teal);
}

.lead-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.lead-form__message {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  display: none;
}

.lead-form__message--success {
  color: #059669;
  display: block;
}

.lead-form__message--error {
  color: #DC2626;
  display: block;
}

/* --- App Badges --- */
.app-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition);
}

.app-badge:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.app-badge__label {
  font-size: 0.6875rem;
  opacity: 0.7;
  display: block;
  line-height: 1;
}

.app-badge__store {
  font-size: 0.9375rem;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

/* --- Features Page --- */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
  border-radius: var(--radius-lg);
}

.feature-section:hover {
  background: var(--gray-50);
  padding: 4rem 2rem;
}

.feature-section:hover .feature-placeholder {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.feature-section:last-of-type {
  border-bottom: none;
}

.feature-section:nth-child(even) {
  direction: rtl;
}

.feature-section:nth-child(even) > * {
  direction: ltr;
}

.feature-section__content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-section__content ul {
  margin-top: 1rem;
}

.feature-section__content li {
  padding: 0.375rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-600);
}

.feature-section__content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.feature-section__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .feature-section,
  .feature-section:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }

  .feature-section__visual {
    order: -1;
  }
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--teal);
}

.blog-card:hover .blog-card__image {
  filter: brightness(1.05);
}

.blog-card:hover .blog-card__title {
  color: var(--teal);
}

.blog-card__image {
  width: 100%;
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.875rem;
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__date {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* Blog Post */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.blog-post__meta {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.blog-post h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.blog-post h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.blog-post h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.blog-post p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.blog-post ul,
.blog-post ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.blog-post ul {
  list-style: disc;
}

.blog-post ol {
  list-style: decimal;
}

.blog-post li {
  margin-bottom: 0.5rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.blog-post blockquote {
  border-left: 4px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.blog-post blockquote p {
  margin-bottom: 0;
  color: var(--gray-700);
}

.blog-post__back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-message {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  display: none;
}

.form-message--success {
  display: block;
  background: #ECFDF5;
  color: #059669;
}

.form-message--error {
  display: block;
  background: #FEF2F2;
  color: #DC2626;
}

/* --- About Page --- */
.about-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: var(--gray-50);
}

.about-hero h1 {
  margin-bottom: 1rem;
}

.about-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  cursor: default;
}

.about-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--teal);
}

.about-card:hover .about-card__icon {
  transform: scale(1.2);
}

.about-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  transition: transform var(--transition);
}

.about-card h3 {
  margin-bottom: 0.5rem;
}

/* Team placeholder */
.team-section {
  text-align: center;
}

.team-placeholder {
  padding: 3rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  color: var(--gray-400);
  margin-top: 2rem;
}

/* --- Legal Pages --- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.legal h1 {
  margin-bottom: 0.5rem;
}

.legal__updated {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.legal ul {
  list-style: disc;
  margin: 0.75rem 0 1rem 1.5rem;
}

.legal li {
  margin-bottom: 0.375rem;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--aqua);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  color: rgba(255,255,255,0.4);
}

.footer__social a:hover {
  color: var(--aqua);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* --- Page Header (non-hero pages) --- */
.page-header {
  padding: 7rem 0 3rem;
  background: var(--gray-50);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- CTA Section --- */
.cta {
  text-align: center;
}

.cta h2 {
  margin-bottom: 0.75rem;
}

.cta > .container > p {
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Spinner --- */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn--loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
