/* ==========================================================================
   Marriage Proposal in Rio — style.css
   Unified with packs.marriageproposalinrio.com: Montserrat (display) + Outfit (body)
   ========================================================================== */

:root {
  --cream: #FEFDFB;
  --cream-deep: #F2EFE9;
  --caramel: #8A622F;
  --caramel-deep: #7A5230;
  --ink: #2C2620;
  --ink-soft: #5A5044;
  --mist: #E2ECE4;
  --mist-deep: #3C6F4C;
  --clay: #2E6F82;
  --white: #FFFFFF;
  --night: #241A12;
  --line: rgba(44,38,32,0.13);

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.08; font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--caramel);
  font-weight: 400;
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--caramel-deep);
  line-height: 1.5;
}

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 3rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 0.9rem; }
.section-head p { margin-top: 1.1rem; color: var(--caramel-deep); opacity: 0.85; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.05em 2.2em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn-primary {
  background: var(--caramel);
  color: var(--white);
}
.btn-primary:hover { background: var(--caramel-deep); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.92); color: var(--ink); }

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0 18px;
  background: rgba(254, 253, 251, 0.96);
  backdrop-filter: blur(10px);
  transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-nav::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 15px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 15' preserveAspectRatio='none'%3E%3Cpath d='M-5,12.5 C7.5,12.5 7.5,2.5 20,2.5 C32.5,2.5 32.5,12.5 45,12.5 C57.5,12.5 57.5,2.5 70,2.5 C82.5,2.5 82.5,12.5 95,12.5 C99,12.5 101,10 105,8' fill='none' stroke='%233c6f4c' stroke-width='2' stroke-linecap='round' opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 15' preserveAspectRatio='none'%3E%3Cpath d='M-20,2.5 C-7.5,2.5 -7.5,12.5 5,12.5 C17.5,12.5 17.5,2.5 30,2.5 C42.5,2.5 42.5,12.5 55,12.5 C67.5,12.5 67.5,2.5 80,2.5 C92.5,2.5 92.5,12.5 105,12.5' fill='none' stroke='%237a5230' stroke-width='2.4' stroke-linecap='round' opacity='0.65'/%3E%3C/svg%3E");
  background-repeat: repeat-x, repeat-x;
  background-size: 150px 15px, 150px 15px;
}
.site-nav.is-scrolled { padding: 14px 0 18px; box-shadow: 0 1px 0 rgba(44,38,32,0.06); }
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-nav .brand-icon { height: 84px; width: auto; }
.site-nav .brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); white-space: nowrap; }
.site-nav .brand em { font-style: normal; color: var(--caramel); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--caramel); }

.nav-right { display: flex; align-items: center; gap: 1.4rem; }

.lang-toggle {
  display: flex;
  gap: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: var(--cream-deep);
  border-radius: 100px;
  padding: 3px;
}
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--font-body);
  padding: 6px 12px;
  border-radius: 100px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-toggle button.active { background: var(--ink); color: var(--white); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 30px; height: 22px; position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle::before { top: 0; }
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle::after { bottom: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 120px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;

  color: var(--white);
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--night);
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .hero-video-wrap { display: none; }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,26,18,0.35) 0%, rgba(36,26,18,0.15) 40%, rgba(36,26,18,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(70px, 10vh, 120px);
  text-align: center;
}
.hero-content .container { display: flex; flex-direction: column; align-items: center; }
.hero-mark {
  width: 54px; height: auto; margin-bottom: 1.6rem;
  opacity: 0.95;
  animation: fadeDown 1.1s var(--ease) both;
}
.hero h1 {
  color: var(--white);
  max-width: 15ch;
  animation: fadeUp 1.1s var(--ease) both 0.15s;
}
.hero .lede {
  color: var(--white);
  opacity: 0.92;
  margin-top: 1.3rem;
  max-width: 46ch;
  animation: fadeUp 1.1s var(--ease) both 0.3s;
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 1.1s var(--ease) both 0.45s;
}
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 46px;
  background: rgba(255,255,255,0.5);
  overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -46px; width: 100%; height: 46px;
  background: var(--white);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { top: -46px; } 100% { top: 46px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px);} to { opacity: 1; transform: translateY(0);} }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px);} to { opacity: 0.95; transform: translateY(0);} }

/* ---------- Credentials strip ---------- */

.strip {
  background: var(--night);
  color: var(--white);
  padding: 22px 0;
}
.strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 3rem;
  justify-content: center;
  align-items: center;
}
.strip span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
}
.strip .dot { opacity: 0.4; }

/* ---------- Generic section ---------- */

section { padding: clamp(80px, 11vw, 140px) 0; }
.bg-deep { background: var(--cream-deep); }

/* ---------- Why Rio ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.why-grid img { border-radius: 4px; }
.why-list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.why-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-list .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--caramel);
  line-height: 1;
  min-width: 2ch;
}
.why-list h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.why-list p { color: var(--ink); opacity: 0.82; font-size: 0.96rem; margin: 0; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 26px; left: 6%; right: 6%;
  height: 1px;
  background: var(--line);
}
.step {
  text-align: left;
  position: relative;
  background: var(--white);
  border-radius: 8px;
  padding: 2.2rem 1.6rem 1.8rem;
  box-shadow: 0 2px 14px rgba(44,38,32,0.06);
}
.step .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--caramel);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  position: relative; z-index: 1;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; opacity: 0.8; margin: 0; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4/5;
  position: relative;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,26,18,0) 55%, rgba(36,26,18,0.45) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.gallery a:hover::after { opacity: 1; }
.gallery .cap {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2;
  color: var(--white); font-size: 0.78rem; letter-spacing: 0.06em;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery a:hover .cap { opacity: 1; transform: translateY(0); }

/* ---------- Testimonials ---------- */

.testimonials {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.testimonials-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  animation: testimonials-scroll 40s linear infinite;
}
.testimonials:hover .testimonials-track { animation-play-state: paused; }
@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.testimonial {
  background: var(--white);
  padding: 2.4rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  flex: 0 0 340px;
}
@media (max-width: 480px) {
  .testimonial { flex-basis: 82vw; padding: 1.8rem 1.4rem; }
}
.testimonial .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.55;
}
.testimonial .who {
  margin-top: 1.4rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--caramel);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem;
  flex-shrink: 0;
}
.who .name { font-size: 0.88rem; letter-spacing: 0.04em; }
.who .place { font-size: 0.76rem; opacity: 0.6; }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(61,43,31,0.18); }
.faq-item button {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none; cursor: pointer;
  padding: 1.6rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.faq-item .plus {
  font-size: 1.4rem; font-weight: 300; color: var(--caramel);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}
.faq-item[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
}
.faq-answer p { padding-bottom: 1.6rem; opacity: 0.82; font-size: 0.96rem; }

/* ---------- Final CTA ---------- */

.cta-final {
  background: var(--night);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(155,107,58,0.28), transparent 60%);
}
.cta-final .container { position: relative; z-index: 1; max-width: 640px; }
.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(255,255,255,0.75); margin: 1.2rem auto 2.2rem; }

/* ---------- Contact form ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-info .info-line { display: block; margin-bottom: 0.6rem; font-size: 0.96rem; opacity: 0.85; }
.contact-info .whatsapp-btn { margin-top: 1.6rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--caramel-deep);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(61,43,31,0.2);
  border-radius: 3px;
  padding: 0.85em 1em;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--caramel);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; opacity: 0.6; margin-top: 1rem; }
.form-status { margin-top: 1rem; font-size: 0.9rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #4a7a5c; }
.form-status.err { color: #a04b3a; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream-deep);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(61,43,31,0.14);
}
.footer-brand img { height: 46px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.86rem; opacity: 0.7; max-width: 34ch; }
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  margin-bottom: 1rem;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  opacity: 0.85;
}
.footer-col a:hover { opacity: 1; color: var(--caramel); }
.social-link { display: inline-flex; align-items: center; gap: 0.5em; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.76rem; opacity: 0.6;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Blog list ---------- */

.page-hero {
  padding: clamp(150px, 20vh, 210px) 0 clamp(60px, 8vw, 90px);
  background: var(--cream-deep);
  text-align: center;
}
.page-hero .eyebrow { display: block; margin-bottom: 1rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.6rem;
}
.post-card { display: block; }
.post-card .thumb { border-radius: 4px; overflow: hidden; aspect-ratio: 3/2; margin-bottom: 1.3rem; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .meta { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--caramel); margin-bottom: 0.6rem; }
.post-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.post-card p { font-size: 0.92rem; opacity: 0.78; }
.post-card .read-more { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--caramel-deep); margin-top: 0.9rem; display: inline-block; }

/* ---------- Blog post ---------- */

.post-hero { position: relative; padding-top: 140px; }
.post-hero img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 4px; }
.post-header { max-width: 760px; margin: 0 auto 2.4rem; text-align: center; }
.post-header .meta { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--caramel); margin-bottom: 1rem; }
.post-header .meta a { color: var(--caramel); text-decoration: underline; text-decoration-color: rgba(138,98,47,0.35); }
.post-header .meta a:hover { text-decoration-color: currentColor; }
.post-header h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.25; }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { margin-top: 2.4rem; margin-bottom: 1rem; font-size: 1.7rem; }
.post-body p { max-width: none; opacity: 0.88; margin-bottom: 1.3rem; text-align: justify; text-justify: inter-word; }
.post-body .excerpt-fade { position: relative; }
.read-more-toggle {
  margin: 1.5rem 0;
  background: none; border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.8em 1.8em; font-family: var(--font-body); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.read-more-toggle:hover { background: var(--ink); color: var(--cream); }
.post-more { display: none; }
.post-more.show { display: block; }
.post-cta { text-align: center; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(61,43,31,0.15); }

/* ---------- Language visibility ---------- */

[data-en], [data-pt], [data-es] { display: none; }
html[lang="en"] [data-en] { display: revert; }
html[lang="pt"] [data-pt] { display: revert; }
html[lang="es"] [data-es] { display: revert; }
span[data-en], span[data-pt], span[data-es] { display: none; }
html[lang="en"] span[data-en] { display: inline; }
html[lang="pt"] span[data-pt] { display: inline; }
html[lang="es"] span[data-es] { display: inline; }

/* ---------- Mobile nav ---------- */

.mobile-panel {
  position: fixed; inset: 0; z-index: 99;
  background: var(--night);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-panel.open { opacity: 1; visibility: visible; }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 1.7rem; color: var(--white);
}
.mobile-panel .lang-toggle { margin-top: 1rem; }
.mobile-panel .lang-toggle button { color: var(--white); }

/* ==========================================================================
   Responsive — breakpoint 900px
   ========================================================================== */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-nav { padding: 12px 0 16px; }
  .site-nav .brand-icon { height: 46px; }
  .site-nav .brand { font-size: 16px; gap: 8px; }
  .hero { padding-top: 84px; }
  .post-hero { padding-top: 100px; }

  .why-grid, .contact-wrap { grid-template-columns: 1fr; }
  .why-grid .why-media { order: -1; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; }
  .footer-links { gap: 2.4rem; }

  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }

/* ---------- Post photo gallery ---------- */
.post-gallery {
  margin: 3rem 0 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-item {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); opacity: 0.94; }

@media (max-width: 900px) {
  .post-gallery { grid-template-columns: repeat(3, 1fr); gap: 5px; }
}
@media (max-width: 560px) {
  .post-gallery { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 14, 10, 0.94);
  animation: lb-fade 0.25s ease;
}
.lightbox.is-open { display: flex; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img-wrap {
  max-width: 90vw; max-height: 86vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox img {
  max-width: 90vw; max-height: 86vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none; border: 0; cursor: pointer;
  color: var(--cream, #F2EDE6);
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close {
  top: 1.4rem; right: 1.6rem;
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox-prev, .lightbox-next {
  top: 50%; transform: translateY(-50%);
  font-size: 2.2rem;
  padding: 0.5rem 0.9rem;
}
.lightbox-prev { left: 0.6rem; }
.lightbox-next { right: 0.6rem; }
.lightbox-counter {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: var(--cream, #F2EDE6);
  font-size: 0.78rem; letter-spacing: 0.06em;
  opacity: 0.65;
}
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { font-size: 1.6rem; padding: 0.4rem 0.6rem; }
  .lightbox-close { top: 1rem; right: 1rem; font-size: 1.5rem; }
}

/* Inline WhatsApp CTA link inside post body text */
.post-body a {
  color: var(--clay);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(46, 111, 130, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
}
.post-body a:hover { color: #234f5f; text-decoration-color: currentColor; }

/* ---------- Homepage blog teaser ---------- */
.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.blog-teaser-card { display: block; }
.blog-teaser-card .thumb { border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 1rem; }
.blog-teaser-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-teaser-card:hover .thumb img { transform: scale(1.05); }
.blog-teaser-card .meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--caramel); }
.blog-teaser-card h3 { font-size: 1.1rem; margin-top: 0.5rem; line-height: 1.35; }

@media (max-width: 900px) {
  .blog-teaser-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- About / Who does it ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.about-split img { width: 100%; border-radius: 6px; aspect-ratio: 4/5; object-fit: cover; }
.about-split .lede { font-size: 1.05rem; opacity: 0.85; margin-bottom: 1.6rem; }
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 2rem; }
  .about-split img { max-width: 340px; margin: 0 auto; }
}

/* ---------- Photography cross-link ---------- */
.cross-promo {
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
}
.cross-promo h2 { color: var(--white); }
.cross-promo p { opacity: 0.85; max-width: 640px; margin: 0.8rem auto 1.8rem; }

/* ---------- Differentiator banner ---------- */
.differentiator {
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, #3a2f24 100%);
  padding: clamp(2.4rem, 5vw, 3.4rem) clamp(1.6rem, 6vw, 3.6rem);
  border-radius: 10px;
  text-align: center;
  overflow: hidden;
}
.differentiator::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 15' preserveAspectRatio='none'%3E%3Cpath d='M-5,12.5 C7.5,12.5 7.5,2.5 20,2.5 C32.5,2.5 32.5,12.5 45,12.5 C57.5,12.5 57.5,2.5 70,2.5 C82.5,2.5 82.5,12.5 95,12.5 C99,12.5 101,10 105,8' fill='none' stroke='%238A622F' stroke-width='2' stroke-linecap='round' opacity='0.25'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 150px 15px;
  background-position: bottom;
  opacity: 0.5;
}
.differentiator p {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);  color: var(--white); line-height: 1.5; margin: 0 0 0.9rem;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.differentiator .sub {
  position: relative; z-index: 1;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--mist); margin: 0;
  letter-spacing: 0.02em;
}
.differentiator-icon {
  display: block !important;
  position: relative; z-index: 1;
  width: 30px !important; height: 30px !important;
  max-width: 30px !important; max-height: 30px !important;
  margin: 0 auto 1rem !important;
  color: var(--caramel);
}
.differentiator p strong {
  font-weight: 700;
  color: var(--caramel);
}

/* ---------- Footer Instagram grid ---------- */
.footer-instagram { margin: 2.6rem 0 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.ig-label { text-align: center; font-size: 0.82rem; letter-spacing: 0.06em; margin-bottom: 1.1rem; text-transform: uppercase; }
.ig-label a { color: var(--caramel); text-decoration: underline; text-decoration-color: rgba(138,98,47,0.35); }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ig-grid a { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 3px; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease), opacity 0.3s ease; }
.ig-grid a:hover img { transform: scale(1.06); opacity: 0.9; }
@media (max-width: 700px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}

/* ---------- Videos page ---------- */
.video-feature { padding-top: clamp(2.4rem, 6vw, 4rem); }
.video-feature .container { max-width: 900px; }
.video-embed {
  position: relative; aspect-ratio: 16/9;
  border-radius: 10px; overflow: hidden;
  background: var(--night);
  box-shadow: 0 24px 60px rgba(44,38,32,0.18);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-feature h3 { font-size: 1.05rem; margin-top: 1.4rem; text-align: center; color: var(--ink-soft); font-weight: 400; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.video-card {
  background: var(--white);
  border-radius: 10px;
  padding: 0.9rem 0.9rem 1.2rem;
  box-shadow: 0 6px 20px rgba(44,38,32,0.08);
}
.video-card .video-embed { border-radius: 6px; box-shadow: none; margin-bottom: 0.9rem; }
.video-card h4 { font-size: 0.95rem; font-weight: 500; text-align: center; margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 54px; height: 54px; }
.whatsapp-float a {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  width: 54px; height: 54px; min-width: 54px; min-height: 54px; max-width: 54px; max-height: 54px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 6px 18px rgba(37,211,102,0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
  flex-shrink: 0;
}
.whatsapp-float a { display: none !important; }
html[lang="en"] .whatsapp-float a[data-en],
html[lang="pt"] .whatsapp-float a[data-pt],
html[lang="es"] .whatsapp-float a[data-es] { display: flex !important; }
.whatsapp-float a:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 26px !important; height: 26px !important; max-width: 26px; max-height: 26px; color: #fff; flex-shrink: 0; }
@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .whatsapp-float a { width: 48px; height: 48px; min-width: 48px; min-height: 48px; max-width: 48px; max-height: 48px; }
  .whatsapp-float svg { width: 22px !important; height: 22px !important; }
}

/* ---------- Blog category pills ---------- */
.category-pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.7rem; margin-top: 1.8rem;
}
.category-pills a {
  font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.6rem 1.2rem; border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.category-pills a:hover { background: var(--caramel); border-color: var(--caramel); color: var(--white); }

/* ---------- Everything You Need ---------- */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
}
.needs-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.needs-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.needs-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.needs-card:hover .thumb img { transform: scale(1.05); }
.needs-card h3 { font-size: 1.15rem; margin: 1.4rem 1.6rem 0.6rem; }
.needs-card p { font-size: 0.92rem; opacity: 0.82; margin: 0 1.6rem 1.6rem; }
@media (max-width: 900px) {
  .needs-grid { grid-template-columns: 1fr; }
}

/* ---------- Pull quote (differentiator, redesigned) ---------- */
.pull-quote-section { padding: clamp(2.4rem, 6vw, 4rem) 0; }
.pull-quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 2.8rem) 0;
}
.pull-quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--caramel);
  margin-bottom: 0.4rem;
}
.pull-quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.pull-quote p strong { color: var(--caramel); font-weight: 700; }
.pull-quote-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Mobile fine-tuning pass ---------- */
@media (max-width: 640px) {
  .post-body p { text-align: left; }
  .needs-card h3, .needs-card p { margin-left: 1.2rem; margin-right: 1.2rem; }
  .pull-quote { padding: 1.6rem 0; }
  .pull-quote-mark { font-size: 2.6rem; }
  .video-card { padding: 0.7rem 0.7rem 1rem; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .differentiator { padding: 1.8rem 1.2rem; }
  .cross-promo { padding: 2rem 1.4rem; }
}
@media (max-width: 480px) {
  .site-nav .brand { font-size: 15px; }
  .lang-toggle button { padding: 5px 9px; }
  .nav-right { gap: 0.6rem; }
  .lang-toggle { font-size: 0.66rem; }
}
