/* ============================================================
   Sri Sai Township Developers — Brand Stylesheet
   Cream / coral premium real-estate aesthetic
   ============================================================ */

/* ============ TOKENS ============ */
:root {
	--sst-cream: #F5EFD7;
	--sst-cream-soft: #FBF7E8;
	--sst-coral: #E47956;
	--sst-coral-dark: #C9613F;
	--sst-navy: #1F2C3F;
	--sst-text: #444444;
	--sst-muted: #6B7280;
	--sst-white: #FFFFFF;

	--sst-radius-pill: 999px;
	--sst-radius-card: 28px;

	--sst-shadow-pill: 0 6px 24px rgba(31, 44, 63, 0.08);
	--sst-shadow-pill-strong: 0 12px 36px rgba(31, 44, 63, 0.14);
	--sst-shadow-button: 0 4px 12px rgba(228, 121, 86, 0.3);
	--sst-shadow-button-hover: 0 8px 20px rgba(228, 121, 86, 0.4);

	--sst-font-serif: 'Playfair Display', Georgia, serif;
	--sst-font-sans: 'Inter', system-ui, sans-serif;
}

/* ============ RESET ============ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--sst-font-sans);
	color: var(--sst-text);
	background: var(--sst-white);
	-webkit-font-smoothing: antialiased;
}

/* ============ ACCESSIBILITY ============ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important; /* override Elementor/theme positioning to keep SR-only */
	width: 1px;
	word-wrap: normal !important;
}

.sst-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--sst-navy);
	color: var(--sst-white);
	font-family: var(--sst-font-sans);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--sst-radius-pill);
	transition: top 0.2s ease;
}

.sst-skip-link:focus {
	top: 16px;
	outline: 2px solid var(--sst-coral);
	outline-offset: 2px;
}

/* ============ HEADER ============ */
.sst-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 24px;
	background: transparent;
}

.sst-header__pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 32px;
	background: var(--sst-cream);
	border-radius: var(--sst-radius-card);
	box-shadow: var(--sst-shadow-pill);
	transition: box-shadow 0.3s ease;
}

.sst-header.is-scrolled .sst-header__pill {
	box-shadow: var(--sst-shadow-pill-strong);
}

.sst-header__brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.sst-header__logo {
	display: block;
	max-height: 56px;
	width: auto;
}

.sst-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: transparent;
	border: none;
	cursor: pointer;
	border-radius: 8px;
}

.sst-header__toggle:focus-visible {
	outline: 2px solid var(--sst-coral);
	outline-offset: 2px;
}

.sst-header__toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--sst-navy);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
	transform-origin: center;
}

.sst-header__toggle[aria-expanded="true"] .sst-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.sst-header__toggle[aria-expanded="true"] .sst-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.sst-header__toggle[aria-expanded="true"] .sst-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.sst-header__nav {
	display: flex;
	align-items: center;
}

.sst-header__menu {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 48px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sst-header__menu li {
	margin: 0;
	padding: 0;
}

.sst-header__menu li > a {
	font-family: var(--sst-font-serif);
	font-size: 22px;
	font-weight: 500;
	font-style: italic;
	color: var(--sst-coral);
	text-decoration: none;
	transition: color 0.2s ease;
}

.sst-header__menu li > a:hover,
.sst-header__menu li > a:focus-visible {
	color: var(--sst-coral-dark);
}

/* ============ CONTENT ============ */
.sst-content {
	display: block;
}

.sst-elementor-host {
	display: block;
}

/* ============ BUTTONS ============ */
a.sst-button,
button.sst-button,
.sst-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 36px;
	background: var(--sst-coral);
	color: var(--sst-white);
	border: none;
	border-radius: var(--sst-radius-pill);
	font-family: var(--sst-font-sans);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--sst-shadow-button);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.sst-button:hover,
button.sst-button:hover,
.sst-button:hover,
a.sst-button:focus-visible,
button.sst-button:focus-visible,
.sst-button:focus-visible {
	background: var(--sst-coral-dark);
	color: var(--sst-white);
	transform: translateY(-1px);
	box-shadow: var(--sst-shadow-button-hover);
}

a.sst-button--ghost,
button.sst-button--ghost,
.sst-button--ghost {
	background: transparent;
	color: var(--sst-coral);
	border: 1.5px solid var(--sst-coral);
	box-shadow: none;
}

a.sst-button--ghost:hover,
button.sst-button--ghost:hover,
.sst-button--ghost:hover,
a.sst-button--ghost:focus-visible,
button.sst-button--ghost:focus-visible,
.sst-button--ghost:focus-visible {
	background: var(--sst-coral);
	color: var(--sst-white);
	box-shadow: var(--sst-shadow-button);
}

/* ============ TYPOGRAPHY UTILITIES ============ */
.sst-eyebrow {
	font-family: var(--sst-font-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sst-coral);
	margin: 0;
}

.sst-heading-serif {
	font-family: var(--sst-font-serif);
	color: var(--sst-navy);
	font-weight: 600;
	line-height: 1.2;
}

/* ============ FOOTER ============ */
.sst-footer {
	padding: 24px;
	background: var(--sst-white);
}

.sst-footer__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 80px 64px 40px;
	background: var(--sst-cream);
	border-radius: var(--sst-radius-card);
}

.sst-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 48px;
}

.sst-footer__col {
	display: block;
}

.sst-footer__title {
	font-family: var(--sst-font-serif);
	font-size: 18px;
	font-weight: 600;
	color: var(--sst-navy);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 20px;
}

.sst-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sst-footer__menu li {
	margin: 0;
	padding: 0;
}

.sst-footer__menu a {
	font-family: var(--sst-font-sans);
	font-size: 14px;
	color: var(--sst-navy);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sst-footer__menu a:hover,
.sst-footer__menu a:focus-visible {
	color: var(--sst-coral);
}

.sst-footer__bottom {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid rgba(31, 44, 63, 0.1);
}

.sst-footer__brand {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.sst-footer__brand img {
	display: block;
	max-height: 48px;
	width: auto;
}

.sst-footer__social {
	justify-self: center;
	display: flex;
	flex-direction: row;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sst-footer__social li {
	margin: 0;
	padding: 0;
}

.sst-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	color: var(--sst-navy);
	border-radius: var(--sst-radius-pill);
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
}

.sst-footer__social a:hover,
.sst-footer__social a:focus-visible {
	color: var(--sst-coral);
	background: rgba(228, 121, 86, 0.1);
}

.sst-footer__social svg {
	width: 20px;
	height: 20px;
	display: block;
}

.sst-footer__copy {
	justify-self: end;
	margin: 0;
	font-family: var(--sst-font-sans);
	font-size: 13px;
	color: var(--sst-muted);
}

/* ============ RESPONSIVE: ≤1024px ============ */
@media (max-width: 1024px) {
	.sst-header__toggle {
		display: flex;
	}

	.sst-header__pill {
		position: relative;
	}

	.sst-header__nav {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		background: var(--sst-cream);
		padding: 24px;
		border-radius: 0 0 var(--sst-radius-card) var(--sst-radius-card);
		box-shadow: var(--sst-shadow-pill-strong);
	}

	.sst-header.is-open .sst-header__nav {
		display: flex;
	}

	.sst-header__menu {
		flex-direction: column;
		width: 100%;
		gap: 16px;
		align-items: center;
	}
}

/* ============ RESPONSIVE: ≤768px ============ */
@media (max-width: 768px) {
	.sst-header__pill {
		padding: 12px 20px;
	}

	.sst-header__menu li > a {
		font-size: 18px;
	}

	.sst-footer__inner {
		padding: 64px 40px 32px;
	}

	.sst-footer__cols {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px;
	}
}

/* ============ RESPONSIVE: ≤480px ============ */
@media (max-width: 480px) {
	.sst-header {
		padding: 12px;
	}

	.sst-footer {
		padding: 12px;
	}

	.sst-footer__inner {
		padding: 48px 24px 28px;
	}

	.sst-footer__cols {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.sst-footer__bottom {
		grid-template-columns: 1fr;
		gap: 24px;
		justify-items: center;
		text-align: center;
	}

	.sst-footer__brand,
	.sst-footer__social,
	.sst-footer__copy {
		justify-self: center;
	}
}

/* ============================================================
   ELEMENTOR MOBILE OVERRIDES
   These rules target Elementor's rendered output so that every
   page built with the imported JSON templates looks good on
   phones without having to edit per-widget settings.
   ============================================================ */

/* Images never overflow their column on any screen. */
.elementor-widget-image img,
.elementor-widget-image-box img,
.sst-elementor-host img {
	max-width: 100%;
	height: auto;
}

/* Fluid headings — scale smoothly from desktop down to 360px. */
.sst-elementor-host .elementor-heading-title {
	line-height: 1.15;
	word-break: break-word;
	overflow-wrap: anywhere;
}

/* Make buttons never run off the screen and keep tap targets comfy. */
.sst-elementor-host .elementor-button {
	max-width: 100%;
	white-space: normal;
}

/* ≤1024px — tablet */
@media (max-width: 1024px) {
	.sst-elementor-host .elementor-section .elementor-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	.sst-elementor-host h1.elementor-heading-title,
	.sst-elementor-host .elementor-heading-title.elementor-size-xxl {
		font-size: clamp(36px, 6vw, 72px);
	}

	.sst-elementor-host h2.elementor-heading-title,
	.sst-elementor-host .elementor-heading-title.elementor-size-xl {
		font-size: clamp(28px, 5vw, 48px);
	}

	.sst-elementor-host .elementor-widget-google_maps .elementor-custom-embed,
	.sst-elementor-host .elementor-widget-video .elementor-wrapper {
		min-height: 320px;
	}
}

/* ≤768px — phone landscape and small tablets */
@media (max-width: 768px) {
	/* Snug section padding so content isn't swimming in whitespace. */
	.sst-elementor-host .elementor-section {
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}

	.sst-elementor-host .elementor-section .elementor-container,
	.sst-elementor-host .e-con {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	/* Force every Elementor column full-width on phones regardless
	   of the inline width the template shipped with. */
	.sst-elementor-host .elementor-column {
		width: 100% !important;
	}

	/* Heading scaling — clamp() stops huge hero text from overflowing. */
	.sst-elementor-host h1.elementor-heading-title {
		font-size: clamp(30px, 8vw, 44px) !important;
		line-height: 1.15 !important;
	}

	.sst-elementor-host h2.elementor-heading-title {
		font-size: clamp(26px, 6vw, 36px) !important;
		line-height: 1.2 !important;
	}

	.sst-elementor-host h3.elementor-heading-title {
		font-size: clamp(22px, 5vw, 28px) !important;
	}

	.sst-elementor-host .elementor-widget-text-editor p,
	.sst-elementor-host .elementor-widget-text-editor li {
		font-size: 16px !important;
		line-height: 1.6 !important;
	}

	/* Buttons — full-width on phones is friendlier, bigger tap target. */
	.sst-elementor-host .elementor-button {
		width: 100%;
		padding: 16px 24px !important;
		font-size: 15px !important;
	}

	.sst-elementor-host .elementor-widget-button .elementor-button-wrapper {
		width: 100%;
	}

	/* Hero: if the section uses a background image, anchor it. */
	.sst-elementor-host .elementor-section[data-settings*="background_position"] {
		background-attachment: scroll !important;
	}

	/* Video / map widgets keep 16:9 on phone. */
	.sst-elementor-host .elementor-widget-video .elementor-wrapper,
	.sst-elementor-host .elementor-widget-google_maps .elementor-custom-embed {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.sst-elementor-host .elementor-widget-video iframe,
	.sst-elementor-host .elementor-widget-video video,
	.sst-elementor-host .elementor-widget-google_maps iframe {
		width: 100%;
		height: 100%;
	}

	/* FAQ accordion — tighten up, larger tap row. */
	.sst-elementor-host .elementor-accordion-item .elementor-tab-title,
	.sst-elementor-host .elementor-toggle-item .elementor-tab-title {
		padding: 18px 16px !important;
		font-size: 16px !important;
	}

	.sst-elementor-host .elementor-accordion-item .elementor-tab-content,
	.sst-elementor-host .elementor-toggle-item .elementor-tab-content {
		padding: 16px !important;
		font-size: 15px !important;
	}

	/* Icon-list items inherit mobile-friendly sizing. */
	.sst-elementor-host .elementor-icon-list-item {
		font-size: 15px !important;
	}

	/* Image grids inside 2-col / 4-col layouts stack cleanly. */
	.sst-elementor-host .elementor-widget-image-box .elementor-image-box-wrapper {
		text-align: center;
	}

	/* Contact form fields stack and get bigger tap targets. */
	.sst-elementor-host input[type="text"],
	.sst-elementor-host input[type="email"],
	.sst-elementor-host input[type="tel"],
	.sst-elementor-host textarea {
		font-size: 16px !important; /* 16px prevents iOS zoom-on-focus */
		padding: 14px !important;
	}
}

/* ≤480px — tight phones */
@media (max-width: 480px) {
	.sst-elementor-host .elementor-section {
		padding-top: 36px !important;
		padding-bottom: 36px !important;
	}

	.sst-elementor-host .elementor-section .elementor-container,
	.sst-elementor-host .e-con {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	.sst-elementor-host h1.elementor-heading-title {
		font-size: clamp(26px, 9vw, 36px) !important;
	}

	.sst-elementor-host h2.elementor-heading-title {
		font-size: clamp(22px, 7vw, 30px) !important;
	}

	/* Stack the grid columns in the "Who Are We" 2x2 block. */
	.sst-elementor-host .elementor-column-gap-default > .elementor-column-wrap,
	.sst-elementor-host .elementor-column-gap-default > .elementor-widget-wrap {
		padding: 6px;
	}
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
