/* =========================================================
   AG Casinhas — estilos
   Paleta artesanal: madeira + cores de tinta à mão
   ========================================================= */

:root {
  --cream:      #FBF6EC;
  --cream-2:    #F3E9D6;
  --card:       #FFFDF8;
  --wood:       #7A5230;
  --wood-dark:  #4E3520;
  --ink:        #3A2A1C;
  --ink-soft:   #6A5644;

  --terracotta: #E07A5F;
  --terracotta-d:#C9624A;
  --mustard:    #EBB04A;
  --sage:       #84A98C;
  --sky:        #6FB3CE;
  --berry:      #C8536B;

  --maxw: 1140px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 14px 34px rgba(78, 53, 32, 0.12);
  --shadow-sm: 0 6px 18px rgba(78, 53, 32, 0.10);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

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

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

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

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: clamp(56px, 9vw, 100px) 0; }

.section-tint { background: var(--cream-2); }

.kicker {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--terracotta);
  margin: 0 0 .2em;
  font-weight: 700;
}
.kicker-light { color: #ffe6b0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- botões ---------- */
.btn {
  --pad-y: .78em;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: var(--pad-y) 1.4em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .98rem;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--wood-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--terracotta-d); }

.btn-ghost {
  background: transparent;
  color: var(--wood-dark);
  border-color: var(--wood-dark);
}
.btn-ghost:hover { background: var(--wood-dark); color: #fff; }
.btn-ghost-light { color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--wood-dark); }

.btn-ig { background: var(--card); color: var(--wood-dark); border-color: var(--wood-dark); }
.btn-ig:hover { background: var(--wood-dark); color: #fff; }

.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-lg { font-size: 1.05rem; padding: .95em 1.7em; }

/* glifo Instagram */
.ig-glyph {
  width: 1.05em; height: 1.05em;
  border: 2px solid currentColor;
  border-radius: 30%;
  position: relative;
  display: inline-block;
  flex: none;
}
.ig-glyph::before {
  content: ""; position: absolute; inset: 22%;
  border: 2px solid currentColor; border-radius: 50%;
}
.ig-glyph::after {
  content: ""; position: absolute; top: 12%; right: 12%;
  width: 2px; height: 2px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 1px currentColor;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 82, 48, .14);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark { border-radius: 50%; box-shadow: 0 2px 8px rgba(78,53,32,.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; color: var(--wood-dark);
}
.brand-text em {
  font-style: normal; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terracotta); font-weight: 700;
}

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav > a:not(.btn) {
  font-weight: 700; color: var(--ink-soft); font-size: .98rem;
  position: relative; padding: 4px 0;
}
.main-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0;
  background: var(--terracotta); border-radius: 2px; transition: width .22s ease;
}
.main-nav > a:not(.btn):hover { color: var(--wood-dark); }
.main-nav > a:not(.btn):hover::after { width: 100%; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  width: 26px; height: 3px; background: var(--wood-dark);
  border-radius: 3px; transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(111, 179, 206, .26), transparent 60%),
    radial-gradient(800px 420px at 6% 8%, rgba(235, 176, 74, .22), transparent 55%),
    var(--cream);
  padding: clamp(36px, 6vw, 70px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; background: #fff; color: var(--wood-dark);
  border: 2px solid var(--wood-dark); border-radius: 999px;
  padding: .35em 1em; font-weight: 800; font-size: .85rem; margin-bottom: 1.1rem;
}
.hero-copy h1 { margin-bottom: .55em; }
.hl {
  color: var(--terracotta);
  background: linear-gradient(transparent 62%, rgba(235,176,74,.5) 62%);
}
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6rem 0 1rem; }
.hero-note { font-size: .95rem; color: var(--ink-soft); }

/* arte do hero */
.hero-art { position: relative; display: grid; place-items: center; }
.art-card {
  background: var(--card);
  border: 4px solid var(--wood-dark);
  border-radius: 50%;
  padding: 16px;
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.art-card img {
  width: clamp(230px, 32vw, 320px); height: auto;
  border-radius: 50%; display: block;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.float-chip {
  position: absolute;
  background: #fff; border: 2.5px solid var(--wood-dark);
  border-radius: 999px; padding: .4em .9em;
  font-weight: 800; font-size: .9rem; color: var(--wood-dark);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.chip-1 { top: 4%; left: -2%; transform: rotate(-6deg); background: var(--sage); color: #fff; border-color: var(--wood-dark); }
.chip-2 { bottom: 10%; left: -6%; transform: rotate(4deg); }
.chip-3 { bottom: 2%; right: 2%; transform: rotate(-4deg); background: var(--mustard); }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background:
    radial-gradient(40px 40px at 40px 0, transparent 39px, var(--cream-2) 40px) repeat-x;
  background-size: 80px 60px;
  opacity: .0;
}

/* ---------- sobre ---------- */
.sobre-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.sobre-grid p { color: var(--ink-soft); font-size: 1.06rem; }
.link-arrow {
  display: inline-block; font-weight: 800; color: var(--terracotta);
  border-bottom: 2.5px solid transparent; transition: border-color .2s ease; margin-top: .4rem;
}
.link-arrow:hover { border-color: var(--terracotta); }

.sobre-quote {
  background: var(--wood-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow);
  position: relative;
}
.sobre-quote::before {
  content: "“"; position: absolute; top: -14px; left: 20px;
  font-family: var(--font-display); font-size: 5rem; color: var(--mustard); line-height: 1;
}
.sobre-quote blockquote {
  margin: 10px 0 14px; font-family: var(--font-display);
  font-size: 1.35rem; line-height: 1.4; font-style: italic;
}
.quote-sign { font-family: var(--font-hand); font-size: 1.5rem; color: var(--mustard); }

/* ---------- diferenciais ---------- */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 2px solid rgba(122,82,48,.16);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feat-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 16px;
  background: color-mix(in srgb, var(--c) 16%, #fff);
  color: var(--c); margin-bottom: 16px;
  border: 2px solid var(--c);
}
.feat-icon svg { width: 30px; height: 30px; }
.feature-card h3 { margin-bottom: .35em; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- galeria de fotos ---------- */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.foto-item {
  padding: 0; border: 0; cursor: pointer; background: var(--card);
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm);
  position: relative; outline-offset: 3px;
}
.foto-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.foto-item::after {
  content: "🔍"; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(78,53,32,.32); opacity: 0; transition: opacity .25s ease;
}
.foto-item:hover img, .foto-item:focus-visible img { transform: scale(1.07); }
.foto-item:hover::after, .foto-item:focus-visible::after { opacity: 1; }

.galeria-cta { text-align: center; margin-top: 40px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(38, 27, 18, .92);
  display: none; place-items: center;
  padding: 20px;
}
.lightbox.open { display: grid; animation: lbfade .2s ease; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { margin: 0; max-width: min(92vw, 1000px); text-align: center; }
.lb-stage img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  border: 4px solid #fff;
}
.lb-stage figcaption { color: #f3e7d6; margin-top: 14px; font-weight: 600; font-size: 1rem; }
.lb-close, .lb-nav {
  position: fixed; background: rgba(255,255,255,.14); color: #fff;
  border: 2px solid rgba(255,255,255,.4); border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.5rem; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease, transform .15s ease;
}
.lb-close:hover, .lb-nav:hover { background: var(--terracotta); border-color: #fff; transform: scale(1.08); }
.lb-close { top: 20px; right: 20px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (max-width: 540px) {
  .lb-nav { top: auto; bottom: 24px; transform: none; }
  .lb-nav:hover { transform: scale(1.08); }
  .lb-prev { left: 28%; }
  .lb-next { right: 28%; }
}

/* ---------- contato ---------- */
.section-contato {
  background:
    radial-gradient(700px 360px at 80% 0%, rgba(235,176,74,.28), transparent 60%),
    var(--terracotta);
  color: #fff;
  text-align: center;
}
.section-contato h2 { color: #fff; }
.contato-inner { max-width: 680px; margin: 0 auto; }
.contato-emoji { font-size: 3rem; display: block; margin-bottom: 8px; }
.contato-lead { font-size: 1.15rem; color: #fff5ea; margin-bottom: 2rem; }
.contato-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--wood-dark); color: #f3e7d6; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 24px;
}
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text em { color: var(--mustard); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a {
  font-weight: 700; color: #e9d8c2; display: inline-flex; align-items: center; gap: .4em;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 22px; text-align: center;
}
.footer-bottom p { margin: 0; font-size: .9rem; color: #cdb89e; }

/* ---------- animação de revelação ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .hero-inner, .sobre-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 12px; }
  .features { grid-template-columns: repeat(2, 1fr); }

  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(122,82,48,.16);
    padding: 8px 22px 18px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(122,82,48,.1); }
  .main-nav .btn { margin-top: 12px; justify-content: center; }
}

@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
  .hero-cta .btn, .contato-cta .btn { flex: 1 1 auto; justify-content: center; }
  .brand-text em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
