/*
Theme Name: Yankee Rebel Co.
Author: SEGG
Description: Premium heritage-inspired WordPress and WooCommerce theme for Yankee Rebel Co.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: yankee-rebel-co
*/

:root {
  --yrc-navy: #151a35;
  --yrc-red: #a11217;
  --yrc-warm: #f8f6f3;
  --yrc-paper: #fffdfa;
  --yrc-charcoal: #2e2e2e;
  --yrc-muted: rgba(46, 46, 46, 0.68);
  --yrc-line: rgba(26, 31, 61, 0.16);
  --yrc-serif: "Libre Baskerville", Georgia, serif;
  --yrc-sans: "Lato", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--yrc-warm);
  color: var(--yrc-charcoal);
  font-family: var(--yrc-sans);
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--yrc-red); }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--yrc-navy);
  font-family: var(--yrc-serif);
  line-height: 1.06;
  letter-spacing: 0;
}
p { margin: 0; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.yrc-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.yrc-topbar {
  background: var(--yrc-navy);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  padding: 9px 16px;
}
.yrc-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--yrc-line);
  backdrop-filter: blur(12px);
}
.admin-bar .yrc-site-header { top: 32px; }
.yrc-header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.yrc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--yrc-navy);
  font-family: var(--yrc-serif);
  font-size: 25px;
  font-weight: 700;
  line-height: .95;
  text-transform: uppercase;
}
.yrc-brand img { max-height: 70px; width: auto; }
.yrc-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--yrc-navy);
  color: white;
  font: 900 18px var(--yrc-sans);
}
.yrc-nav, .yrc-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.yrc-nav a {
  color: var(--yrc-navy);
  font-size: 14px;
  font-weight: 900;
}
.yrc-mobile-toggle { display: none; }
.yrc-hero {
  background: var(--yrc-paper);
  border-bottom: 1px solid var(--yrc-line);
}
.yrc-hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .72fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0;
}
.yrc-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--yrc-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.yrc-hero h1 {
  max-width: 820px;
  font-size: clamp(54px, 8vw, 110px);
}
.yrc-hero-copy {
  max-width: 650px;
  margin-top: 24px;
  color: var(--yrc-muted);
  font-size: 22px;
}
.yrc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.yrc-button,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.single_add_to_cart_button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  background: var(--yrc-navy);
  border: 2px solid var(--yrc-navy);
  border-radius: 0;
  color: white;
  font-family: var(--yrc-sans);
  font-weight: 900;
  text-decoration: none;
}
.yrc-button-red,
.yrc-button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover {
  background: var(--yrc-red);
  border-color: var(--yrc-red);
  color: white;
}
.yrc-button-outline {
  background: transparent;
  color: var(--yrc-navy);
}
.yrc-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin-top: 34px;
}
.yrc-proof div {
  padding: 15px;
  background: var(--yrc-warm);
  border: 1px solid var(--yrc-line);
  color: var(--yrc-navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.yrc-visual-card {
  position: relative;
  padding: 14px;
  background: var(--yrc-navy);
  box-shadow: 24px 24px 0 var(--yrc-red);
}
.yrc-visual-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.16);
}
.yrc-visual-label {
  position: absolute;
  right: 28px;
  bottom: 28px;
  max-width: 230px;
  padding: 18px;
  background: rgba(255,253,250,.96);
  color: var(--yrc-navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.yrc-section { padding: 88px 0; }
.yrc-white { background: white; }
.yrc-section-head {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 36px;
}
.yrc-section-head h2 { font-size: clamp(36px, 5vw, 64px); }
.yrc-section-head p { color: var(--yrc-muted); font-size: 19px; }
.yrc-collection-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
}
.yrc-collection {
  min-height: 172px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: var(--yrc-navy);
  color: white;
  border-top: 5px solid var(--yrc-red);
  font-family: var(--yrc-serif);
  font-size: 23px;
  font-weight: 700;
}
.yrc-grid-3, .yrc-products { display: grid; gap: 22px; }
.yrc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yrc-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yrc-feature {
  padding: 30px;
  background: var(--yrc-paper);
  border: 1px solid var(--yrc-line);
}
.yrc-feature h3 { font-size: 25px; margin-bottom: 12px; }
.yrc-feature p { color: var(--yrc-muted); }
.yrc-newsletter {
  background: var(--yrc-navy);
  color: white;
}
.yrc-newsletter .yrc-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 40px;
  align-items: center;
}
.yrc-newsletter h2 { color: white; font-size: clamp(34px, 5vw, 60px); }
.yrc-newsletter p { color: rgba(255,255,255,.78); font-size: 19px; margin-top: 12px; }
.yrc-newsletter-form { display: flex; gap: 10px; }
.yrc-newsletter-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  font: inherit;
}
.yrc-site-footer {
  background: #10142a;
  color: rgba(255,255,255,.75);
  padding: 34px 0;
}
.yrc-site-footer strong { color: white; }
.yrc-page-hero { padding: 78px 0 46px; background: white; }
.yrc-page-hero h1 { font-size: clamp(42px, 6vw, 76px); }
.yrc-page-content { padding: 44px 0 88px; background: white; }
.yrc-editor { max-width: 860px; }
.yrc-editor p { color: var(--yrc-muted); font-size: 19px; margin-bottom: 18px; }
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 0 18px;
  background: var(--yrc-paper);
  border: 1px solid var(--yrc-line);
}
.woocommerce ul.products li.product a img {
  width: 100%;
  margin: 0 0 16px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.woocommerce-loop-product__title {
  padding: 0 16px;
  font-family: var(--yrc-serif);
  font-size: 19px;
}
.woocommerce ul.products li.product .price {
  padding: 0 16px;
  color: var(--yrc-red);
  font-weight: 900;
}
.woocommerce ul.products li.product .button { margin: 12px 16px 0; }

@media (max-width: 980px) {
  .admin-bar .yrc-site-header { top: 0; }
  .yrc-nav { display: none; }
  .yrc-mobile-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--yrc-navy);
    border: 0;
    color: white;
    font-weight: 900;
  }
  .yrc-nav.is-open {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: block;
    padding: 16px;
    background: white;
    border: 1px solid var(--yrc-line);
  }
  .yrc-nav.is-open ul { display: block; }
  .yrc-nav.is-open a { display: block; padding: 10px 0; }
  .yrc-hero-grid, .yrc-section-head, .yrc-newsletter .yrc-container { grid-template-columns: 1fr; }
  .yrc-products, .yrc-grid-3, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yrc-collection-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .yrc-container { width: min(100% - 28px, 1180px); }
  .yrc-hero-grid { min-height: 0; padding: 54px 0; }
  .yrc-hero h1 { font-size: 48px; }
  .yrc-hero-copy { font-size: 18px; }
  .yrc-proof, .yrc-products, .yrc-grid-3, .yrc-collection-strip, .woocommerce ul.products { grid-template-columns: 1fr; }
  .yrc-visual-card { box-shadow: 12px 12px 0 var(--yrc-red); }
  .yrc-actions, .yrc-newsletter-form { flex-direction: column; }
  .yrc-button, .button { width: 100%; }
  .yrc-section { padding: 64px 0; }
}
