/*
Theme Name: Casamento Romântico — Annelise & Breno
Theme URI: https://annebreno.com.br
Author: AnneBreno
Description: Tema WordPress personalizado para o casamento de Annelise & Breno. Lavanda, aquarela e tipografia elegante.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casamento-romantico
Tags: wedding, one-page, custom-menu, custom-logo, featured-images
*/

/* ============================================
   Annelise & Breno — Casamento
   Site multipage — Estilos compartilhados
   ============================================ */

/* Google Fonts (fallback + UI sans) */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* --- Paleta & Tokens --- */
:root {
  /* CMYK → RGB conversions from design system */
  --color-lavender-light: #CCCCFF; /* C:20 M:20 Y:0 K:0 — nomes */
  --color-lavender-mid:   #7A7ACC; /* C:40 M:40 Y:0 K:20 — accent */
  --color-green-dark:     #3C6B19; /* C:67 M:41 Y:86 K:29 — botanical */

  /* Derived / UI colors */
  --color-bg:        #F9F7F9;
  --color-bg-soft:   #F0EDF5;
  --color-text:      #3E3B45;
  --color-text-soft: #6D6A75;
  --color-border:    rgba(0,0,0,.08);

  /* Button palette */
  --btn-primary-bg:    #7A7ACC;
  --btn-primary-hover: #CCCCFF;
  --btn-outline-color: #7A7ACC;
  --btn-green-bg:      #4F683F;
  --btn-green-hover:   #3D5230;

  /* Fonts */
  --font-script:  'Marvelous Script', 'Great Vibes', cursive;
  --font-serif:   'Milyuna', Georgia, 'Times New Roman', serif;
  --font-sans:    'Quicksand', system-ui, -apple-system, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 .5rem;
  font-weight: 500;
}

p { margin: 0 0 1rem; }
a { color: var(--btn-primary-bg); text-decoration: none; }
a:hover { color: var(--btn-primary-hover); }
img { max-width: 100%; height: auto; display: block; }

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background .3s, box-shadow .3s;
}
.site-nav.nav-solid {
  background: rgba(249,247,249,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.site-nav.nav-transparent {
  background: transparent;
}
.site-nav.nav-transparent.scrolled {
  background: rgba(249,247,249,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.nav-brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-brand-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}
.nav-brand-sub {
  font-size: .72rem;
  color: var(--color-text-soft);
  letter-spacing: .02em;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: .45rem .85rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 999px;
  transition: background .15s;
  text-decoration: none;
}
.nav-links a:hover {
  background: rgba(0,0,0,.05);
  color: var(--color-text);
}
.nav-links a.active {
  background: var(--color-bg-soft);
  color: var(--btn-primary-bg);
}

.nav-ctas {
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--color-text);
}
.nav-hamburger svg { display: block; }

/* Mobile nav overlay */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.nav-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  z-index: 201;
  background: var(--color-bg);
  box-shadow: -4px 0 24px rgba(0,0,0,.1);
  transition: right .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
.nav-mobile-drawer.open {
  right: 0;
}

.nav-mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.nav-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav-mobile-links a {
  display: block;
  padding: .75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: .75rem;
  transition: background .15s;
  text-decoration: none;
}
.nav-mobile-links a:hover,
.nav-mobile-links a.active {
  background: var(--color-bg-soft);
}

.nav-mobile-ctas {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

@media (max-width: 900px) {
  .nav-links, .nav-ctas { display: none; }
  .nav-hamburger { display: block; }
}
@media (min-width: 901px) {
  .nav-mobile-overlay, .nav-mobile-drawer { display: none !important; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .92rem;
  padding: .75rem 1.65rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  text-decoration: none;
  line-height: 1.3;
  letter-spacing: .01em;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
  border-color: var(--btn-primary-bg);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: #fff;
}

.hero .btn-primary:hover {
  background: var(--btn-primary-hover) !important;
  border-color: var(--btn-primary-hover) !important;
  color: #fff !important;
}

.btn-outline {
  background: rgba(255,255,255,.7);
  color: var(--btn-outline-color);
  border-color: var(--btn-outline-color);
}
.btn-outline:hover {
  background: var(--btn-outline-color);
  color: #fff;
}

.btn-green {
  background: var(--btn-green-bg);
  color: #fff;
  border-color: var(--btn-green-bg);
}
.btn-green:hover {
  background: var(--btn-green-hover);
  border-color: var(--btn-green-hover);
  color: #fff;
}

.btn-sm {
  font-size: .82rem;
  padding: .55rem 1.2rem;
}

.btn-lg {
  font-size: 1rem;
  padding: .9rem 2rem;
}

/* --- Hero (Main page) --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  background: url('assets/bg-main-desk.png') center / cover no-repeat;
  background-color: var(--color-bg);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    background-image: url('assets/bg-main-mobile.png');
    background-size: 100% auto;
    background-position: top center;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.5rem 40px 32px;
  max-width: 620px;
  margin-top: 0;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .hero-content {
    margin-top: 0;
    padding: 1.5rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
    max-width: 92vw;
  }
}

.hero-blessing {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.82rem, 2.5vw, 1.05rem);
  font-weight: 400;
  color: #4A5C35;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 .25rem;
  white-space: nowrap;
}

.hero-monogram {
  width: 130px;
  height: 130px;
  margin: 0 0 .75rem;
  object-fit: contain;
}
@media (max-width: 768px) {
  .hero-monogram {
    width: 110px;
    height: 110px;
    margin-bottom: .5rem;
  }
}

.hero-names {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 6vw, 3.8rem);
  color: var(--color-lavender-light);
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
  letter-spacing: .02em;
  white-space: nowrap;
}

.hero-ctas {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-btn-outline {
  background: rgba(255,255,255,.7);
  color: var(--btn-outline-color);
  border-color: var(--btn-outline-color);
}
.hero-btn-outline:hover {
  background: var(--btn-outline-color) !important;
  color: #fff !important;
  border-color: var(--btn-outline-color) !important;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  margin-top: 1rem;
}
.hero-date {
  font-family: var(--font-serif);
  font-size: 16px !important;
  color: #4a5c35 !important;
  font-weight: 700;
  margin: 0;
  letter-spacing: .03em;
}
.hero-detail {
  font-size: .92rem;
  color: var(--color-text-soft);
  margin: 0;
  letter-spacing: .04em;
}
.hero-detail-separator {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-lavender-mid);
  margin: 0 .5rem;
  vertical-align: middle;
}
.hero-address {
  font-size: .88rem;
  color: #4a5c35;
  margin: .25rem 0 0;
  line-height: 1.5;
}
.hero-map-link {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  color: var(--color-text-soft);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(109, 106, 117, .35);
  margin-top: .35rem;
  transition: color .2s;
}
.hero-map-link:hover {
  color: var(--color-lavender-mid);
  text-decoration-color: var(--color-lavender-mid);
}

.hero-ctas {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Page sections (inner pages) --- */
.page-wrapper {
  padding-top: 72px; /* space for fixed nav */
  min-height: 100vh;
  background: url('assets/bg-inner-desk.png') center top / cover no-repeat fixed;
  background-color: var(--color-bg);
}
@media (max-width: 768px) {
  .page-wrapper {
    background-image: url('assets/bg-inner-mobile.png');
    background-attachment: scroll;
    background-size: 100% auto;
    background-position: top center;
  }
}

.section {
  padding: 3.5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-lavender-mid);
  margin: 0 0 .5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4vw, 2.2rem);
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 .4rem;
  white-space: nowrap;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: .65rem auto 0;
  background: linear-gradient(90deg, transparent, var(--color-lavender-light), var(--color-lavender-mid), transparent);
  border-radius: 999px;
}
.section-subtitle {
  font-size: .96rem;
  color: var(--color-text-soft);
  max-width: 640px;
  margin: .75rem auto 0;
  text-wrap: pretty;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card-soft {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform .15s, box-shadow .15s;
}
.card-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: .75rem;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
  color: var(--color-lavender-mid);
  font-size: 1.1rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-text);
  margin: 0 0 .4rem;
  font-weight: 600;
  white-space: nowrap;
}

.card-text {
  font-size: .9rem;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.55;
}

/* --- RSVP Form --- */
.form-card {
  background: rgba(255,255,255,.85);
  border-radius: 1.5rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.05);
  padding: 2rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .form-card { padding: 2.5rem 3rem; }
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--color-text);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: .85rem;
  font-family: var(--font-sans);
  font-size: .92rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-lavender-mid);
  box-shadow: 0 0 0 3px rgba(122,122,204,.15);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { cursor: pointer; }

/* --- Timeline --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}
.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-lavender-mid);
  margin-top: .4rem;
  flex-shrink: 0;
}
.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 .2rem;
}
.timeline-text {
  font-size: .92rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(255,255,255,.5);
  margin-top: auto;
}
.footer-monogram {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin: 0 auto .75rem;
  opacity: .6;
}
.footer-text {
  font-size: .88rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* --- Utilities --- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
