/*
Theme Name: GeneratePress Child
Template: generatepress
*/

/* =========================================================
   SHREEJI MRI - GLOBAL CSS
   Sitewide rules only. Section-specific CSS lives inside
   each section's own Custom HTML block.
   ========================================================= */


/* =========================================================
   TYPOGRAPHY - RESPONSIVE HEADING & BODY SIZES
   ========================================================= */

h1, .entry-title { font-size: clamp(28px, 6vw, 48px) !important; }
h2 { font-size: clamp(22px, 4.5vw, 34px) !important; }
h3 { font-size: clamp(18px, 3.5vw, 24px) !important; }
h4 { font-size: clamp(16px, 3vw, 19px) !important; }
body, p { font-size: clamp(14px, 2.2vw, 16px) !important; }
.site-title { font-size: clamp(17px, 3.5vw, 22px) !important; }


/* =========================================================
   HEADER
   Sticky everywhere. Transparent-over-hero only on the main
   hero pages listed in functions.php. On those pages it stays
   transparent until scrolled OR until the mobile menu opens.
   ========================================================= */



.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #000000;
  border-bottom: 1px solid #221E18;
}

.shreeji-hero-page .site-header {
  position: fixed;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  width: 100%;
}
.shreeji-hero-page .site-header.shreeji-scrolled,
.shreeji-hero-page .site-header.shreeji-menu-open {
  background: #000000;
  border-bottom: 1px solid #221E18;
}

/* .main-navigation always stays transparent on these pages -
   it sits inside .site-header, so the header's own smooth
   background transition shows through underneath it.
   This avoids two separate elements toggling backgrounds
   independently and causing a flash/seam during scroll. */
.shreeji-hero-page .main-navigation {
  background: transparent !important;
}

.shreeji-hero-page {
  padding-top: 0 !important;
}
@media (max-width: 768px) {
  .site-logo img,
  .site-logo svg {
    max-width: 130px !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .inside-header {
    padding-top: .5px !important;
    padding-bottom: .5px !important;
  }
}


/* =========================================================
   NAVIGATION - BOOK APPOINTMENT BUTTON
   ========================================================= */

@media (min-width: 769px) {
  .main-navigation ul.menu > li.shreeji-book-btn > a {
    background: #37825C;
    color: #F5F1EA !important;
    padding: 0.5px 45px;
    line-height: 3;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 8px;
  }
  .main-navigation ul.menu > li.shreeji-book-btn > a:hover {
    background: #4FA179;
    color: #F5F1EA !important;
  }
}

@media (max-width: 768px) {
  .main-navigation ul.menu > li.shreeji-book-btn {
    text-align: center;
    margin-top: 10px;
  }
  .main-navigation ul.menu > li.shreeji-book-btn > a {
    background: #37825C;
    color: #F5F1EA !important;
    padding: 1px 45px;
    line-height: 3;
    border-radius: 4px;
    font-weight: 600;
    display: block;
    margin-top: 50px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid #221E18;
}

.copyright-bar {
  display: none !important;
}


/* =========================================================
   CONTENT AREA - REMOVE DEFAULT BACKGROUND
   ========================================================= */

.inside-article {
  background-color: transparent !important;
}


/* =========================================================
   MOBILE CONTAINER WIDTH - SITEWIDE
   ========================================================= */

@media (max-width: 768px) {
  .wp-block-group,
  .wp-block-columns {
    width: 92%;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

.entry-content > *:first-child,
.inside-article > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.shreeji-hero-page .site-main {
  margin: 0 !important;
}


/* =========================================================
   PRIMARY BUTTON - SITEWIDE
   Used across Hero, CTA sections, and anywhere else a
   primary call-to-action button appears.
   ========================================================= */

.shreeji-btn-primary {
  display: inline-block;
  background: #37825C00;
  border: 1px solid rgba(79,161,121,1);
  color: #F5F1EA;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.shreeji-btn-primary:hover {
  background: #37825C00;
  color: #F5F1EA;
}

/* =========================================================
   BLOG LISTING PAGE - 3 COLUMN GRID WITH IMAGES
   ========================================================= */

/* Layout */
body.blog .site-content {
  display: block;
  padding: 0;
}
body.blog .content-area {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  float: none;
}
body.blog .site-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 70px 40px;
  box-sizing: border-box;
}

/* Remove theme's invisible clearing elements from the grid */
body.blog .site-main::before,
body.blog .site-main::after {
  display: none;
}

/* Card */
body.blog .site-main article.post {
  display: flex;
  min-width: 0;
  margin: 0 !important;
}
body.blog .site-main article.post .inside-article {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 !important;
  background: #14110E !important;
  border: 1px solid rgba(245,241,234,0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
body.blog .site-main article.post .inside-article:hover {
  border-color: rgba(55,130,92,0.6);
  transform: translateY(-4px);
}

/* Image - fixed 16:10 frame, every thumbnail the same size */
body.blog .site-main .post-image {
  order: -1;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 !important;
  overflow: hidden;
  background: #0f0d0b;
}
body.blog .site-main .post-image a {
  position: absolute;
  inset: 0;
  display: block;
}
body.blog .site-main .post-image img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
body.blog .site-main .inside-article:hover .post-image img {
  transform: scale(1.04);
}

/* Title */
body.blog .site-main .entry-header {
  margin: 0 !important;
  padding: 24px 22px 0 22px !important;
}
body.blog .site-main .entry-title {
  font-family: 'Encode Sans Semi Expanded', sans-serif;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.45 !important;
  letter-spacing: 0;
  margin: 0 !important;
}
body.blog .site-main .entry-title a {
  color: #F5F1EA;
  text-decoration: none;
}
/* Makes the whole card clickable */
body.blog .site-main .entry-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}
body.blog .site-main .inside-article:hover .entry-title a {
  color: #4FA179;
}

/* Hide date, author, categories, comments */
body.blog .site-main .entry-meta {
  display: none !important;
}

/* Excerpt - exactly 2 lines */
body.blog .site-main .entry-summary {
  margin: 0 !important;
  padding: 10px 22px 0 22px;
}
body.blog .site-main .entry-summary p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: rgba(245,241,234,0.7);
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
body.blog .site-main .entry-summary p ~ p {
  display: none;
}

/* Read more - theme link hidden, clean one pinned to card bottom */
body.blog .site-main a.read-more,
body.blog .site-main .read-more-container {
  display: none !important;
}
body.blog .site-main article.post .inside-article::after {
  content: 'Read more';
  display: block;
  align-self: flex-start;
  margin: auto 22px 24px 22px;
  padding: 14px 0 2px 0;
  color: #4FA179;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  border-bottom: 1px solid #4FA179;
  transition: color 0.3s ease, border-color 0.3s ease;
}
body.blog .site-main article.post .inside-article:hover::after {
  color: #F5F1EA;
  border-color: #F5F1EA;
}

/* No pagination - all posts load on one page */
body.blog .site-main .paging-navigation {
  display: none !important;
}

/* Scroll reveal - only active once the script runs */
body.blog.shreeji-blog-js .site-main article.post {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.blog.shreeji-blog-js .site-main article.post.is-visible {
  opacity: 1;
  transform: none;
}

/* Tablet - 2 per row */
@media (max-width: 1024px) {
  body.blog .site-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile - 1 per row */
@media (max-width: 768px) {
  body.blog .content-area {
    width: 92%;
  }
  body.blog .site-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 50px 0;
  }
  body.blog .site-main .entry-header {
    padding: 20px 18px 0 18px !important;
  }
  body.blog .site-main .entry-summary {
    padding: 8px 18px 0 18px;
  }
  body.blog .site-main article.post .inside-article::after {
    margin: auto 18px 20px 18px;
  }
}

/* =========================================================
   SINGLE BLOG POST - SIMPLE READING LAYOUT
   ========================================================= */

/* Layout */
body.single-post .site-content {
  display: block;
  padding: 0;
}
body.single-post .content-area {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  float: none;
}
body.single-post .site-main {
  margin: 0 !important;
  padding: 50px 40px 90px;
  box-sizing: border-box;
}
body.single-post .site-main article.post {
  margin: 0 !important;
}
body.single-post .site-main .inside-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 !important;
  background: transparent !important;
}

/* Title banner - featured image as background */
body.single-post .site-main .featured-image {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  height: 380px;
  margin: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  background: #14110E;
}
body.single-post .site-main .featured-image img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  display: block;
}
body.single-post .site-main .featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,17,14,0.95) 0%,
    rgba(20,17,14,0.75) 45%,
    rgba(20,17,14,0.55) 100%
  );
}
body.single-post .site-main .entry-header {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  position: relative;
  z-index: 2;
  margin: 0 !important;
  padding: 40px 44px !important;
}
body.single-post .site-main .entry-title {
  font-family: 'Encode Sans Semi Expanded', sans-serif;
  font-size: 34px !important;
  font-weight: 600;
  line-height: 1.3 !important;
  color: #F5F1EA;
  max-width: 760px;
  margin: 0 !important;
}

/* Hide date, author, categories, tags, comments */
body.single-post .site-main .entry-header .entry-meta,
body.single-post .site-main footer.entry-meta .cat-links,
body.single-post .site-main footer.entry-meta .tags-links,
body.single-post .site-main footer.entry-meta .comments-link,
body.single-post .comments-area {
  display: none !important;
}

/* Previous / next posts */
body.single-post .site-main footer.entry-meta {
  grid-row: 3;
  grid-column: 1;
  width: 100%;
  max-width: 960px;
  margin: 60px auto 0 !important;
  padding: 30px 0 0 0;
  border-top: 1px solid rgba(245,241,234,0.1);
}
body.single-post .site-main .post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}
body.single-post .site-main .post-navigation .screen-reader-text,
body.single-post .site-main .post-navigation .gp-icon {
  display: none;
}
body.single-post .site-main .post-navigation .nav-previous,
body.single-post .site-main .post-navigation .nav-next {
  position: relative;
  margin: 0;
  padding: 18px 20px;
  background: #14110E;
  border: 1px solid rgba(245,241,234,0.08);
  border-radius: 10px;
  transition: border-color 0.3s ease;
}
body.single-post .site-main .post-navigation .nav-previous {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}
body.single-post .site-main .post-navigation .nav-next {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}
body.single-post .site-main .post-navigation .nav-previous:hover,
body.single-post .site-main .post-navigation .nav-next:hover {
  border-color: rgba(55,130,92,0.6);
}
body.single-post .site-main .post-navigation .nav-previous::before,
body.single-post .site-main .post-navigation .nav-next::before {
  display: block;
  margin-bottom: 6px;
  color: #4FA179;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.single-post .site-main .post-navigation .nav-previous::before {
  content: 'Next';
}
body.single-post .site-main .post-navigation .nav-next::before {
  content: 'Previous';
}
body.single-post .site-main .post-navigation a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: #F5F1EA;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}
/* Makes the whole box clickable */
body.single-post .site-main .post-navigation a::after {
  content: '';
  position: absolute;
  inset: 0;
}
body.single-post .site-main .post-navigation .nav-previous:hover a,
body.single-post .site-main .post-navigation .nav-next:hover a {
  color: #4FA179;
}

/* Article body - comfortable reading column */
body.single-post .site-main .entry-content {
  grid-row: 2;
  grid-column: 1;
  width: 100%;
  max-width: 960px;
  margin: 50px auto 0 !important;
  color: rgba(245,241,234,0.85);
}
body.single-post .site-main .entry-content p,
body.single-post .site-main .entry-content li {
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: rgba(245,241,234,0.85);
}
body.single-post .site-main .entry-content p {
  margin: 0 0 20px 0;
}
body.single-post .site-main .entry-content h2 {
  font-family: 'Encode Sans Semi Expanded', sans-serif;
  font-size: 24px !important;
  line-height: 1.35;
  color: #F5F1EA;
  margin: 44px 0 16px 0;
}
body.single-post .site-main .entry-content h3 {
  font-family: 'Encode Sans Semi Expanded', sans-serif;
  font-size: 19px !important;
  line-height: 1.4;
  color: #F5F1EA;
  margin: 32px 0 12px 0;
}
body.single-post .site-main .entry-content h4 {
  font-size: 17px !important;
  color: #F5F1EA;
  margin: 26px 0 10px 0;
}
body.single-post .site-main .entry-content ul,
body.single-post .site-main .entry-content ol {
  margin: 0 0 22px 0;
  padding-left: 22px;
}
body.single-post .site-main .entry-content li {
  margin: 0 0 8px 0;
}
body.single-post .site-main .entry-content a {
  color: #4FA179;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.single-post .site-main .entry-content a:hover {
  color: #F5F1EA;
}
body.single-post .site-main .entry-content strong {
  color: #F5F1EA;
  font-weight: 600;
}
body.single-post .site-main .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
body.single-post .site-main .entry-content figure {
  margin: 30px 0;
}
body.single-post .site-main .entry-content blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid #37825C;
  font-style: normal;
}
body.single-post .site-main .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px 0;
  font-size: 15px;
}
body.single-post .site-main .entry-content th,
body.single-post .site-main .entry-content td {
  padding: 10px 12px;
  border: 1px solid rgba(245,241,234,0.12);
  text-align: left;
}
body.single-post .site-main .entry-content > *:last-child {
  margin-bottom: 0;
}

/* Lists imported without a <ul> wrapper */
body.single-post .site-main .entry-content > li {
  margin: 0 0 8px 22px;
}
body.single-post .site-main .entry-content li::marker {
  color: #37825C;
}
body.single-post .site-main .entry-content ol li::marker {
  color: #4FA179;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  body.single-post .content-area {
    width: 92%;
  }
  body.single-post .site-main {
    padding: 24px 0 60px;
  }
  body.single-post .site-main .featured-image {
    height: 260px;
  }
  body.single-post .site-main .entry-header {
    padding: 24px 22px !important;
  }
  body.single-post .site-main .entry-title {
    font-size: 24px !important;
  }
  body.single-post .site-main .entry-content {
    margin-top: 34px !important;
  }
  body.single-post .site-main .entry-content h2 {
    font-size: 21px !important;
  }
  body.single-post .site-main .entry-content h3 {
    font-size: 18px !important;
  }
  body.single-post .site-main footer.entry-meta {
    margin-top: 44px !important;
  }
  body.single-post .site-main .post-navigation {
    grid-template-columns: 1fr;
    gap: 12px;
  }
    body.single-post .site-main .post-navigation .nav-previous,
  body.single-post .site-main .post-navigation .nav-next {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }
  body.single-post .site-main .post-navigation .nav-next {
    order: -1;
  }
}