/*
Theme Name: Something New Creations
Theme URI: https://example.com/something-new-creations
Author: Robb Hand & ChatGPT
Description: A warm, high-contrast shop/blog theme for Something New Creations, with product category pages and social links.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: something-new-creations
Tags: custom-logo, custom-menu, featured-images, blog, e-commerce, accessibility-ready
*/

:root {
  --snc-brown: #3b230d;
  --snc-brown-soft: #6b4824;
  --snc-gold: #d8941e;
  --snc-gold-soft: #f7d58c;
  --snc-sage: #7d8653;
  --snc-sage-dark: #59613a;
  --snc-cream: #fff8ea;
  --snc-paper: #fffdf8;
  --snc-ink: #261a0e;
  --snc-muted: #645b4e;
  --snc-border: #e5d7bd;
  --snc-shadow: 0 16px 38px rgba(59, 35, 13, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--snc-ink);
  background: linear-gradient(180deg, #fffdf8 0%, #fff8ea 55%, #f4eddc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: #6a3b08; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover, a:focus { color: #9a5d06; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}

.site-header {
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--snc-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(1400px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--snc-brown); text-decoration: none; min-width: 225px; flex-shrink: 0; }
.brand-logo { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(59,35,13,.12)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.15rem, 1.5vw, 1.55rem); letter-spacing: .04em; font-weight: 800; }
.brand-tagline { color: var(--snc-sage-dark); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

.nav-wrap { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.menu-toggle { display: none; border: 2px solid var(--snc-brown); background: var(--snc-paper); color: var(--snc-brown); padding: 8px 12px; border-radius: 999px; font-weight: 800; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; }
.primary-menu a {
  display: block;
  padding: 8px 9px;
  border-radius: 999px;
  color: var(--snc-brown);
  text-decoration: none;
  font-weight: 800;
  font-size: .84rem;
}
.primary-menu a:hover, .primary-menu a:focus, .primary-menu .current-menu-item > a {
  background: var(--snc-brown);
  color: #fff;
}
.social-links { display: flex; gap: 8px; align-items: center; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px; padding: 7px 9px;
  border-radius: 999px; color: #fff; background: var(--snc-sage-dark); text-decoration: none; font-weight: 900;
}
.social-link:hover, .social-link:focus { color: #fff; background: var(--snc-gold); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(216,148,30,.24), transparent 36%),
    linear-gradient(135deg, rgba(125,134,83,.16), rgba(255,248,234,.8));
  border-bottom: 1px solid var(--snc-border);
}
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 44px;
  padding: clamp(46px, 6vw, 86px) 0;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--snc-sage-dark); font-weight: 900; letter-spacing: .16em; text-transform: uppercase; font-size: .84rem; margin-bottom: 12px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; margin: 0 0 18px; color: var(--snc-brown); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 620px; color: var(--snc-muted); margin: 0 0 28px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.button, .wp-block-button__link, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 13px 21px;
  background: var(--snc-brown); color: #fff; text-decoration: none; font-weight: 900;
  box-shadow: 0 10px 22px rgba(59,35,13,.18); cursor: pointer;
}
.button:hover, .button:focus, .wp-block-button__link:hover, .wp-block-button__link:focus, input[type="submit"]:hover { background: #5b3512; color: #fff; }
.button.secondary { background: var(--snc-sage-dark); }
.button.secondary:hover { background: var(--snc-sage); }
.hero-card {
  background: rgba(255,253,248,.8);
  border: 1px solid rgba(229,215,189,.85);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--snc-shadow);
  text-align: center;
}
.hero-card img { max-height: 410px; object-fit: contain; }

.section, .content-area { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0; }
.section-title { text-align: center; margin: 0 0 30px; }
.section-title h2 { font-family: Georgia, "Times New Roman", serif; color: var(--snc-brown); font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; }
.section-title p { color: var(--snc-muted); margin: 8px auto 0; max-width: 720px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card {
  background: var(--snc-paper);
  border: 1px solid var(--snc-border);
  border-radius: 24px;
  padding: 24px;
  min-height: 240px;
  color: var(--snc-ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(59,35,13,.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.category-card:hover, .category-card:focus { transform: translateY(-3px); border-color: var(--snc-gold); box-shadow: var(--snc-shadow); color: var(--snc-ink); }
.category-icon { width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, var(--snc-gold-soft), #fff6df); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 18px; }
.category-card h3 { font-family: Georgia, "Times New Roman", serif; color: var(--snc-brown); font-size: 1.45rem; margin: 0 0 8px; }
.category-card p { margin: 0; color: var(--snc-muted); font-size: .98rem; }

.notice-band { background: var(--snc-brown); color: #fff; }
.notice-band .section { padding: 34px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.notice-band h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.4rem); }
.notice-band p { margin: 4px 0 0; color: #f5e6cb; }
.notice-band .button { background: var(--snc-gold); color: var(--snc-brown); box-shadow: none; }

.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.no-sidebar { grid-template-columns: 1fr; }
.main-content, .sidebar-card, article.post-card, .page-card {
  background: rgba(255,253,248,.9);
  border: 1px solid var(--snc-border);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(59,35,13,.07);
}
.main-content, .page-card { padding: clamp(24px, 4vw, 42px); }
.page-title, .entry-title { font-family: Georgia, "Times New Roman", serif; color: var(--snc-brown); font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.05; margin: 0 0 18px; }
.entry-title a { color: var(--snc-brown); text-decoration: none; }
.entry-meta { color: var(--snc-muted); font-size: .95rem; margin-bottom: 18px; }
.post-card { padding: 28px; margin-bottom: 22px; }
.post-thumbnail { border-radius: 18px; overflow: hidden; display: block; margin-bottom: 18px; }
.sidebar { display: grid; gap: 18px; }
.sidebar-card { padding: 24px; }
.sidebar-card h2, .sidebar-card h3 { font-family: Georgia, "Times New Roman", serif; color: var(--snc-brown); margin-top: 0; }
.widget ul { padding-left: 1.2em; }

.site-footer { background: #2b1909; color: #f7ead2; margin-top: 36px; }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.footer-logo { width: 92px; height: 92px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; margin-right: 14px; }
.footer-brand { display: flex; align-items: center; }
.footer-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; display: block; }
.footer-brand span { color: #d9c7a7; }
.footer-links { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.footer-links a { color: #fff; }

input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--snc-border); background: #fff; color: var(--snc-ink); font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(216,148,30,.28); border-color: var(--snc-gold); }


.snc-contact-form-wrap {
  margin-top: 30px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, rgba(247,213,140,.38), rgba(125,134,83,.12));
  border: 1px solid var(--snc-border);
  border-radius: 24px;
}
.snc-contact-form-wrap h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--snc-brown);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
.snc-contact-form label { display: block; font-weight: 900; color: var(--snc-brown); margin-bottom: 6px; }
.snc-form-success, .snc-form-errors {
  border-radius: 16px;
  padding: 14px 16px;
  margin: 18px 0;
  font-weight: 800;
}
.snc-form-success { background: rgba(125,134,83,.18); border: 2px solid var(--snc-sage); color: var(--snc-sage-dark); }
.snc-form-errors { background: #fff2ee; border: 2px solid #a84524; color: #6b1f0e; }
.snc-form-errors p { margin: 0 0 6px; }
.snc-form-errors p:last-child { margin-bottom: 0; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .primary-menu { flex-wrap: wrap; }
  .nav-wrap { width: 100%; justify-content: space-between; margin-left: 0; }
  .hero-inner, .content-area, .footer-inner { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .brand-logo { width: 62px; height: 62px; }
  .brand { min-width: 0; }
  .brand-tagline { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .primary-menu.is-open { display: flex; }
  .primary-menu a { border-radius: 14px; background: rgba(125,134,83,.1); }
  .category-grid { grid-template-columns: 1fr; }
  .notice-band .section { align-items: flex-start; flex-direction: column; }
}
