/* css/styles.css */

/* 1. Dark mode palette */
:root {
  --bg: #1e1e1e;           /* Rich charcoal */
  --card-bg: #2a2a2a;      /* Slightly lighter card background */
  --accent: #C1440E;       /* Terracotta pop */
  --highlight: #FFD700;    /* Gold accent */
  --text: #e0e0e0;         /* Soft light text */
  --muted: #a0a0a0;        /* Subtle secondary text */
}

/* 2. Global reset & body */
* { margin:0; padding:0; box-sizing:border-box }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* 3. Header */
.site-header {
  background: var(--card-bg);
  border-bottom: 3px solid var(--accent);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-size: 1.6rem;
  color: var(--highlight);
  text-decoration: none;
}
.main-nav a {
  margin-left: 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.main-nav a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .3s;
  position: absolute;
  bottom: -4px; left:0;
}
.main-nav a:hover::after { width:100% }

/* 4. Hero */
.hero {
  background: url('../images/hero-bg-dark.jpg') center/cover no-repeat;
  text-align: center;
  padding: 5rem 0;
  position: relative;
}
.hero::before {
  content:""; position:absolute;
  inset:0; background:rgba(30,30,30,0.6);
}
.hero .container { position:relative; z-index:1 }
.hero h1 {
  font-size: 2.75rem;
  margin-bottom: .75rem;
  color: var(--highlight);
}
.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--muted);
}
.hero-ctas .btn { margin:0 .5rem }

/* 5. Buttons */
.btn {
  padding:.75rem 1.5rem;
  border:none;
  border-radius: 4px;
  cursor:pointer;
  font-weight:600;
  transition: transform .2s, background .3s;
  display:inline-block;
  text-decoration:none;
}
.btn-primary {
  background: var(--accent);
  color: var(--card-bg);
}
.btn-primary:hover {
  background: #a3370b;
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--highlight);
  color: var(--card-bg);
}
.btn-secondary:hover {
  background: #e5c200;
  transform: translateY(-2px);
}

/* 6. Card grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2rem;
  padding: 3rem 0;
}
.card {
  background: var(--card-bg);
  padding: 1.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  transition: transform .2s;
}
.card:hover {
  transform: translateY(-5px);
}
.card h2 {
  color: var(--accent);
  margin-bottom: .5rem;
}

/* 7. Why Us */
.why-us {
  background: var(--card-bg);
  padding: 2rem;
  border-left: 6px solid var(--accent);
  margin-bottom: 2rem;
  border-radius: 4px;
}
.why-us h2 { margin-bottom: 1rem; color: var(--highlight) }
.why-us ul { list-style: none }
.why-us li {
  margin-bottom: .75rem;
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
}
.why-us li::before {
  content: "✔";
  position: absolute;
  left:0; top:0;
  color: var(--accent);
}

/* 8. Newsletter */
.newsletter {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}
.newsletter h2 {
  font-size: 1.75rem;
  color: var(--highlight);
  margin-bottom: .5rem;
}
.subscribe-form {
  display: inline-flex;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.subscribe-form input {
  padding:.75rem;
  border:none;
  width: 250px;
  background: var(--card-bg);
  color: var(--text);
}
.subscribe-form button {
  border:none;
  background: var(--accent);
  color: var(--card-bg);
  padding:.75rem 1rem;
}

/* 9. Footer */
.site-footer {
  background: var(--card-bg);
  color: var(--muted);
  padding: 1.5rem 0;
  font-size: .9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  margin-left:1rem;
  color: var(--text);
  text-decoration:none;
}
.footer-nav a:hover {
  color: var(--highlight);
}
/* 1. Make the cards wrap in a neat grid */
.prints-grid .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* 2. Use a responsive aspect‑ratio box for thumbnails */
.prints-grid .thumb-container {
  width: 100%;
  padding-top: 75%;           /* 4:3 aspect ratio (H ÷ W = .75) */
  position: relative;         
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
}

/* 3. Absolutely position the image to fill the box & crop */
.prints-grid .thumb-container .thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Thumbnails for smokes.php */
.smokes-grid .thumb-container {
  width: 100%;
  height: 180px;               /* fixed thumbnail height */
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.smokes-grid .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* crop & scale to fill container */
  display: block;
}
/* Universal thumbnail styling for any .card */
.card .thumb-container {
  width: 100%;
  aspect-ratio: 4 / 3;         /* 4:3 box */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  position: relative;
  margin-bottom: 1rem;
}

.card .thumb-container img.thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
