/* =========================================================
   Halona Marketplace — shared stylesheet
   Palette grounded in Zuni Pueblo's high-desert setting and
   the corn motif already in the store's own logo.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root{
  /* Color tokens */
  --sandstone:       #EFE6D3;
  --sandstone-dark:  #E1D2AE;
  --yellow:          #FDF499;
  --white:           #FFFDF8;
  --charcoal:        #33261B;
  --charcoal-soft:   #5A4A3A;
  --green-dark:      #2E4D12;
  --green-light:     #628D3B;
  --turquoise:       #1F7A76;
  --turquoise-dark:  #12514E;
  --turquoise-tint:  #E4F1EF;
  --maroon:          #A0352B;
  --corn:            #E8A93B;

  /* Type tokens */
  --font-display: 'Zilla Slab', Georgia, serif;
  --font-body:    'Public Sans', -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Layout tokens */
  --max-width: 1140px;
  --step: 12px; /* base unit driving the stepped-terrace motif */
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

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

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

a{ color: var(--green-dark); }

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1{ font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3{ font-size: 1.15rem; font-weight: 600; }

h2 img{
  display: block;   /* takes the image out of inline flow */
  margin: 0 auto;   /* centers it like any block element */
}

p{ margin: 0 0 1em; }

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

.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Eyebrow label with the stepped-terrace glyph — the site's signature mark */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--turquoise-dark);
  margin-bottom: .6em;
}
.eyebrow .terrace-icon{ flex-shrink: 0; }

.terrace-icon path,
.terrace-icon rect{ fill: currentColor; }

/* SVG fill utilities for the inline logo mark & hero illustration */
.fill-turquoise{ fill: var(--turquoise); }
.fill-turquoise-dark{ fill: var(--turquoise-dark); }
.fill-corn{ fill: var(--corn); }
.fill-maroon{ fill: var(--maroon); }
.fill-charcoal{ fill: var(--charcoal); }
.fill-white{ fill: var(--white); }
.fill-sandstone{ fill: var(--sandstone); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--green-dark);
}

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.wordmark{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
}
.wordmark img{ height: 46px; width: auto; display: block; }

.footer-logo{
  height: 40px;
  width: auto;
  margin-bottom: 1.1rem;
  background: var(--sandstone);
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--charcoal);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }

.main-nav ul{
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.main-nav a{
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: .96rem;
  padding: .3em 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"]{
  color: var(--corn);
  border-bottom-color: var(--maroon);
}

/* =========================================================
   Hero — stepped terrace edge (signature shape), echoing
   the mesa-and-pueblo terracing of the region
   ========================================================= */
.hero{
  position: relative;
  background: var(--green-light);
  color: var(--white);
  padding: 52px 0 calc(32px + var(--step) * 4);
  clip-path: polygon(
    0 0, 100% 0,
    100% calc(100% - var(--step) * 4),
    calc(100% - var(--step) * 2) calc(100% - var(--step) * 4),
    calc(100% - var(--step) * 2) calc(100% - var(--step) * 3),
    calc(100% - var(--step) * 4) calc(100% - var(--step) * 3),
    calc(100% - var(--step) * 4) calc(100% - var(--step) * 2),
    calc(100% - var(--step) * 6) calc(100% - var(--step) * 2),
    calc(100% - var(--step) * 6) calc(100% - var(--step) * 1),
    calc(100% - var(--step) * 8) calc(100% - var(--step) * 1),
    calc(100% - var(--step) * 8) 100%,
    0 100%
  );
}
.hero .container{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 2.5rem;
  align-items: stretch;
}
.hero.hero--simple{
  padding: 30px 0 calc(20px + var(--step) * 3);
  --step: 9px;
}
.hero.hero--simple .container{ grid-template-columns: 1fr; max-width: 760px; }
.hero.hero--simple h1{ margin-bottom: .15em; }
.hero.hero--simple .eyebrow{ margin-bottom: .4em; }
.hero-eyebrow{ color: var(--corn); }
.hero-eyebrow .terrace-icon path{ fill: var(--corn); }
.hero h1{ color: var(--white); }
.hero h2{ color: var(--white); font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 650; }
.hero p.lede{
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  max-width: 46ch;
}
.hero p.lede-2{
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  max-width: 60ch;
}
.hero-art{ justify-self: center; }
.hero-art svg{ width: 100%; max-width: 320px; height: auto; }

.hero-photo{
  width: 100%;
  height: 100%;
  min-height: 260px;      /* floor, in case the text column is ever short */
  border-radius: 0px;
  overflow: hidden;       /* crops anything outside the box */
  border: 4px solid rgba(255,255,255,.35);
  box-shadow: 0 18px 34px rgba(18,40,38,.35);
}

.hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fills the box, cropping overflow (sky/ground) */
  display: block;
}

.hero-cta{
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: .75em 1.4em;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--maroon); color: var(--white); }
.btn-primary:hover{ background: #A63A0C; }
.btn-ghost{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover{ border-color: var(--white); }
.btn-rewards{ background: var(--turquoise); color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-rewards:hover{ border-color: var(--corn); }
.btn-dark{ background: var(--charcoal); color: var(--white); }
.btn-dark:hover{ background: #241a12; }

/* =========================================================
   Sections
   ========================================================= */
.section{ padding: 4.5rem 0; }
.section--alt{ background: var(--sandstone); }
.section--tint{ background: var(--sandstone-dark); }

.section-head{ max-width: 62ch; margin-bottom: 2.4rem; }

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.card{
  background: var(--white);
  border: 1px solid var(--green-dark);
  border-radius: 10px;
  padding: 1.6rem;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover{ box-shadow: 0 10px 24px rgba(51,38,27,.08); transform: translateY(-2px); }
.card .terrace-icon{ color: var(--maroon); margin-bottom: .8rem; }
.card h3{ margin-bottom: .4em; }
.card p{ color: var(--charcoal-soft); font-size: .96rem; margin-bottom: .9em; }
.card .card-link{
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--turquoise-dark);
}
.card .card-link:hover{ color: var(--maroon); }

.banner-photo{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
@media (max-width: 640px){ .banner-photo{ height: 180px; } }

/* Find us / contact */
.info-block{ margin-bottom: 1.8rem; }
.info-block dt{
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--turquoise-dark);
  margin-bottom: .3em;
}
.info-block dd{ margin: 0 0 1.1em; font-size: 1.02rem; }

.map-frame{
  width: 100%;
  height: 320px;
  border: 1px solid var(--sandstone-dark);
  border-radius: 10px;
  overflow: hidden;
}
.map-frame iframe{ width: 100%; height: 100%; border: 0; }

/* Flyer page */
.flyer-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.flyer-page{
  border: 1px solid var(--sandstone-dark);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  display: block;
}
.flyer-page img{ width: 100%; height: auto; }
.flyer-note{
  background: var(--corn);
  color: var(--charcoal);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  font-size: .95rem;
  margin-bottom: 2rem;
}

/* Embedded widgets (rewards / daily specials) */
.embed-frame{
  border: 0px solid var(--sandstone-dark);
  border-radius: 0px;
  overflow: hidden;
  background: var(--white);
}
.embed-frame iframe{
  width: 100%;
  border: 0;
  display: block;
}
/* Google Docs' "embedded" view renders at a fixed page width and
   anchors left rather than centering itself — so for doc embeds
   (not the fluid AppCard form) we cap the box to that page width
   and center the box instead. */
.embed-frame--doc{
  max-width: 820px;
  margin: 0 auto;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--green-dark);
  color: rgba(255,253,248,.82);
  padding: 3rem 0 2rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h3{ color: var(--white); font-size: 1rem; }
.site-footer a{ color: rgba(255,253,248,.82); text-decoration: none; }
.site-footer a:hover{ color: var(--corn); }
.footer-nav ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; }
.footer-bottom{
  border-top: 1px solid rgba(255,253,248,.15);
  padding-top: 1.4rem;
  font-size: .82rem;
  font-family: var(--font-mono);
  color: rgba(255,253,248,.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5em;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px){
  .grid-3{ grid-template-columns: 1fr 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .hero .container{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; max-width: 220px; margin: 0 auto; }
  .hero-photo{ order: -1; height: 220px; min-height: 0; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .nav-toggle{ display: flex; }
  .main-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--sandstone-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open{ max-height: 320px; }
  .main-nav ul{ flex-direction: column; gap: 0; padding: .5rem 24px 1rem; }
  .main-nav a{ display: block; padding: .8em 0; }
  .grid-3{ grid-template-columns: 1fr; }
  .flyer-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 1.6rem; }
  .hero{ padding: 64px 0 calc(48px + var(--step) * 4); }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
