/**
 * Lodge Lakes — Mobile UX layer (v4.3.2)
 * Phone-first polish for hero, nav, forms, sticky CTA, and inner pages.
 */

/* ==========================================================================
   Safe areas + sticky bar
   ========================================================================== */

:root {
	--sticky-cta-height: calc(60px + env(safe-area-inset-bottom, 0px));
	--mobile-gutter: 1.25rem;
}

@media (max-width: 1179px) {
	body {
		padding-bottom: var(--sticky-cta-height);
	}

	.mobile-sticky-cta {
		height: auto;
		min-height: 60px;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		background: rgba(255, 252, 247, 0.96);
		box-shadow: 0 -10px 36px rgba(15, 51, 40, 0.12);
		transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
	}

	.mobile-sticky-cta.is-hidden {
		transform: translateY(110%);
		opacity: 0;
		pointer-events: none;
	}

	.mobile-sticky-cta__btn {
		min-height: 60px;
		font-size: 0.875rem;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		font-weight: 700;
	}

	.mobile-sticky-cta__btn--call {
		flex: 0 0 96px;
		max-width: 96px;
		gap: 0.35rem;
	}

	.mobile-sticky-cta__btn--call svg {
		width: 18px;
		height: 18px;
	}
}

/* ==========================================================================
   Header / nav on small screens
   ========================================================================== */

@media (max-width: 1179px) {
	:root {
		--header-height: 72px;
	}

	.site-header__inner {
		min-height: var(--header-height);
		padding-inline: var(--mobile-gutter);
	}

	.site-header__phone {
		display: none;
	}

	.site-header__toggle {
		width: 44px;
		height: 44px;
		margin-right: -0.35rem;
	}

	.site-nav-mobile {
		top: var(--header-height);
		height: calc(100dvh - var(--header-height));
	}

	.site-nav-mobile__panel {
		max-height: calc(100dvh - var(--header-height));
		padding: 1.25rem var(--mobile-gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
		padding-bottom: calc(1.5rem + var(--sticky-cta-height) + env(safe-area-inset-bottom, 0px));
	}

	.site-nav-mobile__link {
		min-height: 52px;
		font-size: 1.375rem;
	}

	.site-nav-mobile__actions {
		position: sticky;
		bottom: 0;
		padding-top: 0.75rem;
		background: linear-gradient(180deg, transparent, rgba(12, 36, 29, 0.96) 28%);
	}
}

/* ==========================================================================
   Homepage hero + facts
   ========================================================================== */

@media (max-width: 767px) {
	.editorial-hero {
		min-height: 100svh;
		min-height: 100dvh;
		align-items: flex-end;
	}

	.editorial-hero__content {
		padding-block: calc(var(--header-height) + 2.5rem) 5.5rem;
		padding-inline: var(--mobile-gutter);
	}

	.editorial-hero__title {
		font-size: clamp(2.35rem, 11vw, 3.15rem);
		max-width: 11ch;
		line-height: 0.98;
	}

	.editorial-hero__subtitle {
		font-size: 1.0625rem;
		line-height: 1.6;
		max-width: 28rem;
		margin-bottom: 1.25rem;
	}

	.editorial-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 0.65rem;
		max-width: none;
		margin-bottom: 0;
	}

	.editorial-hero__actions .btn {
		width: 100%;
		min-width: 0;
		justify-content: center;
		min-height: 3.25rem;
		padding-inline: 1.25rem;
	}

	.editorial-hero__scroll {
		display: none;
	}

	.luxe-facts {
		margin-top: -3.25rem;
		padding-inline: var(--mobile-gutter);
	}

	.luxe-facts .container {
		padding-inline: 0;
	}

	.luxe-facts__panel {
		grid-template-columns: 1fr 1fr;
		border-radius: 4px;
	}

	.luxe-facts__item {
		padding: 1rem 0.9rem;
	}

	.luxe-facts__label {
		font-size: 0.625rem;
		letter-spacing: 0.1em;
		margin-bottom: 0.3rem;
	}

	.luxe-facts__value {
		font-size: 1.45rem;
	}
}

/* ==========================================================================
   Homepage sections
   ========================================================================== */

@media (max-width: 767px) {
	.container,
	.container--wide {
		padding-inline: var(--mobile-gutter);
	}

	.luxe-intro {
		padding-top: 3.25rem;
		padding-bottom: 3.75rem;
	}

	.luxe-intro__grid {
		gap: 1.75rem;
	}

	.luxe-heading,
	.editorial-title {
		font-size: clamp(1.85rem, 8vw, 2.4rem);
		max-width: none;
	}

	.luxe-lead,
	.editorial-lead {
		font-size: 1.0625rem;
	}

	.luxe-glance {
		padding: 1.25rem;
	}

	.luxe-glance__list li {
		padding-block: 0.7rem;
	}

	.luxe-pullquote {
		padding-left: 1rem;
	}

	.luxe-pullquote p {
		font-size: 1.2rem;
	}

	.home-magazine .luxe-lakes {
		padding-top: 3.25rem;
		padding-bottom: 3.5rem;
	}

	.luxe-destination {
		margin-top: 2.25rem;
	}

	.luxe-destination__media {
		aspect-ratio: 5 / 4;
		min-height: 0;
	}

	.luxe-destination__photo {
		min-height: 0;
		aspect-ratio: 5 / 4;
	}

	.luxe-destination__panel {
		margin: -2.25rem var(--mobile-gutter) 0;
		padding: 1.35rem 1.2rem 1.5rem;
	}

	.luxe-destination__name {
		font-size: 1.85rem;
	}

	.luxe-destination__stats {
		grid-template-columns: 1fr 1fr;
		gap: 0.85rem;
	}

	.luxe-destination__panel .btn {
		width: 100%;
		justify-content: center;
	}

	.luxe-fish__statement {
		padding: 4rem 0 3.5rem;
	}

	.luxe-statement__title,
	.luxe-fish__statement-inner .luxe-statement__title,
	.home-magazine .luxe-statement__title {
		font-size: clamp(2rem, 9vw, 2.75rem);
	}

	.luxe-fish__featured-value {
		font-size: clamp(2.75rem, 14vw, 3.75rem);
	}

	.home-magazine .luxe-fish__body {
		padding: 2.5rem 0 3rem;
	}

	.luxe-fish__records {
		gap: 1.25rem 0.75rem;
		margin-bottom: 1.5rem;
		padding-bottom: 1.5rem;
	}

	.luxe-fish__record-value {
		font-size: 1.85rem;
	}

	.luxe-catch__media {
		min-height: 260px;
	}

	.luxe-stay__panel {
		padding: 1.5rem 1.25rem;
	}

	.luxe-stay__features--icons {
		grid-template-columns: 1fr;
	}

	.luxe-week__card {
		padding: 1.25rem;
	}

	.luxe-package__card {
		margin-inline: 0;
	}

	.luxe-package__header {
		padding: 1.75rem 1.25rem 1.35rem;
	}

	.luxe-package__list {
		margin-inline: 1.25rem;
		padding-block: 1.25rem;
		grid-template-columns: 1fr;
	}

	.luxe-package__actions {
		padding-inline: 1.25rem;
	}

	.luxe-package__actions .btn {
		width: 100%;
		justify-content: center;
	}

	.luxe-package__note {
		padding-inline: 1.25rem 1.25rem;
	}

	.testimonials-grid {
		margin-inline: calc(-1 * var(--mobile-gutter));
		padding-inline: var(--mobile-gutter);
	}

	.testimonial-card {
		min-width: min(82vw, 320px);
		flex: 0 0 min(82vw, 320px);
	}

	.luxe-enquiry {
		padding: 3.25rem 0;
	}

	.luxe-enquiry__form-card {
		padding: 1.25rem;
	}

	.luxe-enquiry__form-card::before {
		inset: 5px;
	}

	.luxe-timeline__step {
		gap: 0.85rem;
		padding-bottom: 1.25rem;
	}

	.luxe-timeline__num {
		width: 2.35rem;
		height: 2.35rem;
		font-size: 0.9rem;
	}

	.luxe-timeline__step::before {
		left: 1.15rem;
		top: 2.6rem;
	}

	.luxe-planning__points {
		gap: 0.65rem;
	}

	.homepage-faq__question {
		padding: 1rem 1.1rem;
		font-size: 1rem;
		align-items: flex-start;
	}

	.homepage-faq__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.homepage-faq__footer .btn {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   Forms — thumb-friendly
   ========================================================================== */

@media (max-width: 767px) {
	.form-row--half {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.form-row input[type="text"],
	.form-row input[type="email"],
	.form-row input[type="tel"],
	.form-row input[type="month"],
	.form-row select,
	.form-row textarea,
	.enquiry-form input,
	.enquiry-form select,
	.enquiry-form textarea {
		min-height: 48px;
		font-size: 16px; /* prevents iOS zoom */
		border-radius: 6px;
	}

	.form-row textarea,
	.enquiry-form textarea {
		min-height: 120px;
	}

	.enquiry-form__actions .btn,
	.availability-module__form .btn,
	.concierge-panel__form .btn {
		width: 100%;
		min-height: 52px;
		justify-content: center;
	}

	.concierge-panel__guide,
	.concierge-panel__form {
		padding: 1.5rem 1.25rem;
	}

	.availability-module__grid {
		gap: 1.25rem;
	}

	.carpsync-calendar {
		margin: 0 0 1.25rem;
		border: 1px solid rgba(180, 154, 92, 0.35);
		background: var(--color-white);
		overflow: hidden;
	}

	.carpsync-calendar__frame,
	.carpsync-calendar iframe {
		display: block;
		width: 100%;
		min-height: 420px;
		border: 0;
	}
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

@media (max-width: 767px) {
	.page-header,
	.page-header--elevated {
		padding-block: 3.25rem 2.75rem;
	}

	.page-header__title {
		font-size: clamp(2rem, 9vw, 2.65rem);
		max-width: none;
	}

	.page-header__intro {
		font-size: 1.0625rem;
	}

	.lake-sales__hero {
		min-height: min(78svh, 640px);
	}

	.lake-sales__hero-inner {
		padding-block: calc(var(--header-height) + 2.5rem) 2.5rem;
	}

	.lake-sales__title {
		font-size: clamp(2.25rem, 10vw, 3rem);
		max-width: none;
	}

	.lake-sales__hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.lake-sales__hero-actions .btn {
		width: 100%;
		justify-content: center;
	}

	.lake-sales__facts-list {
		grid-template-columns: 1fr 1fr;
		gap: 0;
	}

	.lake-sales__facts-list li {
		padding: 1rem 0.85rem;
	}

	.lake-sales__enquiry-card {
		position: static;
		margin-top: 1.5rem;
	}

	.accommodation-compare {
		display: grid;
		gap: 1.25rem;
	}

	.accommodation-hero-photo {
		margin-top: -1rem;
	}

	.accommodation-hero-photo__img {
		max-height: 42vh;
		border-radius: 0;
	}

	.contact-sla {
		padding: 1.25rem;
	}

	.site-footer {
		padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
	}
}

/* ==========================================================================
   Tablet (portrait / small landscape)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1179px) {
	.editorial-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.editorial-hero__actions .btn {
		min-width: 12.5rem;
	}

	.luxe-facts__panel {
		grid-template-columns: repeat(4, 1fr);
	}

	.luxe-destination__panel {
		margin-inline: 1.5rem;
	}

	.form-row--half {
		grid-template-columns: 1fr 1fr;
	}

	.lake-sales__hero-actions {
		flex-direction: row;
	}
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.mobile-sticky-cta {
		transition: none;
	}
}
