/* Ryba Roofing — main styles */

:root {
	--ryba-blue-950: #071526;
	--ryba-blue-900: #0b2748;
	--ryba-blue-800: #123a6b;
	--ryba-blue-600: #1a5fa8;
	--ryba-blue-400: #4d8fd4;
	--ryba-red: #d91c24;
	--ryba-red-dark: #b0151b;
	--ryba-ink: #142033;
	--ryba-muted: #5a6578;
	--ryba-line: rgba(11, 39, 72, 0.12);
	--ryba-paper: #f2f5f9;
	--ryba-white: #ffffff;
	--font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", sans-serif;
	--space: clamp(1.15rem, 2.8vw, 2.25rem);
	--max: 1180px;
	--header-main: 4.75rem;
	--radius: 3px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--shadow-soft: 0 10px 30px rgba(7, 21, 38, 0.1);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 7.5rem;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ryba-ink);
	background: var(--ryba-white);
}

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

a {
	color: var(--ryba-blue-800);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ryba-red);
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ryba-blue-900);
	margin: 0 0 0.55em;
}

h1 {
	font-size: clamp(2.4rem, 5.4vw, 4rem);
}

h2 {
	font-size: clamp(1.9rem, 3.5vw, 2.85rem);
}

h3 {
	font-size: 1.4rem;
}

p {
	margin: 0 0 1em;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	background: var(--ryba-white);
	padding: 0.75rem 1rem;
	color: var(--ryba-blue-900);
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 3.1rem;
	padding: 0.75rem 1.45rem;
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.btn--accent {
	background: var(--ryba-red);
	color: var(--ryba-white);
	border-color: var(--ryba-red);
	box-shadow: 0 8px 22px rgba(217, 28, 36, 0.35);
}

.btn--accent:hover {
	background: var(--ryba-red-dark);
	border-color: var(--ryba-red-dark);
	color: var(--ryba-white);
}

.btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: var(--ryba-white);
	border-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(4px);
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.18);
	color: var(--ryba-white);
	border-color: var(--ryba-white);
}

.btn--header {
	background: var(--ryba-red);
	color: var(--ryba-white);
	border-color: var(--ryba-red);
	min-height: 2.65rem;
	padding: 0.5rem 1.15rem;
	font-size: 1rem;
	box-shadow: none;
	white-space: nowrap;
}

.btn--header:hover {
	background: var(--ryba-red-dark);
	color: var(--ryba-white);
}

/* ========== Header ========== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--ryba-white);
	box-shadow: 0 1px 0 var(--ryba-line), var(--shadow-soft);
}

.site-header__utility {
	background: var(--ryba-blue-950);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.84rem;
	letter-spacing: 0.02em;
}

.site-header__utility-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0.35rem var(--space);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-header__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.site-header__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--ryba-red);
	display: inline-block;
}

.site-header__utility-phone {
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__utility-phone:hover {
	color: #ff8b90;
}

.site-header__main {
	border-bottom: 3px solid var(--ryba-blue-900);
}

.site-header__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0.45rem var(--space);
	min-height: var(--header-main);
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.site-brand {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.site-brand img {
	width: clamp(128px, 13.5vw, 152px);
	height: auto;
}

.site-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.05rem 0.15rem;
}

.site-nav__list a {
	display: block;
	padding: 0.5rem 0.65rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ryba-blue-900);
	border-radius: var(--radius);
	position: relative;
}

.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0.7rem;
	right: 0.7rem;
	bottom: 0.3rem;
	height: 2px;
	background: var(--ryba-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--ease);
}

.site-nav__list a:hover {
	color: var(--ryba-red);
	background: transparent;
}

.site-nav__list a:hover::after {
	transform: scaleX(1);
}

.site-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-left: auto;
	padding-left: 0.5rem;
	border-left: 1px solid var(--ryba-line);
}

.site-header__phone {
	display: none;
	flex-direction: column;
	text-decoration: none;
	line-height: 1.15;
	text-align: right;
}

.site-header__phone-label {
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ryba-red);
}

.site-header__phone-number {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--ryba-blue-900);
}

.site-header__phone:hover .site-header__phone-number {
	color: var(--ryba-red);
}

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

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.2rem;
	height: 2px;
	background: var(--ryba-blue-900);
	margin: 0 auto;
	position: relative;
	transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	top: 0;
	transform: rotate(-45deg);
}

@media (min-width: 1100px) {
	.site-header__phone {
		display: flex;
	}

	.site-header__utility-phone {
		display: none;
	}
}

/* ========== Hero ========== */

.hero {
	position: relative;
	min-height: min(86vh, 740px);
	display: grid;
	align-items: center;
	overflow: hidden;
	color: var(--ryba-white);
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		url("../hero.jpg") center 35% / cover no-repeat;
	transform: scale(1.03);
	animation: hero-drift 20s var(--ease) infinite alternate;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(
			115deg,
			rgba(7, 21, 38, 0.82) 0%,
			rgba(7, 21, 38, 0.62) 46%,
			rgba(7, 21, 38, 0.28) 78%,
			rgba(7, 21, 38, 0.42) 100%
		),
		linear-gradient(180deg, rgba(7, 21, 38, 0.12) 0%, rgba(7, 21, 38, 0.68) 100%);
}

.hero__content {
	width: min(100%, var(--max));
	margin: 0 auto;
	padding: clamp(4.5rem, 10vh, 6.5rem) var(--space);
	text-align: left;
	animation: hero-rise 0.85s var(--ease) both;
}

.hero__title {
	max-width: 14ch;
	color: #ffffff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
	margin-bottom: 0.45em;
}

.hero__lead {
	font-size: clamp(1.08rem, 2vw, 1.28rem);
	max-width: 34rem;
	margin: 0 0 1.65rem;
	color: #ffffff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

@keyframes hero-rise {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes hero-drift {
	from {
		transform: scale(1.03) translate3d(0, 0, 0);
	}
	to {
		transform: scale(1.08) translate3d(0, -1.2%, 0);
	}
}

/* ========== Sections ========== */

.section {
	padding: clamp(3.75rem, 7.5vw, 5.75rem) 0;
}

.section__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--space);
}

.section__inner--narrow {
	max-width: 760px;
}

.section__inner--split {
	display: grid;
	grid-template-columns: 1.35fr 0.85fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.section__header {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2.75rem;
}

.section__header p:last-child {
	margin-bottom: 0;
	color: var(--ryba-muted);
}

.eyebrow {
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ryba-red);
	margin: 0 0 0.45rem;
}

.section--about {
	background:
		linear-gradient(180deg, #fff 0%, var(--ryba-paper) 100%);
}

.section__copy p {
	color: var(--ryba-muted);
	font-size: 1.08rem;
}

.section__copy p:last-child {
	margin-bottom: 0;
}

.about-highlight {
	background: var(--ryba-blue-950);
	color: rgba(255, 255, 255, 0.88);
	padding: 1.85rem 1.65rem;
	border-top: 4px solid var(--ryba-red);
}

.about-highlight__years {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 5.5vw, 3.75rem);
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
	color: #fff;
	letter-spacing: 0.04em;
}

.about-highlight__years span::after {
	content: "";
	display: block;
	width: 3.25rem;
	height: 3px;
	margin-top: 0.5rem;
	background: var(--ryba-red);
}

.about-highlight__label {
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
	margin: 0.85rem 0 1.25rem;
}

.about-highlight__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.about-highlight__list li {
	position: relative;
	padding: 0.6rem 0 0.6rem 1.2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}

.about-highlight__list li:last-child {
	border-bottom: 0;
}

.about-highlight__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.05rem;
	width: 0.45rem;
	height: 0.45rem;
	background: var(--ryba-red);
	transform: rotate(45deg);
}

/* Services */

.section--services {
	background: var(--ryba-white);
	border-top: 1px solid var(--ryba-line);
}

.service-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem 2.5rem;
}

.service-item {
	display: flex;
	flex-direction: column;
	padding: 0;
	background: var(--ryba-white);
	border: 1px solid var(--ryba-line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(7, 21, 38, 0.06);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), box-shadow 0.3s var(--ease);
}

.service-item:hover {
	box-shadow: 0 14px 34px rgba(7, 21, 38, 0.12);
}

.service-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.service-item__media {
	position: relative;
	aspect-ratio: 3 / 2;
	background: var(--ryba-blue-950);
	overflow: hidden;
}

.service-item__media::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ryba-red) 0 40%, var(--ryba-blue-900) 40% 100%);
}

.service-item__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s var(--ease);
}

.service-item:hover .service-item__photo {
	transform: scale(1.04);
}

.service-item__media .service-icon {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	background: var(--ryba-blue-950);
	color: #fff;
}

.service-item__media .service-icon svg {
	width: 4rem;
	height: 4rem;
}

.service-item__content {
	padding: 1.35rem 1.5rem 1.6rem;
}

.service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 1rem;
	color: var(--ryba-blue-900);
	background: linear-gradient(180deg, rgba(11, 39, 72, 0.06), rgba(217, 28, 36, 0.06));
	border: 1px solid var(--ryba-line);
	border-top: 3px solid var(--ryba-red);
}

.service-icon svg {
	width: 2rem;
	height: 2rem;
	display: block;
}

.service-item h3 {
	margin-bottom: 0.4em;
}

.service-item__body {
	color: var(--ryba-muted);
}

.service-item__body > *:last-child {
	margin-bottom: 0;
}

.service-item__note {
	margin-top: 0.75rem;
	font-size: 0.95rem;
	font-style: italic;
	color: var(--ryba-red-dark);
}

.service-item__link {
	margin-top: 0.75rem;
	margin-bottom: 0;
	font-weight: 600;
}

/* Testimonials */

.section--testimonials {
	background:
		radial-gradient(700px 280px at 15% 0%, rgba(77, 143, 212, 0.18), transparent 60%),
		var(--ryba-blue-950);
	color: rgba(255, 255, 255, 0.9);
}

.section--testimonials .eyebrow {
	color: #ff7a7f;
}

.section--testimonials h2 {
	color: var(--ryba-white);
}

.testimonial-slider {
	max-width: 720px;
	margin: 0 auto;
}

.testimonial-slider__viewport {
	overflow: hidden;
	min-height: 12rem;
}

.testimonial-slider__slide {
	animation: slide-in 0.45s var(--ease);
}

.testimonial-slider__slide[hidden] {
	display: none;
}

.testimonial {
	margin: 0;
	padding: 0;
	border: 0;
}

.testimonial__quote {
	position: relative;
	padding-top: 1.5rem;
	font-size: clamp(1.1rem, 2.2vw, 1.3rem);
	line-height: 1.7;
	text-align: center;
}

.testimonial__quote::before {
	content: "“";
	position: absolute;
	top: -0.35rem;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--font-display);
	font-size: 3.2rem;
	line-height: 1;
	color: var(--ryba-red);
}

.testimonial__quote p:last-child {
	margin-bottom: 0;
}

.testimonial footer {
	margin-top: 1.35rem;
	padding-top: 0.95rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	text-align: center;
}

.testimonial cite {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	align-items: center;
}

.testimonial__author {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ryba-white);
}

.testimonial__location {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.62);
}

.testimonial-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.75rem;
}

.testimonial-slider__btn {
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: transparent;
	color: #fff;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	border-radius: var(--radius);
	transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.testimonial-slider__btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}

.testimonial-slider__dots {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.testimonial-slider__dot {
	width: 0.65rem;
	height: 0.65rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.testimonial-slider__dot.is-active,
.testimonial-slider__dot:hover {
	background: var(--ryba-red);
	transform: scale(1.15);
}

@keyframes slide-in {
	from {
		opacity: 0;
		transform: translateX(18px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* FAQs */

.section--faqs {
	background: var(--ryba-paper);
	border-top: 1px solid var(--ryba-line);
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--ryba-white);
	border: 1px solid var(--ryba-line);
	border-top: 3px solid var(--ryba-blue-900);
}

.faq-item {
	border-bottom: 1px solid var(--ryba-line);
	padding: 0 1.35rem;
}

.faq-item:last-child {
	border-bottom: 0;
}

.faq-item summary {
	cursor: pointer;
	list-style: none;
	padding: 1.1rem 2.25rem 1.1rem 0;
	font-family: var(--font-display);
	font-size: 1.18rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ryba-blue-900);
	position: relative;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.45rem;
	color: var(--ryba-red);
}

.faq-item[open] summary::after {
	content: "–";
}

.faq-item__answer {
	padding: 0 0 1.15rem;
	color: var(--ryba-muted);
	animation: faq-open 0.3s var(--ease);
}

@keyframes faq-open {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Estimate / Gravity Forms */

.section--estimate {
	background:
		radial-gradient(900px 320px at 100% 0%, rgba(217, 28, 36, 0.1), transparent 52%),
		linear-gradient(180deg, #c8d6ea 0%, #d9e4f2 35%, #e4ebf5 100%);
	border-top: 5px solid var(--ryba-blue-900);
	box-shadow: inset 0 1px 0 rgba(217, 28, 36, 0.35);
}

.estimate-layout {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.estimate-intro h2 {
	margin-bottom: 0.5em;
}

.estimate-intro > p {
	color: var(--ryba-muted);
	font-size: 1.08rem;
	max-width: 32rem;
}

.estimate-call {
	margin: 0.5rem 0 1.75rem;
	font-size: 1.25rem;
	padding: 0.85rem 1.6rem;
}

.estimate-call__icon {
	width: 1.15rem;
	height: 1.15rem;
	flex: 0 0 auto;
}

.estimate-points {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ryba-line);
}

.estimate-points li {
	position: relative;
	padding: 0.65rem 0 0.65rem 1.65rem;
	border-bottom: 1px solid var(--ryba-line);
	font-weight: 600;
	color: var(--ryba-blue-900);
}

.estimate-points li::before {
	content: "";
	position: absolute;
	left: 0.1rem;
	top: 0.95rem;
	width: 0.55rem;
	height: 0.95rem;
	border-right: 2.5px solid var(--ryba-red);
	border-bottom: 2.5px solid var(--ryba-red);
	transform: rotate(45deg);
}

.estimate-form {
	background: var(--ryba-white);
	border: 1px solid var(--ryba-line);
	border-top: 4px solid var(--ryba-red);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: 0 18px 50px rgba(7, 21, 38, 0.12);
}

.estimate-form__heading {
	margin: 0 0 1.25rem;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ryba-blue-900);
}

.estimate-form .gform_wrapper,
.estimate-form .gform_legacy_markup_wrapper {
	margin: 0;
}

.estimate-form .gform_heading,
.estimate-form .gform_required_legend {
	display: none;
}

/* Field grid: honours Gravity Forms column spans */
.estimate-form .gform_fields {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 1.1rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.estimate-form .gfield {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.estimate-form .gfield--width-half {
	grid-column: span 6;
}

.estimate-form .gfield--width-third {
	grid-column: span 4;
}

.estimate-form .gfield_label,
.estimate-form .gform-field-label {
	display: block;
	margin: 0 0 0.4rem;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ryba-blue-900);
}

.estimate-form .gfield_required {
	color: var(--ryba-red);
	margin-left: 0.25rem;
	font-size: 0.85em;
}

.estimate-form .gfield_required_text {
	font-family: var(--font-body);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

/* Name field sub-inputs */
.estimate-form .ginput_complex {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.estimate-form .ginput_complex span {
	display: block;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.estimate-form .ginput_complex span {
	display: flex;
	flex-direction: column;
}

.estimate-form .ginput_complex label,
.estimate-form .gform_wrapper .gform-field-label--type-sub {
	display: block;
	order: -1;
	margin: 0 0 0.35rem;
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--ryba-muted);
}

.estimate-form .ginput_container {
	margin: 0;
}

/* Inputs — specificity boosted to override Gravity Forms Orbital theme */
.estimate-form .gform_wrapper input[type="text"],
.estimate-form .gform_wrapper input[type="email"],
.estimate-form .gform_wrapper input[type="tel"],
.estimate-form .gform_wrapper input[type="url"],
.estimate-form .gform_wrapper input[type="number"],
.estimate-form .gform_wrapper select,
.estimate-form .gform_wrapper textarea {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 3.1rem !important;
	height: auto !important;
	border: 1px solid rgba(11, 39, 72, 0.22) !important;
	border-radius: var(--radius) !important;
	padding: 0.75rem 0.95rem !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	background-color: #fbfcfe !important;
	color: var(--ryba-ink) !important;
	box-shadow: inset 0 1px 2px rgba(7, 21, 38, 0.05) !important;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.estimate-form .gform_wrapper input::placeholder,
.estimate-form .gform_wrapper textarea::placeholder {
	color: #9aa5b5 !important;
	opacity: 1;
}

.estimate-form .gform_wrapper textarea {
	min-height: 7.5rem !important;
	height: 7.5rem !important;
	resize: vertical;
}

.estimate-form .gform_wrapper select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.75rem !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230b2748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.9rem center !important;
	background-size: 1rem !important;
	cursor: pointer;
}

.estimate-form .gform_wrapper input:hover,
.estimate-form .gform_wrapper select:hover,
.estimate-form .gform_wrapper textarea:hover {
	border-color: rgba(11, 39, 72, 0.4) !important;
}

.estimate-form .gform_wrapper input:focus,
.estimate-form .gform_wrapper select:focus,
.estimate-form .gform_wrapper textarea:focus {
	outline: none !important;
	border-color: var(--ryba-blue-600) !important;
	background-color: var(--ryba-white) !important;
	box-shadow: 0 0 0 3px rgba(26, 95, 168, 0.18) !important;
}

/* Phone field with Gravity Forms country selector */
.estimate-form .gform_wrapper .gform-phone {
	width: 100%;
	position: relative;
}

.estimate-form .gform_wrapper .gform-phone__input-wrapper {
	display: flex;
	align-items: flex-end;
	gap: 0;
	width: 100%;
}

.estimate-form .gform_wrapper .ginput_country-selector_container {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
}

.estimate-form .gform_wrapper .ginput_phone_container {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.estimate-form .gform_wrapper .ginput_country-selector_container .gform-field-label--type-sub,
.estimate-form .gform_wrapper .ginput_phone_container .gform-field-label--type-sub {
	order: -1;
	margin: 0 0 0.35rem;
}

.estimate-form .gform_wrapper .gform-phone__country-selector {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 3.1rem !important;
	height: auto !important;
	padding: 0.75rem 0.85rem !important;
	border: 1px solid rgba(11, 39, 72, 0.22) !important;
	border-right: 0 !important;
	border-radius: var(--radius) 0 0 var(--radius) !important;
	background: #f1f4f9 !important;
	color: var(--ryba-ink) !important;
	font: inherit !important;
	font-size: 0.95rem !important;
	cursor: pointer;
	box-shadow: inset 0 1px 2px rgba(7, 21, 38, 0.05) !important;
}

.estimate-form .gform_wrapper .gform-phone__country-selector:hover {
	background: #e8edf5 !important;
}

.estimate-form .gform_wrapper .gform-phone__country-selector:focus-visible {
	outline: none;
	border-color: var(--ryba-blue-600) !important;
	box-shadow: 0 0 0 3px rgba(26, 95, 168, 0.18) !important;
	position: relative;
	z-index: 1;
}

.estimate-form .gform_wrapper .gform-phone__input {
	border-radius: 0 var(--radius) var(--radius) 0 !important;
}

.estimate-form .gform_wrapper .gform-phone__dropdown {
	border: 1px solid rgba(11, 39, 72, 0.22);
	border-radius: var(--radius);
	box-shadow: 0 14px 36px rgba(7, 21, 38, 0.16);
	background: var(--ryba-white);
}

.estimate-form .gfield_description {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	color: var(--ryba-muted);
}

.estimate-form .gfield_validation_message,
.estimate-form .validation_message {
	margin: 0.4rem 0 0;
	padding: 0.5rem 0.75rem;
	font-size: 0.9rem;
	color: var(--ryba-red-dark);
	background: rgba(217, 28, 36, 0.06);
	border: 1px solid rgba(217, 28, 36, 0.25);
	border-radius: var(--radius);
}

.estimate-form .gfield_error input,
.estimate-form .gfield_error select,
.estimate-form .gfield_error textarea {
	border-color: var(--ryba-red);
}

.estimate-form .gform_validation_errors {
	margin: 0 0 1.25rem;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(217, 28, 36, 0.35);
	border-left: 4px solid var(--ryba-red);
	background: rgba(217, 28, 36, 0.05);
	border-radius: var(--radius);
}

.estimate-form .gform_validation_errors h2 {
	margin: 0;
	font-size: 1rem;
	color: var(--ryba-red-dark);
}

.estimate-form .gform_footer {
	margin: 1.5rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.estimate-form .gform_wrapper .gform_footer .gform_button,
.estimate-form .gform_wrapper .gform_footer input[type="submit"],
.estimate-form .gform_wrapper .gform_footer button[type="submit"] {
	appearance: none;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 3.35rem !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0.85rem 1.6rem !important;
	font-family: var(--font-display) !important;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.07em !important;
	text-transform: uppercase !important;
	background: var(--ryba-red) !important;
	color: var(--ryba-white) !important;
	border: 2px solid var(--ryba-red) !important;
	border-radius: var(--radius) !important;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(217, 28, 36, 0.28) !important;
	transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.estimate-form .gform_wrapper .gform_footer .gform_button:hover,
.estimate-form .gform_wrapper .gform_footer input[type="submit"]:hover,
.estimate-form .gform_wrapper .gform_footer button[type="submit"]:hover {
	background: var(--ryba-red-dark) !important;
	border-color: var(--ryba-red-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(217, 28, 36, 0.32) !important;
}

.estimate-form .gform_wrapper .gform_footer .gform_button:focus-visible,
.estimate-form .gform_wrapper .gform_footer input[type="submit"]:focus-visible,
.estimate-form .gform_wrapper .gform_footer button[type="submit"]:focus-visible {
	outline: 3px solid rgba(26, 95, 168, 0.5) !important;
	outline-offset: 2px;
}

.estimate-form .gform_ajax_spinner {
	margin-left: 0.75rem;
}

.estimate-form .gform_confirmation_message {
	padding: 1.25rem 1.35rem;
	border-left: 4px solid var(--ryba-blue-900);
	background: var(--ryba-paper);
	color: var(--ryba-blue-900);
	font-weight: 600;
	line-height: 1.5;
}

.estimate-form__note {
	margin: 0;
	font-size: 0.85rem;
	text-align: center;
	color: var(--ryba-muted);
}

.ryba-form-fallback {
	padding: 1.25rem 0;
	font-size: 1.1rem;
}

/* Footer */

.site-footer {
	background: var(--ryba-blue-950);
	color: rgba(255, 255, 255, 0.85);
	padding-top: clamp(3rem, 6vw, 4.5rem);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.site-footer a:hover {
	color: #ff8a8e;
}

.site-footer__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--space) 2.5rem;
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 2rem;
}

.site-footer h2 {
	color: var(--ryba-white);
	font-size: 1.3rem;
	margin-bottom: 0.85rem;
}

.site-footer__brand img {
	width: 150px;
	margin-bottom: 1rem;
	padding: 0.45rem 0.55rem;
	background: #fff;
}

.site-footer__license {
	margin-top: 1rem;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ff6b70;
}

.social-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

.social-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.65rem;
	height: 2.65rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--radius);
	color: rgba(255, 255, 255, 0.92);
	transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.social-list a:hover,
.social-list a:focus-visible {
	color: var(--ryba-white);
	border-color: var(--ryba-red);
	background: var(--ryba-red);
	transform: translateY(-2px);
}

.social-icon {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	line-height: 0;
}

.social-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1rem var(--space);
	text-align: center;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__sep {
	opacity: 0.7;
}

.content-entry {
	padding: 1rem 0 2rem;
}

/* ========== Responsive ========== */

@media (max-width: 900px) {
	.site-header__inner {
		flex-wrap: wrap;
		gap: 0.75rem;
		padding: 0.65rem var(--space);
	}

	.site-brand {
		order: 1;
	}

	.site-header__actions {
		order: 2;
		border-left: 0;
		padding-left: 0;
	}

	.site-nav {
		order: 3;
		flex: 1 1 100%;
		display: none;
		background: var(--ryba-paper);
		margin: 0 calc(var(--space) * -1) -0.65rem;
		padding: 0.35rem var(--space) 0.85rem;
		border-top: 1px solid var(--ryba-line);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
	}

	.site-nav__list a {
		padding: 0.7rem 0.15rem;
	}

	.site-nav__list a::after {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-header__phone {
		display: none;
	}

	.section__inner--split,
	.estimate-layout,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.hero {
		min-height: min(90vh, 640px);
		align-items: center;
	}

	.hero__content {
		text-align: center;
		padding-top: clamp(4rem, 10vh, 5.5rem);
	}

	.hero__title {
		max-width: none;
	}

	.hero__lead {
		margin-left: auto;
		margin-right: auto;
	}

	.hero__actions {
		justify-content: center;
	}

	.hero__overlay {
		background:
			linear-gradient(180deg, rgba(7, 21, 38, 0.55) 0%, rgba(7, 21, 38, 0.82) 100%);
	}
}

@media (max-width: 640px) {
	.site-header__meta span:last-child,
	.site-header__dot {
		display: none;
	}

	.service-list {
		grid-template-columns: 1fr;
	}

	.estimate-form .gfield--width-half,
	.estimate-form .gfield--width-third {
		grid-column: 1 / -1;
	}

	.estimate-form .ginput_complex {
		grid-template-columns: 1fr;
	}

	.btn--header {
		padding: 0.5rem 0.85rem;
		font-size: 0.95rem;
	}
}

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

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.service-item {
		opacity: 1;
		transform: none;
	}

	.testimonial-slider__slide {
		animation: none;
	}
}
