/**
 * layout.css — containers, header, footer and page scaffolding.
 */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: 820px;
}

.site-main {
	display: block;
}

.site-main:not(.site-main--home) {
	padding-block: var(--space-2xl);
}

/* ---------------------------------------------------------------- Top bar */

.topbar {
	background: var(--dark);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--step--1);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	min-height: 40px;
	padding-block: 0.4rem;
}

.topbar__text {
	margin: 0;
}

.topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--gold);
	text-decoration: none;
	font-weight: 500;
}

/* ----------------------------------------------------------------- Header */

.site-header {
	position: relative;
	z-index: 100;
	background: var(--cream);
}

.site-header--sticky {
	position: sticky;
	top: 0;
}

/* Painted in only once the page has scrolled, so the hero reads as one block
   at the top of the page. */
.site-header--sticky.is-stuck {
	background: rgba(251, 242, 235, 0.92);
	backdrop-filter: saturate(140%) blur(10px);
	box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	min-height: var(--header-height);
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex: 0 0 auto;
}

.brand__logo {
	max-height: 56px;
	width: auto;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand__name {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-style: italic;
	color: var(--gold);
}

.brand__sub {
	margin-top: 0.3rem;
	font-size: 0.625rem;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.brand__text--footer .brand__sub {
	color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------- Navigation */

.site-nav {
	display: flex;
	align-items: center;
	gap: var(--space-md);
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--white);
	border-radius: var(--radius-pill);
	padding: 0.3rem;
}

.site-nav__list > li > a {
	display: block;
	padding: 0.55rem 1.15rem;
	border-radius: var(--radius-pill);
	font-family: var(--font-display);
	font-size: 1.0625rem;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav__list > li > a:hover,
.site-nav__list > .current-menu-item > a,
.site-nav__list > .current_page_item > a {
	background: var(--cream);
	color: var(--ink);
}

/* Sub-menus stay simple: a plain dropdown, revealed on hover and on focus. */
.site-nav__list .sub-menu {
	position: absolute;
	min-width: 220px;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: var(--white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-float);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.site-nav__list > li {
	position: relative;
}

.site-nav__list > li:hover > .sub-menu,
.site-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-nav__list .sub-menu a {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius-sm);
	text-decoration: none;
	font-size: var(--step--1);
}

.site-nav__list .sub-menu a:hover {
	background: var(--cream);
}

/* Drawer-only parts: the top bar, the sub-menu toggle and the "All ..." entry only show on a phone. */
.site-nav__top,
.submenu-toggle,
.site-nav__list .menu-item--all {
	display: none;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--white);
	cursor: pointer;
}

.nav-toggle__bars {
	display: grid;
	gap: 5px;
	width: 20px;
}

.nav-toggle__bars span {
	display: block;
	height: 1.5px;
	background: var(--ink);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

.nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(28, 33, 18, 0.45);
}

/* ------------------------------------------------- Content with a sidebar */

.content-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--space-xl);
	align-items: start;
}

.content-with-sidebar:not(:has(.content-with-sidebar__aside)) {
	grid-template-columns: minmax(0, 1fr);
}

.page-head {
	margin-bottom: var(--space-lg);
}

.page-head__title {
	margin: 0;
}

/* ----------------------------------------------------------------- Footer */

.site-footer {
	background: var(--dark);
	color: rgba(255, 255, 255, 0.72);
	padding-block: var(--space-2xl) var(--space-lg);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: var(--space-xl);
	align-items: start;
}

.site-footer__logo {
	max-height: 64px;
	width: auto;
	margin-bottom: var(--space-md);
}

.site-footer__tagline {
	max-width: 32ch;
	font-size: var(--step--1);
	line-height: 1.7;
}

.site-footer__heading {
	margin: 0 0 var(--space-md);
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--white);
}

.site-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.7rem;
}

.site-footer__links a,
.site-footer__col--contact a {
	font-family: var(--font-display);
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__col--contact a:hover {
	color: var(--gold);
}

.site-footer__col--contact p {
	margin: 0 0 0.5rem;
}

.site-footer__address {
	margin: 0 0 var(--space-md);
	font-family: var(--font-display);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/*
 * The saved Additional CSS (Customizer) hides the contact column and enlarges
 * the first heading. The footer now shows Quick Links, Our Services and Contact
 * in one style, so these win over those two older rules.
 */
.site-footer .site-footer__grid .site-footer__col--contact {
	display: block !important;
}

.site-footer .site-footer__grid .site-footer__col .site-footer__heading {
	font-size: 12px;
}

/* Our Services: the treatments run in two columns. */
.site-footer__links--two-col {
	display: block;
	column-count: 2;
	column-gap: var(--space-md);
}

.site-footer__links--two-col li {
	break-inside: avoid;
	margin-bottom: 5px;
}

/* Give the services column the room two columns need (wins over the Additional CSS grid). */
@media (min-width: 1101px) {
	.site-footer .site-footer__grid {
		grid-template-columns: 1.1fr 0.8fr 2fr 1.3fr;
	}
}

@media (max-width: 1100px) {
	.site-footer__links--two-col {
		column-count: 1;
	}
}

/* Contact: a round icon beside each linked detail. */
.site-footer__contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--space-sm);
}

/* Type and colour come from the shared footer link rules, so these match Home, About Deepti and the rest. */
.site-footer .site-footer__contact-list a {
	display: flex;
	align-items: center;
	gap: 1rem;
	text-decoration: none;
}

.site-footer .site-footer__contact-list a:hover,
.site-footer .site-footer__contact-list a:focus-visible {
	color: var(--gold);
}

.site-footer__contact-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--white);
}

.site-footer__contact-text {
	margin: 0;
	font: inherit;
	font-style: normal;
	color: inherit;
}

/* Bottom bar: disclaimer and copyright (the Additional CSS hides it by default). */
.site-footer .site-footer__bottom {
	display: block;
	text-align: center;
	margin-top: var(--space-xl);
	padding-top: var(--space-md);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* One style for both lines (the older .site-footer__copyright rule below would otherwise change only one). */
.site-footer .site-footer__bottom .site-footer__disclaimer,
.site-footer .site-footer__bottom .site-footer__copyright {
	margin: 0 0 0.4rem;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}

.socials {
	display: flex;
	gap: 0.6rem;
	margin: var(--space-md) 0 0;
	padding: 0;
	list-style: none;
}

.socials__link {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line-light);
	border-radius: var(--radius-pill);
	color: rgba(255, 255, 255, 0.8);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.socials__link:hover {
	border-color: var(--gold);
	color: var(--gold);
}

.site-footer__bottom {
	margin-top: var(--space-2xl);
	padding-top: var(--space-md);
	border-top: 1px solid var(--line-light);
	display: grid;
	gap: 0.35rem;
	justify-items: center;
	text-align: center;
	font-size: var(--step--1);
}

.site-footer__copyright {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1rem;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__legal a {
	font-family: var(--font-display);
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

.site-footer__legal a:hover {
	color: var(--gold);
}
