/*
Theme Name: Shravya Digital
Theme URI: https://shravya.digital/
Description: Official GeneratePress child theme for Shravya Digital — an SEO and digital marketing agency. Includes the full page set (home, about, services + six service sub-pages, industries, case studies, pricing, blog, FAQ, careers, contact), a Case Studies custom post type, dynamic enquiry forms saved to a custom post type, built-in SEO output, and performance tuning. Layout uses the Bootstrap 5 grid; all component styling is Shravya's own.
Author: Shravya Digital
Author URI: https://shravya.digital/
Template: generatepress
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shravya
Tags: agency, seo, marketing, custom-menu, custom-logo, featured-images, threaded-comments, right-sidebar, accessibility-ready
*/

/*
 * NOTE
 * ----
 * The design lives in /assets/css/shravya.css (enqueued from inc/enqueue.php).
 * This file loads LAST — after GeneratePress, after the Bootstrap grid, and
 * after shravya.css — so anything written here wins. Add your tweaks at the bottom.
 */

/* --- Neutralise GeneratePress chrome: our templates provide header/footer/layout --- */
.site-header:not(.sd-header),
.site-footer:not(.sd-footer),
#right-sidebar,
#left-sidebar,
.site-info,
.generate-back-to-top { display: none !important; }

#page, #content, .site-content, .content-area, .inside-article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.separate-containers .site-main,
.separate-containers .inside-article,
.one-container .site-content { margin: 0 !important; padding: 0 !important; }

body.shravya { background: var(--cream); }

.shravya a { text-decoration: none; }
.shravya .entry-content a { text-decoration: underline; text-underline-offset: 3px; }

/* Admin bar offset for the sticky header */
body.admin-bar .site-header.sd-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header.sd-header { top: 46px; } }

/* ============================================================
   LAYOUT HARDENING
   GeneratePress (and WooCommerce, and some hosts' "performance"
   plugins) wrap page content in constrained, floated containers.
   Our templates supply their own header, footer and grid, so every
   one of those wrappers must be flattened or the whole site renders
   inside a narrow column. This block is deliberately heavy-handed.
============================================================ */
body.shravya #page,
body.shravya #content,
body.shravya .site-content,
body.shravya .content-area,
body.shravya .site-main,
body.shravya .grid-container,
body.shravya .inside-article,
body.shravya article.page,
body.shravya article.post {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Our own container is the only thing allowed to set a max width. */
body.shravya .container {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

@media (max-width: 900px) {
  body.shravya .container {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}

/* GeneratePress sidebar columns, if a sidebar layout is still selected. */
body.shravya #right-sidebar,
body.shravya #left-sidebar,
body.shravya .widget-area:not(.sd-sidebar) { display: none !important; }

/* WooCommerce ships global styles even with no shop pages. */
body.shravya .woocommerce-store-notice,
body.shravya .demo_store { display: none !important; }

/* ===== Your custom CSS below ===== */
