/* Balbus Speech — Clean Teal Medical Professional Theme */
:root {
  --primary: #0D9488;
  --primary-light: #14B8A6;
  --primary-dark: #0F766E;
  --accent: #F97316;
  --bg: #F0FDFA;
  --bg-alt: #CCFBF1;
  --text: #134E4A;
  --text-light: #5F7A76;
  --text-white: #FFFFFF;
  --border: #99F6E4;
  --card-bg: #FFFFFF;
  --footer-bg: #042F2E;
  --header-bg: #FFFFFF;
  --shadow: rgba(13, 148, 136, 0.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; line-height: 1.7; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.header { background: var(--header-bg); box-shadow: 0 1px 6px var(--shadow); position: sticky; top: 0; z-index: 100; }
.header__inner { max-width: 1100px; margin: 0 auto; padding: .875rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.header__logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -0.5px; }
.nav__list { list-style: none; display: flex; gap: 2rem; }
.nav__list a { color: var(--text); font-weight: 500; font-size: .95rem; padding: .5rem 0; border-bottom: 2px solid transparent; transition: all .2s; }
.nav__list a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); color: var(--text-white); padding: 4rem 2rem; max-width: 1100px; margin: 2rem auto; border-radius: 20px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { font-size: 2.6rem; margin-bottom: 0.5rem; letter-spacing: -1px; }
.hero__tagline { font-size: 1.15rem; opacity: 0.9; margin-bottom: 1.5rem; font-weight: 300; letter-spacing: 0.5px; }
.hero p { line-height: 1.8; opacity: 0.92; margin-bottom: 1rem; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: .75rem 2rem; border-radius: 50px; font-weight: 700; font-size: .95rem; transition: transform .2s, box-shadow .2s; border: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(249,115,22,0.3); color: #fff; }
.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; box-shadow: 0 6px 16px var(--shadow); }
.center { text-align: center; margin-top: 2rem; }

/* Main */
.main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.main > h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 2rem; }

/* Posts grid */
.posts-grid { margin: 3rem 0; }
.posts-grid h2 { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 1.5rem; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

/* Card */
.card { background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px var(--shadow); transition: transform .3s, box-shadow .3s; border: 1px solid rgba(13,148,136,0.08); }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(13,148,136,0.12); }
.card a { color: inherit; display: block; }
.card__img { width: 100%; height: 200px; object-fit: cover; }
.card__body { padding: 1.25rem; }
.card__title { font-size: 1.05rem; margin-bottom: .5rem; color: var(--text); line-height: 1.4; }
.card__date { font-size: .8rem; color: var(--primary); display: block; margin-bottom: .75rem; font-weight: 600; }
.card__excerpt { font-size: .9rem; color: var(--text-light); line-height: 1.6; }

/* Page */
.page { background: var(--card-bg); border-radius: 16px; padding: 2.5rem; box-shadow: 0 2px 12px var(--shadow); }
.page h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.3rem; color: var(--primary); margin: 2rem 0 1rem; }
.page p { margin-bottom: 1.25rem; }
.page ul, .page ol { margin: 0 0 1.25rem 2rem; }
.page li { margin-bottom: .5rem; }
.contact-info { background: var(--bg-alt); padding: 1.5rem 2rem; border-radius: 12px; margin: 1.5rem 0; border-left: 4px solid var(--primary); }
.contact-info ul { list-style: none; margin-left: 0; }
.contact-info li { padding: .5rem 0; font-size: 1.05rem; }

/* Post */
.post { background: var(--card-bg); border-radius: 16px; padding: 2.5rem; box-shadow: 0 2px 12px var(--shadow); }
.post h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: .5rem; line-height: 1.3; }
.post__date { display: block; color: var(--primary); margin-bottom: 1.5rem; font-size: .85rem; font-weight: 600; }
.post__img { width: 100%; border-radius: 12px; margin-bottom: 2rem; max-height: 400px; object-fit: cover; }
.content h2 { font-size: 1.3rem; color: var(--primary-dark); margin: 2rem 0 1rem; }
.content h3 { font-size: 1.1rem; margin: 1.5rem 0 .75rem; color: var(--primary); }
.content p { margin-bottom: 1.25rem; line-height: 1.8; }
.content ul, .content ol { margin: 0 0 1.25rem 2rem; }
.content li { margin-bottom: .5rem; }

/* Related */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.related h2 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 1rem; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.related__item { display: block; padding: 1.25rem; background: var(--bg-alt); border-radius: 12px; transition: all .2s; }
.related__item:hover { background: var(--border); transform: translateY(-2px); }
.related__item h3 { font-size: .95rem; margin-bottom: .25rem; color: var(--text); }
.related__item time { font-size: .8rem; color: var(--primary); font-weight: 600; }

/* Footer */
.footer { background: var(--footer-bg); color: rgba(255,255,255,0.85); padding: 3rem 1.5rem 1rem; margin-top: 3rem; }
.footer__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer__col h3 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--primary-light); }
.footer__col p { opacity: 0.8; line-height: 1.7; font-size: .9rem; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: .5rem; font-size: .9rem; opacity: 0.8; }
.footer__col a { color: rgba(255,255,255,0.8); transition: color .2s; }
.footer__col a:hover { color: var(--primary-light); }
.footer__bottom { max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; opacity: 0.6; font-size: .85rem; }

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav__list { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--header-bg); flex-direction: column; padding: 1rem 1.5rem; box-shadow: 0 4px 12px var(--shadow); }
  .nav__list.active { display: flex; }
  .hero { padding: 2.5rem 1.25rem; margin: 1rem; border-radius: 14px; }
  .hero h1 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .post, .page { padding: 1.5rem; }
  .related__grid { grid-template-columns: 1fr; }
}
