/* ==========================================================================
   Elk & Antler Co. — Natural Dog Chews
   Stylesheet — rustic / outdoorsy / trustworthy
   ========================================================================== */

:root {
  --forest: #2f4a36;
  --forest-dark: #233a2a;
  --brown: #8a5a32;
  --brown-dark: #6b4423;
  --cream: #f7f1e3;
  --cream-2: #efe6d2;
  --sand: #e4d7bd;
  --charcoal: #2b2724;
  --muted: #6f655a;
  --paypal: #ffc439;
  --paypal-dark: #f2ba36;
  --white: #ffffff;
  --success: #3c7a4e;
  --shadow: 0 6px 24px rgba(43, 39, 36, 0.12);
  --shadow-sm: 0 2px 8px rgba(43, 39, 36, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --serif: 'Georgia', 'Times New Roman', serif;
  --sans: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--serif); color: var(--forest); line-height: 1.2; }

a { color: var(--brown-dark); text-decoration: none; }
a:hover { color: var(--brown); }

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

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--cream2 { background: var(--cream-2); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest h2, .section--forest h3 { color: var(--cream); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}

.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-lead { max-width: 640px; color: var(--muted); font-size: 1.05rem; margin-bottom: 8px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brown); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brown-dark); color: #fff; }
.btn--forest { background: var(--forest); color: var(--cream); }
.btn--forest:hover { background: var(--forest-dark); color: #fff; }
.btn--outline { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: var(--cream); }
.btn--ghost { background: rgba(255,255,255,.15); color:#fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.28); color:#fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: .9rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 241, 227, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; background:#fff; box-shadow: var(--shadow-sm); }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--forest); }
.brand .brand-tag { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brown); }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--charcoal); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--brown); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative; background: var(--forest); color: var(--cream);
  border: none; cursor: pointer; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  transition: background .2s ease;
}
.cart-btn:hover { background: var(--forest-dark); }
.cart-count {
  position: absolute; top: -4px; right: -4px; background: var(--brown);
  color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--forest); cursor: pointer; }

/* ===== Hero ===== */
.hero { position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 70px 0; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero-copy h1 .accent { color: var(--brown); }
.hero-copy p { font-size: 1.12rem; color: var(--muted); margin-bottom: 26px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img { position: relative; }
.hero-img img { border-radius: 22px; box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--cream);
  border: 2px solid var(--sand); border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow);
  font-family: var(--serif); color: var(--forest); font-weight: 700; font-size: .95rem; line-height: 1.2;
}
.hero-badge span { display: block; font-family: var(--sans); font-weight: 600; font-size: .72rem; color: var(--brown); text-transform: uppercase; letter-spacing: 1px; }

/* ===== Trust bar ===== */
.trust-bar { background: var(--forest); color: var(--cream); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; text-align: center; }
.trust-grid .ti { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .92rem; }
.trust-grid .ti .ico { font-size: 1.5rem; }

/* ===== Product grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease; border: 1px solid var(--sand);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { background: #fff; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 18px; position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-tag { position: absolute; top: 12px; left: 12px; background: var(--brown); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-title { font-size: 1.2rem; margin-bottom: 6px; }
.product-desc { color: var(--muted); font-size: .92rem; margin-bottom: 14px; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.product-price { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--brown-dark); }
.product-stars { color: #c89a3c; font-size: .9rem; }

/* size selector */
.size-row { margin-bottom: 14px; }
.size-row label { display:block; font-size:.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; font-weight:700; }
.size-select { width: 100%; padding: 10px 12px; border: 1px solid var(--sand); border-radius: var(--radius-sm); background: var(--cream); font-family: var(--sans); font-size: .95rem; color: var(--charcoal); }

/* ===== Features / benefits ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 44px; }
.feature { text-align: center; }
.feature .ico { font-size: 2.2rem; margin-bottom: 12px; display:block; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .92rem; }
.section--forest .feature p { color: var(--cream-2); }

/* ===== Story / about ===== */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-grid img { border-radius: 18px; box-shadow: var(--shadow); }
.story-copy p { color: var(--muted); margin-bottom: 16px; font-size: 1.04rem; }
.section--forest .story-copy p { color: var(--cream-2); }

/* ===== Comparison table ===== */
.compare { margin-top: 36px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--sand); }
.compare th { background: var(--forest); color: var(--cream); font-family: var(--serif); }
.compare td:first-child, .compare th:first-child { text-align: left; font-weight: 600; }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no { color: #b14b3c; }
.compare tr:last-child td { border-bottom: none; }
.compare .col-us { background: var(--cream-2); }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq-item { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 20px; font-size: 1.02rem; font-weight: 700; color: var(--forest); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); }
.faq-q .chev { transition: transform .2s ease; color: var(--brown); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--muted); padding: 0 20px; }
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 320px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { background:#fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--sand); }
.form-group { margin-bottom: 16px; }
.form-group label { display:block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--charcoal); }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--sand); border-radius: var(--radius-sm); font-family: var(--sans); font-size: .98rem; background: var(--cream); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info p { margin-bottom: 14px; color: var(--cream-2); }
.contact-info .ci-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-info .ci-row .ico { font-size: 1.4rem; }

/* ===== Footer ===== */
.site-footer { background: var(--forest-dark); color: var(--cream); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer-brand img { height: 60px; width: 60px; border-radius: 50%; background:#fff; margin-bottom: 14px; }
.footer-brand p { color: var(--cream-2); font-size: .94rem; max-width: 320px; }
.footer-col h4 { color: var(--cream); margin-bottom: 14px; font-size: 1.05rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--cream-2); font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; text-align: center; color: var(--cream-2); font-size: .85rem; }
.footer-bottom .pay { margin-top: 8px; font-size: .8rem; opacity: .8; }
.footer-bottom .credit { margin-top: 10px; font-size: .82rem; }
.footer-bottom .credit a { color: var(--paypal); font-weight: 700; }
.footer-bottom .credit a:hover { color: #fff; }

/* ===== Method Alliance trust badge ===== */
.method-trust {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 8px; padding: 28px 0 4px;
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: left;
}
.method-trust img {
  width: 104px; height: 104px; object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.45));
  transition: transform .25s ease;
  flex-shrink: 0;
}
.method-trust img:hover { transform: scale(1.06) rotate(-2deg); }
.method-trust .mt-copy { max-width: 360px; }
.method-trust .mt-copy h4 {
  color: var(--cream); font-family: var(--serif); font-size: 1.08rem; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.method-trust .mt-copy .mt-verified { color: var(--paypal); font-size: .8rem; }
.method-trust .mt-copy p { color: var(--cream-2); font-size: .86rem; line-height: 1.55; }
.method-trust .mt-copy .mt-tags {
  margin-top: 8px; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(247,241,227,.7); font-weight: 700;
}
@media (max-width: 560px) {
  .method-trust { flex-direction: column; text-align: center; gap: 14px; }
  .method-trust .mt-copy h4 { justify-content: center; }
}

/* ===== Cart drawer ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 200; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 90vw;
  background: var(--cream); z-index: 201; transform: translateX(100%);
  transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.2);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--sand); }
.cart-head h3 { font-size: 1.3rem; }
.cart-close { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty { text-align: center; color: var(--muted); margin-top: 50px; }
.cart-empty .ico { font-size: 3rem; display:block; margin-bottom: 12px; opacity: .5; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sand); }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--charcoal); margin-bottom: 2px; }
.cart-item-info .ci-variant { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.cart-item-info .ci-price { font-weight: 700; color: var(--brown-dark); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--sand); border-radius: 6px; overflow: hidden; margin-top: 4px; }
.qty button { width: 26px; height: 26px; border: none; background: var(--cream-2); cursor: pointer; font-size: 1rem; color: var(--charcoal); }
.qty span { width: 32px; text-align: center; font-size: .9rem; }
.ci-remove { background: none; border: none; color: #b14b3c; font-size: .78rem; cursor: pointer; margin-top: 6px; text-decoration: underline; }
.cart-foot { padding: 20px 22px; border-top: 1px solid var(--sand); background: var(--cream-2); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--forest); margin-bottom: 14px; }
#paypal-button-container { margin-top: 14px; }
.cart-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--forest); color: #fff; padding: 14px 26px; border-radius: 50px;
  box-shadow: var(--shadow); z-index: 300; transition: transform .3s ease; font-weight: 600; font-size: .95rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 16px 22px; gap: 14px; border-bottom: 1px solid var(--sand); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* ===== Print ===== */
@page { size: A4; margin: 1.6cm; }
@media print {
  .site-header, .cart-drawer, .cart-overlay, .nav-toggle, .hero-actions, .cart-btn, .toast, #paypal-button-container { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 18px 0; }
  a { color: #000; text-decoration: none; }
  .product-card, .feature, .compare table { box-shadow: none; border: 1px solid #ccc; }
}
