/*
Theme Name: Castillo Clinic
Theme URI: https://castilloodontologia.com.br
Author: Codex
Description: Tema institucional sob medida para Castillo Odontologia.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: castillo-clinic
*/

:root {
  --ink: #101010;
  --soft: #525252;
  --muted: #767676;
  --line: #e9e9e9;
  --paper: #ffffff;
  --surface: #fafafa;
  --accent: #1f3f2a;
  --accent-hover: #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(31, 63, 42, 0.3);
  outline-offset: 4px;
}

.skip-link {
  left: 20px;
  position: fixed;
  top: 16px;
  transform: translateY(-160%);
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand img {
  height: 38px;
  object-fit: contain;
  width: min(190px, 52vw);
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.96rem;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button.secondary {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #bdbdbd;
}

.button.large {
  font-size: 1.05rem;
  min-height: 58px;
  padding: 15px 28px;
}

.button.compact {
  min-height: 44px;
  padding: 10px 18px;
}

.hero {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  margin: 0 auto;
  max-width: 980px;
  min-height: calc(100svh - 76px);
  padding: clamp(72px, 12vw, 148px) clamp(20px, 5vw, 72px);
  place-content: center;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.75rem, 7vw, 6.25rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0 auto;
  max-width: 900px;
}

.hero-lede {
  color: var(--soft);
  font-size: clamp(1.06rem, 1.8vw, 1.34rem);
  margin: 24px auto 0;
  max-width: 560px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.proof {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(20px, 5vw, 72px);
}

.proof-inner {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.proof p {
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(0.96rem, 1.4vw, 1.1rem);
  font-weight: 750;
  margin: 0;
  min-height: 96px;
  padding: 28px 22px;
}

.proof p:last-child {
  border-right: 1px solid var(--line);
}

.services,
.official {
  padding: clamp(58px, 9vw, 104px) clamp(20px, 5vw, 72px);
}

.services {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.official {
  background: var(--surface);
}

.section-inner {
  margin: 0 auto;
  max-width: 1040px;
}

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.service-list {
  border-top: 1px solid var(--line);
  display: grid;
  margin-top: 34px;
}

.service-list p {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  font-weight: 650;
  margin: 0;
  padding: 20px 0;
}

.official-inner {
  align-items: end;
  display: grid;
  gap: clamp(28px, 6vw, 82px);
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.42fr);
}

.official p {
  color: var(--soft);
  font-size: 1.04rem;
  margin: 18px 0 0;
  max-width: 560px;
}

.official-actions {
  display: grid;
  gap: 12px;
}

.site-footer {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

@media (max-width: 760px) {
  .site-header {
    min-height: 70px;
    padding-inline: 16px;
  }

  .brand img {
    height: 35px;
    width: min(168px, 52vw);
  }

  .button.compact {
    min-height: 42px;
    padding-inline: 15px;
  }

  .hero-inner {
    min-height: auto;
    padding: 74px 18px 82px;
    text-align: left;
  }

  .hero h1,
  .hero-lede {
    margin-left: 0;
    margin-right: 0;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.55rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    justify-content: start;
  }

  .button {
    width: 100%;
  }

  .services,
  .proof,
  .official {
    padding-inline: 18px;
  }

  .proof-inner {
    grid-template-columns: 1fr;
  }

  .proof p,
  .proof p:last-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    min-height: auto;
    padding: 18px 0;
  }

  .official-inner {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    padding-inline: 18px;
  }
}
