:root {
      --ink: #09243b;
      --brand-blue: #164c70;
      --cyan: #69d5ef;
    }

    body {
      background: #f5f8fa;
    }

    section[id] {
      scroll-margin-top: 90px;
    }

    a:focus-visible,
    button:focus-visible {
      outline: 3px solid #0284c7;
      outline-offset: 4px;
    }

    /* Animação Foco Ocular */
    @keyframes opticalFocus {
      0% {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(14px);
      }
      100% {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
      }
    }

    .animate-focus {
      animation: opticalFocus 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.active {
      opacity: 1;
      transform: translateY(0);
    }

    /* Header e Navegação */
    header {
      background: transparent;
      transition: background 0.3s ease;
    }

    header.scrolled {
      background: #164c70;
      box-shadow: 0 4px 20px rgba(9, 36, 59, 0.14);
    }

    header > div {
      width: 100%;
      padding-inline: 6vw;
    }

    .brand {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .brand img {
      width: 190px;
      height: 65px;
      object-fit: contain;
      object-position: left center;
    }

    .desktop-nav {
      display: flex;
      align-items: center;
      gap: clamp(16px, 2vw, 34px);
      color: #ffffff;
      font-size: 14px;
      font-weight: 500;
    }

    .desktop-nav a {
      text-decoration: none;
      color: #ffffff;
      white-space: nowrap;
      transition: opacity 0.2s ease;
    }

    .desktop-nav a:hover {
      opacity: 0.72;
    }

    #menu-toggle {
      display: none;
      color: #ffffff;
      padding: 8px;
      border-radius: 8px;
    }

    #menu-backdrop {
      display: none;
    }

    #menu-close {
      display: block;
      margin: 0 0 20px auto;
      font-size: 32px;
      line-height: 1;
      color: #164c70;
      padding: 8px;
    }

    /* Hero Principal */
    .hero-premium {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      background: #164c70;
      color: #ffffff;
      min-height: 100svh;
      display: flex;
      align-items: center;
      padding: 130px 6vw 80px;
    }

    .hero-photo {
      position: absolute;
      inset: 0;
      z-index: -2;
      background: url('assets/olho-azul.webp') center right / cover no-repeat;
    }

    .hero-premium::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(90deg, rgba(7, 24, 38, 0.84), rgba(7, 24, 38, 0.34) 44%, transparent 76%),
                  linear-gradient(0deg, rgba(7, 24, 38, 0.22), transparent 25%);
    }

    .hero-content {
      max-width: 680px;
    }

    .hero-kicker {
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.21em;
      color: #a4dceb;
      margin-bottom: 24px;
    }

    .hero-kicker span {
      width: 32px;
      height: 1px;
      background: var(--cyan);
    }

    .hero-content h1 {
      font-family: 'Lora', Georgia, serif;
      font-size: clamp(46px, 4.5vw, 74px);
      font-weight: 500;
      line-height: 1.12;
      letter-spacing: -0.045em;
      margin: 0 0 24px;
    }

    .hero-content h1 em {
      color: #a8e0ef;
      font-weight: 400;
    }

    .hero-content p {
      max-width: 490px;
      color: #f1f8fc;
      font-size: 18px;
      line-height: 1.75;
      margin-bottom: 34px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .hero-primary {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
      padding: 17px 24px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 700;
      background: #0f2942;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.5);
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .hero-primary:hover {
      transform: translateY(-3px);
      background: #286187;
    }

    /* Seção Especialidades */
    #servicos {
      background: #f5f9fc;
    }

    .specialty-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 20px;
      align-items: start;
    }

    .specialty-card {
      background: #164c70;
      color: #ffffff;
      border-radius: 18px 7px 18px 7px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(22, 76, 112, 0.08);
    }

    .specialty-card summary {
      position: relative;
      list-style: none;
      cursor: pointer;
      min-height: 370px;
      display: flex;
      align-items: flex-end;
      background-color: #164c70;
      background-image: linear-gradient(0deg, #164c70 0%, #164c70e8 15%, #164c7050 35%, transparent 57%), var(--photo);
      background-size: cover;
      background-position: center;
    }

    .specialty-card summary::-webkit-details-marker {
      display: none;
    }

    .specialty-copy {
      padding: 24px;
      width: 100%;
    }

    .specialty-copy small {
      color: #bce3f5;
      font-weight: 600;
    }

    .specialty-copy h3 {
      font-family: 'Lora', serif;
      font-size: 24px;
      line-height: 1.2;
      margin: 8px 0;
    }

    .specialty-copy span {
      display: block;
      margin-top: 14px;
      color: #d5f0ff;
      font-size: 14px;
    }

    .specialty-card > p {
      padding: 0 24px 24px;
      color: #e0edf5;
      font-size: 14px;
      line-height: 1.7;
    }

    .specialty-card[open] .specialty-copy b {
      display: inline-block;
      transform: rotate(45deg);
    }

    /* Seção Estrutura */
    #estrutura {
      background: #edf5f9;
    }

    #estrutura figure {
      border-radius: 22px 8px 22px 8px;
      cursor: zoom-in;
    }

    #estrutura figure::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(0deg, rgba(22, 76, 112, 0.35), transparent 26%);
    }

    #estrutura figcaption {
      z-index: 1;
      background: rgba(22, 76, 112, 0.92);
      color: #ffffff;
    }

    #estrutura .mt-5 figure {
      aspect-ratio: 4 / 3;
    }

    /* Ajuste fino (-0.8 graus) na foto da entrada */
    .foto-entrada-alinhada {
      transform: rotate(-0.8deg) scale(1.03);
      transition: transform 0.7s ease;
    }

    #estrutura figure:hover .foto-entrada-alinhada {
      transform: rotate(-0.8deg) scale(1.06);
    }

    /* Seção Corpo Clínico */
    #corpo-clinico {
      background: #f8fbfd;
    }

    #corpo-clinico h2 {
      font-size: clamp(32px, 4vw, 50px);
      line-height: 1.15;
      letter-spacing: -0.035em;
    }

    .training h3 {
      font-family: 'Lora', serif;
      font-size: 22px;
      margin-bottom: 10px;
    }

    .training > p {
      color: #286187;
      font-size: 14px;
    }

    .training dl {
      display: grid;
      grid-template-columns: 95px 1fr;
      gap: 12px;
      margin-top: 18px;
      font-size: 14px;
    }

    .training dt {
      font-weight: 700;
      color: #286187;
    }

    .training dd {
      border-bottom: 1px solid #d3e7f2;
      padding-bottom: 10px;
    }

    /* FAQ Acordeão */
    #duvidas {
      background: #f1f7fa;
    }

    .faq-content {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .faq-item[data-open="true"] .faq-content {
      grid-template-rows: 1fr;
    }

    .faq-inner {
      overflow: hidden;
    }

    .faq-icon {
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .faq-item[data-open="true"] .faq-icon {
      transform: rotate(45deg);
    }

    /* Footer */
    .footer-brand {
      width: 210px;
      height: auto;
      margin-bottom: 15px;
    }

    /* Lightbox simples da Estrutura */
    #lightbox {
      position: fixed;
      inset: 0;
      z-index: 1100;
      background: rgba(7, 24, 38, 0.9);
      backdrop-filter: blur(4px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 24px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    #lightbox.open {
      opacity: 1;
      visibility: visible;
    }

    #lightbox img {
      max-width: 92vw;
      max-height: 80vh;
      border-radius: 12px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
      object-fit: contain;
    }

    #lightbox-caption {
      color: #f1f8fc;
      font-size: 14px;
      margin-top: 14px;
      text-align: center;
    }

    #lightbox-close {
      position: absolute;
      top: 20px;
      right: 24px;
      color: #ffffff;
      font-size: 36px;
      line-height: 1;
      padding: 6px 12px;
      cursor: pointer;
    }

    /* Responsividade Tablet e Mobile */
    @media (min-width: 1024px) {
      #mobile-nav {
        display: none !important;
      }
    }

    @media (max-width: 1023px) {
      .desktop-nav {
        display: none;
      }

      #menu-toggle {
        display: block;
      }

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

      #menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(7, 28, 48, 0.62);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.38s ease, visibility 0.38s ease;
        z-index: 1000;
      }

      #menu-backdrop.open {
        opacity: 1;
        visibility: visible;
      }

      #mobile-nav {
        display: block !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(310px, 82vw);
        height: 100dvh;
        background: #f4f9fc;
        color: #0f2942;
        padding: 24px;
        overflow-y: auto;
        z-index: 1001;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.42s;
        box-shadow: none;
      }

      #mobile-nav.open {
        transform: translateX(0);
        visibility: visible;
        box-shadow: -12px 0 40px rgba(9, 36, 59, 0.3);
      }

      #mobile-nav a {
        display: block;
        padding: 15px 8px;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid #d3e7f2;
      }

      body.menu-open {
        overflow: hidden;
      }
    }

    @media (max-width: 767px) {
      header > div {
        height: 72px !important;
        padding-inline: 24px !important;
      }

      .brand img {
        width: 145px;
        height: 52px;
      }

      .hero-premium {
        min-height: 100svh;
        padding: 300px 24px 48px;
        align-items: flex-end;
      }

      .hero-photo {
        background-position: 76% center;
      }

      .hero-premium::after {
        background: linear-gradient(0deg, rgba(9, 28, 43, 0.94) 0%, rgba(9, 28, 43, 0.75) 24%, rgba(9, 28, 43, 0.22) 48%, transparent 72%);
      }

      .hero-kicker {
        font-size: 9px;
        letter-spacing: 0.12em;
      }

      .hero-content h1 {
        font-size: clamp(37px, 9vw, 52px);
      }

      .hero-content h1 br {
        display: none;
      }

      .hero-content h1 em::before {
        content: ' ';
      }

      .hero-content p {
        font-size: 16px;
      }

      .specialty-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
      }

      .specialty-card summary {
        min-height: 360px;
        background-image: linear-gradient(0deg, rgba(15, 42, 61, 0.94), rgba(15, 42, 61, 0.65) 19%, transparent 55%), var(--photo);
      }

      /* Puxa a foto 01 para cima no mobile para não cortar a cabeça e mostrar o equipamento */
      .specialty-card:first-child summary {
        background-position: center 8%;
      }

      .specialty-copy {
        padding: 24px;
      }

      .specialty-copy h3 {
        font-size: 27px;
      }

      .specialty-card > p {
        padding: 0 24px 24px;
      }

      #estrutura figure:first-child {
        min-height: 280px;
      }

      #corpo-clinico .training {
        margin-top: 36px;
      }

      .training h3 {
        margin-bottom: 16px;
        line-height: 1.35;
      }

      .training dl {
        grid-template-columns: 80px minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 18px;
        margin-top: 24px;
        line-height: 1.7;
      }

      .training dd {
        padding-bottom: 16px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      #mobile-nav,
      #menu-backdrop {
        transition: none !important;
      }
    }
