/*
Theme Name: Dra. Ailyn Farah
Author: Vinicius Soares
Description: Tema institucional da Dra. Ailyn Farah, com páginas de consultório e tratamentos.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: draailynfarah
*/

/* Estilos globais e componentes compartilhados. */
:root {
  --ink: #111011;
  --surface: #141414;
  --surface-soft: #171514;
  --paper: #f4f0eb;
  --gold: #d0a274;
  --gold-soft: #d1ad88;
  --gold-muted: #b88753;
  --line: rgba(214, 168, 120, 0.24);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Josefin Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font-family: var(--sans);
}

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

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

address,
p,
h1,
h2,
h3,
blockquote {
  margin: 0;
}

button {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.site-shell {
  overflow: hidden;
  background: var(--ink);
}

.section {
  padding: 112px 0;
  position: relative;
}

.section h2 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(3rem, 4.2vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.eyebrow {
  align-items: center;
  color: var(--gold-soft);
  display: flex;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 10px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.eyebrow span {
  color: #d6a878;
}

.button {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 600;
  gap: 14px;
  justify-content: center;
  line-height: 1;
  min-height: 52px;
  padding: 0 24px;
  transition: transform .25s ease, background .25s ease;
}

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

.button-gold {
  background: var(--gold);
  border: 1px solid #78839e;
  color: #000;
}

.button-gold:hover {
  background: #ddb387;
  color: #000;
}

.text-link {
  align-items: center;
  border-bottom: 1px solid var(--gold-soft);
  color: var(--paper);
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 600;
  justify-content: space-between;
  min-width: 240px;
  padding-bottom: 8px;
}

.site-header {
  background: var(--ink);
  box-shadow: 0 8px 28px rgba(48, 52, 64, .07);
  position: relative;
  z-index: 20;
}

.topbar {
  border-bottom: 1px solid rgba(52, 43, 36, .63);
  height: 44px;
}

.topbar address,
.topbar a,
.topbar span {
  color: #c2bfbb;
  font-size: 0.8125rem;
  letter-spacing: .025em;
  line-height: 1;
}

.topbar address span {
  color: #d6a878;
  font-size: 7px;
  margin-right: 8px;
}

.topbar-meta {
  display: flex;
  gap: 28px;
}

.mainbar {
  border-bottom: 1px solid rgba(52, 43, 36, .63);
}

.mainbar-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  height: 96px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 12px;
}

.brand-mark {
  height: 42px;
  width: 42px;
}

.brand-copy {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.6875rem;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--gold-muted);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.8;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 25px;
  justify-content: center;
}

.main-nav a {
  color: #fff;
  font-size: .9375rem;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  background: #9b7e76;
  bottom: -8px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  width: 100%;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  min-height: 46px;
}

.menu-toggle {
  background: none;
  border: 0;
  display: none;
  height: 42px;
  padding: 7px;
  position: relative;
  width: 42px;
}

.menu-toggle span {
  background: var(--paper);
  display: block;
  height: 1px;
  margin: 6px 0;
  transition: .25s;
  width: 27px;
}

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

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

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

.section-intro h2 {
  max-width: 680px;
  margin-top: 18px;
}

.intro-side {
  color: var(--gold-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.intro-side p {
  margin-bottom: 18px;
  max-width: 448px;
}

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

.site-footer {
  background: var(--ink);
}

.treatments>.container {
  position: relative;
  z-index: 1;
}

.treatments-floral {
  pointer-events: none;
  position: absolute;
  width: auto;
}

.treatments {
  overflow: hidden;
}

.treatments-floral {
  height: 480px;
  opacity: .18;
  right: -12px;
  top: 10px;
}

.treatment-grid {
  margin-top: 46px;
}

.treatment-card {
  border-radius: 22px;
  overflow: hidden;
}

.treatment-card {
  background: var(--surface-soft);
  border: 1px solid rgba(209, 173, 136, .22);
}

.treatment-card-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.treatment-card-link:hover {
  color: inherit;
}

.treatment-card-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.card-image-link {
  display: block;
  overflow: hidden;
}

.card-image-link {
  height: 255px;
}

.card-image-link img {
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  width: 100%;
}

.treatment-card:hover .card-image-link img {
  transform: scale(1.035);
}

.treatment-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 224px;
  padding: 23px;
}

.card-category {
  color: var(--gold-soft);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.treatment-card-title {
  border-bottom: 1px solid rgba(209, 173, 136, .22);
  color: var(--paper);
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.7;
  padding-top: 8px;
}

.treatment-card-description {
  color: var(--paper);
  display: block;
  font-size: .9375rem;
  line-height: 1.6;
  padding-top: 15px;
}

.treatment-card-action {
  color: var(--paper);
  display: block;
  font-size: .75rem;
  font-weight: 600;
  margin-top: auto;
  text-align: right;
}

/* Cards compartilhados entre a página inicial e o blog. */
.blog-card {
  background: var(--surface-soft);
  border: 1px solid rgba(209, 173, 136, .22);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.blog-card-image {
  background: #1d1a18;
  display: block;
  height: 250px;
  overflow: hidden;
}

.blog-card-image img {
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  width: 100%;
}

.blog-card:hover .blog-card-image img { transform: scale(1.035); }

.blog-card-placeholder {
  align-items: center;
  color: rgba(214, 168, 120, .34);
  display: flex;
  font-family: Georgia, serif;
  font-size: 3rem;
  height: 100%;
  justify-content: center;
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.blog-card-meta {
  color: var(--gold-soft);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.blog-card-meta span { color: rgba(244, 240, 235, .52); }
.blog-card-meta a { color: inherit; }
.blog-card-meta a:hover { color: var(--paper); }

.blog-card h3 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.25;
  margin-top: 12px;
}

.blog-card-excerpt {
  color: rgba(244, 240, 235, .7);
  font-size: .875rem;
  line-height: 1.65;
  margin-top: 14px;
}

.blog-card-link {
  align-items: center;
  border-top: 1px solid rgba(214, 168, 120, .22);
  display: flex;
  font-size: .8125rem;
  font-weight: 600;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
}

.blog-card-link:hover { color: var(--gold-soft); }

.site-footer {
  border-top: 1px solid rgba(214, 168, 120, .2);
  padding-top: 82px;
}

.footer-main {
  padding-bottom: 62px;
}

.footer-main>div:first-child {
  text-align: center;
}

.footer-main .brand {
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.footer-main>div:first-child>p {
  color: var(--paper);
  font-size: .9375rem;
  line-height: 1.85;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  max-width: 330px;
  text-align: center;
}

.footer-tagline-tail {
  display: block;
}

.footer-instagram,
.footer-whatsapp {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin: 18px 4px 0;
  width: 44px;
}

.footer-instagram:hover,
.footer-whatsapp:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.footer-instagram:focus-visible,
.footer-whatsapp:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.site-footer h2 {
  color: var(--paper);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer nav a,
.site-footer address,
.site-footer .footer-main>div:last-child>a,
.site-footer .footer-main>div:last-child>p {
  color: var(--paper);
  display: block;
  font-size: .875rem;
  line-height: 1.85;
}

.site-footer .footer-main>div:last-child>a,
.site-footer .footer-main>div:last-child>p {
  margin-top: 8px;
}

.footer-bottom {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 78px;
}

.footer-bottom p,
.footer-bottom a {
  color: rgba(255, 255, 255, .84);
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.footer-bottom>div {
  display: flex;
  gap: 18px;
}

.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.treatments-appointment {
  background: var(--surface);
  padding: 0 0 112px;
}

.treatments-appointment-card {
  align-items: center;
  background: linear-gradient(142deg, #1d1a18, #111011);
  border: 1px solid rgba(214, 168, 120, .28);
  border-radius: 32px;
  display: flex;
  gap: 48px;
  justify-content: space-between;
  padding: 48px 52px;
}

.treatments-appointment-card h2 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.16;
  margin-top: 15px;
  max-width: 680px;
}

.treatments-appointment-card>div>p:not(.eyebrow) {
  color: rgba(244, 240, 235, .7);
  line-height: 1.75;
  margin-top: 15px;
  max-width: 650px;
}

.treatments-appointment-card .button {
  flex: 0 0 auto;
  min-width: 270px;
}

/* Integração com os menus e conteúdo do WordPress. */
.main-nav .menu { display: flex; align-items: inherit; flex-direction: inherit; justify-content: inherit; gap: inherit; list-style: none; padding: 0; margin: 0; }
.main-nav a { display: block; }
.site-footer .menu { display: flex; flex-direction: column; align-items: inherit; list-style: none; padding: 0; margin: 0; }
.main-nav .current-menu-item > a::after { transform: scaleX(1); }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 100000; padding: 12px 20px; border-radius: 8px; background: var(--paper); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
:is(a, button, summary):focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 5px; }
.content-section { padding: 80px 0; min-height: 50vh; }
.content-section h1, .content-section h2 { font-family: var(--serif); margin-bottom: 24px; }
.entry-content > * + * { margin-top: 24px; }
.entry-content a, .posts-navigation a { text-decoration: underline; }
.entry-content img { height: auto; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .875rem; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
