/*
Theme Name: Cookies by Raizy
Theme URI: https://cookiesbyraizy.com
Author: Raizy
Description: Warm and elegant cookie portfolio theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: cookies-by-raizy
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;600&display=swap');

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

:root {
  --cream: #fdf6ee;
  --warm-tan: #e8d5b7;
  --rose-gold: #c9967a;
  --dark-brown: #4a2e1a;
  --mid-brown: #8b5e3c;
  --light-text: #7a6352;
  --white: #ffffff;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--dark-brown);
}

/* ── HEADER ── */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--warm-tan);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-branding a {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--dark-brown);
  text-decoration: none;
  letter-spacing: 0.02em;
}

#site-navigation ul {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  list-style: none;
}

#site-navigation ul li a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-brown);
  font-weight: 600;
  transition: color 0.2s;
}

#site-navigation ul li a:hover { color: var(--rose-gold); }

#site-navigation ul li.order-btn a {
  background: var(--rose-gold);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
}
#site-navigation ul li.order-btn a:hover { background: var(--mid-brown); }

/* ── HERO (front page) ── */
.hero-section {
  background: linear-gradient(135deg, #fdf0e2 0%, #f5e6d3 50%, #ede0ce 100%);
  text-align: center;
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--warm-tan);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--dark-brown);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-section h1 em {
  font-style: italic;
  color: var(--rose-gold);
}

.hero-section p {
  font-size: 1rem;
  color: var(--light-text);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero-btn {
  display: inline-block;
  background: var(--dark-brown);
  color: white;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.2s;
}
.hero-btn:hover { background: var(--rose-gold); }

/* ── CATEGORY FILTER ── */
.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--warm-tan);
}

.category-filter a {
  background: none;
  border: 1px solid var(--warm-tan);
  color: var(--mid-brown);
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.category-filter a:hover,
.category-filter a.current { background: var(--rose-gold); border-color: var(--rose-gold); color: white; }

/* ── GALLERY GRID ── */
.gallery-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.gallery-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--warm-tan);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ── POST CARD ── */
.cookie-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(74,46,26,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cookie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(74,46,26,0.13);
}

.cookie-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.cookie-card .card-body {
  padding: 0.9rem 1rem;
}

.cookie-card .card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cookie-card .card-title a {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--dark-brown);
  font-style: italic;
  text-decoration: none;
}
.cookie-card .card-title a:hover { color: var(--rose-gold); }

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--dark-brown);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.about-strip h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.about-strip h2 em { font-style: italic; color: var(--warm-tan); }

.about-strip p {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 2rem;
  color: #d4c4b0;
  font-weight: 300;
}

.about-strip a {
  display: inline-block;
  border: 1px solid var(--warm-tan);
  color: var(--warm-tan);
  text-decoration: none;
  padding: 0.75rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.2s;
}
.about-strip a:hover { background: var(--warm-tan); color: var(--dark-brown); }

/* ── SINGLE POST ── */
.single-cookie {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.single-cookie img { width: 100%; border-radius: 4px; margin-bottom: 1.5rem; }

.single-cookie h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.single-cookie .post-cats {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.single-cookie .post-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--light-text);
}

/* ── PAGE (About/Contact) ── */
.page-content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.page-content-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.page-content-wrap p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--light-text);
  font-weight: 300;
  margin-bottom: 1.2rem;
}

/* ── CONTACT FORM ── */
.wpcf7 input,
.wpcf7 textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--warm-tan);
  border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  background: white;
  color: var(--dark-brown);
  margin-bottom: 1rem;
}

.wpcf7 input[type="submit"],
.contact-form button {
  background: var(--rose-gold);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
  width: 100%;
}
.wpcf7 input[type="submit"]:hover,
.contact-form button:hover { background: var(--dark-brown); }

/* ── FOOTER ── */
#site-footer {
  background: #2e1a0e;
  color: #a08060;
  text-align: center;
  padding: 1.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
#site-footer span { color: var(--rose-gold); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  #site-navigation ul li:not(.order-btn) { display: none; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}
