/* ============================================
   Casa Ponte Serta — Design Tokens
   ============================================ */
:root {
  --linen: #F7F2E9;
  --linen-deep: #EFE7D8;
  --walnut: #3D2B1F;
  --walnut-soft: #5A4332;
  --terracotta: #B5562D;
  --terracotta-deep: #9A4623;
  --sage: #6B7A4F;
  --sage-deep: #545F3D;
  --brass: #8C7355;
  --white: #FFFDF9;

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;

  --radius-card: 6px;
  --shadow-soft: 0 12px 28px -10px rgba(61, 43, 31, 0.25);
  --shadow-lift: 0 18px 34px -12px rgba(61, 43, 31, 0.35);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--walnut);
  background: var(--linen);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 1em; }

a {
  color: var(--terracotta);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--brass); }

.section { padding: 96px 0; position: relative; }

/* placeholder image blocks — swap with real photography */
.placeholder-img {
  background: repeating-linear-gradient(135deg, #E3D8C4 0px, #E3D8C4 14px, #DACBB0 14px, #DACBB0 28px);
  border: 1px solid rgba(61,43,31,0.12);
  color: var(--walnut-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 160px;
  border-radius: var(--radius-card);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--terracotta-deep); box-shadow: var(--shadow-lift); }
.btn-ghost {
  background: transparent;
  color: var(--walnut);
  border-color: var(--walnut);
}
.btn-ghost:hover { background: rgba(61,43,31,0.06); }
.btn-block { width: 100%; text-align: center; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(61,43,31,0.1);
}
.nav-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark { text-decoration: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--walnut);
}
.primary-nav { display: flex; gap: 28px; }
.primary-nav a {
  color: var(--walnut-soft);
  font-size: 0.92rem;
  font-weight: 500;
}
.primary-nav a:hover { color: var(--terracotta); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--walnut);
  display: block;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--linen) 0%, var(--linen-deep) 100%);
  padding: 80px 0 140px;
  overflow: hidden;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-tagstack {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--sage-deep);
  border: 1px solid rgba(107,122,79,0.3);
  transform: rotate(-2deg);
}
.tag-2 { color: var(--terracotta-deep); border-color: rgba(181,86,45,0.3); transform: rotate(1deg); }
.tag-3 { transform: rotate(-1deg); }

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--walnut-soft);
  max-width: 480px;
  margin: 0 auto 32px;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image-cluster {
  position: relative;
  max-width: 980px;
  margin: 64px auto 0;
  height: 220px;
  padding: 0 28px;
}
.img-card {
  position: absolute;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.img-card-a {
  width: 38%;
  height: 200px;
  left: 4%;
  top: 0;
  transform: rotate(-3deg);
  z-index: 2;
}
.img-card-b {
  width: 32%;
  height: 170px;
  left: 36%;
  top: 30px;
  transform: rotate(2deg);
  z-index: 3;
}
.img-card-c {
  width: 30%;
  height: 160px;
  right: 4%;
  top: 10px;
  transform: rotate(-1.5deg);
  z-index: 1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(61,43,31,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
  pointer-events: none;
}

/* Torn-edge divider, used between sections */
.edge-torn {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 26px;
  background: var(--linen);
  clip-path: polygon(
    0% 100%, 0% 40%, 4% 60%, 8% 30%, 12% 55%, 16% 35%, 20% 58%,
    24% 32%, 28% 60%, 32% 38%, 36% 55%, 40% 30%, 44% 58%,
    48% 35%, 52% 60%, 56% 32%, 60% 55%, 64% 38%, 68% 58%,
    72% 30%, 76% 55%, 80% 35%, 84% 60%, 88% 32%, 92% 58%,
    96% 38%, 100% 55%, 100% 100%
  );
}
.edge-torn-top {
  top: -1px;
  bottom: auto;
  transform: scaleY(-1);
}

/* ============================================
   Our Story
   ============================================ */
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.story-image { min-height: 420px; }
.story-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.story-copy p { color: var(--walnut-soft); font-size: 1.02rem; }
.story-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--terracotta-deep);
  margin-top: 1.4em;
}

/* ============================================
   Philosophy (dark band)
   ============================================ */
.philosophy {
  background: var(--walnut);
  color: var(--linen);
  text-align: center;
  margin-top: 30px;
}
.philosophy-title {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 48px;
}
.belief-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.belief {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--linen);
  border-top: 2px solid var(--terracotta);
  padding-top: 14px;
  margin: 0;
}
.sustain-note {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-card);
  padding: 24px 28px;
}
.sustain-icon { color: var(--sage); font-size: 1.4rem; line-height: 1; }
.sustain-note p { margin: 0; color: var(--linen-deep); font-size: 0.97rem; }

/* ============================================
   What's On (dark band — replaces Offer + Workshops)
   ============================================ */
.whats-on {
  background: var(--sage-deep);
  color: var(--white);
}
.whats-on-title { color: var(--white); font-size: clamp(2rem, 4vw, 2.6rem); }
.whats-on-sub { max-width: 600px; color: rgba(255,253,249,0.85); margin-bottom: 44px; }

.whats-on-group { margin-bottom: 40px; }
.whats-on-group:last-of-type { margin-bottom: 0; }

.group-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--linen);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.onlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.on-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.on-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--white);
  margin: 0 0 0.2em;
}
.on-card p {
  color: rgba(255,253,249,0.78);
  font-size: 0.93rem;
  margin: 0;
  flex-grow: 1;
}
.on-status {
  align-self: flex-start;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--linen);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.whats-on-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 32px;
}
.whats-on-cta p { margin: 0; max-width: 460px; color: rgba(255,253,249,0.9); }

/* ============================================
   Gallery
   ============================================ */
.gallery h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.gallery-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 18px;
}
.gallery-item { height: 100%; border-radius: var(--radius-card); }
.gallery-tall { grid-row: span 2; }

/* ============================================
   Visit / Contact
   ============================================ */
.visit { background: var(--linen-deep); margin-top: 30px; }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.visit-title { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.visit-copy { color: var(--walnut-soft); }

.visit-details { display: flex; flex-direction: column; gap: 22px; margin: 32px 0 0; }
.visit-details dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 4px;
}
.visit-details dd { margin: 0; color: var(--walnut); }
.whatsapp-link { color: var(--sage-deep); font-weight: 600; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.contact-form label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  color: var(--walnut-soft);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1.5px solid rgba(61,43,31,0.18);
  border-radius: 4px;
  background: var(--linen);
  color: var(--walnut);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--walnut);
  color: var(--linen-deep);
  padding: 48px 0 32px;
  text-align: center;
}
.footer-brand { color: var(--white); display: block; margin-bottom: 6px; }
.footer-tag { color: var(--brass); margin-bottom: 18px; }
.footer-copy { font-size: 0.82rem; color: rgba(247,242,233,0.55); margin: 0; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 880px) {
  .story-grid, .visit-grid { grid-template-columns: 1fr; gap: 36px; }
  .belief-row { grid-template-columns: repeat(2, 1fr); }
  .onlist-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-tall { grid-row: span 1; }
}

@media (max-width: 700px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--linen);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(61,43,31,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.is-open { max-height: 320px; }
  .primary-nav a { padding: 14px 28px; border-top: 1px solid rgba(61,43,31,0.08); }
  .nav-toggle { display: flex; }

  .hero-image-cluster { display: none; }
  .belief-row { grid-template-columns: 1fr; }
  .whats-on-cta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .on-card:hover { transform: none; }
}
