/*
Theme Name: Amaravati Interlocking Bricks
Theme URI: https://amaravatiinterlockingbricks.com/
Author: Amaravati Interlocking Bricks
Author URI: https://amaravatiinterlockingbricks.com/
Description: Cinematic single-page theme for Amaravati Interlocking Bricks — Red Soil and Fly Ash interlocking bricks in standard and custom sizes. Includes a built-in Brick Quantity Calculator (page template and [amrvb_brick_calculator] shortcode).
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
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: amaravati
Tags: one-column, custom-menu, custom-logo, featured-images, full-width-template, block-styles, wide-blocks, responsive-layout
*/

/* ------------------------------------------------------------------
   WordPress requires this file to exist, with the header above, for
   the theme to install and activate. The full site stylesheet lives in
   css/style.css and is enqueued from functions.php, so that its
   relative font paths (../assets/fonts/…) keep working.

   Everything below is WordPress-specific glue: admin bar offset,
   alignment and caption classes, and editor defaults.
   ------------------------------------------------------------------ */

/* Admin bar must not hide the fixed header. */
body.admin-bar .header { top: 32px; }
body.admin-bar .menu { top: 32px; }

@media screen and (max-width: 782px) {
	body.admin-bar .header { top: 46px; }
	body.admin-bar .menu { top: 46px; }
}

/* WordPress core alignment + media classes (used inside post/page content). */
.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	clear: both;
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	width: min(1400px, 100%);
	margin-inline: auto;
}

.alignfull {
	width: 100%;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	font-size: .85rem;
	color: var(--ash);
	padding-top: .6em;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--bone);
	clip-path: none;
	color: var(--ink);
	display: block;
	font-weight: 700;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 6px;
	width: auto;
	z-index: 100000;
}

.sticky,
.bypostauthor {
	/* Required by the WordPress theme review guidelines. */
}

/* ------------------------------------------------------------------
   Inner pages (anything that is not the animated front page):
   Posts, Pages, search results and 404.
   ------------------------------------------------------------------ */
.page-shell {
	padding: calc(var(--header-h) + clamp(48px, 9vw, 120px)) 0 clamp(64px, 10vw, 140px);
	min-height: 70vh;
}

.page-shell__head {
	max-width: 62ch;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.page-shell__title {
	font-family: var(--font-d);
	font-weight: 800;
	font-size: clamp(2.2rem, 6vw, 4.4rem);
	line-height: .95;
	letter-spacing: -.02em;
	text-transform: uppercase;
}

.page-shell__title em {
	font-style: normal;
	color: var(--brick);
}

.page-shell__body {
	max-width: 70ch;
	font-size: 1.05rem;
	color: var(--sand);
}

.page-shell__body > * + * {
	margin-top: 1.1em;
}

.page-shell__body h2,
.page-shell__body h3 {
	font-family: var(--font-d);
	text-transform: uppercase;
	letter-spacing: -.01em;
	margin-top: 1.6em;
}

.page-shell__body a {
	color: var(--ember);
	text-decoration: underline;
	text-underline-offset: .18em;
}

.page-shell__body img {
	border-radius: var(--radius);
}

/* Header nav: current page state (used by the Calculator link). */
.header__nav a.is-active,
.menu__nav a.is-active {
	color: var(--brick);
}


/* ==================================================================
   v1.1.0 additions
   ================================================================== */
.preloader__sub {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(.68rem, 1.5vw, .95rem); letter-spacing: .42em; text-indent: .42em;
  text-transform: uppercase; color: var(--ember); margin-top: 10px;
}

/* Longer hero headline: four lines, slightly smaller type. */
.hero__title { font-size: clamp(2.6rem, 7.3vw, 6.8rem); }
@media (max-width: 760px) {
  .hero__title { font-size: clamp(1.85rem, 8.8vw, 2.7rem); }
}

/* Sticky WhatsApp + Call buttons */
.fab {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: 96px;
  z-index: 95; display: flex; flex-direction: column; gap: 12px;
}
.fab a {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.38);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab a:hover, .fab a:focus-visible { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 32px rgba(0,0,0,.45); }
.fab svg { width: 28px; height: 28px; fill: #fff; }
.fab__wa { background: #25d366; }
.fab__call { background: var(--brick); }
@media (max-width: 760px) {
  .fab a { width: 52px; height: 52px; }
  .fab svg { width: 25px; height: 25px; }
}

.pshow__more { margin-top: 16px; font-size: .9rem; opacity: .85; }
.pshow__more a { text-decoration: underline; text-underline-offset: .18em; }
.footer__nav--products { margin-top: 14px; font-size: .9rem; opacity: .85; }

/* Product / SEO pages */
.page-shell__body:has(.pp) { max-width: none; }
.pp { display: grid; gap: clamp(36px, 6vw, 72px); }
.pp > section > * + * { margin-top: 1em; }
.pp p, .pp li { max-width: 72ch; }
.pp-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.pp-hero figure img { width: 100%; height: auto; border-radius: 0; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.pp-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--bone); }
.pp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.pp-cta a { text-decoration: none; color: inherit; }
.pp ul { padding-left: 1.2em; list-style: disc; }
.pp ol { padding-left: 1.4em; list-style: decimal; }
.pp li + li { margin-top: .45em; }
.pp-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pp-size { background: var(--coal); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius, 10px); padding: 22px; text-align: center; }
.pp-size img { width: 100%; height: 190px; object-fit: contain; border-radius: 0; }
.pp-size h3 { margin-top: .6em; font-size: 1.15rem; }
.pp-size p { margin: .3em auto 0; font-size: .92rem; opacity: .8; }
.pp-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.pp-table th, .pp-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.pp-table th { color: var(--bone); font-weight: 700; }
.pp-faq details { border-bottom: 1px solid rgba(255,255,255,.1); padding: 14px 0; }
.pp-faq summary { cursor: pointer; font-weight: 700; color: var(--bone); }
.pp-faq p { margin-top: .6em; }
.pp-related { display: flex; flex-wrap: wrap; gap: 10px 22px; }
@media (max-width: 760px) {
  .pp-hero { grid-template-columns: 1fr; }
  .pp-hero figure { order: -1; max-width: 340px; margin-inline: auto; }
  .pp-sizes { grid-template-columns: 1fr; }
}
