/*
Theme Name: Cozy Corners
Theme URI: https://kozycornersstore.com/
Author: Cozy Corners
Description: A custom WooCommerce-ready theme for Cozy Corners gift store.
Version: 1.0.0
Text Domain: cozy-corners
*/

:root {
  --cream: #f4eee5;
  --paper: #fffaf2;
  --ink: #151c25;
  --navy: #172534;
  --wine: #782e34;
  --rust: #a94f31;
  --brass: #c89c56;
  --brass-light: #e0bd82;
  --muted: #5d5a56;
  --line: #cfc1ae;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}
body.admin-bar .site-header.is-home { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.page-shell { width: min(calc(100% - 3rem), 1240px); margin-inline: auto; }

.site-header {
  z-index: 20;
  width: 100%;
  color: var(--paper);
}
.site-header.is-home { position: absolute; top: 0; left: 0; }
.site-header.is-inner { position: relative; background: #111b27; }
.header-inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 250, 242, 0.24);
}
.brand { display: inline-flex; align-items: center; gap: 0.8rem; }
.brand-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid var(--brass);
  color: #d5ad6c;
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}
.brand-name { font-family: var(--serif); font-size: 1.42rem; }
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.3rem);
  margin-left: auto;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}
.main-nav a, .main-nav .menu-item a {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
}
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--brass);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.cart-link {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 250, 242, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 48rem;
  overflow: hidden;
  background: #111b27;
  color: var(--paper);
}
.hero-image, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image { object-fit: cover; object-position: 55% center; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 19, 29, 0.98) 0%, rgba(11, 19, 29, 0.86) 32%, rgba(11, 19, 29, 0.24) 66%, rgba(11, 19, 29, 0.14) 100%),
    linear-gradient(180deg, rgba(8, 14, 21, 0.62) 0%, transparent 28%, rgba(8, 14, 21, 0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 43rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 9rem 0 5rem;
}
.eyebrow {
  margin: 0 0 1.25rem;
  color: #d5ad6c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow-dark { color: var(--wine); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 {
  max-width: 47rem;
  margin-bottom: 1.55rem;
  font-size: clamp(3.5rem, 7.2vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.hero-copy {
  max-width: 36rem;
  margin-bottom: 2.2rem;
  color: rgba(255, 250, 242, 0.82);
  font-size: 1.14rem;
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 1.6rem; }
.button, button, input[type="submit"], .woocommerce a.button, .woocommerce button.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-brass { background: var(--brass); color: #14202c; }
.button-brass:hover, .button-brass:focus-visible { background: var(--brass-light); }
.text-link {
  border-bottom: 1px solid rgba(255, 250, 242, 0.55);
  padding-block: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 250, 242, 0.24);
  color: rgba(255, 250, 242, 0.68);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-note-line { width: 2.8rem; height: 1px; background: var(--brass); }

.promise-bar { background: var(--wine); color: var(--paper); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise-grid p {
  margin: 0;
  padding: 1.45rem 1.3rem;
  border-right: 1px solid rgba(255, 250, 242, 0.2);
  font-family: var(--serif);
}
.promise-grid p:first-child { padding-left: 0; }
.promise-grid p:last-child { border-right: 0; }
.promise-grid span {
  margin-right: 0.8rem;
  color: #d5ad6c;
  font-family: var(--sans);
  font-size: 0.68rem;
}

.collection-section { padding-block: clamp(5rem, 9vw, 9rem); }
.section-intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem 5rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-intro h2, .gift-box-copy h2, .story-copy h2, .closing-inner h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.section-intro > p:last-child {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}
.collection-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(20rem, auto));
  gap: 1rem;
}
.collection-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.7rem, 4vw, 3.2rem);
  transition: transform 200ms ease;
}
.collection-card:hover { transform: translateY(-4px); }
.collection-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  letter-spacing: -0.035em;
}
.collection-card p {
  max-width: 28rem;
  margin-bottom: 0;
  color: inherit;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.78;
}
.card-number { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; }
.collection-card-featured {
  grid-row: 1 / 3;
  min-height: 41rem;
  background: var(--wine);
  color: var(--paper);
}
.collection-card-light { background: #e8dccd; }
.collection-card-ink { background: var(--navy); color: var(--paper); }
.collection-card-rust { display: none; background: var(--rust); color: var(--paper); }

.gift-box-section { overflow: hidden; background: var(--navy); color: var(--paper); }
.gift-box-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(25rem, 1.1fr);
  gap: clamp(4rem, 9vw, 9rem);
  align-items: center;
  padding-block: clamp(5rem, 10vw, 9rem);
}
.gift-box-display {
  position: relative;
  aspect-ratio: 1 / 0.9;
  background: #9a4e42;
  box-shadow: -1.3rem 1.3rem 0 #0f1822, 0 2.2rem 5rem rgba(0, 0, 0, 0.25);
  transform: rotate(-3deg);
}
.ribbon { position: absolute; background: var(--brass); }
.ribbon-vertical {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3.2rem;
  transform: translateX(-50%);
}
.ribbon-horizontal {
  top: 50%;
  right: 0;
  left: 0;
  height: 3.2rem;
  transform: translateY(-50%);
}
.gift-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 12rem;
  height: 12rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--navy);
  text-align: center;
  transform: translate(-50%, -50%) rotate(3deg);
}
.gift-label span, .gift-label strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 0.95;
}
.gift-label small {
  max-width: 6rem;
  margin-top: 0.9rem;
  color: var(--wine);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gift-box-copy > p:not(.eyebrow) {
  margin: 1.8rem 0 2.1rem;
  color: rgba(255, 250, 242, 0.72);
  font-size: 1.03rem;
  line-height: 1.8;
}
.gift-box-copy ul { margin: 0 0 2.3rem; padding: 0; list-style: none; }
.gift-box-copy li {
  display: flex;
  gap: 1.2rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(255, 250, 242, 0.16);
}
.gift-box-copy li span { color: var(--brass); font-size: 0.72rem; font-weight: 700; }
.button-outline { border-color: rgba(255, 250, 242, 0.5); }
.button-outline:hover, .button-outline:focus-visible { background: var(--paper); color: var(--navy); }

.story-section {
  display: grid;
  grid-template-columns: 0.45fr 1.25fr 0.8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(5rem, 10vw, 9rem);
}
.story-kicker {
  color: var(--brass);
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 9rem);
  letter-spacing: -0.1em;
  line-height: 0.75;
}
.story-copy > p:last-child {
  max-width: 44rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}
.story-quote { padding: 1.5rem 0 0 2rem; border-left: 1px solid var(--brass); }
.story-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.35;
}
.quote-mark {
  display: block;
  height: 3.7rem;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 5.2rem;
  line-height: 1;
}
.closing-section { background: var(--wine); color: var(--paper); text-align: center; }
.closing-inner {
  display: flex;
  min-height: 34rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 5rem;
}
.closing-inner h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(3.7rem, 8vw, 7.8rem);
}
.closing-inner > p:not(.eyebrow) {
  margin-bottom: 2.1rem;
  color: rgba(255, 250, 242, 0.76);
  font-size: 1.05rem;
}
.site-footer { background: #111b27; color: var(--paper); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: 2rem;
}
.footer-inner p {
  margin: 0;
  color: rgba(255, 250, 242, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.footer-inner p:last-child { text-align: right; }

.content-shell, .shop-shell { min-height: 65vh; padding-block: clamp(4rem, 8vw, 7rem); }
.content-card {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--paper);
}
.content-card h1, .shop-shell h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1;
}
.content-card p { line-height: 1.8; }

.woocommerce .woocommerce-breadcrumb {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 0 1.5rem;
  background: var(--paper);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 1.2rem;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.woocommerce ul.products li.product .price {
  padding: 0 1.2rem;
  color: var(--wine);
}
.woocommerce ul.products li.product .button {
  margin-left: 1.2rem;
  background: var(--navy);
  color: var(--paper);
}
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--wine); }
.woocommerce button.button.alt, .woocommerce a.button.alt {
  background: var(--wine);
  color: var(--paper);
}
.woocommerce-message, .woocommerce-info {
  border-top-color: var(--brass);
  background: var(--paper);
}

@media (max-width: 900px) {
  .hero-image { object-position: 67% center; }
  .hero-shade {
    background: linear-gradient(90deg, rgba(11, 19, 29, 0.94) 0%, rgba(11, 19, 29, 0.7) 58%, rgba(11, 19, 29, 0.3) 100%);
  }
  .section-intro, .gift-box-grid, .story-section { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .collection-card-featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 27rem;
  }
  .collection-card-rust { display: flex; }
  .gift-box-display { width: min(86%, 32rem); margin-inline: auto; }
  .story-kicker { margin-bottom: -1rem; }
  .story-quote { max-width: 32rem; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body.admin-bar .site-header.is-home { top: 46px; }
  .page-shell { width: min(calc(100% - 2rem), 1240px); }
  .header-inner { min-height: 5.3rem; }
  .main-nav { display: none; }
  .cart-link { margin-left: auto; }
  .hero { min-height: 44rem; }
  .hero-content { min-height: 38rem; padding-top: 8rem; }
  h1 { font-size: clamp(3.35rem, 16vw, 5rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-note { align-items: flex-start; flex-direction: column; gap: 0.45rem; }
  .hero-note-line { display: none; }
  .promise-grid { grid-template-columns: 1fr; padding-block: 0.5rem; }
  .promise-grid p, .promise-grid p:first-child {
    padding: 0.8rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 242, 0.16);
  }
  .promise-grid p:last-child { border-bottom: 0; }
  .section-intro { gap: 1.3rem; }
  .collection-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .collection-card, .collection-card-featured { min-height: 20rem; }
  .collection-card-rust { display: flex; }
  .gift-box-grid { gap: 4rem; }
  .gift-label { width: 9rem; height: 9rem; }
  .gift-label span, .gift-label strong { font-size: 1.4rem; }
  .story-section { gap: 2.6rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner .brand { justify-content: center; }
  .footer-inner p:last-child { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
