/* ============================
   THE WIDGET STUDIO — style.css
   Palette: Beige / Warm White / Soft Brown
   Fonts: Cormorant Garamond + Jost
   ============================ */

:root {
  --cream:   #faf7f2;
  --beige:   #f0e9df;
  --sand:    #e2d8cc;
  --warm:    #c4b49a;
  --brown:   #8b6f52;
  --dark:    #3d2b1f;
  --text:    #4a3728;
  --muted:   #9a8070;
  --white:   #fff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', 'Helvetica Neue', sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 2px 18px rgba(61,43,31,0.07);
  --shadow-lg: 0 8px 40px rgba(61,43,31,0.11);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

a { color: inherit; text-decoration: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 300; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 62px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brown);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 99px;
  transition: all 0.22s;
  font-weight: 400;
  cursor: pointer;
}

.btn-primary {
  background: var(--brown);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--dark);
}

.btn-ghost {
  border: 1.5px solid var(--warm);
  color: var(--brown);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--sand);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.72rem;
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 300;
  color: var(--sand);
  opacity: 0.45;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  letter-spacing: -0.03em;
  user-select: none;
}

.hero-content {
  max-width: 540px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Widget Preview Card */
.hero-visual {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.widget-card-preview {
  width: 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--sand);
}

.wcp-bar {
  height: 8px;
  width: 60%;
  background: var(--sand);
  border-radius: 99px;
}

.wcp-row {
  display: flex;
  gap: 10px;
}

.wcp-block {
  flex: 1;
  height: 60px;
  background: var(--beige);
  border-radius: var(--radius);
}
.wcp-block.tall { height: 130px; }
.wcp-block.short { height: 36px; }

.wcp-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== MARQUEE ===== */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  background: var(--beige);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee-track .dot { color: var(--warm); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 40px;
}

/* ===== CATEGORIES ===== */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cat-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--beige);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: var(--radius-lg);
}

.cat-card:hover::after { opacity: 1; }
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.cat-card > * { position: relative; z-index: 1; }

.cat-card.featured {
  background: var(--beige);
}

.cat-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--warm);
}

.cat-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 10px;
}

.cat-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.cat-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 400;
}

/* ===== PRODUCT GRID ===== */
.featured-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0;
}

.see-all {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--brown);
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.product-grid.large {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-thumb {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb.tall-thumb {
  height: 200px;
  align-items: flex-start;
}

.thumb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 8px;
}

/* Demo widgets inside thumbs */
.clock-demo .td-time {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--dark);
}
.clock-demo .td-date {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.habit-demo .hd-row {
  display: flex;
  gap: 5px;
}
.hd-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--warm);
  background: transparent;
}
.hd-dot.done {
  background: var(--brown);
  border-color: var(--brown);
}
.hd-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-demo .qd-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--dark);
  text-align: center;
  line-height: 1.4;
  padding: 0 16px;
}

.product-info {
  padding: 20px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 400;
}
.badge.free {
  background: var(--beige);
  color: var(--brown);
  border: 1px solid var(--warm);
}
.badge.paid {
  background: var(--brown);
  color: var(--cream);
}

.badge-cat {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.product-info h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 5px;
}

.product-info p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--dark);
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  background: var(--beige);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

.about-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.as-text h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.15;
}

.as-text p {
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 28px;
}

.as-deco {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.deco-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--warm);
  opacity: 0.5;
}

.deco-dot {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--warm);
  opacity: 0.35;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--sand);
}

.page-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-sub {
  color: var(--muted);
  max-width: 520px;
  font-size: 0.95rem;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  padding: 20px 0;
  border-bottom: 1px solid var(--sand);
  background: var(--cream);
  position: sticky;
  top: 62px;
  z-index: 50;
}

.filter-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1.5px solid var(--sand);
  border-radius: 99px;
  padding: 7px 18px;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--warm);
  color: var(--brown);
}

.filter-btn.active {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
}

/* ===== ABOUT PAGE ===== */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.portrait-frame {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  margin-bottom: 20px;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  min-height: 280px;
}

.portrait-initials {
  font-size: 3rem;
  color: var(--warm);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--warm);
  color: var(--brown);
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 16px;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
}

.about-values {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.vi-icon {
  font-size: 1.2rem;
  color: var(--warm);
  margin-top: 2px;
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  color: var(--dark);
  font-weight: 400;
  margin-bottom: 2px;
}

.value-item p {
  font-size: 0.85rem;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--dark);
  padding: 80px 0;
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 14px;
}

.cta-inner p {
  color: var(--warm);
  margin-bottom: 30px;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: var(--cream);
  color: var(--dark);
}
.cta-section .btn-primary:hover {
  background: var(--beige);
}
.cta-section .btn-ghost {
  border-color: var(--warm);
  color: var(--warm);
}
.cta-section .btn-ghost:hover {
  background: rgba(196,180,154,0.15);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--beige);
  border-top: 1px solid var(--sand);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--dark);
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--brown); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--warm);
  letter-spacing: 0.05em;
}

/* ===== SHOP SECTION ===== */
.shop-section {
  padding-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 60px 24px;
    min-height: auto;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-bg-text { display: none; }
  .hero-visual { width: 100%; display: flex; justify-content: center; }
  .widget-card-preview { width: 100%; max-width: 320px; }

  .cat-grid { grid-template-columns: 1fr; }
  .product-grid,
  .product-grid.large { grid-template-columns: repeat(2, 1fr); }

  .about-strip-inner { flex-direction: column; gap: 20px; }
  .as-deco { display: none; }

  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .portrait-frame { max-width: 240px; }
}

@media (max-width: 600px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--sand); padding: 20px 24px; gap: 18px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .product-grid,
  .product-grid.large { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
}
