/*
Theme Name: SagelyChic
Theme URI: https://example.com/sagelychic
Author: SagelyChic Team
Author URI: https://example.com
Description: A warm, editorial WordPress theme for fashion & style blogs, built for women over 50. Converted from the SagelyChic static HTML design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sagelychic
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
body {
  background-color: #faf8f5;
  color: #2e2e2e;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
/* header */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid #e2ddd6;
}
.logo {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #1e2b2f;
  text-decoration: none;
}
.logo span {
  font-weight: 300;
  color: #b17f5a;
}
.logo img { max-height: 44px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #2e2e2e;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #b17f5a;
}
/* mobile nav toggle */
#mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #1e2b2f;
}
/* hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 50px 0 30px;
  gap: 30px;
}
.hero-text {
  flex: 1 1 300px;
}
.hero-text h4 {
  color: #b17f5a;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 1rem;
  margin-bottom: 6px;
}
.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1e2b2f;
}
.hero-text p {
  font-size: 1.1rem;
  color: #3d3d3d;
  max-width: 500px;
  margin-bottom: 30px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  padding: 14px 34px;
  background: #1e2b2f;
  color: #fff;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.25s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid #1e2b2f;
  color: #1e2b2f;
}
.btn-outline:hover {
  background: #1e2b2f;
  color: #fff;
}
.btn:hover {
  opacity: 0.8;
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-weight: 300;
}
.hero-stats strong {
  font-weight: 700;
  color: #1e2b2f;
  font-size: 1.2rem;
}
.hero-image {
  flex: 1 1 280px;
  background: #e9e1d7;
  height: 240px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image.placeholder {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="80" height="80"><circle cx="50" cy="50" r="40" fill="%23d5cbc0" /><circle cx="35" cy="35" r="6" fill="%23b17f5a" /><circle cx="65" cy="35" r="6" fill="%23b17f5a" /><path d="M30 60 Q50 75 70 60" stroke="%23b17f5a" stroke-width="5" fill="none" /></svg>');
  background-size: 120px;
  background-repeat: no-repeat;
  background-position: center;
}
/* categories */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  padding: 30px 0 20px;
  border-top: 1px solid #e2ddd6;
  border-bottom: 1px solid #e2ddd6;
  margin: 30px 0 20px;
}
.category-grid a {
  text-decoration: none;
  color: #2e2e2e;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: 0.2s;
}
.category-grid a:hover {
  color: #b17f5a;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 40px 0 20px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #1e2b2f;
}
.section-title a {
  color: #b17f5a;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}
.section-title a:hover {
  border-bottom: 1px solid #b17f5a;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px 20px;
  margin: 20px 0 40px;
}
.card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: 0.25s;
  border: 1px solid #f0ece6;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.card a { text-decoration: none; }
.card-img {
  height: 180px;
  background: #e2dbd2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.placeholder {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="60" height="60"><rect x="20" y="30" width="60" height="40" fill="%23d5cbc0" rx="6"/><circle cx="40" cy="45" r="8" fill="%23b17f5a"/><circle cx="65" cy="45" r="8" fill="%23b17f5a"/></svg>');
  background-size: 70px;
  background-repeat: no-repeat;
  background-position: center;
}
.card-content {
  padding: 18px 18px 22px;
}
.card-content .meta {
  font-size: 0.75rem;
  color: #8a7e72;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.card-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1e2b2f;
  line-height: 1.3;
}
.card-content h3 a { color: inherit; text-decoration: none; }
.card-content .date {
  font-size: 0.8rem;
  color: #8a7e72;
}
/* newsletter */
.newsletter {
  background: #ede8e0;
  border-radius: 40px;
  padding: 40px 30px;
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.newsletter h3 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #1e2b2f;
}
.newsletter p {
  color: #3d3d3d;
  max-width: 300px;
  margin: 8px 0;
}
.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.newsletter input {
  padding: 14px 18px;
  border: none;
  border-radius: 60px;
  min-width: 200px;
  font-size: 0.9rem;
  background: #fff;
}
.newsletter small {
  display: block;
  margin-top: 4px;
  color: #6b5f52;
  font-size: 0.7rem;
}
/* trending */
.trending-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0 30px;
  justify-content: space-between;
}
.trending-list {
  flex: 2 1 300px;
}
.trending-list h4 {
  font-weight: 500;
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd8d0;
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.trending-list ul {
  list-style: none;
}
.trending-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0ece6;
  display: flex;
  gap: 10px;
}
.trending-list li a { text-decoration: none; color: #2e2e2e; }
.trending-list li a:hover { color: #b17f5a; }
.trending-list li i {
  color: #b17f5a;
  width: 20px;
}
.popular-categories {
  flex: 1 1 200px;
}
.popular-categories h4 {
  font-weight: 500;
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd8d0;
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.popular-categories ul {
  list-style: none;
}
.popular-categories li {
  padding: 8px 0;
  border-bottom: 1px solid #f0ece6;
}
.popular-categories li a { text-decoration: none; color: #2e2e2e; }
.popular-categories li a:hover { color: #b17f5a; }
/* features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.feature-item {
  background: #f8f4ef;
  padding: 24px 16px;
  border-radius: 30px;
  text-align: center;
}
.feature-item i {
  font-size: 2.2rem;
  color: #b17f5a;
  margin-bottom: 10px;
}
.feature-item h5 {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 0.85rem;
  color: #4f4a43;
}
/* footer */
footer.site-footer {
  background: #1e2b2f;
  color: #dddad5;
  padding: 40px 0 20px;
  border-radius: 40px 40px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-col {
  flex: 1 1 160px;
}
.footer-col h5 {
  color: #fff;
  font-weight: 500;
  margin-bottom: 16px;
  font-size: 1rem;
}
.footer-col a, .footer-col p {
  display: block;
  color: #cbc5bc;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #3a4549;
  padding-top: 24px;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom .social a {
  display: inline-block;
  margin-left: 16px;
}
.footer-bottom .social i {
  font-size: 1.4rem;
  color: #cbc5bc;
  transition: 0.2s;
}
.footer-bottom .social i:hover {
  color: #fff;
}
.footer-bottom small {
  color: #8a8a82;
}
/* single post */
.single-article {
  max-width: 780px;
  margin: 40px auto;
}
.single-article .entry-title {
  font-size: 2.4rem;
  color: #1e2b2f;
  margin-bottom: 14px;
  line-height: 1.2;
}
.single-article .entry-meta {
  color: #8a7e72;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.single-article .entry-thumbnail {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}
.single-article .entry-content {
  font-size: 1.05rem;
  color: #3d3d3d;
}
.single-article .entry-content h2,
.single-article .entry-content h3 {
  color: #1e2b2f;
  margin: 30px 0 14px;
}
.single-article .entry-content p { margin-bottom: 18px; }
.single-article .entry-content img { border-radius: 16px; margin: 20px 0; }
/* archive / search */
.archive-header, .page-header {
  margin: 40px 0 10px;
}
.archive-header h1, .page-header h1 {
  font-size: 2.2rem;
  color: #1e2b2f;
  font-weight: 500;
}
.no-results {
  margin: 60px 0;
  text-align: center;
}
.no-results h2 { margin-bottom: 14px; color: #1e2b2f; }
.no-results .search-form { margin-top: 20px; }
/* comments */
.comments-area { margin: 50px 0; }
.comments-area .comment-list { list-style: none; }
.comments-area .comment-body { padding: 16px 0; border-bottom: 1px solid #f0ece6; }
.comment-respond input[type=text],
.comment-respond input[type=email],
.comment-respond input[type=url],
.comment-respond textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2ddd6;
  border-radius: 16px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}
/* pagination */
.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}
.pagination-nav a, .pagination-nav span {
  padding: 10px 18px;
  border-radius: 30px;
  background: #f8f4ef;
  color: #1e2b2f;
  text-decoration: none;
  font-size: 0.9rem;
}
.pagination-nav .current { background: #1e2b2f; color: #fff; }

@media (max-width: 700px) {
  .top-bar {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .nav-links {
    gap: 12px 16px;
    font-size: 0.8rem;
  }
  .hero-text h1 {
    font-size: 2.4rem;
  }
  .newsletter {
    flex-direction: column;
    align-items: start;
  }
  .hero-image {
    height: 180px;
    width: 100%;
  }
  #mobile-menu-toggle {
    display: block;
  }
  .main-navigation {
    display: none;
    width: 100%;
  }
  .main-navigation.is-open {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    gap: 10px 16px;
  }
}
