/* GoodHome Living — main stylesheet */

:root {
  --cream: #faf7f2;
  --cream-dark: #f0e9df;
  --terracotta: #c1694f;
  --terracotta-dark: #a8543d;
  --green: #4b5a45;
  --ink: #2b2b28;
  --muted: #6f6a62;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(43, 43, 40, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; border-radius: var(--radius); }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.logo span { color: var(--terracotta); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  padding: 72px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  max-width: 720px;
  margin: 0 auto 0.4em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--terracotta-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.secondary:hover { background: var(--ink); color: var(--white); }

.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 1.1rem;
}
.social-row a:hover { background: var(--terracotta); color: var(--white); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head p { color: var(--muted); }

/* Category grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }

.card .thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--white);
}

.card .body { padding: 18px 20px 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 10px; }
.card a.read-more { font-weight: 600; font-size: 0.88rem; }

/* Palette rotation for thumbs */
.c1 { background: #c1694f; }
.c2 { background: #4b5a45; }
.c3 { background: #7a8b99; }
.c4 { background: #b98d5a; }
.c5 { background: #8a5a6b; }
.c6 { background: #5a7d7c; }

/* Blog post */
.post-hero {
  padding: 56px 0 24px;
  text-align: center;
}
.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
article.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 60px;
}
article.post-body h2 { margin-top: 1.4em; }
.affiliate-box {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.affiliate-box h4 { margin-bottom: 8px; }
.disclosure {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px dashed var(--cream-dark);
  margin-top: 40px;
  padding-top: 16px;
}

/* Newsletter */
.newsletter {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.newsletter h2 { color: var(--white); }
.newsletter p { color: #d9e0d6; }
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 420px;
  margin: 24px auto 0;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
}
.newsletter-form button {
  border: none;
  cursor: pointer;
}

/* Simple pages */
.simple-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.simple-page h1 { margin-bottom: 0.3em; }
.simple-page .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2em; }
.simple-page h2 { margin-top: 1.6em; }

/* Contact */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.contact-form label { font-weight: 600; font-size: 0.9rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd6ca;
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: #cfcac0;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: #cfcac0; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #45443f;
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #9a958b;
}

@media (max-width: 760px) {
  nav.main-nav { display: none; }
  nav.main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); }
  nav.main-nav.open ul { flex-direction: column; padding: 16px 20px; gap: 16px; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
