/*
Theme Name: Agave Merchant PT
Theme URI: https://agavemerchant.com.br
Author: Agave Merchant
Author URI: https://agavemerchant.com.br
Description: Official Agave Merchant website theme — artisanal Mexican mezcal and tequila imported and distributed across Brazil.
Version: 1.0.0
License: Private
Text Domain: agave-merchant-pt
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F7F2E9;
  --cream-dark: #EDE6D6;
  --ink: #1A1714;
  --ink-light: #4A4540;
  --agave: #4E7A5C;
  --agave-light: #6B9A79;
  --terra: #B8693C;
  --sand: #C8A87A;
  --border: rgba(26,23,20,0.12);
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(247,242,233,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--agave); }
.nav-cta {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  padding: 0.5rem 1.3rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--agave); color: var(--cream); }

/* === HERO === */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--agave);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--agave);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 1.75rem;
}
.hero-title em { font-style: italic; color: var(--terra); }
.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-light);
  max-width: 38ch;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; gap: 2rem; }
.btn-primary {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  padding: 0.9rem 2rem;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--agave); color: var(--cream); }
.btn-ghost {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15rem;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--agave); }
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 5.5rem;
  height: 5.5rem;
  border: 1px solid rgba(247,242,233,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247,242,233,0.12);
  backdrop-filter: blur(4px);
  animation: spin 20s linear infinite;
}
.hero-badge-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
}

/* === MARQUEE === */
.marquee-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 25s linear infinite;
}
.marquee-inner span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 2rem;
}
.marquee-dot { color: var(--terra); font-size: 1rem; margin: 0 0.5rem; }

/* === SECTIONS === */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--agave);
  margin-bottom: 1.5rem;
}
.section-label.light { color: var(--agave-light); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}
.section-title em { font-style: italic; color: var(--terra); }
.section-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

/* === ABOUT === */
#about {
  padding: 8rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  border-top: 1px solid var(--border);
}
.about-visual { position: relative; }
.about-visual-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.about-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-tag {
  position: absolute;
  top: 2rem;
  left: -1.5rem;
  background: var(--agave);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.about-corner {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid var(--border);
}

/* === PORTFOLIO === */
#portfolio {
  background: var(--ink);
  color: var(--cream);
  padding: 8rem 3rem;
}
.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247,242,233,0.12);
}
.portfolio-intro {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(247,242,233,0.55);
  max-width: 36ch;
  text-align: right;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.brand-card {
  border-right: 1px solid rgba(247,242,233,0.1);
  cursor: pointer;
  transition: background 0.3s;
}
.brand-card:last-child { border-right: none; }
.brand-card:hover { background: rgba(247,242,233,0.03); }
.brand-card-img {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.brand-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: transform 0.5s ease;
}
.brand-card:hover .brand-card-img img { transform: scale(1.04); }
.brand-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,0.65), transparent 65%);
}
.brand-card-region {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(247,242,233,0.65);
}
.brand-card-body { padding: 2.5rem 3rem; }
.brand-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.brand-card-desc {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(247,242,233,0.58);
  margin-bottom: 1.75rem;
}
.brand-card-tags {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247,242,233,0.1);
}
.brand-card-tag {
  font-size: 0.76rem;
  font-weight: 300;
  color: rgba(247,242,233,0.42);
}
.brand-card-tag::before { content: '— '; color: var(--agave-light); }
.brand-card-cta {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid rgba(247,242,233,0.35);
  padding-bottom: 0.2rem;
  transition: border-color 0.2s;
}
.brand-card-cta:hover { color: var(--agave-light); border-color: var(--agave-light); }

/* === PHOTO STRIP === */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 360px;
  overflow: hidden;
}
.photo-strip-item {
  position: relative;
  overflow: hidden;
}
.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}

/* === CONTACT === */
#contact {
  padding: 8rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  border-top: 1px solid var(--border);
}
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2.5rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-light);
}
.contact-row svg { color: var(--agave); flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  resize: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--agave); }
.btn-submit {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: none;
  padding: 0.95rem 2rem;
  cursor: pointer;
  transition: background 0.25s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--agave); }

/* === FOOTER === */
.site-footer {
  padding: 2.25rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-copy { font-size: 0.76rem; font-weight: 300; color: var(--ink-light); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--agave); }

/* === BRAND PAGES === */
.brand-hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
}
.brand-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.72);
}
.brand-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,0.85) 0%, rgba(26,23,20,0.2) 60%, transparent 100%);
}
.brand-hero-back {
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,242,233,0.8);
  background: transparent;
  border: 1px solid rgba(247,242,233,0.3);
  padding: 0.45rem 1rem;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.brand-hero-back:hover { background: rgba(247,242,233,0.1); color: var(--cream); }
.brand-hero-content {
  position: absolute;
  bottom: 3.5rem;
  left: 3rem;
}
.brand-hero-region {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(247,242,233,0.6);
  margin-bottom: 1rem;
}
.brand-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  color: #F7F2E9;
  line-height: 1.05;
}
.brand-hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--terra);
  margin-top: 0.75rem;
}

/* Distillery intro panel */
.distillery-panel {
  display: grid;
  grid-template-columns: 1fr 2fr;
  height: 440px;
  overflow: hidden;
}
.distillery-panel-img { position: relative; overflow: hidden; }
.distillery-panel-img img { width: 100%; height: 100%; object-fit: cover; }
.distillery-panel-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, var(--cream) 100%);
}
.distillery-panel-text {
  background: var(--cream);
  display: flex;
  align-items: center;
  padding: 3rem 4rem;
}
.distillery-location {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.25rem;
}
.distillery-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.distillery-name em { font-style: italic; color: var(--terra); }
.distillery-desc {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-light);
  max-width: 40ch;
}

/* Brand story section */
.brand-story {
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.brand-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-box {
  padding: 2rem;
  background: var(--cream-dark);
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-light);
}

/* Production section */
.production-section {
  background: var(--ink);
  color: var(--cream);
  padding: 6rem 3rem;
}
.production-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
}
.production-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(247,242,233,0.1);
}
.production-step:last-child { border-right: none; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--terra);
  margin-bottom: 1.5rem;
}
.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
}
.step-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(247,242,233,0.55);
}

/* Two-photo strip */
.two-photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 340px;
  overflow: hidden;
}
.two-photo-item {
  position: relative;
  overflow: hidden;
}
.two-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: transform 0.5s ease;
}
.two-photo-item:hover img { transform: scale(1.04); }
.two-photo-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0.15em;
  color: rgba(247,242,233,0.65);
}

/* Expressions grid */
.expressions-section { padding: 6rem 3rem; }
.expressions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 3rem;
}
.expression-card {
  background: var(--cream);
  padding: 2.5rem;
}
.expression-age {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}
.expression-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.expression-notes {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-light);
}

/* Brand CTA */
.brand-cta {
  background: var(--ink);
  padding: 5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.brand-cta-title em { font-style: italic; color: var(--terra); }
.brand-cta-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(247,242,233,0.55);
}
.btn-outline {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(247,242,233,0.4);
  padding: 1rem 2rem;
  white-space: nowrap;
  transition: background 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(247,242,233,0.1); color: var(--cream); }

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === ANIMATIONS === */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .site-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  #hero, #about, #contact, .brand-story { grid-template-columns: 1fr; }
  #hero { min-height: auto; }
  .hero-right { height: 50vw; min-height: 280px; }
  .hero-left { padding: 3rem 1.5rem; }
  #about, #contact { padding: 4rem 1.5rem; gap: 3rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .brand-card { border-right: none; border-bottom: 1px solid rgba(247,242,233,0.1); }
  .photo-strip, .two-photo-strip { grid-template-columns: 1fr; height: auto; }
  .photo-strip-item, .two-photo-item { height: 220px; }
  .production-grid { grid-template-columns: 1fr 1fr; }
  .expressions-grid { grid-template-columns: 1fr; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .portfolio-intro { text-align: left; }
  .distillery-panel { grid-template-columns: 1fr; height: auto; }
  .distillery-panel-img { height: 240px; }
  .brand-cta { flex-direction: column; gap: 2rem; align-items: flex-start; }
  .site-footer { flex-direction: column; gap: 1rem; text-align: center; }
  .brand-story { padding: 4rem 1.5rem; gap: 3rem; }
  #portfolio { padding: 5rem 1.5rem; }
  .production-section { padding: 4rem 1.5rem; }
  .expressions-section { padding: 4rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
