/*
Theme Name: Rittal India
Theme URI: https://www.rittal.com/
Author: Rittal India
Author URI: https://www.rittal.com/
Description: Blank, lightweight and customizable WordPress starter theme for Rittal India.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rittal-india
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

/*
 * Add all project-specific styles here.
 * The starter theme intentionally contains no visual design system.
 */

html {
	box-sizing: border-box;

	/* Logo (47px) + its 24px top margin. Used by viewport-height sections. */
	--rittal-header-height: 71px;

	/* In-page anchors (the hero button, the section nav) glide rather than jump. */
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/*
 * border-box everywhere. Using inherit here let the UA stylesheet's own
 * box-sizing on buttons/inputs win, so padding was added on top of a
 * declared width (the accordion trigger overflowed, the hero form panel
 * rendered 713px instead of its 660px box).
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: #000;
	color: #fff;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	z-index: 100000;
}

.skip-link:focus {
	position: fixed;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75em 1em;
	background: #fff;
	color: #000;
}

/*
 * Shared site container: 1400px of content, centred. The side padding is
 * whatever is left either side, capped at the 260px the design specifies
 * at 1920px. Holding the content at 1400 down to 1440px viewports — a
 * fixed 260px inset previously left only 504px of content at 1024px.
 */
.site-container {
	/* border-box, so max-width must include the side padding. */
	max-width: calc(1400px + 40px);
	margin: 0 auto;
	padding: 0 20px;
}

@media (min-width: 1024px) {
	.site-container {
		--pad: clamp(60px, calc((100vw - 1400px) / 2), 260px);
		max-width: calc(1400px + (2 * var(--pad)));
		padding: 0 var(--pad);
	}
}

/*
 * Default content wrapper for standard page/post templates
 * (page.php, single.php, archive.php, search.php, 404.php, home.php,
 * index.php). Not applied to .site-main directly so that full-bleed
 * homepage sections (e.g. the product grid) can manage their own
 * .site-container internally without double padding.
 */
.content-container {
	margin: 0 auto;
	padding: 48px 20px;
}

@media (min-width: 1024px) {
	/*
	 * Same clamp as .site-container: a fixed 260px collapsed the content
	 * to 504px at 1024 and 1016px at 1536. The clamp holds 260px only
	 * once the viewport can actually spare it.
	 */
	.content-container {
		--pad: clamp(20px, calc((100vw - 1400px) / 2), 260px);
		max-width: calc(1400px + (2 * var(--pad)));
		padding: 48px var(--pad);
	}
}

/*
 * Site header.
 */
.site-header {
	background-color: #000;
	color: #fff;
}

.site-header__inner {
	padding: 0 32px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5em;
}

.site-branding {
	min-width: 0;
	margin-top: 24px;
}

.site-branding img {
	display: block;
	width: 200px;
	height: 47px;
}

.site-branding__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	line-height: 1.2;
}

.site-branding__name {
	font-size: 1.25rem;
	font-weight: 700;
}

.site-branding__description {
	font-size: 0.8rem;
	opacity: 0.7;
}

.menu-toggle {
	display: none;
	margin-left: auto;
	padding: 0.5em;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
}

.menu-toggle,
.menu-toggle::before {
	color: inherit;
}

.menu-toggle::before {
	content: "";
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 1.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	text-decoration: none;
	color: inherit;
}

@media (max-width: 782px) {
	.site-header__inner {
		flex-wrap: wrap;
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation {
		flex-basis: 100%;
		display: none;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75em;
	}
}

/*
 * Site footer.
 */
.site-footer__widgets {
	max-width: 1400px;
	margin: 0 auto;
	padding: 48px 32px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2em;
}

.footer-bar {
	background-color: #000;
}

/* Desktop/tablet strip: shown above 600px. */
.footer-bar--desktop {
	display: block;
}

.footer-bar__strip {
	display: block;
	width: 100%;
	height: auto;
}

/* Mobile bar: hidden above 600px. */
.footer-bar--mobile {
	display: none;
}

/* Coded ribbon: pink background with chevron-separated category links. */
.footer-bar__ribbon-mobile {
	background-color: #e2001a;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.footer-bar__ribbon-mobile ul {
	margin: 0;
	padding: 0 16px;
	display: flex;
	align-items: stretch;
	list-style: none;
	width: max-content;
}

.footer-bar__ribbon-mobile li {
	position: relative;
	display: flex;
	align-items: center;
}

.footer-bar__ribbon-mobile a {
	display: block;
	padding: 10px 14px;
	color: #fff;
	text-decoration: none;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.footer-bar__ribbon-mobile li + li::before {
	content: "";
	align-self: center;
	width: 7px;
	height: 7px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: rotate(45deg);
	opacity: 0.9;
}

.footer-bar__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
}

.footer-bar__group-mobile {
	display: block;
	height: auto;
	max-width: 60%;
}

.footer-bar__logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.footer-bar__logo img {
	display: block;
	width: 90px;
	height: auto;
}

/* Contact line. */
.footer-contact {
	background-color: #000;
}

/*
 * Left inset matches the "FRIEDHELM LOH GROUP" wordmark, which is baked
 * into the footer strip image. The image scales with the viewport, so a
 * percentage keeps the text aligned to it at any width (3.75% = 72px at
 * the 1920px design size).
 */
.footer-contact__inner {
	margin: 0;
	padding-top: 0;
	padding-right: 9.96%;
	padding-bottom: 24px;
	padding-left: 9.96%;
	color: #fff;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 35.7px;
	letter-spacing: 0;
	text-align: left;
}

.footer-contact a {
	color: #fff;
	text-decoration: none;
}

@media (max-width: 600px) {
	.footer-bar--desktop {
		display: none;
	}

	.footer-bar--mobile {
		display: block;
	}

	.footer-contact__inner {
		padding-bottom: 16px;
		line-height: 1.6;
		word-break: break-word;
	}
}
/*
 * Container left/right padding, 1400px and below.
 *
 * .site-container and .content-container normally use a clamp() that
 * scales from 20px up to the Figma 260px as the viewport grows past
 * 1400px (see above). That formula already resolves to exactly 20px
 * anywhere at or below 1400px, so it does not conflict with the fixed
 * paddings below — these rules simply take over once the viewport is
 * at 1400px or narrower, cascading 80px -> 40px -> 20px. Above 1400px
 * the existing clamp is untouched.
 */
@media (max-width: 1400px) {
	.site-container,
	.content-container {
		padding-left: 80px;
		padding-right: 80px;
	}
}

@media (max-width: 1024px) {
	.site-container,
	.content-container {
		padding-left: 40px;
		padding-right: 40px;
	}
}

@media (max-width: 767px) {
	.site-container,
	.content-container {
		padding-left: 20px;
		padding-right: 20px;
	}
	.footer-contact__inner{
		padding-left: 20px;
	}
}
