/* ==========================================================================
   Design Tokens & CSS Variables
   Dra. Renata Guerra — Cirurgia Pediátrica
   ========================================================================== */
:root {
  --color-navy: #29245a;
  --color-orange: #ed7520;
  --color-orange-alt: #ed7421;
  --color-gray: #807c7b;
  --color-body: #5c5958;
  --color-body-hero-sub: #4f4c4b;
  --color-body-intro: rgba(0, 0, 0, 0.7);
  --color-white: #ffffff;
  --color-off-white: #f6f5f4;
  --color-hero-bg: #f4f3f2;
  --color-border: #e6e3e2;
  --color-peach-bg: #fdece1;
  --color-peach-border: #f3c5a4;

  --font-family-base: 'Josefin Sans Custom', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-h1-fallback: 'Josefin Sans Custom', Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --transition-fast: 0.25s ease;
  --transition-reveal: 0.8s cubic-bezier(0.16, 0.8, 0.3, 1);

  --radius-full: 999px;
  --radius-card: 20px;
  --radius-accordion: 14px;
  --radius-circle: 50%;

  --shadow-card-hover: 0 22px 40px -22px rgba(41, 36, 90, 0.3);
  --shadow-btn-hero: 0 16px 30px -14px rgba(237, 116, 33, 0.55);
  --shadow-btn-card: 0 14px 26px -12px rgba(237, 117, 32, 0.55);
}

/* ==========================================================================
   Typography & Font Faces
   ========================================================================== */
@font-face {
  font-family: 'Josefin Sans Custom';
  src: url('../assets/fonts/JosefinSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Josefin Sans Custom';
  src: url('../assets/fonts/JosefinSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Mapped weights to available faces */
@font-face {
  font-family: 'Josefin Sans Custom';
  src: url('../assets/fonts/JosefinSans-Light.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Josefin Sans Custom';
  src: url('../assets/fonts/JosefinSans-Light.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Josefin Sans Custom';
  src: url('../assets/fonts/JosefinSans-Bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Josefin Sans Custom';
  src: url('../assets/fonts/JosefinSans-Bold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  font-family: var(--font-family-base);
  background-color: var(--color-white);
  color: var(--color-navy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Synthetic weight reinforcement (approved design token) */
.text-reinforced {
  -webkit-text-stroke: 0.28px currentColor;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* Section Headings */
.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-navy);
  margin-bottom: 20px;
  max-width: 640px;
}

.section-title.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Scroll reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--color-hero-bg);
  overflow: hidden;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 1920 / 704;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  max-width: 620px;
  z-index: 2;
}

/* Logo Lockup */
.logo-lockup {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  margin-bottom: clamp(12px, 1.6vw, 22px);
}

.logo-icon {
  width: clamp(34px, 3.6vw, 54px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1.15;
  color: var(--color-navy);
}

.logo-name {
  font-size: clamp(11px, 1.15vw, 18px);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.logo-specialty {
  font-size: clamp(7px, 0.72vw, 11px);
  letter-spacing: 0.14em;
  font-weight: 300;
  color: var(--color-gray);
}

/* Hero Headings and Copy */
.hero-title {
  font-family: var(--font-family-h1-fallback);
  font-weight: 300;
  font-size: clamp(16px, 2.6vw, 38px);
  line-height: 1.15;
  margin: 0 0 clamp(10px, 1.6vw, 20px);
  letter-spacing: -0.01em;
  color: var(--color-navy);
}

.hero-subtitle {
  font-size: clamp(12px, 1.2vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-body-hero-sub);
  max-width: 460px;
  margin: 0 0 clamp(12px, 1.6vw, 20px);
}

.hero-subtitle strong {
  font-weight: 700;
}

.hero-credentials {
  font-size: clamp(9px, 0.85vw, 13px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-gray);
  max-width: 440px;
  margin: 0 0 clamp(14px, 2.2vw, 32px);
}

.hero-cta {
  font-size: clamp(10px, 0.95vw, 15px);
  font-weight: 600;
  background-color: var(--color-orange-alt);
  color: var(--color-white);
  padding: clamp(8px, 1.2vw, 16px) clamp(14px, 2vw, 30px);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn-hero);
  color: var(--color-white);
}

.hero-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 2px;
}

/* ==========================================================================
   Section 2: Nav Icon Strip (Navy Band)
   ========================================================================== */
.nav-strip-section {
  padding: 40px clamp(24px, 5vw, 80px);
  background-color: var(--color-navy);
}

.nav-strip-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.nav-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.nav-strip-icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-circle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.nav-strip-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-strip-item:hover .nav-strip-icon-box,
.nav-strip-item:focus-visible .nav-strip-icon-box {
  transform: scale(1.12);
}

.nav-strip-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
}

/* ==========================================================================
   Section 3: Para quem é
   ========================================================================== */
.para-quem-section {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 80px);
}

.para-quem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.para-quem-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-orange);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.para-quem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.para-quem-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  margin-bottom: 20px;
}

.para-quem-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.para-quem-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-body);
  font-weight: 300;
}

.para-quem-card p + p {
  margin-top: 8px;
}

/* ==========================================================================
   Section 4: Patologias mais frequentes (Accordion)
   ========================================================================== */
.patologias-section {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 80px);
  background-color: var(--color-off-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.patologias-wrapper {
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.accordion-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-accordion);
  overflow: hidden;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

/* Accordion hover state: full orange card, white text */
.accordion-item:hover {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy);
  text-align: left;
  transition: color var(--transition-fast);
}

.accordion-title {
  display: flex;
  align-items: center;
}

.accordion-symbol {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: var(--color-navy);
  transition: color var(--transition-fast);
  margin-left: 12px;
}

.accordion-item:hover .accordion-trigger,
.accordion-item:hover .accordion-symbol {
  color: var(--color-white);
}

.accordion-panel {
  display: none;
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-body);
  transition: color var(--transition-fast);
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

.accordion-block {
  margin-bottom: 8px;
}

.accordion-block:last-child {
  margin-bottom: 0;
}

.accordion-block strong {
  font-weight: 700;
  color: var(--color-navy);
  transition: color var(--transition-fast);
}

.accordion-item:hover .accordion-panel,
.accordion-item:hover .accordion-block strong {
  color: var(--color-white);
}

/* ==========================================================================
   Section 5: Sobre a Dra. Renata
   ========================================================================== */
.sobre-section {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}

.sobre-grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(280px, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.sobre-photo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.sobre-photo-circle {
  border-radius: var(--radius-circle);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 1;
  background-color: var(--color-off-white);
}

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

.sobre-photo-ring {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-circle);
  border: 2px solid var(--color-orange);
  z-index: 0;
  pointer-events: none;
}

.sobre-subhead {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-orange-alt);
  margin-bottom: 16px;
}

.sobre-p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body);
  margin-bottom: 16px;
  font-weight: 500;
}

.sobre-p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Section 6: Segurança na cirurgia
   ========================================================================== */
.seguranca-section {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 80px);
  background-color: var(--color-off-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.seguranca-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.seguranca-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  gap: 20px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.seguranca-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.seguranca-icon-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background-color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seguranca-icon-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background-color: var(--color-white);
}

.seguranca-card h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.seguranca-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-body);
}

.seguranca-card p + p {
  margin-top: 6px;
}

/* ==========================================================================
   Section 7: Onde atende (Final CTA)
   ========================================================================== */
.onde-atende-section {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 80px);
}

.onde-atende-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body-intro);
  margin-bottom: 32px;
  max-width: 662px;
  text-align: left;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.location-card {
  border-radius: var(--radius-card);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.location-card.indaiatuba {
  background-color: var(--color-peach-bg);
  border: 1px solid var(--color-peach-border);
}

.location-card.itu {
  background-color: var(--color-off-white);
  border: 1px solid var(--color-border);
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -16px rgba(41, 36, 90, 0.2);
}

.location-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.location-clinic {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy);
}

.location-info-block {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-body);
}

.location-cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.location-cta:hover,
.location-cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn-card);
  color: var(--color-white);
}

.location-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Section 8: Footer
   ========================================================================== */
.site-footer {
  padding: 40px clamp(24px, 5vw, 80px);
  text-align: center;
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-name {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--color-white);
}

.footer-crm {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--color-orange);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  /* Hero stack below 900px for full mobile legibility */
  .hero-wrapper {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-bg-img {
    position: relative;
    width: 100%;
    height: 320px;
    object-position: 70% center;
  }

  .hero-overlay {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 36px 24px 44px;
    background-color: var(--color-hero-bg);
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sobre-photo-wrapper {
    margin-bottom: 24px;
  }
}

@media (max-width: 600px) {
  .hero-bg-img {
    height: 240px;
  }

  .nav-strip-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .para-quem-card,
  .seguranca-card,
  .location-card {
    padding: 24px;
  }

  .seguranca-card {
    flex-direction: column;
    gap: 16px;
  }
}
