/*
Theme Name: Punch Needle Theme
Theme URI: https://github.com/rongabby/punch-needle-designer
Author: Punch Needle Designer Team
Author URI: https://github.com/rongabby
Description: A modern, craft-focused WordPress theme for the Punch Needle Designer project.  Features warm colors inspired by yarn and fabric textures.
Version: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: punch-needle-theme
Tags: craft, embroidery, e-commerce, responsive, two-columns
*/

/* ========================================
   CSS Variables - Craft-Inspired Palette
   ======================================== */
:root {
  --primary-color: #8B5A2B;      /* Warm brown */
  --secondary-color:  #D4A574;    /* Light tan */
  --accent-color:  #C19A6B;       /* Camel */
  --background-color: #FAF6F1;   /* Cream */
  --text-color: #3D3D3D;         /* Dark gray */
  --white: #FFFFFF;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  
  /* Additional hero variables */
  --bg:  #FAF6F1;
  --muted: #5A5A5A;
  --card: #FFFFFF;
  --border: rgba(61,61,61,. 10);
  --shadow: 0 10px 30px rgba(61,61,61,. 08);
  --primary:  #8B5A2B;
  --primaryHover: #744A25;
}

/* ========================================
   Base Styles
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:  'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

p {
  margin-bottom: 1rem;
}

/* ========================================
   Layout
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
.site-header {
  background-color: var(--white);
  padding: 1. 5rem 0;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  font-weight: 500;
}

/* ========================================
   Hero Section (Updated Modern Design)
   ======================================== */
.hero {
  background: var(--bg);
  color: var(--text-color);
  padding: clamp(24px, 4vw, 56px) 16px;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

.hero__header {
  max-width: 820px;
}

.hero__title {
  font-size: clamp(28px, 3. 6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin:  0 0 12px 0;
  color:  var(--text-color);
}

.hero__subtitle {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px 0;
}

. hero__cta {
  display: grid;
  gap: 8px;
  align-items:  start;
  justify-items: start;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(139, 90, 43, 0.18);
  user-select: none;
  transition: background 0.3s ease;
}

.btn--primary {
  background:  var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primaryHover);
  color: #fff;
}

/* If button is "not ready", keep it visually disabled */
.btn[aria-disabled="true"] {
  opacity: . 75;
  cursor: not-allowed;
  pointer-events:  none;
}

.hero__note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding:  16px 16px 14px;
  box-shadow:  var(--shadow);
}

.feature__title {
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1.25;
  color: var(--text-color);
}

.feature__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

/* Legacy hero styles (for front-page. php) */
.hero.legacy-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.hero. legacy-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero.legacy-hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color:  var(--white);
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
  color: var(--primary-color);
}

/* ========================================
   Content
   ======================================== */
.site-content {
  padding: 2rem 0;
  min-height: 60vh;
}

.content-area {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.site-footer a {
  color: var(--secondary-color);
}

.site-footer a:hover {
  color: var(--white);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 780px) {
  .hero__features {
    grid-template-columns: 1fr;
  }
}


@media (min-width: 900px) {
  .hero {
    padding: 44px 0;
  }

  /* If the viewport height is short (typical laptop), tighten spacing */
  @media (max-height: 820px) {
    .hero { padding: 32px 0; }
    .hero__inner { gap: 18px; }
    .feature { padding: 14px 14px 12px; }
    .feature__text { font-size: 13.5px; }
  }
}

/* Optional: keep hero comfortably "above the fold" on desktop */
@media (min-width: 900px) {
  .hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
  }
}