/* ==========================================================================
   Newland Drinkware — newlfield.ca
   Shared stylesheet
   ========================================================================== */

:root {
  --forest: #174F1F;
  --green: #15833C;
  --deep: #002200;
  --pale: #E1E7F0;
  --white: #FFFFFF;
  --cream: #FAFAF7;
  --ink: #1A1F1B;
  --muted: #5B6660;
  --border: #E3E7E1;
  --amazon: #FF9900;
  --amazon-dark: #131A22;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 34, 0, 0.08);
  --max: 1180px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--deep);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--forest); }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: .6em;
  display: inline-block;
}

.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--cream); }
.section-dark {
  background: linear-gradient(160deg, var(--deep), var(--forest));
  color: var(--pale);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #cfe0d2; }

.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--deep); color: var(--white); }

.btn-outline { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }

.btn-outline-light { background: transparent; border-color: var(--pale); color: var(--white); }
.btn-outline-light:hover { background: var(--pale); color: var(--deep); }

.btn-amazon {
  background: var(--amazon);
  color: var(--amazon-dark);
  border-color: var(--amazon);
}
.btn-amazon:hover { background: #e88a00; color: var(--amazon-dark); box-shadow: var(--shadow); }
.btn-amazon svg { width: 16px; height: 16px; }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 20px;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--forest); }
.main-nav a.active { color: var(--forest); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--deep);
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 16px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn span.btn-label-full { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--deep) 0%, var(--forest) 55%, var(--green) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 88px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: #d8e6da; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px; }
  .hero-image { order: -1; }
}

/* ---------- Value props ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-item { text-align: center; padding: 12px; }
.value-item .icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest); font-size: 1.4rem;
}
.value-item .icon svg { width: 24px; height: 24px; }
.value-item h3 { font-size: 1.05rem; margin-bottom: .3em; }
.value-item p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 760px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Category / product cards ---------- */
.cards-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-start; }
.cards-row.few { justify-content: center; }
.cards-row.few .card { flex: 0 1 280px; }
.cards-row .card { flex: 1 1 260px; max-width: 280px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); font-size: .92rem; margin: 0; }
.card-price { font-weight: 700; color: var(--deep); font-size: 1.05rem; }
.card-price .was { color: var(--muted); font-weight: 400; text-decoration: line-through; font-size: .9rem; margin-right: 6px; }
.card-footer { margin-top: auto; padding-top: 8px; }
.tag {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--pale);
  color: var(--forest);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  width: fit-content;
}

/* ---------- Category tiles (shop by category) ---------- */
.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  color: var(--white);
  display: flex;
  align-items: flex-end;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,34,0,.82) 0%, rgba(0,34,0,.1) 55%, transparent 100%);
}
.cat-tile-label { position: relative; z-index: 2; padding: 22px; }
.cat-tile-label h3 { color: var(--white); margin-bottom: 4px; }
.cat-tile-label span { color: var(--pale); font-size: .85rem; }

/* ---------- Product detail ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 32px; } }
.product-gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 12px; }
.product-thumbs { display: flex; gap: 10px; }
.product-thumbs img {
  width: 74px; height: 74px; object-fit: cover; border-radius: 8px;
  border: 2px solid var(--border); cursor: pointer;
}
.product-thumbs img.active { border-color: var(--forest); }
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 14px 0; }
.price-row .amount { font-size: 1.6rem; font-weight: 700; color: var(--deep); }
.price-note { color: var(--muted); font-size: .85rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 10px 4px; font-size: .92rem; }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.feature-list { list-style: none; padding: 0; margin: 18px 0; }
.feature-list li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--ink); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.amazon-note {
  background: var(--pale);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--forest);
  margin-top: 16px;
}
.related-strip { margin-top: 64px; }

/* ---------- Promotions ---------- */
.promo-card {
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.promo-card .tag { background: var(--forest); color: var(--white); }
.promo-card.expired { opacity: .55; }

/* ---------- Blog ---------- */
.blog-card .card-img { aspect-ratio: 16/10; }
.post-meta { color: var(--muted); font-size: .85rem; margin-bottom: .4em; }
.post-body { max-width: 760px; margin: 0 auto; }
.post-body h2 { margin-top: 1.4em; }
.post-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.back-link { display: inline-block; margin-bottom: 1.6rem; font-weight: 600; }

/* ---------- Video ---------- */
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  aspect-ratio: 16/9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-card .card-img { position: relative; }
.play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.play-badge span {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* ---------- Newsletter / CTA band ---------- */
.cta-band {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: .2em; }
.cta-band p { color: #d8e6da; margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  min-width: 220px;
  font-size: .95rem;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.stars { color: #E3A21A; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p.quote { font-style: italic; color: var(--ink); }
.testimonial .who { font-weight: 700; color: var(--deep); font-size: .9rem; }

/* ---------- Forms (contact) ---------- */
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: .9rem; }
.form-field input, .form-field textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: .95rem;
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--forest); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  color: #cfe0d2;
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #cfe0d2; font-size: .92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-logo img { height: 30px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: #9fb5a3;
}
.footer-bottom a { color: #9fb5a3; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.pill-list { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-list span {
  background: var(--pale); color: var(--forest);
  border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600;
}
.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }
.badge-open {
  display: inline-block; background: #fff3cd; color: #8a6416;
  border-radius: 6px; padding: 4px 10px; font-size: .78rem; font-weight: 700;
}
