/* File: website/static/website/css/styles.css */
/* Purpose:
   Global styles for the Django version of the Dr. Matheus Bomfim website.
   Includes responsive layout, hero carousel, service sections,
   WhatsApp floating button, mobile navigation, and HelpUS developer attribution.

   Update notes:
   - Added a premium mobile hamburger menu.
   - Improved spacing and hierarchy on small screens.
   - Refined the hero section for better balance on phones and tablets.
   - Kept the premium dark visual language with cleaner mobile behavior.
*/

:root {
  --bg: #07111f;
  --bg-soft: #0e1c2e;
  --panel: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: #b3bfd1;
  --accent: #caa46a;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #050c16 0%, #07111f 36%, #0b1625 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

video {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 12, 22, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.brand strong,
.footer strong {
  display: block;
  font-size: 1rem;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #f5f7fb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.5);
  transform: scale(1.08);
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(4, 10, 18, 0.92) 0%,
      rgba(4, 10, 18, 0.85) 40%,
      rgba(4, 10, 18, 0.75) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 10, 18, 0.85) 0%,
      rgba(4, 10, 18, 0.95) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(202, 164, 106, 0.12);
  color: #f6d4a0;
  border: 1px solid rgba(202, 164, 106, 0.28);
  font-size: 0.9rem;
}

.hero h1,
.section h2,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  max-width: 12ch;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.03em;
}

.hero p,
.section p,
.metric-card span,
.service-card p,
.feature-panel li,
.bullet-card,
.step-card p,
.faq-item p,
.cta-panel p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero p {
  margin: 22px 0 0;
  font-size: 1.05rem;
  max-width: 62ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.whatsapp-float:hover,
.developer-credit a:hover {
  transform: translateY(-1px);
}

.button-primary,
.whatsapp-float {
  background: linear-gradient(135deg, var(--accent) 0%, #e0bc84 100%);
  color: #1c1104;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.hero-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dfe8f5;
  font-size: 0.95rem;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.portrait-stack {
  position: relative;
  min-height: 620px;
  width: min(100%, 520px);
}

.portrait-card {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.portrait-main {
  right: 0;
  width: 72%;
  height: 92%;
}

.portrait-secondary {
  left: 0;
  bottom: 0;
  width: 48%;
  height: 54%;
}

.metrics-section,
.section {
  padding: 88px 0;
}

.metrics-grid,
.cards-grid,
.steps-grid,
.bullet-grid {
  display: grid;
  gap: 20px;
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.service-card,
.feature-panel,
.bullet-card,
.step-card,
.faq-item,
.cta-panel,
.about-video-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.metric-card,
.service-card,
.feature-panel,
.step-card,
.cta-panel,
.faq-item {
  padding: 28px;
}

.metric-card strong,
.service-card h3,
.feature-panel h3,
.cta-panel h2 {
  display: block;
  margin-bottom: 10px;
}

.two-column,
.about-grid,
.faq-grid,
.cta-panel,
.footer-wrap {
  display: grid;
  gap: 24px;
}

.two-column,
.about-grid,
.faq-grid,
.cta-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.feature-panel ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.section-heading {
  margin-bottom: 26px;
}

.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card h3 {
  margin-top: 0;
}

.about-video-wrap {
  padding: 14px;
}

.bullet-grid {
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bullet-card {
  padding: 18px 20px;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f6d4a0;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin-bottom: 0;
}

.cta-section {
  padding-top: 12px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer {
  padding: 40px 0 72px;
}

.footer-wrap {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
}

.developer-credit {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
}

.developer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.developer-credit img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.developer-credit span {
  color: var(--muted);
  font-size: 0.95rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1120px) {
  .hero-content,
  .two-column,
  .about-grid,
  .faq-grid,
  .cta-panel,
  .metrics-grid,
  .cards-grid,
  .steps-grid,
  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    max-width: 10ch;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(7, 17, 31, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  }

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

  .nav a {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 820px) {
  .hero-content,
  .two-column,
  .about-grid,
  .faq-grid,
  .cta-panel,
  .metrics-grid,
  .cards-grid,
  .steps-grid,
  .footer-wrap,
  .bullet-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(4, 10, 18, 0.78) 0%,
        rgba(4, 10, 18, 0.9) 100%
      );
  }

  .hero-content {
    padding: 56px 0 64px;
    gap: 28px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .hero p {
    max-width: 100%;
  }

  .hero-copy {
    order: 1;
  }

  .hero-card {
    order: 2;
  }

  .portrait-stack {
    min-height: 540px;
  }

  .portrait-main {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .portrait-secondary {
    display: none;
  }

  .section,
  .metrics-section {
    padding: 72px 0;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand {
    gap: 10px;
    max-width: calc(100% - 58px);
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand span {
    font-size: 0.82rem;
  }

  .header {
    position: sticky;
  }

  .nav-wrap {
    min-height: 76px;
  }

  .hero-content {
    padding: 42px 0 120px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 10.5vw, 2.8rem);
    line-height: 1.02;
  }

  .hero p,
  .section p,
  .metric-card span,
  .service-card p,
  .feature-panel li,
  .bullet-card,
  .step-card p,
  .faq-item p,
  .cta-panel p,
  .footer p,
  .developer-credit span {
    font-size: 0.96rem;
  }

  .hero-points {
    gap: 10px;
  }

  .hero-points li {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .button,
  .whatsapp-float {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }

  .metric-card,
  .service-card,
  .feature-panel,
  .step-card,
  .cta-panel,
  .faq-item {
    padding: 22px;
  }

  .portrait-stack {
    min-height: 420px;
  }

  .whatsapp-float {
    left: 16px;
    right: 16px;
    bottom: 14px;
    justify-content: center;
  }

  .developer-credit a {
    flex-direction: column;
    text-align: center;
  }
}