/*
Theme Name: Roast Aroma Cafe & Pizzateria
Theme URI: https://roastaromacafe.in
Author: Roast Aroma
Author URI: https://roastaromacafe.in
Description: Premium 3D interactive, scroll-driven WordPress theme for Roast Aroma Cafe & Pizzateria. Features artisanal menu showcases, dynamic blog journal, customer reviews, culinary gallery, and native contact form with custom HTML email templates.
Version: 1.1.9
Tested up to: 6.7
Requires at least: 5.8
Requires PHP: 7.4
License: Proprietary
Text Domain: roast-aroma
*/

/* Base WordPress theme utilities */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0B2208;
  color: #ffffff;
  overflow-x: hidden;
}

/* Ensure clean WordPress admin bar integration */
body.admin-bar header.fixed,
body.admin-bar header.sticky,
body.admin-bar #site-header,
body.admin-bar #single-header,
body.admin-bar #blog-header,
body.admin-bar #page-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar header.fixed,
  body.admin-bar header.sticky,
  body.admin-bar #site-header,
  body.admin-bar #single-header,
  body.admin-bar #blog-header,
  body.admin-bar #page-header {
    top: 46px !important;
  }
}

/* 4 Pillars Section: Tight spacing between heading and paragraph */
#hero-banner + main section:first-of-type h3,
section.border-y h3 {
  margin-bottom: 0.25rem !important;
  line-height: 1.25 !important;
}
#hero-banner + main section:first-of-type p,
section.border-y p {
  margin-top: 0 !important;
}

/* Remove any lingering yellow/gold glow from logo badges */
.logo-badge-container,
.logo-crest-badge,
header .rounded-full[class*="shadow-"] {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
}

/* ==========================================================================
   Roast Aroma - Unified Header Logo Sizing (Identical on ALL Pages)
   ========================================================================== */

/* Mobile Logo: 100px */
.logo-crest-badge,
header .logo-crest-badge,
.max-w-7xl a[aria-label="Roast Aroma Home"] .logo-crest-badge,
.max-w-7xl > div.shrink-0 a[aria-label="Roast Aroma Home"] > .logo-crest-badge,
a[aria-label="Roast Aroma Home"] .logo-crest-badge {
  width: 100px !important;
  height: 100px !important;
  min-width: 100px !important;
  min-height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
  border-radius: 50% !important;
  border: none !important;
  outline: none !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
  transform: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Desktop Logo: 120px (min-width: 640px) */
@media (min-width: 640px) {
  .logo-crest-badge,
  header .logo-crest-badge,
  .max-w-7xl a[aria-label="Roast Aroma Home"] .logo-crest-badge,
  .max-w-7xl > div.shrink-0 a[aria-label="Roast Aroma Home"] > .logo-crest-badge,
  a[aria-label="Roast Aroma Home"] .logo-crest-badge {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    transform: none !important;
  }
}

/* Ensure Logo Image is perfectly circular and centered on all pages */
.logo-crest-badge img,
header .logo-crest-badge img,
.max-w-7xl a[aria-label="Roast Aroma Home"] .logo-crest-badge img,
.max-w-7xl a[aria-label="Roast Aroma Home"] img,
a[aria-label="Roast Aroma Home"] .logo-crest-badge img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  display: block !important;
}

/* ==========================================================================
   Smooth Compact Header on Scroll (Prevents blocking content & headings)
   ========================================================================== */
header.is-compact,
#single-header.is-compact,
#blog-header.is-compact,
#page-header.is-compact {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  background-color: rgba(11, 34, 8, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

header.is-compact .logo-crest-badge,
#single-header.is-compact .logo-crest-badge,
#blog-header.is-compact .logo-crest-badge,
#page-header.is-compact .logo-crest-badge {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
}

@media (min-width: 640px) {
  header.is-compact .logo-crest-badge,
  #single-header.is-compact .logo-crest-badge,
  #blog-header.is-compact .logo-crest-badge,
  #page-header.is-compact .logo-crest-badge {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
  }
}

/* Ensure no yellow border or ring on logo across all templates */
header a div.logo-crest-badge,
header .rounded-full,
.logo-badge-container {
  border: 0 solid transparent !important;
  outline: none !important;
}

/* Showcase Aspect Ratio */
.aspect-\[4\/3\] {
  aspect-ratio: 4 / 3;
}

/* Single Post & Article Typography */
.roast-article-body,
.prose {
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2D3748;
  font-size: 1.125rem;
  line-height: 1.85;
}
.roast-article-body h2,
.prose h2 {
  font-family: 'Tenor Sans', Georgia, serif;
  color: #0B2208;
  font-size: 1.875rem;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.roast-article-body h3,
.prose h3 {
  font-family: 'Tenor Sans', Georgia, serif;
  color: #0B2208;
  font-size: 1.5rem;
  line-height: 1.35;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.roast-article-body p,
.prose p {
  margin-bottom: 1.5rem;
}
.roast-article-body blockquote,
.prose blockquote {
  border-left: 4px solid #C49A3C;
  background: rgba(196, 154, 60, 0.08);
  padding: 1.25rem 1.75rem;
  font-style: italic;
  color: #0B2208;
  margin: 2.25rem 0;
  border-radius: 0 16px 16px 0;
}
.roast-article-body ul,
.prose ul {
  list-style-type: disc;
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}
.roast-article-body ol,
.prose ol {
  list-style-type: decimal;
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}
.roast-article-body li,
.prose li {
  margin-bottom: 0.5rem;
}
.roast-article-body a,
.prose a {
  color: #C49A3C;
  text-decoration: underline;
  font-weight: 600;
}
.roast-article-body a:hover,
.prose a:hover {
  color: #0B2208;
}
.roast-article-body img,
.prose img {
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.roast-article-body strong,
.roast-article-body b,
.prose strong,
.prose b {
  color: #0B2208;
  font-weight: 700;
}

/* ==========================================================================
   Roast Aroma - Single Article Page Layout & Spacing
   ========================================================================== */

/* Hero Header Spacing */
.roast-single-hero {
  padding-top: 5rem !important;
  padding-bottom: 9rem !important;
  position: relative;
}
@media (min-width: 640px) {
  .roast-single-hero {
    padding-top: 6.5rem !important;
    padding-bottom: 11rem !important;
  }
}

/* Metadata Pill Spacing */
.roast-article-meta-pill {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Featured Image Overlap & Spacing */
.roast-featured-image-wrapper {
  margin-top: -5rem !important;
  margin-bottom: 4rem !important;
  position: relative;
  z-index: 20;
}
@media (min-width: 640px) {
  .roast-featured-image-wrapper {
    margin-top: -6.5rem !important;
    margin-bottom: 5rem !important;
  }
}
.roast-featured-image-frame {
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35) !important;
  border: 4px solid #ffffff !important;
  background-color: #071705 !important;
  aspect-ratio: 16 / 9 !important;
}

/* Post Navigation (Prev / Next) */
.roast-post-nav-section {
  margin-top: 5rem !important;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
  border-top: 2px solid rgba(11, 34, 8, 0.1) !important;
}

/* More Stories / Related Section */
.roast-related-section {
  margin-top: 2rem !important;
  padding-top: 5rem !important;
  padding-bottom: 8rem !important;
  border-top: 2px solid rgba(11, 34, 8, 0.1) !important;
}
@media (min-width: 640px) {
  .roast-related-section {
    padding-top: 6.5rem !important;
    padding-bottom: 9.5rem !important;
  }
}

/* ==========================================================================
   Roast Aroma - Blog & Journal Numbered Pagination (3x3 Grid)
   ========================================================================== */
.navigation.pagination {
  margin: 4.5rem auto 2.5rem auto !important;
  text-align: center !important;
}
.navigation.pagination .screen-reader-text {
  display: none !important;
}
.navigation.pagination .nav-links {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
  background: #ffffff !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 20px rgba(11, 34, 8, 0.08) !important;
  border: 1px solid rgba(11, 34, 8, 0.1) !important;
}
.navigation.pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 2.75rem !important;
  height: 2.75rem !important;
  padding: 0 0.875rem !important;
  border-radius: 9999px !important;
  font-family: 'Mulish', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #0B2208 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}
.navigation.pagination .page-numbers:hover {
  background: #0B2208 !important;
  color: #C49A3C !important;
}
.navigation.pagination .page-numbers.current {
  background: #0B2208 !important;
  color: #C49A3C !important;
  box-shadow: 0 4px 12px rgba(11, 34, 8, 0.25) !important;
}
.navigation.pagination .page-numbers.dots {
  background: transparent !important;
  color: #888888 !important;
  cursor: default !important;
}
.navigation.pagination a.prev,
.navigation.pagination a.next {
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0 1.25rem !important;
}

/* ==========================================================================
   Roast Aroma - Story Cards & View More Button (Homepage & Archive)
   ========================================================================== */

/* View More Button on Homepage */
.roast-btn-view-more {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  padding: 0.95rem 2.5rem !important;
  background-color: #0B2208 !important;
  color: #C49A3C !important;
  border: 1.5px solid #C49A3C !important;
  border-radius: 9999px !important;
  font-family: 'Mulish', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.18em !important;
  text-decoration: none !important;
  box-shadow: 0 10px 25px -5px rgba(11, 34, 8, 0.45) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  line-height: 1 !important;
}
.roast-btn-view-more:hover {
  background-color: #C49A3C !important;
  color: #0B2208 !important;
  border-color: #C49A3C !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 30px -5px rgba(196, 154, 60, 0.45) !important;
}
.roast-btn-view-more svg {
  transition: transform 0.3s ease !important;
}
.roast-btn-view-more:hover svg {
  transform: translateX(4px) !important;
}

/* Story Cards */
.roast-story-card {
  background-color: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(11, 34, 8, 0.12) !important;
  box-shadow: 0 4px 20px -2px rgba(11, 34, 8, 0.05) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
}
.roast-story-card:hover {
  border-color: #C49A3C !important;
  box-shadow: 0 20px 35px -10px rgba(11, 34, 8, 0.15) !important;
  transform: translateY(-4px) !important;
}

/* Force All Card SVGs to Never Render Black Fill */
.roast-story-card svg {
  fill: none !important;
  flex-shrink: 0 !important;
}

/* Reading Time Badge */
.roast-card-read-time {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  background-color: rgba(11, 34, 8, 0.88) !important;
  color: #C49A3C !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(196, 154, 60, 0.35) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  line-height: 1.2 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Metadata (Date & Author) */
.roast-card-meta {
  color: #C49A3C !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  font-family: 'Mulish', sans-serif !important;
}
.roast-card-meta svg {
  stroke: #C49A3C !important;
  fill: none !important;
}
.roast-card-meta span {
  color: #C49A3C !important;
}

/* Card Title */
.roast-card-title a {
  color: #0B2208 !important;
  font-family: 'Tenor Sans', serif !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
}
.roast-card-title a:hover,
.roast-story-card:hover .roast-card-title a {
  color: #C49A3C !important;
}

/* Excerpt */
.roast-card-excerpt {
  color: #52585D !important;
  font-family: 'Mulish', sans-serif !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
}

/* Card Footer & Link */
.roast-card-footer {
  border-top: 1px solid rgba(11, 34, 8, 0.08) !important;
  padding-top: 1rem !important;
  margin-top: auto !important;
}
.roast-card-read-link {
  color: #0B2208 !important;
  font-family: 'Mulish', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  transition: color 0.2s ease !important;
}
.roast-card-read-link svg {
  stroke: #0B2208 !important;
  fill: none !important;
  transition: transform 0.25s ease, stroke 0.2s ease !important;
}
.roast-card-read-link:hover,
.roast-story-card:hover .roast-card-read-link {
  color: #C49A3C !important;
}
.roast-card-read-link:hover svg,
.roast-story-card:hover .roast-card-read-link svg {
  stroke: #C49A3C !important;
  transform: translateX(4px) !important;
}
.roast-card-book-icon {
  stroke: #C49A3C !important;
  fill: none !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s ease !important;
}
.roast-story-card:hover .roast-card-book-icon {
  opacity: 1 !important;
}
