/* ============================================================
   Deep's Delights — Shared Stylesheet
   Linked by every page on deepsdelights.com
   ============================================================ */

/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:ital@1&family=Playfair+Display:ital,wght@1,500&display=swap');

/* --- Custom Properties --- */
:root {
  --dd-teal: #307872;
  --dd-teal-dark: #265f5b;
  --dd-text: #404040;
  --dd-text-dark: #2D2D2D;
  --dd-bg-light: #fafafa;
  --dd-font-body: 'Montserrat', sans-serif;
  --dd-font-heading: 'Poppins', sans-serif;
  --dd-font-accent: 'Playfair Display', serif;
}

/* --- Base Resets --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--dd-font-body);
  color: var(--dd-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--dd-font-heading);
  line-height: 1.3;
}

.accent {
  font-family: var(--dd-font-accent);
  font-style: italic;
}

.section-label {
  font-family: var(--dd-font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dd-teal);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--dd-font-heading);
  font-weight: 600;
  font-size: 32px;
  color: var(--dd-text-dark);
  margin-bottom: 16px;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Shared Components --- */
.teal-divider {
  width: 40px;
  height: 3px;
  background: var(--dd-teal);
  margin: 0 auto;
}

.btn-primary {
  display: inline-block;
  font-family: var(--dd-font-body);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: var(--dd-teal);
  border: 2px solid var(--dd-teal);
  border-radius: 50px;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
  background: var(--dd-teal-dark);
  border-color: var(--dd-teal-dark);
}

.btn-outline {
  display: inline-block;
  font-family: var(--dd-font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--dd-teal);
  background: transparent;
  border: 2px solid var(--dd-teal);
  border-radius: 50px;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background: var(--dd-teal);
  color: #fff;
}

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================================
   Blog Post Layout
   ============================================================ */

.dd-blog-post {
  color: var(--dd-text);
  line-height: 1.8;
}

/* Hero banner */
.blog-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #111;
}

.blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
}

.blog-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 40px;
  z-index: 2;
}

.blog-hero-content .blog-meta {
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.blog-hero-content h1 {
  font-family: var(--dd-font-heading);
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 720px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Article container */
.blog-article {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 28px 72px;
}

/* Meta line */
.blog-meta {
  font-family: var(--dd-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--dd-teal);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 14px;
}

/* Inline h1 (when not in hero overlay) */
.blog-article > h1 {
  font-family: var(--dd-font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--dd-text-dark);
  margin-bottom: 10px;
  line-height: 1.25;
}

.blog-divider {
  width: 48px;
  height: 3px;
  background: var(--dd-teal);
  margin: 24px 0 40px;
}

/* Content typography */
.blog-content h2 {
  font-family: var(--dd-font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--dd-text-dark);
  margin: 48px 0 16px;
  line-height: 1.3;
}

.blog-content h3 {
  font-family: var(--dd-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--dd-text-dark);
  margin: 32px 0 10px;
}

.blog-content p {
  font-family: var(--dd-font-body);
  font-size: 16px;
  font-weight: 400;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.85;
}

.blog-content ul, .blog-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.blog-content li {
  font-family: var(--dd-font-body);
  font-size: 16px;
  font-weight: 400;
  color: #444;
  margin-bottom: 10px;
  line-height: 1.7;
}

.blog-content strong {
  font-weight: 600;
  color: var(--dd-text-dark);
}

.blog-content a {
  color: var(--dd-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(48,120,114,0.3);
  transition: border-color 0.2s;
}

.blog-content a:hover {
  border-bottom-color: var(--dd-teal);
}

/* Images */
.blog-content img {
  border-radius: 10px;
  margin: 28px 0;
}

.blog-content figure {
  margin: 36px 0;
}

.blog-content figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.blog-content .wp-block-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0;
}

.blog-content .wp-block-gallery figure {
  margin: 0;
}

.blog-content .wp-block-gallery figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
}

/* Blockquote */
.blog-content blockquote {
  border-left: 3px solid var(--dd-teal);
  padding: 20px 28px;
  margin: 32px 0;
  background: #f7faf9;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #555;
}

.blog-content hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 44px 0;
}

/* Related posts box */
.blog-related {
  background: #f7faf9;
  border-radius: 12px;
  padding: 32px;
  margin-top: 56px;
  border: 1px solid rgba(48,120,114,0.1);
}

.blog-related h3 {
  font-family: var(--dd-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--dd-text-dark);
  margin-bottom: 16px;
}

.blog-related a {
  display: block;
  color: var(--dd-teal);
  font-family: var(--dd-font-body);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-related a:hover {
  text-decoration: underline;
}

/* CTA banner */
.blog-cta {
  background: linear-gradient(135deg, #307872 0%, #245a56 100%);
  padding: 56px 40px;
  text-align: center;
  margin-top: 72px;
}

.blog-cta h3 {
  font-family: var(--dd-font-heading);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.blog-cta p {
  font-family: var(--dd-font-body);
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin-bottom: 28px;
  font-weight: 400;
}

.blog-cta .cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--dd-teal);
  font-family: var(--dd-font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-cta .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ============================================================
   Blog Index Layout
   ============================================================ */

.blog-index {
  color: var(--dd-text);
  line-height: 1.7;
}

.blog-hero-section {
  background: linear-gradient(135deg, #f0f7f6 0%, #e8f3f1 100%);
  text-align: center;
  padding: 80px 24px 64px;
}

.blog-hero-section .accent-text {
  font-family: var(--dd-font-accent);
  font-style: italic;
  font-size: 20px;
  color: var(--dd-teal);
  margin-bottom: 10px;
}

.blog-hero-section h1 {
  font-family: var(--dd-font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--dd-text-dark);
  margin-bottom: 20px;
}

.blog-hero-section .divider {
  width: 48px;
  height: 3px;
  background: var(--dd-teal);
  margin: 0 auto;
}

.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.1);
}

.blog-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.blog-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  font-family: var(--dd-font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--dd-teal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.blog-card-body h2 {
  font-family: var(--dd-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--dd-text-dark);
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card-body h2 a {
  color: var(--dd-text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-body h2 a:hover {
  color: var(--dd-teal);
}

.blog-card-excerpt {
  font-family: var(--dd-font-body);
  font-size: 14px;
  font-weight: 400;
  color: #666;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-link {
  font-family: var(--dd-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--dd-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.blog-card-link:hover {
  gap: 8px;
}

/* --- Responsive --- */

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .section-title {
    font-size: 26px;
  }

  /* Blog post mobile */
  .blog-hero { height: 300px; }
  .blog-hero-content { padding: 28px 20px; }
  .blog-hero-content h1 { font-size: 26px; }
  .blog-article { padding: 40px 20px 56px; }
  .blog-article > h1 { font-size: 28px; }
  .blog-content h2 { font-size: 20px; margin-top: 36px; }
  .blog-content p, .blog-content li { font-size: 15px; }
  .blog-content .wp-block-gallery { grid-template-columns: 1fr; }
  .blog-content .wp-block-gallery figure img { height: 260px; }
  .blog-cta { padding: 40px 24px; margin-top: 56px; }
  .blog-cta h3 { font-size: 22px; }

  /* Blog index mobile */
  .blog-hero-section { padding: 60px 20px 48px; }
  .blog-hero-section h1 { font-size: 30px; }
  .blog-grid { padding: 44px 20px 64px; }
}

@media (max-width: 639px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
