/*
Theme Name: Espaço Opalina
Theme URI: https://espacoopalina.com.br
Author: Espaço Opalina
Description: Tema editável do site de reservas do Espaço Opalina.
Version: 1.0.0
Text Domain: espaco-opalina
*/

:root {
  --ink: #101312;
  --cream: #f4ebdd;
  --jade: #2f8d73;
  --jade-bright: #3aa488;
  --paper: #f1eee7;
  --muted: #aaa399;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-position: 54% 48%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.015);
  animation: heroZoom 12s ease-out both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 7, .94) 0%, rgba(5, 7, 7, .76) 38%, rgba(5, 7, 7, .25) 70%, rgba(5, 7, 7, .36) 100%),
    linear-gradient(0deg, rgba(5, 7, 7, .75) 0%, transparent 46%);
}
.site-header {
  width: min(100% - 96px, 1480px);
  height: 104px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid rgba(244, 235, 221, .22);
}
.brand {
  font: 400 42px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .12em;
}
.site-header nav { display: flex; gap: 42px; }
.site-header nav a {
  position: relative;
  font-size: 15px;
  letter-spacing: .02em;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--jade-bright);
  transition: right .25s ease;
}
.site-header nav a:hover::after { right: 0; }
.header-cta {
  justify-self: end;
  border: 1px solid rgba(244, 235, 221, .5);
  padding: 14px 20px;
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.header-cta:hover { background: var(--cream); color: var(--ink); }

.hero-content {
  width: min(100% - 96px, 1480px);
  margin: 0 auto;
  padding: clamp(80px, 11vh, 140px) 0 96px;
  animation: riseIn .75s ease-out both;
}
.eyebrow {
  margin: 0 0 26px;
  color: #d3cdc3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow.dark { color: #4f5754; }
.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--cream);
  font: 400 clamp(72px, 8.2vw, 132px)/.88 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
}
.hero-copy {
  max-width: 560px;
  margin: 30px 0 0;
  color: #ddd6cc;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 16px; margin-top: 36px; }
.button {
  min-height: 60px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid transparent;
  font-size: 16px;
  letter-spacing: .02em;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.button span { transition: transform .2s ease; }
.button:hover span { transform: translate(3px, -2px); }
.button-primary { background: var(--jade); color: white; }
.button-primary:hover { background: var(--jade-bright); transform: translateY(-2px); }
.button-secondary { border-color: rgba(244, 235, 221, .68); background: rgba(10, 12, 11, .18); }
.button-secondary:hover { background: var(--cream); color: var(--ink); }
.hero-facts {
  display: flex;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  color: #c6beb3;
  font-size: 14px;
}
.hero-facts li + li::before { content: "•"; margin: 0 16px; color: var(--jade-bright); }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 235, 221, .3);
  border-radius: 50%;
  font-size: 22px;
  animation: pulse 2s infinite;
}

.spaces-section {
  padding: 120px max(48px, calc((100vw - 1480px) / 2));
  background: var(--paper);
  color: var(--ink);
}
.section-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 64px;
}
.section-intro h2 {
  margin: 0;
  font: 400 clamp(52px, 5.2vw, 82px)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}
.section-intro > p {
  max-width: 520px;
  margin: 0 0 8px auto;
  color: #4f5552;
  font-size: 18px;
  line-height: 1.7;
}
.spaces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.space-card { overflow: hidden; background: #fff; }
.space-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: #252525;
  color: white;
  cursor: pointer;
}
.space-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.space-card:hover img { transform: scale(1.035); }
.space-number {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 10px 12px;
  background: rgba(8, 10, 9, .75);
  color: white;
  font-size: 12px;
  letter-spacing: .08em;
}
.gallery-count {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(8, 10, 9, .78);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.gallery-count span { color: #78d1b7; font-size: 16px; }
.space-card-body { padding: 30px 30px 26px; }
.space-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.space-card-heading h3 { margin: 0; font: 400 36px/1.1 Georgia, "Times New Roman", serif; }
.space-card-heading span { flex: 0 0 auto; color: var(--jade); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.space-card-body > p { min-height: 58px; margin: 18px 0 24px; color: #555b58; line-height: 1.55; }
.space-price { display: block; margin: -6px 0 20px; color: #1f755f; font-size: 13px; letter-spacing: .04em; }
.space-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid #dedbd4; }
.space-card-footer small { color: #777b78; }
.space-card-footer a { color: var(--jade); font-size: 14px; font-weight: 700; }
.space-card-footer a span { display: inline-block; transition: transform .2s ease; }
.space-card-footer a:hover span { transform: translate(3px, -2px); }

.information-section {
  padding: 120px max(48px, calc((100vw - 1480px) / 2));
  background: #111513;
}
.information-heading {
  display: grid;
  grid-template-columns: .55fr 1fr .8fr;
  align-items: end;
  gap: 56px;
}
.information-heading .eyebrow { align-self: start; margin-top: 12px; }
.information-heading h2 { margin: 0; font: 400 clamp(54px, 5.2vw, 82px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.information-heading > p:last-child { margin: 0 0 8px; color: #adb2ae; font-size: 17px; line-height: 1.65; }
.info-panels { display: grid; grid-template-columns: .75fr 1.25fr; gap: 22px; margin-top: 72px; }
.info-panel { padding: 38px; border: 1px solid #343a37; background: #171b19; }
.info-panel > span { display: block; margin-bottom: 30px; color: var(--jade-bright); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hours-panel dl { margin: 0; }
.hours-panel dl > div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #353a38; }
.hours-panel dt, .hours-panel dd { margin: 0; }
.hours-panel dd { color: #c5ccc8; }
.hours-panel small { display: block; margin-top: 22px; color: #8f9692; line-height: 1.55; }
.rules-panel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; margin: 0; padding: 0; list-style: none; }
.rules-panel li { position: relative; padding: 15px 0 15px 22px; border-bottom: 1px solid #353a38; color: #c5cbc7; line-height: 1.5; }
.rules-panel li::before { content: "•"; position: absolute; left: 0; color: var(--jade-bright); }
.availability-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 840px;
  background: #0b0e0d;
}
.availability-visual { position: relative; min-height: 760px; overflow: hidden; }
.availability-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,7,.92), rgba(5,7,7,.12) 72%); }
.availability-visual > img { width: 100%; height: 100%; object-fit: cover; }
.availability-visual > div { position: absolute; z-index: 1; left: clamp(28px, 5vw, 80px); right: 40px; bottom: 70px; }
.availability-visual h2 { margin: 0; font: 400 clamp(58px, 6vw, 96px)/.9 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.availability-visual > div > p:last-child { max-width: 430px; margin: 28px 0 0; color: #cac4ba; font-size: 17px; line-height: 1.6; }
.availability-form { align-self: center; width: min(100% - 96px, 740px); margin: 70px auto; }
.form-heading { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid #323735; }
.form-heading span { color: var(--jade-bright); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.form-heading p { max-width: 390px; margin: 0; color: #9fa4a1; font-size: 14px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 34px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-wide { grid-column: 1 / -1; }
.field > span { color: #d9d4cb; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.field small { color: #767c78; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #3d4340;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--cream);
  padding: 12px 0 14px;
  transition: border-color .2s ease;
  color-scheme: dark;
}
.field textarea { resize: vertical; }
.field select option { background: #171a19; }
.field input::placeholder, .field textarea::placeholder { color: #656b68; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--jade-bright); }
.form-submit { width: 100%; margin-top: 30px; border: 0; cursor: pointer; }
.form-note { display: block; margin-top: 16px; color: #717773; line-height: 1.45; }

.reserve-section {
  padding: 120px max(48px, calc((100vw - 1480px) / 2));
  background: var(--ink);
  color: var(--cream);
}
.reserve-heading { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 60px; }
.reserve-heading .eyebrow { align-self: start; margin-top: 12px; }
.reserve-heading h2 { margin: 0; font: 400 clamp(54px, 5.4vw, 86px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.steps-list { margin: 80px 0 48px; padding: 0; list-style: none; border-top: 1px solid #383d3b; }
.steps-list li { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid #383d3b; }
.steps-list > li > span { color: var(--jade-bright); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.steps-list h3 { margin: 0 0 8px; font: 400 28px/1.15 Georgia, "Times New Roman", serif; }
.steps-list p { max-width: 640px; margin: 0; color: #aaaead; line-height: 1.6; }
.location-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 110px max(48px, calc((100vw - 1480px) / 2));
  background: var(--cream);
  color: var(--ink);
}
.location-section h2 { margin: 0; font: 400 clamp(52px, 5vw, 80px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.location-details { align-self: end; padding-bottom: 8px; }
.location-details p { margin: 0 0 24px; color: #4f5552; font-size: 20px; line-height: 1.6; }
.location-details a { color: var(--jade); font-weight: 700; }
.site-footer {
  min-height: 150px;
  padding: 44px max(48px, calc((100vw - 1480px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  background: #080a09;
}
.site-footer .brand { font-size: 32px; }
.site-footer p { margin: 0; color: #8d918e; font-size: 13px; text-align: center; }
.site-footer > a:last-child { justify-self: end; color: #c9cdc9; font-size: 13px; }

.gallery-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(5, 7, 6, .92);
  backdrop-filter: blur(10px);
}
.gallery-dialog { width: min(1120px, 100%); max-height: calc(100svh - 56px); display: flex; flex-direction: column; }
.gallery-header, .gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gallery-header { padding-bottom: 18px; }
.gallery-header span { color: #82cbb6; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gallery-header h2 { margin: 5px 0 0; font: 400 34px/1 Georgia, "Times New Roman", serif; }
.gallery-header button {
  width: 48px;
  height: 48px;
  border: 1px solid #59615d;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 30px;
  font-weight: 200;
  cursor: pointer;
}
.gallery-stage { position: relative; flex: 1; min-height: 0; background: #0a0c0b; }
.gallery-stage img { display: block; width: 100%; height: min(68svh, 760px); object-fit: contain; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 10, 9, .78);
  color: white;
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
}
.gallery-arrow:hover, .gallery-header button:hover { background: var(--jade); border-color: var(--jade); }
.gallery-previous { left: 18px; }
.gallery-next { right: 18px; }
.gallery-footer { padding-top: 18px; color: #aab0ac; font-size: 13px; }
.gallery-footer a { color: #74cbb1; font-weight: 700; }

@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1.015); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

@media (max-width: 900px) {
  .site-header { width: min(100% - 40px, 1480px); height: 82px; grid-template-columns: 1fr auto; }
  .brand { font-size: 34px; }
  .site-header nav { display: none; }
  .header-cta { padding: 11px 14px; font-size: 12px; }
  .hero-image { background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,7,7,.95) 0%, rgba(5,7,7,.68) 72%, rgba(5,7,7,.45) 100%), linear-gradient(0deg, rgba(5,7,7,.8), transparent 60%); }
  .hero-content { width: min(100% - 40px, 1480px); padding-top: 100px; }
  .hero h1 { font-size: clamp(58px, 17vw, 86px); }
  .spaces-section { padding: 88px 20px; }
  .section-intro { grid-template-columns: 1fr; gap: 28px; }
  .section-intro > p { margin: 0; }
  .spaces-grid { grid-template-columns: 1fr; }
  .information-section { padding: 88px 20px; }
  .information-heading { grid-template-columns: 1fr; gap: 24px; }
  .information-heading .eyebrow { margin: 0; }
  .info-panels { grid-template-columns: 1fr; margin-top: 48px; }
  .availability-section { grid-template-columns: 1fr; }
  .availability-visual { min-height: 620px; }
  .availability-form { width: min(100% - 40px, 740px); }
  .reserve-section { padding: 88px 20px; }
  .reserve-heading { grid-template-columns: 1fr; gap: 24px; }
  .location-section { grid-template-columns: 1fr; gap: 40px; padding: 88px 20px; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; padding: 44px 20px; }
  .site-footer p { text-align: left; }
  .site-footer > a:last-child { justify-self: start; }
}

@media (max-width: 560px) {
  .hero { min-height: 820px; }
  .hero-content { padding-top: 90px; }
  .hero h1 { font-size: 58px; }
  .hero-copy { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-facts { flex-direction: column; gap: 10px; }
  .hero-facts li + li::before { content: none; }
  .space-card-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .space-card-body { padding: 24px 20px; }
  .space-card-body > p { min-height: 0; }
  .space-card-footer { align-items: flex-start; gap: 16px; flex-direction: column; }
  .rules-panel ul { grid-template-columns: 1fr; }
  .info-panel { padding: 28px 22px; }
  .menu-button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .form-heading { flex-direction: column; gap: 14px; }
  .steps-list li { grid-template-columns: 48px 1fr; }
  .gallery-modal { padding: 12px; }
  .gallery-dialog { max-height: calc(100svh - 24px); }
  .gallery-stage img { height: 62svh; }
  .gallery-arrow { width: 44px; height: 44px; }
  .gallery-previous { left: 8px; }
  .gallery-next { right: 8px; }
}

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