/* ============================================
   PAW & PROSPER — STYLESHEET
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Brand Colors (change here = changes everywhere) --- */
:root {
  --color-purple:    #6B5C7E;
  --color-plum:      #4E4660;
  --color-sage:      #85BAA1;
  --color-mint:      #CEEDDB;
  --color-slate:     #6E8894;
  --color-white:     #FFFFFF;
  --color-offwhite:  #F9F8FA;
  --color-text:      #2D2B32;
  --color-text-light:#6B6675;

  --font-heading: 'Lora', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-width: 1140px;
  --radius:     12px;
  --radius-btn: 99px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* --- Base --- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-plum);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; color: var(--color-text-light); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-purple);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-plum); }

.btn-outline {
  background: transparent;
  border-color: var(--color-purple);
  color: var(--color-purple);
}
.btn-outline:hover {
  background: var(--color-purple);
  color: var(--color-white);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img { height: 40px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-weight: 500;
  color: var(--color-plum);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--color-purple); }

.nav__cta { margin-left: 1rem; color: #fff !important; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-plum);
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--color-plum) 0%, var(--color-purple) 100%);
  color: var(--color-white);
  padding: 7rem 0;
  text-align: center;
}

.hero h1 { color: var(--color-white); margin-bottom: 1.5rem; }
.hero p  { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; }

.hero__badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
}

/* --- Cards / Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(78, 70, 96, 0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(78, 70, 96, 0.1);
  transform: translateY(-2px);
}

.section--offwhite .card { background: var(--color-white); }
.section--mint .card     { background: rgba(255,255,255,0.6); }

.card__icon {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-mint);
  border-radius: 12px;
  line-height: 1;
}

/* --- Section Helpers --- */
.section--mint     { background: var(--color-mint); }
.section--offwhite { background: var(--color-offwhite); }
.section--offwhite .card { background: var(--color-white); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-plum);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__logo img { height: 36px; margin-bottom: 1rem; }
.footer p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

.footer__links h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__links ul { list-style: none; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--color-white); }

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
/* Nav alignment fix */
.nav__links { margin-left: auto; }
[data-netlify-identity-menu] { display: none !important; }

/* Hero buttons — white on purple */
.hero .btn-primary {
  background: #fff;
  color: var(--color-purple);
  border-color: #fff;
}
.hero .btn-primary:hover {
  background: transparent;
  color: #fff;
}

/* Footer contact info */
.footer__contact { margin-top: 1rem; font-size: 0.9rem; }
.footer__contact p { margin: 0.2rem 0; }
.footer__contact a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer__contact a:hover { color: #fff; }

/* --- Nav Dropdown --- */
.has-dropdown { position: relative; }

/* CSS chevron to replace the removed ▾ character */
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 5px;
  margin-left: 5px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23544E61' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.has-dropdown:hover > a::after,
.has-dropdown.open > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  padding-top: 0.5rem;
  left: 0;
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 200px;
  list-style: none;
  z-index: 200;
  padding: 0.5rem 0;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: var(--color-plum);
  transition: background 0.15s;
  font-weight: 400;
}

.dropdown-menu li a:hover {
  background: var(--color-offwhite);
  color: var(--color-purple);
}
/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
  }
  .nav__toggle { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ============================================
   BLOG STYLES
   ============================================ */

/* Blog index grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid #ebebeb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}

.blog-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.blog-card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__tag {
  display: inline-block;
  background: var(--color-mint);
  color: var(--color-plum);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  width: fit-content;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-plum);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex: 1;
  line-height: 1.6;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: auto;
}

.blog-card__read-more {
  color: var(--color-purple);
  font-weight: 600;
}

/* Blog post (individual page) */
.blog-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.blog-post__body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-plum);
}

.blog-post__body h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-plum);
}

.blog-post__body p {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-post__body ul,
.blog-post__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-light);
}

.blog-post__body li {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-post__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.blog-post__body th {
  background: var(--color-mint);
  color: var(--color-plum);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.blog-post__body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  color: var(--color-text-light);
}

/* Key Takeaways callout */
.blog-post__takeaways {
  background: var(--color-mint);
  border-left: 4px solid var(--color-sage);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.blog-post__takeaways h4 {
  font-family: var(--font-heading);
  color: var(--color-plum);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.blog-post__takeaways ul {
  padding-left: 1.25rem;
  margin: 0;
}

.blog-post__takeaways li {
  color: var(--color-plum);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

/* FAQ */
.blog-post__faq { margin-top: 3rem; }

.blog-post__faq-item {
  border-top: 1px solid #eee;
  padding: 1.25rem 0;
}

.blog-post__faq-item h3 {
  color: var(--color-plum);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  margin-top: 0;
}

.blog-post__faq-item p { margin-bottom: 0; font-size: 0.95rem; }

/* In-post CTA */
.blog-post__cta {
  background: linear-gradient(135deg, var(--color-plum), var(--color-purple));
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.blog-post__cta h3 { color: #fff; margin-bottom: 0.75rem; font-size: 1.5rem; margin-top: 0; }
.blog-post__cta p  { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.blog-post__cta .btn-primary { background: #fff !important; color: var(--color-plum) !important; border-color: #fff !important; }

/* Breadcrumb */
.blog-breadcrumb { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 1.5rem; }
.blog-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 3px; }
.blog-breadcrumb a:hover { color: #fff; }

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-post { padding: 3rem 1.25rem 4rem; }
}