/*
Theme Name: Morgana Gronskar
Theme URI: https://morganagronskar.com/
Author: Agencia WA
Description: Tema institucional sob medida para Morgana Gronskar, com avaliacoes moderadas pelo WordPress.
Version: 1.4.7
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: morgana-gronskar
*/

:root {
  --mg-ink: #222;
  --mg-muted: #696969;
  --mg-line: #dedbd6;
  --mg-soft: #f3f3f3;
  --mg-card: #f1f1f1;
  --mg-white: #fff;
  --mg-display: "Playfair Display", Georgia, serif;
  --mg-body: Georgia, "Times New Roman", serif;
  --mg-ui: "DM Sans", Arial, sans-serif;
  --mg-desktop-frame: 1360px;
  --mg-desktop-content: 940px;
  --mg-desktop-reading: 980px;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--mg-ink);
  background: var(--mg-white);
  font-family: var(--mg-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; margin: 0; padding: 12px 16px;
  top: 8px; left: 8px; z-index: 100000; background: #fff;
}

/* Header */
.site-header {
  position: sticky; top: var(--mg-admin-offset, 0px); z-index: 1000;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee;
}
.site-nav {
  width: min(calc(100% - 48px), var(--mg-desktop-frame)); margin: 0 auto; padding: 17px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.site-brand { display: block; text-decoration: none; line-height: 1; }
.site-brand strong { display: block; font: 500 28px var(--mg-display); }
.site-brand small {
  display: block; margin-top: 5px; color: #777;
  font: 500 8px var(--mg-ui); letter-spacing: .2em; text-transform: uppercase;
}
.language-menu { position: relative; z-index: 20; }
.language-menu summary {
  list-style: none; cursor: pointer; user-select: none; color: #666;
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 4px 5px;
  border-bottom: 1px solid #b5b5b5; font: 400 15px "Cormorant Garamond", Georgia, serif;
  letter-spacing: .07em;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #999; }
.language-menu[open] .language-arrow { transform: rotate(180deg); }
.language-arrow { transition: transform .2s ease; }
.language-dropdown {
  position: absolute; right: 0; top: calc(100% + 9px); width: 165px; padding: 8px;
  background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: 9px;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}
.language-dropdown button {
  width: 100%; padding: 10px 12px; border: 0; border-radius: 6px;
  background: transparent; color: #222 !important; text-align: left; cursor: pointer;
  font: 400 16px "Cormorant Garamond", Georgia, serif;
  -webkit-appearance: none; appearance: none;
}
.language-dropdown button:hover, .language-dropdown button:focus { background: #f1f1f1; }

/* Hero */
.hero { position: relative; width: min(calc(100% - 48px), var(--mg-desktop-frame)); min-height: 520px; aspect-ratio: 16/7.2; margin: 0 auto; overflow: hidden; background: #ddd; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease; }
.slide.active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,.02) 76%); }
.caption {
  position: absolute; left: 6%; bottom: 10%; width: 44%; max-width: 520px;
  color: #fff; text-align: center;
}
.caption h2 { margin: 0; font: 500 clamp(36px, 4vw, 52px) var(--mg-display); }
.slider-dots { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px auto 0; }
.slider-dot {
  width: 5px; height: 5px; min-width: 5px; min-height: 5px; padding: 0; border: 0;
  border-radius: 50%; background: rgba(255,255,255,.42); cursor: pointer;
}
.slider-dot.active { background: #fff; transform: scale(1.15); }
.slider-dot:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }

/* Intro and services */
.intro { width: min(100%, var(--mg-desktop-content)); margin: 0 auto; padding: 90px 34px; text-align: center; }
.intro h1 { margin: 0 0 24px; color: #666; font: 400 clamp(38px, 4.1vw, 50px) var(--mg-body); letter-spacing: .03em; }
.intro p { margin: 0; color: #656565; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.75; }
.services { padding: 88px 40px; background: #f3f2f0; }
.services-heading { width: min(100%, var(--mg-desktop-content)); margin: 0 auto 46px; text-align: center; }
.services-heading h2 { margin: 0; font: 400 38px var(--mg-body); color: #555; }
.services-heading span { display: block; width: 70px; margin: 16px auto 0; border-top: 1px solid #888; }
.services-grid { width: min(100%, var(--mg-desktop-content)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 42px; }
.service-card { background: #fff; }
.service-card-photo { display: block; aspect-ratio: 16/9; overflow: hidden; }
.service-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.service-card:hover img { transform: scale(1.018); }
.service-card-body { padding: 25px 27px 30px; }
.service-card h3 { margin: 0 0 14px; font: 500 26px var(--mg-display); line-height: 1.15; }
.service-card p { margin: 0; color: #707070; font-size: 16px; line-height: 1.75; }
.service-card .more, .back-link {
  display: inline-block; margin-top: 19px; padding-bottom: 5px; border-bottom: 1px solid #999;
  text-decoration: none; font: 500 10px var(--mg-ui); letter-spacing: .13em; text-transform: uppercase;
}

/* About */
.about { padding: 94px 40px; background: #ededed; }
.about-inner {
  width: min(100%, var(--mg-desktop-content)); margin: 0 auto; display: flex;
  flex-direction: column; align-items: center; gap: 34px; text-align: center;
}
.about-photo { width: 240px; max-width: 72vw; aspect-ratio: 4/5; overflow: hidden; border-radius: 0; background: transparent; }
.about-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 0; }
.kicker { color: #777; font: 500 11px var(--mg-ui); letter-spacing: .14em; text-transform: uppercase; }
.about h2 { margin: 12px 0 26px; font: 500 30px/1.15 var(--mg-display); }
.about p { width: min(100%, 720px); margin: 0 auto 17px; color: #4f4a45; font-size: 17px; line-height: 1.85; }

/* Internal service screens */
.service-detail { display: none; width: min(100%, var(--mg-desktop-frame)); margin: 0 auto; padding: 88px 38px 105px; }
.service-detail:target { display: block; }
body:has(.service-detail:target) .hero,
body:has(.service-detail:target) .intro,
body:has(.service-detail:target) .services,
body:has(.service-detail:target) .about,
body:has(.service-detail:target) .testimonials,
body:has(.service-detail:target) .site-footer { display: none; }
.detail-photo { width: min(100%, var(--mg-desktop-content)); aspect-ratio: 4/3; margin: 0 auto 50px; overflow: hidden; background: #eee; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { width: min(100%, var(--mg-desktop-reading)); margin: 0 auto; text-align: center; }
.detail-copy h2 { margin: 0 auto 26px; font: 500 28px/1.2 var(--mg-display); text-align: center; }
.detail-copy > p, .step p, .follow-up p {
  margin: 0 auto 22px; color: #4f4a45; font: 400 20px/1.65 Georgia, "Times New Roman", serif;
  letter-spacing: -.015em; text-align: center;
}
.steps { width: min(100%, var(--mg-desktop-content)); margin: 18px auto 24px; border-top: 1px solid var(--mg-line); text-align: center; }
.step {
  display: grid; grid-template-columns: 1fr; justify-items: center; gap: 11px;
  padding: 10px 14px; margin-bottom: 7px; border-bottom: 1px solid var(--mg-line); text-align: center;
}
.step > b { min-width: 28px; padding: 0; color: #999; font: 500 13px/1.25 var(--mg-ui); letter-spacing: .1em; }
.step h4 { margin: 0; font: 500 15px/1.35 var(--mg-display); text-align: center; }
.step p { margin-left: auto; margin-right: auto; }
.follow-up { margin-top: 42px; padding-top: 36px; border-top: 1px solid var(--mg-line); }
.follow-up h3 { margin: 0 auto 26px; color: #4f4a45; font: 400 22px/1.4 Georgia, "Times New Roman", serif; text-align: center; }
.follow-up details { width: min(100%, var(--mg-desktop-content)); margin: 10px auto 0; }
.follow-up summary { cursor: pointer; list-style: none; color: #555; font-size: 16px; }
.follow-up summary::-webkit-details-marker { display: none; }
.follow-up details[open] { margin-top: 0; }
.follow-up details[open] > summary { display: none; }
.follow-up-extra, .follow-up details[open] .follow-up-extra { margin-top: 0; }
.back-link { margin-top: 34px; }

/* Reviews */
.testimonials { padding: 92px 40px; background: #fff; text-align: center; }
.section-heading { margin-bottom: 48px; }
.reviews-grid { width: min(100%, var(--mg-desktop-content)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; text-align: left; }
.review-card { padding: 28px; background: #f0f0f0; min-width: 0; }
.review-top { display: flex; align-items: center; gap: 13px; }
.review-avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #111; color: #fff; font: 500 17px var(--mg-display); }
.review-card h3 { margin: 0 0 4px; font: 500 20px var(--mg-display); }
.review-card .service { color: #555; font: 500 9px var(--mg-ui); letter-spacing: .1em; text-transform: uppercase; }
.review-stars { margin: 22px 0 12px; font-size: 13px; letter-spacing: .13em; }
.review-card p { margin: 0; color: #4f4a45; font-size: 15px; line-height: 1.85; }
.more-reviews { grid-column: auto; }
.more-reviews > summary {
  width: max-content; margin: 12px auto 0; padding: 12px 24px; border-bottom: 1px solid #999;
  cursor: pointer; list-style: none; font-size: 15px;
}
.more-reviews > summary::-webkit-details-marker { display: none; }
.more-reviews[open] > summary { display: none; }
.more-reviews-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.review-button {
  display: inline-block; margin-top: 46px; padding: 14px 24px; border: 1px solid #222;
  color: #222; background: transparent; text-decoration: none;
  font: 500 11px var(--mg-ui); letter-spacing: .08em; text-transform: uppercase;
}
.review-button:hover, .review-button:focus { background: #222; color: #fff; }
.review-notice { width: min(100%, 720px); margin: 0 auto 34px; padding: 14px 18px; border: 1px solid #cfcfcf; background: #f5f5f5; color: #444; font-size: 15px; }
.review-notice.error { border-color: #b86262; background: #fff4f4; }

/* Footer */
.site-footer { padding: 75px 28px; background: #ededed; text-align: center; }
.footer-brand-name { color: #222; font: 500 31px var(--mg-display); }
.footer-brand-subtitle { margin-top: 7px; color: #777; font: 500 9px var(--mg-ui); letter-spacing: .17em; text-transform: uppercase; }
.footer-email { display: inline-block; margin: 30px 0 23px; color: #555; text-decoration: none; font-size: 17px; border-bottom: 1px solid #aaa; padding-bottom: 5px; }
.footer-instagram { display: flex; width: max-content; align-items: center; gap: 8px; margin: 0 auto; color: #555; text-decoration: none; font-size: 15px; }
.footer-instagram svg { width: 20px; height: 20px; }

/* Review form overlay */
.review-page { display: none; position: fixed; inset: 0; z-index: 10000; width: 100%; max-width: 100vw; overflow-y: auto; padding: 38px 24px 60px; background: #f3f3f3; color: #222; }
.review-page:target, .review-page.has-error { display: block; }
.review-page-top, .review-form-wrap { width: min(100%, 720px); min-width: 0; margin: 0 auto; }
.review-page-top { margin-bottom: 44px; }
.review-page-top a { text-decoration: none; font-size: 15px; }
.review-form-wrap h2 { margin: 0 0 12px; font: 500 clamp(34px, 4vw, 42px) var(--mg-display); }
.review-form-wrap > p { color: #666; line-height: 1.65; }
.review-form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.review-form input, .review-form textarea { width: 100%; max-width: 100%; padding: 15px; border: 1px solid #d8d4ce; background: #fff; color: #222; }
.review-form textarea { min-height: 155px; resize: vertical; }
.review-form button { align-self: flex-start; margin-top: 4px; padding: 15px 28px; border: 0; background: #111; color: #fff; cursor: pointer; font: 500 11px var(--mg-ui); letter-spacing: .08em; text-transform: uppercase; }
.review-form button:hover, .review-form button:focus { background: #333; }
.review-privacy { font-size: 12px; text-align: center; }

@media (max-width: 1023px) {
  .services-grid, .reviews-grid, .more-reviews-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  html, body { scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .site-nav { width: 100%; padding: 14px 18px; gap: 14px; }
  .site-brand strong { font-size: 20px; }
  .language-menu summary { font-size: 14px; }
  .language-dropdown { right: 0; }
  .hero { width: 100%; min-height: 0; aspect-ratio: 4/5; }
  .shade { background: linear-gradient(0deg, rgba(0,0,0,.48), rgba(0,0,0,.03) 70%); }
  .caption { left: 28px; right: 28px; bottom: 55px; width: auto; max-width: none; text-align: left; }
  .caption h2 { font-size: 42px; line-height: 1; }
  .slider-dots { margin-top: 8px; }
  /* Valores do HTML mobile aprovado pela cliente. */
  .intro { padding: 72px 22px; }
  .intro h1 {
    margin: 17px 0 20px;
    font: 500 41px/1.04 var(--mg-display);
    letter-spacing: 0;
  }
  .intro p {
    width: auto;
    max-width: none;
    margin: 0;
    font: 400 15px/1.85 var(--mg-ui);
    color: #666;
    text-align: center;
    text-wrap: balance;
  }
  .services { padding: 70px 18px; }
  .services-heading { margin-bottom: 56px; text-align: center; }
  .services-heading h2 { color: #111; font: 500 18px var(--mg-body); letter-spacing: .08em; text-transform: uppercase; }
  .services-heading span { display: none; }
  .services-grid, .reviews-grid, .more-reviews-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-card-photo { aspect-ratio: 1.18; }
  .service-card-body { padding: 22px 20px 26px; }
  .service-card h3 { font-size: 26px; }
  .service-card p { font-size: 15px; }
  .about { padding: 80px 7%; background: #f6f6f6; }
  .about-inner { display: flex; flex-direction: column; gap: 0; text-align: center; }
  .about-photo {
    width: 200px;
    max-width: 64vw;
    aspect-ratio: auto;
    margin: 0 auto 24px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }
  .about-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
  }
  .about .kicker {
    display: block;
    margin-bottom: 15px;
    font-size: 10px;
    letter-spacing: .18em;
  }
  .about h2 {
    margin: 0 0 20px;
    font: 500 24px/1.2 var(--mg-display);
    letter-spacing: 0;
  }
  .about p {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 16px;
    color: #4f4a45;
    font: 400 16px/1.6 "Cormorant Garamond", Georgia, serif;
    letter-spacing: .01em;
    text-align: center;
    text-wrap: pretty;
  }
  .service-detail { padding: 70px 20px 80px; }
  .detail-photo { aspect-ratio: 4/3; margin-bottom: 38px; }
  .detail-copy h2 { font-size: 26px; line-height: 1.15; }
  .detail-copy > p, .step p, .follow-up h3, .follow-up p { font-size: 17px; line-height: 1.65; }
  .step { grid-template-columns: 1fr; justify-items: center; gap: 11px; padding: 9px 12px; margin-bottom: 6px; }
  .step > b { min-width: 26px; font-size: 12px; }
  .step h4 { font-size: 14px; }
  .testimonials { padding: 72px 18px; }
  .review-card { padding: 25px 22px; }
  .site-footer { padding: 62px 22px; }
  .footer-brand-name { color: #111; }
  .review-page { padding: 28px 20px 48px; }
  .review-form-wrap h2 { font-size: 32px; line-height: 1.08; }
}

@media (max-width: 782px) {
  .site-header { top: var(--mg-admin-offset, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .service-card-photo img { transition: none; }
}
