/*
Theme Name: A&D Casamento
Theme URI: https://deboraeandy.com
Author: Andy Popovici
Author URI: https://deboraeandy.com
Description: Tema moderno, minimalista e modular para o site A&D Casamento. Integra os plugins do projeto em uma única página sem repetir títulos, textos ou informações já exibidas pelos próprios plugins.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: ad-casamento
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: wedding, one-column, custom-logo, custom-colors, featured-images, accessibility-ready
*/

:root {
  --adw-ink: #1e2a27;
  --adw-accent: #b77a67;
  --adw-bg: #f4f0e8;
  --adw-surface: #fffdf8;
  --adw-muted: #6f756f;
  --adw-line: rgba(30, 42, 39, .13);
  --adw-header-height: 82px;
  --adw-content: 1180px;
  --adw-wide: 1440px;
  --adw-serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --adw-sans: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --adw-ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--adw-ink);
  background: var(--adw-bg);
  font-family: var(--adw-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.adw-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.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;
}
.screen-reader-text:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 10px 14px;
  color: #111;
  background: #fff;
}

/* Cabeçalho */
.adw-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  height: var(--adw-header-height);
  color: #fff;
  transition: color .35s ease, background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
body.admin-bar .adw-site-header { top: 32px; }
.adw-site-header.is-scrolled,
body:not(.home) .adw-site-header {
  color: var(--adw-ink);
  background: color-mix(in srgb, var(--adw-surface) 88%, transparent);
  box-shadow: 0 1px 0 var(--adw-line);
  backdrop-filter: blur(18px) saturate(135%);
}
.adw-header-shell {
  width: min(calc(100% - 48px), var(--adw-wide));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 24px;
}
.adw-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}
.adw-brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding-inline: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--adw-serif);
  font-size: 16px;
  letter-spacing: -.04em;
}
.adw-brand-logo,
.adw-brand-logo .custom-logo-link { display: inline-flex; }
.adw-brand-logo .custom-logo { width: auto; max-height: 54px; }
.adw-main-nav { min-width: 0; }
.adw-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 22px);
  margin: 0;
  padding: 0;
}
.adw-nav-list a {
  position: relative;
  display: block;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-size: clamp(9px, .7vw, 11px);
  font-weight: 650;
  letter-spacing: .095em;
  text-transform: uppercase;
  opacity: .82;
  transition: opacity .2s ease;
}
.adw-nav-list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--adw-ease);
}
.adw-nav-list a:hover,
.adw-nav-list a:focus-visible,
.adw-nav-list a.is-active { opacity: 1; }
.adw-nav-list a:hover::after,
.adw-nav-list a:focus-visible::after,
.adw-nav-list a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.adw-rsvp-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}
.adw-rsvp-link:hover,
.adw-rsvp-link:focus-visible { color: var(--adw-surface); background: var(--adw-ink); }
.adw-menu-toggle { display: none; }

/* Hero do plugin ou fallback */
.adw-home { overflow: hidden; }
.adw-hero-module {
  position: relative;
  min-height: 100svh;
  scroll-margin-top: var(--adw-header-height);
  background: var(--adw-ink);
}
.adw-hero-plugin,
.adw-hero-plugin > * { min-height: inherit; }
.adw-hero-plugin > :first-child { margin-top: 0 !important; }
.adw-fallback-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(310px, .8fr) minmax(0, 1.35fr);
  color: var(--adw-surface);
  background: var(--adw-ink);
  isolation: isolate;
}
.adw-fallback-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 20, 18, .2), rgba(11, 20, 18, .02));
  pointer-events: none;
}
.adw-fallback-copy {
  order: -1;
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: calc(var(--adw-header-height) + 8vh) clamp(34px, 6vw, 96px) 8vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.adw-fallback-eyebrow {
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .72;
}
.adw-fallback-monogram {
  font-family: var(--adw-serif);
  font-size: clamp(88px, 12vw, 190px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.09em;
}
.adw-fallback-date {
  margin: 32px 0 0;
  font-family: var(--adw-serif);
  font-size: clamp(25px, 2.4vw, 38px);
  letter-spacing: .05em;
}
.adw-scroll-cue {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.adw-scroll-cue span { font-size: 18px; transition: transform .25s ease; }
.adw-scroll-cue:hover span { transform: translateY(5px); }
.adw-fallback-visual {
  position: relative;
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(19, 29, 26, .08), rgba(19, 29, 26, .24)),
    var(--adw-fallback-image, linear-gradient(135deg, #8c786e, #30413b));
  background-size: cover;
  background-position: center;
}
.adw-fallback-visual::before {
  content: "";
  position: absolute;
  inset: 7.5% 7% 7.5% auto;
  width: 1px;
  background: rgba(255,255,255,.42);
}

/* Módulos: nenhum título ou texto extra do tema */
.adw-module {
  position: relative;
  scroll-margin-top: var(--adw-header-height);
}
.adw-module-inner {
  width: min(calc(100% - 64px), var(--adw-content));
  margin-inline: auto;
  padding: clamp(90px, 11vw, 170px) 0;
}
.adw-module-content { width: 100%; }
.adw-module-content > :first-child { margin-top: 0 !important; }
.adw-module-content > :last-child { margin-bottom: 0 !important; }

.adw-module--nome_casal {
  background: var(--adw-surface);
}
.adw-module--nome_casal .adw-module-inner {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.adw-module--contagem {
  z-index: 2;
  margin: 0 clamp(16px, 3vw, 48px);
  border-radius: clamp(26px, 5vw, 72px);
  color: var(--adw-surface);
  background: var(--adw-ink);
  box-shadow: 0 34px 90px rgba(18, 29, 26, .17);
}
.adw-module--contagem .adw-module-inner { padding-block: clamp(70px, 9vw, 130px); }
.adw-module--casal {
  background:
    radial-gradient(circle at 91% 12%, color-mix(in srgb, var(--adw-accent) 17%, transparent), transparent 28%),
    var(--adw-bg);
}
.adw-module--galeria {
  color: var(--adw-surface);
  background: #101816;
}
.adw-module--galeria .adw-module-inner {
  width: min(calc(100% - 36px), var(--adw-wide));
  padding-block: clamp(70px, 8vw, 120px);
}
.adw-module--cerimonia { background: var(--adw-surface); }
.adw-module--recepcao {
  background:
    linear-gradient(115deg, transparent 0 64%, color-mix(in srgb, var(--adw-accent) 11%, transparent) 64%),
    var(--adw-bg);
}
.adw-module--convidados {
  color: var(--adw-surface);
  background: var(--adw-ink);
}
.adw-module--presentes { background: var(--adw-surface); }
.adw-module--recados {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--adw-accent) 14%, var(--adw-bg)), var(--adw-bg));
}

/* Integração neutra para formulários e elementos comuns dos plugins */
.adw-module-content :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  max-width: 100%;
  border-radius: 0;
}
.adw-module-content :where(button, input[type="submit"], .button, .wp-element-button) {
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.adw-module-content :where(button, input[type="submit"], .button, .wp-element-button):hover {
  transform: translateY(-2px);
}
.adw-module-content iframe { max-width: 100%; }
.adw-module-content table { max-width: 100%; }

.adw-plugin-missing {
  min-height: 180px;
  padding: 30px;
  border: 1px dashed currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  opacity: .72;
}
.adw-plugin-missing strong { font-family: var(--adw-serif); font-size: 28px; font-weight: 400; }
.adw-plugin-missing span { max-width: 560px; }
.adw-plugin-missing a { font-weight: 700; }

/* Conteúdo interno do WordPress */
.adw-content-page {
  width: min(calc(100% - 48px), 920px);
  min-height: 70vh;
  margin-inline: auto;
  padding: calc(var(--adw-header-height) + 70px) 0 110px;
}
.adw-entry-title {
  margin: 0 0 40px;
  font-family: var(--adw-serif);
  font-size: clamp(45px, 6vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
}
.adw-entry-title a { text-decoration: none; }
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1120px; }
.entry-content > .alignfull { max-width: none; }

/* Rodapé */
.adw-site-footer {
  color: rgba(255,255,255,.76);
  background: #111a18;
}
.adw-footer-shell {
  width: min(calc(100% - 48px), var(--adw-wide));
  min-height: 138px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.adw-footer-shell p { margin: 0; font-family: var(--adw-serif); font-size: clamp(20px, 2vw, 30px); }
.adw-footer-shell a {
  color: inherit;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Animação */
[data-adw-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--adw-ease), transform .8s var(--adw-ease);
}
[data-adw-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1260px) {
  .adw-header-shell { grid-template-columns: 64px minmax(0, 1fr) 72px; gap: 12px; }
  .adw-nav-list { gap: 11px; }
  .adw-nav-list a { font-size: 8.5px; letter-spacing: .06em; }
  .adw-brand-mark { min-width: 46px; height: 46px; font-size: 14px; }
  .adw-rsvp-link { min-width: 72px; font-size: 8.5px; }
}

@media (max-width: 1040px) {
  :root { --adw-header-height: 72px; }
  body.admin-bar .adw-site-header { top: 46px; }
  .adw-header-shell {
    width: min(calc(100% - 34px), var(--adw-wide));
    grid-template-columns: 1fr auto;
  }
  .adw-menu-toggle {
    z-index: 3;
    display: inline-grid;
    place-items: center;
    justify-self: end;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    background: transparent;
  }
  .adw-menu-toggle-lines { position: relative; width: 18px; height: 10px; }
  .adw-menu-toggle-lines i {
    position: absolute;
    left: 0;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: top .25s ease, transform .25s ease;
  }
  .adw-menu-toggle-lines i:first-child { top: 2px; }
  .adw-menu-toggle-lines i:last-child { top: 8px; }
  .adw-menu-toggle[aria-expanded="true"] .adw-menu-toggle-lines i:first-child { top: 5px; transform: rotate(45deg); }
  .adw-menu-toggle[aria-expanded="true"] .adw-menu-toggle-lines i:last-child { top: 5px; transform: rotate(-45deg); }
  .adw-main-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: calc(var(--adw-header-height) + 28px) 28px 40px;
    color: var(--adw-surface);
    background: var(--adw-ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition: opacity .3s ease, visibility .3s ease, transform .4s var(--adw-ease);
  }
  .adw-main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .adw-main-nav .adw-nav-list {
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  .adw-main-nav .adw-nav-list li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .adw-main-nav .adw-nav-list a {
    padding: 16px 8px;
    font-family: var(--adw-serif);
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 400;
    letter-spacing: -.025em;
    text-transform: none;
  }
  .adw-main-nav .adw-nav-list a::after { display: none; }
  .adw-rsvp-link { display: none; }
  .adw-menu-open .adw-site-header { color: var(--adw-surface); background: transparent; box-shadow: none; backdrop-filter: none; }
  .adw-fallback-hero { grid-template-columns: 42% 58%; }
}

@media (max-width: 720px) {
  body.admin-bar .adw-site-header { top: 46px; }
  .adw-fallback-hero { display: block; }
  .adw-fallback-visual {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
  .adw-fallback-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,21,18,.25), rgba(12,21,18,.78));
  }
  .adw-fallback-copy {
    min-height: 100svh;
    justify-content: flex-end;
    padding: calc(var(--adw-header-height) + 40px) 24px 40px;
  }
  .adw-fallback-monogram { font-size: clamp(86px, 31vw, 140px); }
  .adw-fallback-date { margin-top: 22px; }
  .adw-module-inner { width: min(calc(100% - 36px), var(--adw-content)); padding-block: 78px; }
  .adw-module--nome_casal .adw-module-inner { min-height: 42vh; }
  .adw-module--contagem { margin-inline: 10px; border-radius: 26px; }
  .adw-module--galeria .adw-module-inner { width: calc(100% - 20px); }
  .adw-footer-shell { min-height: 170px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .adw-main-nav .adw-nav-list { grid-template-columns: 1fr; max-height: calc(100svh - 140px); overflow: auto; }
  .adw-main-nav .adw-nav-list a { padding: 10px 4px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-adw-reveal] { opacity: 1; transform: none; }
}
