/*
 Theme Name:   OptimumTents Shop
 Theme URI:    https://optimumtents.shop
 Description:  Custom child theme for OptimumTents — kelty.com inspired outdoor tent review site
 Author:       Vinny (OpenClaw)
 Author URI:   https://openclaw.ai
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  optimumtents-shop
*/

/* === Design Tokens === */
:root {
  --forest: #1a3c2a;
  --forest-dark: #0f2619;
  --sage: #4a7c59;
  --cream: #faf8f4;
  --cream-dark: #f0ede6;
  --orange: #d4622a;
  --orange-light: #e8854a;
  --rust: #8b3a1d;
  --charcoal: #2d2d2d;
  --text: #3d3d3d;
  --muted: #6b6b6b;
  --white: #ffffff;
  --border: #e0dbd3;
  --shadow: rgba(0,0,0,0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
  --radius: 6px;
  --radius-lg: 12px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.2;
}

/* === Navigation === */
.site-header {
  background: var(--forest);
  padding: 0 2rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.main-navigation a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  padding: 1rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.main-navigation a:hover {
  border-bottom-color: var(--orange);
  color: var(--white);
}

.site-logo a {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
}

/* === Hero === */
.hero {
  background: var(--forest-dark);
  color: var(--cream);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(74,124,89,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(250,248,244,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250,248,244,0.4);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--cream-dark);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--forest);
  margin: 0 0 0.5rem;
}

.card-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--orange);
  font-weight: 600;
}

.card-score {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* === Tent Grid === */
.tents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Specs Table === */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specs-table th {
  background: var(--forest);
  color: var(--cream);
  padding: 0.6rem 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 500;
}

.specs-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.specs-table tr:nth-child(even) td {
  background: var(--cream);
}

/* === Pros/Cons === */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pros-list, .cons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-list li, .cons-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.pros-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: bold;
}

.cons-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--rust);
  font-weight: bold;
}

/* === Footer === */
.site-footer {
  background: var(--forest-dark);
  color: rgba(250,248,244,0.7);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-grid h4 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-grid a {
  color: rgba(250,248,244,0.7);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--orange);
}

.fcopy {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(250,248,244,0.1);
  font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .tents-grid { grid-template-columns: 1fr; padding: 1rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem; }
}
