/* =========================================================
   eco now — econowca.com clone
   New template built from the Wayback reference (2025-08-16).
   Structure, layout and UX mirror the archived Square Online
   site, but the markup/styling is an original template.
   ========================================================= */

:root {
  --blue: #d6ecf7;          /* header sky blue */
  --blue-deep: #bfe1f2;
  --ink: #111111;           /* near-black text / buttons */
  --ink-soft: #2a2a2a;
  --paper: #ffffff;
  --muted: #5d5d5d;
  --line: #e6e6e6;
  --chip: #f0f0f0;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
  --maxw: 1280px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .2px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  text-align: center;
}
.btn:hover { background: #333; transform: translateY(-1px); }

/* =========================================================
   HEADER
   ========================================================= */
.topbar {
  background: var(--blue);
  background-image: url("assets/doodles.svg");
  background-size: 540px auto;
  background-repeat: repeat;
  position: relative;
}
.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 28px 8px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.topbar__logo { grid-column: 2; justify-self: center; }
.topbar__logo img { height: 96px; width: auto; }
.topbar__icons {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 22px;
  align-items: center;
}
.icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink); display: inline-flex; padding: 4px;
}
.icon-btn svg { width: 24px; height: 24px; }

/* primary nav */
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 4px 28px 20px;
}
.nav > li { position: relative; list-style: none; }
.nav a {
  display: block;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 10px 18px;
  color: var(--ink);
  border-radius: 4px;
  transition: background .15s ease;
}
.nav a:hover { background: rgba(255,255,255,.5); }

/* dropdown */
.has-sub > .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(0,0,0,.13);
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.submenu li { list-style: none; }
.submenu a { font-size: .98rem; padding: 9px 14px; white-space: nowrap; }
.submenu a:hover { background: var(--blue); }

/* sticky condensed bar */
.stickybar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.stickybar.show { transform: translateY(0); }
.stickybar__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 10px 28px;
}
.stickybar .nav { padding: 0; }
.stickybar .nav a { font-size: 1rem; padding: 8px 14px; }
.stickybar__icons { display: flex; gap: 18px; }

/* mobile menu toggle */
.menu-toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 60px 0 70px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__img img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.12;
  margin-bottom: 24px;
}
.hero__text { font-size: 1.25rem; margin-bottom: 30px; max-width: 36ch; }

/* =========================================================
   POPULAR PICKS (dark band)
   ========================================================= */
.picks { background: var(--ink); color: #fff; padding: 64px 0 76px; }
.picks h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 36px;
}
.picks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product { display: block; text-decoration: none; color: #fff; }
.product img,
.product__art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #fff;
  object-fit: cover;
}
.product__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 16px 0 4px;
  line-height: 1.25;
}
.product__price { color: #d7d7d7; font-size: 1.05rem; }

/* =========================================================
   EVENTS
   ========================================================= */
.events { padding: 70px 0 40px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}
.section-head p { font-size: 1.2rem; color: var(--ink-soft); }

.event {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.event__thumb {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: 4px; background: #e9e9e9;
}
.event__title {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.55rem; line-height: 1.2; margin-bottom: 16px;
}
.event__meta { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.chip {
  background: var(--chip); border-radius: 5px;
  padding: 6px 14px; font-size: .95rem; letter-spacing: .3px;
  text-transform: uppercase;
}
.event__loc { color: var(--ink-soft); }
.event .btn { white-space: nowrap; }

/* =========================================================
   LOCATIONS
   ========================================================= */
.locations { padding: 60px 0 90px; }
.locations__intro { max-width: 980px; margin-bottom: 50px; }
.locations__intro h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.18; margin-bottom: 20px;
}
.locations__intro p { font-size: 1.2rem; }

.loc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 40px;
}
.loc__name {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.3rem; line-height: 1.25; margin-bottom: 16px;
}
.loc__img {
  width: 100%; height: 300px; object-fit: cover;
  border-radius: 4px; margin-bottom: 18px;
}
.loc__desc { margin-bottom: 20px; }
.loc--closing .loc__name { color: var(--muted); }

/* =========================================================
   UPCYCLED TOWEL LINE
   ========================================================= */
.towel-line { background: var(--blue); padding: 60px 0; }
.towel-line__inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
}
.towel-line__copy h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px;
}
.towel-line__copy p { font-size: 1.2rem; margin-bottom: 26px; max-width: 46ch; }
.towel-line__art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.towel-line__art span {
  display: block; aspect-ratio: 1/1; border-radius: 8px;
  background: repeating-linear-gradient(45deg, #fff, #fff 14px, #e9f3fb 14px, #e9f3fb 28px);
  border: 2px solid rgba(0,0,0,.08);
}
.towel-line__art span:nth-child(2) { background: repeating-linear-gradient(45deg,#fef6ec,#fef6ec 14px,#f6e7d2 14px,#f6e7d2 28px); }
.towel-line__art span:nth-child(3) { background: repeating-linear-gradient(45deg,#eef6ee,#eef6ee 14px,#dcebdc 14px,#dcebdc 28px); }
.towel-line__art span:nth-child(4) { background: repeating-linear-gradient(45deg,#fff,#fff 14px,#eee 14px,#eee 28px); }

/* =========================================================
   LOYALTY PERKS
   ========================================================= */
.loyalty { padding: 70px 0 80px; }
.loyalty__perks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.perk {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 30px 26px; text-align: center;
}
.perk__icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.perk h3 { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.perk p { color: var(--ink-soft); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: #e8e8e8; padding: 64px 0 30px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.2rem; margin-bottom: 16px; color: #fff;
}
.footer a { color: #e8e8e8; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer__logo img { width: 120px; margin-bottom: 18px; filter: invert(1); }
.footer__tag { color: #b9b9b9; max-width: 34ch; }
.social { display: flex; gap: 16px; margin-top: 16px; }
.social a svg { width: 24px; height: 24px; }
.footer__bottom {
  border-top: 1px solid #333; padding-top: 22px;
  text-align: center; color: #9a9a9a; font-size: .95rem;
}

/* =========================================================
   INNER PAGES
   ========================================================= */
.page-hero {
  background: var(--blue);
  background-image: url("assets/doodles.svg");
  background-size: 540px auto;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-body { padding: 56px 0 80px; }
.page-body .lead { font-size: 1.25rem; max-width: 70ch; margin-bottom: 22px; }
.breadcrumb { font-size: .95rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { text-decoration: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__img { order: -1; }
  .picks__grid { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .event { grid-template-columns: 1fr; text-align: left; }
  .event__thumb { height: 200px; }
  .towel-line__inner { grid-template-columns: 1fr; gap: 30px; }
  .loyalty__perks { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 18px; }
  .topbar__inner { padding: 16px 20px 6px; }
  .topbar__logo img { height: 72px; }
  .menu-toggle {
    display: inline-flex; grid-column: 1; justify-self: start;
    background: none; border: none; cursor: pointer; padding: 4px;
  }
  .menu-toggle svg { width: 28px; height: 28px; }
  .nav {
    display: none; flex-direction: column; gap: 2px;
    padding: 8px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .has-sub > .submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; min-width: 0;
    background: rgba(255,255,255,.5); margin: 2px 0 6px;
  }
  .stickybar { display: none; }
  .picks__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .loc-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
