/*
Theme Name: Taina Sampaio - Videos Imobiliarios
Theme URI: https://example.com/
Author: Taina Sampaio
Description: Tema WordPress de landing page para producao e edicao de videos imobiliarios (Reels e TikTok). Estetica organica: creme, verde profundo e terracota.
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
Text Domain: taina
*/

/* ---------------------------------------------------------
   1. Design tokens
--------------------------------------------------------- */
:root {
  --cream: #fbf9f5;
  --card: #ffffff;
  --sand: #f0eae0;
  --sand-strong: #e7dfd2;
  --green: #3a5a40;
  --green-dark: #2f4834;
  --terracotta: #c86d51;
  --terracotta-dark: #b25c42;
  --tamarind: #2b1e1a;
  --text: #2b1e1a;
  --text-soft: #6b5b52;
  --border: #e6ded1;
  --danger: #b3261e;

  --radius: 14px;
  --radius-lg: 26px;
  --radius-xl: 32px;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-soft: 0 1px 2px rgba(43, 30, 26, 0.04), 0 12px 32px -12px rgba(43, 30, 26, 0.14);
  --shadow-lift: 0 2px 4px rgba(43, 30, 26, 0.05), 0 28px 60px -20px rgba(43, 30, 26, 0.24);
}

/* ---------------------------------------------------------
   2. Reset / base
--------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  color: var(--tamarind);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   3. Layout helpers
--------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: rgba(240, 234, 224, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.section__intro {
  max-width: 720px;
}

.section__title {
  margin-top: 14px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.section__text {
  margin-top: 18px;
  color: var(--text-soft);
}

/* ---------------------------------------------------------
   4. Buttons
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

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

.btn--terracotta {
  background: var(--terracotta);
  color: #fff;
}

.btn--terracotta:hover {
  background: var(--terracotta-dark);
}

.btn--outline {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

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

.btn--block {
  width: 100%;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------------------------------------------------------
   5. Header
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
}

.brand__tag {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #4a3b34;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--terracotta);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px;
  color: var(--green);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
}

.mobile-nav a {
  display: block;
  padding: 11px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--sand);
}

.mobile-nav .btn {
  margin: 12px 8px 4px;
}

/* ---------------------------------------------------------
   6. Hero
--------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: rgba(231, 223, 210, 0.8);
  filter: blur(70px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
  padding: 64px 0 88px;
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(2.2rem, 5.4vw, 3.5rem);
}

.hero__text {
  margin-top: 22px;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 32rem;
  margin: 46px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.hero__stats dt {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero__stats dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green);
}

.hero__media {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: -16px;
  transform: rotate(-2deg);
  border: 1px solid var(--border);
  background: rgba(240, 234, 224, 0.7);
  border-radius: 40px;
}

.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-lift);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: #fdfbf8;
  background: linear-gradient(to top, rgba(43, 30, 26, 0.88), transparent);
}

.reel-card__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  flex: none;
}

.reel-card__meta strong {
  display: block;
  font-size: 0.88rem;
}

.reel-card__meta span {
  font-size: 0.76rem;
  opacity: 0.82;
}

.hero__platforms {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.hero__platforms span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------------------
   7. Sobre
--------------------------------------------------------- */
.about__inner {
  display: grid;
  gap: 56px;
  align-items: center;
}

.about__photo {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.about__photo img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.about__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  font-size: 0.86rem;
}

.about__badge .icon {
  color: var(--terracotta);
}

.about__copy p + p {
  margin-top: 18px;
}

.about__copy {
  color: #4a3b34;
}

/* ---------------------------------------------------------
   8. Serviços / planos
--------------------------------------------------------- */
.plans {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.plan--featured {
  border-color: rgba(58, 90, 64, 0.4);
  background: rgba(240, 234, 224, 0.7);
}

.plan__ribbon {
  position: absolute;
  top: -13px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan__tag {
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(200, 109, 81, 0.4);
  background: rgba(200, 109, 81, 0.1);
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 700;
}

.plan__title {
  margin-top: 20px;
  font-size: 1.5rem;
}

.plan__subtitle {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.plan__desc {
  margin-top: 16px;
  font-size: 0.94rem;
  color: #4a3b34;
}

.plan__items {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.plan__items li {
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  color: #4a3b34;
}

.plan__items .icon {
  color: var(--green);
  margin-top: 2px;
}

.plan__tiers {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.plan__tier {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.plan__tier strong {
  display: block;
  font-size: 0.9rem;
  color: var(--tamarind);
}

.plan__tier span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.plan__tier b {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
}

.plan__footer {
  margin-top: auto;
  padding-top: 26px;
}

.plan__price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--green);
}

.plan__footer .btn {
  margin-top: 18px;
}

/* ---------------------------------------------------------
   9. Portfólio
--------------------------------------------------------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.portfolio__item {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio__item:hover img {
  transform: scale(1.04);
}

.portfolio__play {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(251, 249, 245, 0.88);
  color: var(--terracotta);
}

.portfolio__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  color: #fdfbf8;
  background: linear-gradient(to top, rgba(43, 30, 26, 0.9), transparent);
}

.portfolio__item figcaption strong {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.portfolio__item figcaption p {
  margin-top: 4px;
  font-size: 0.88rem;
}

.portfolio__item--video {
  cursor: pointer;
}

/* ---------------------------------------------------------
   9.1 Lightbox de vídeo
--------------------------------------------------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.video-modal.is-open {
  display: flex;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 30, 26, 0.8);
  backdrop-filter: blur(4px);
}

.video-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}

.video-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(251, 249, 245, 0.92);
  color: var(--tamarind);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-modal__close:hover {
  transform: scale(1.05);
}

.video-modal__frame,
.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 640px) {
  .video-modal__dialog {
    max-width: 400px;
  }
}

/* ---------------------------------------------------------
   10. Contato / formulário
--------------------------------------------------------- */
.contact__inner {
  display: grid;
  gap: 48px;
}

.contact__form {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4a3b34;
}

.field input,
.field textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--terracotta);
}

.field__error {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--danger);
  display: none;
}

.field.has-error .field__error {
  display: block;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #4a3b34;
}

.consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex: none;
}

.form-feedback {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(58, 90, 64, 0.1);
  color: var(--green-dark);
  font-size: 0.88rem;
}

.form-feedback.is-visible {
  display: block;
}

/* ---------------------------------------------------------
   11. Footer
--------------------------------------------------------- */
.site-footer {
  background: var(--tamarind);
  color: #fdfbf8;
}

.site-footer__inner {
  display: grid;
  gap: 40px;
  padding: 56px 0;
}

.site-footer__brand p {
  opacity: 0.82;
  font-size: 0.9rem;
}

.site-footer__tag {
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
}

.site-footer h2 {
  color: #fdfbf8;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.site-footer a {
  font-size: 0.9rem;
  opacity: 0.82;
}

.site-footer a:hover {
  opacity: 1;
}

.site-footer__legal {
  border-top: 1px solid rgba(253, 251, 248, 0.15);
}

.site-footer__legal p {
  padding: 22px 0;
  font-size: 0.76rem;
  opacity: 0.7;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow-lift);
}

/* ---------------------------------------------------------
   12. Responsivo
--------------------------------------------------------- */
@media (max-width: 1023px) {
  .site-nav,
  .site-header .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full,
  .consent,
  .form-grid > .btn {
    grid-column: 1 / -1;
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 96px 0;
  }

  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .about__inner {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .contact__inner {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .site-footer__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------
   13. Página de Privacidade
--------------------------------------------------------- */
.privacy-page {
  padding: 64px 0;
  background: var(--cream);
}

.privacy-page__inner {
  max-width: 760px;
  margin: 0 auto;
}

.privacy-page__title {
  margin-top: 20px;
  font-size: 2.4rem;
  color: var(--tamarind);
}

.privacy-page__lead {
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.privacy-page__content {
  margin-top: 48px;
}

.privacy-section {
  margin-bottom: 40px;
}

.privacy-section h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.privacy-section h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
  color: var(--text);
}

.privacy-section p,
.privacy-section li {
  color: var(--text-soft);
  line-height: 1.7;
}

.privacy-section ul {
  list-style: disc;
  padding-left: 24px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.privacy-section li::marker {
  color: var(--terracotta);
}

.privacy-section strong {
  color: var(--text);
}

.privacy-page__updated {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
}

@media (min-width: 640px) {
  .privacy-page__title {
    font-size: 3rem;
  }
}

