/*
Theme Name: ItsDream
Theme URI: https://itsdreamjewelry.com/
Author: ItsDream Jewelry
Description: A calm, editorial WooCommerce storefront for configurable fine jewelry.
Version: 0.1.0
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: itsdream
*/

:root {
  --ink: #1f1b19;
  --muted: #746c67;
  --paper: #fffdfb;
  --soft: #f4efe9;
  --line: #ddd4cc;
  --accent: #765541;
  --accent-dark: #4f372a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1380px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
img { height: auto; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }

.site-announcement { background: var(--ink); color: #fff; font-size: 0.74rem; letter-spacing: 0.12em; padding: 0.6rem 1rem; text-align: center; text-transform: uppercase; }
.site-header { background: rgba(255,253,251,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { align-items: center; display: grid; gap: 1.5rem; grid-template-columns: auto 1fr auto; margin: auto; min-height: 76px; width: var(--page); }
.site-branding { font-family: var(--serif); font-size: 1.75rem; letter-spacing: 0.03em; line-height: 1; text-decoration: none; }
.site-branding span { color: var(--accent); font-style: italic; }
.primary-menu { display: flex; gap: clamp(1rem, 2.3vw, 2.2rem); justify-content: center; list-style: none; margin: 0; padding: 0; }
.primary-menu a { font-size: .79rem; font-weight: 650; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.header-tools { align-items: center; display: flex; gap: .9rem; }
.header-tools a { align-items: center; display: inline-flex; font-size: .76rem; gap: .35rem; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.mobile-menu-button { background: transparent; border: 0; display: none; padding: .5rem; }

.site-main { min-height: 60vh; }
.container { margin-inline: auto; width: var(--page); }
.page-shell { margin: 3rem auto 5rem; width: min(980px, calc(100vw - 40px)); }
.entry-title, .page-title { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 1.5rem; }

.hero { background: linear-gradient(125deg, #f4ebe3 0%, #e5d4c5 54%, #c6aa92 100%); min-height: min(76vh, 780px); overflow: hidden; position: relative; }
.hero::before { background: radial-gradient(circle at 72% 46%, rgba(255,255,255,.88) 0 4%, rgba(255,255,255,.34) 4.3% 12%, transparent 12.3%), radial-gradient(ellipse at 76% 54%, rgba(92,63,44,.18) 0 16%, transparent 16.5%); border: 1px solid rgba(255,255,255,.5); content: ""; inset: 6%; position: absolute; transform: rotate(-2deg); }
.hero::after { background: linear-gradient(90deg, rgba(248,240,232,.94) 0%, rgba(248,240,232,.62) 42%, rgba(248,240,232,0) 70%); content: ""; inset: 0; position: absolute; }
.hero__inner { align-items: center; display: flex; margin: auto; min-height: inherit; position: relative; width: var(--page); z-index: 1; }
.hero__content { max-width: 610px; padding: 4rem 0; }
.eyebrow { color: var(--accent-dark); font-size: .75rem; font-weight: 700; letter-spacing: .15em; margin: 0 0 1.1rem; text-transform: uppercase; }
.hero h1 { font-family: var(--serif); font-size: clamp(3.2rem, 6.6vw, 6.7rem); font-weight: 400; letter-spacing: -.04em; line-height: .94; margin: 0; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero__copy { color: #4e4641; font-size: 1.05rem; margin: 1.5rem 0 2rem; max-width: 520px; }
.button, .wp-element-button, button.button, a.button, input.button { background: var(--ink) !important; border: 1px solid var(--ink) !important; border-radius: 0 !important; color: #fff !important; cursor: pointer; display: inline-block; font-size: .77rem !important; font-weight: 700 !important; letter-spacing: .1em; padding: .95rem 1.4rem !important; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.button:hover, .wp-element-button:hover, button.button:hover, a.button:hover { background: transparent !important; color: var(--ink) !important; }
.button--ghost { background: transparent !important; color: var(--ink) !important; margin-left: .6rem; }

.trust-strip { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.trust-strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); margin: auto; width: var(--page); }
.trust-item { padding: 1.35rem; text-align: center; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.trust-item span { color: var(--muted); font-size: .77rem; }

.home-section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section-head { align-items: end; display: flex; justify-content: space-between; margin: 0 auto 2.4rem; width: var(--page); }
.section-head h2 { font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.025em; line-height: 1; margin: 0; }
.section-head p { color: var(--muted); margin: .8rem 0 0; max-width: 560px; }
.section-head a { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.collection-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); margin: auto; width: var(--page); }
.collection-card { align-items: end; aspect-ratio: 4/5; background: linear-gradient(145deg, #eee5dc, #d8c8ba); display: flex; overflow: hidden; padding: 2rem; position: relative; text-decoration: none; }
.collection-card:nth-child(2) { background: linear-gradient(145deg, #eee9e4, #c7c2bd); }
.collection-card:nth-child(3) { background: linear-gradient(145deg, #e9e0d8, #bda994); }
.collection-card::before { border: 1px solid rgba(255,255,255,.7); content: ""; inset: 14px; position: absolute; }
.collection-card__content { position: relative; z-index: 1; }
.collection-card span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.collection-card h3 { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3.2rem); font-weight: 400; line-height: 1; margin: .45rem 0 0; }

.story-section { background: var(--soft); }
.story-grid { align-items: center; display: grid; gap: clamp(2rem, 7vw, 7rem); grid-template-columns: 1.05fr .95fr; margin: auto; width: var(--page); }
.story-visual { aspect-ratio: 5/4; background: radial-gradient(circle at 45% 45%, #fff 0 8%, transparent 9%), linear-gradient(145deg, #d4c3b6, #f3ece5); position: relative; }
.story-visual::after { border: 1px solid rgba(74,52,39,.3); content: ""; inset: 9%; position: absolute; }
.story-copy h2 { font-family: var(--serif); font-size: clamp(2.5rem, 4.8vw, 5rem); font-weight: 400; line-height: 1; margin: 0 0 1.25rem; }
.story-copy p { color: #504843; max-width: 600px; }

.woocommerce .products, .woocommerce ul.products { display: grid; gap: 2rem 1rem; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 0 auto !important; width: var(--page); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none !important; margin: 0 !important; width: auto !important; }
.woocommerce ul.products li.product a img { aspect-ratio: 1; background: var(--soft); margin: 0 0 1rem !important; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; padding: 0 !important; }
.woocommerce ul.products li.product .price { color: var(--muted) !important; font-size: .92rem !important; }
.woocommerce ul.products li.product .button { margin-top: .8rem !important; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: .76rem; margin: 1.4rem auto 2rem; width: var(--page); }
.woocommerce div.product { margin: 0 auto 5rem; width: var(--page); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { margin-bottom: 4rem; }
.woocommerce div.product .product_title { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 400; line-height: 1.05; }
.woocommerce div.product p.price { color: var(--ink); font-family: var(--serif); font-size: 1.55rem; }
.woocommerce div.product form.cart { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--soft); border-top-color: var(--accent); }

.site-footer { background: #201c1a; color: #eee8e3; padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1.3fr repeat(3, 1fr); margin: auto; width: var(--page); }
.footer-brand { font-family: var(--serif); font-size: 2rem; margin: 0 0 1rem; }
.footer-grid h2 { font-size: .76rem; letter-spacing: .12em; margin: 0 0 1rem; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: .45rem 0; }
.footer-grid a { color: #cfc5be; font-size: .88rem; text-decoration: none; }
.footer-note { border-top: 1px solid #433b36; color: #a99e96; font-size: .75rem; margin: 3rem auto 0; padding-top: 1.4rem; width: var(--page); }

@media (max-width: 900px) {
  :root { --page: min(100% - 32px, 760px); }
  .site-header__inner { grid-template-columns: auto auto; justify-content: space-between; }
  .mobile-menu-button { display: block; }
  .site-nav { display: none; grid-column: 1/-1; padding-bottom: 1rem; }
  .site-nav.is-open { display: block; }
  .primary-menu { align-items: flex-start; flex-direction: column; }
  .header-tools { display: none; }
  .hero { min-height: 680px; }
  .hero::after { background: linear-gradient(90deg, rgba(248,240,232,.97), rgba(248,240,232,.55) 62%, rgba(248,240,232,.1)); }
  .hero__content { max-width: 520px; }
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { aspect-ratio: 16/9; }
  .story-grid { grid-template-columns: 1fr; }
  .woocommerce .products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  :root { --page: calc(100% - 24px); }
  .site-header__inner { min-height: 64px; }
  .site-branding { font-size: 1.45rem; }
  .hero { min-height: 640px; }
  .hero::after { background: linear-gradient(180deg, rgba(248,240,232,.96) 0%, rgba(248,240,232,.82) 52%, rgba(248,240,232,.1) 100%); }
  .hero__inner { align-items: flex-start; }
  .hero__content { padding-top: 4.5rem; }
  .button--ghost { margin-left: 0; margin-top: .65rem; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .trust-strip__inner { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .collection-card { aspect-ratio: 4/5; }
  .woocommerce .products, .woocommerce ul.products { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
