/* ==========================================================================
   RESPONSIVE.CSS
   Load this AFTER style.css (or movstyle.css) and prettyPhoto.css.
   This file overrides the original fixed-width (960px) layout so the
   site works on tablets and phones. It does not modify the original
   stylesheet, so the desktop experience (>1000px) is unchanged.
   ========================================================================== */

/* Safety net: never allow a horizontal scrollbar from stray fixed widths */
html, body {
	overflow-x: hidden;
}

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

/* Embedded video (YouTube) — the markup uses fixed width/height attributes
   (e.g. width="260" height="195"); this keeps them proportional as they shrink. */
iframe {
	max-width: 100%;
	aspect-ratio: 260 / 195;
	height: auto;
}

/* Hamburger button — hidden on desktop, shown at the mobile breakpoint below */
.menu-toggle {
	display: none;
	width: 34px;
	height: 26px;
	position: relative;
	float: right;
	margin: 20px 20px 0 0;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 30;
}
.menu-toggle span {
	display: block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background: #069;
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-toggle.is-active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   SLIDER FIX (all screen sizes)
   The TMSlider plugin (tms-0.4.1.js) ignores the container's CSS size: on
   load it reads the FIRST slide image's natural pixel dimensions via a
   throwaway Image() object and sets its internal .pic/.mask divs to that
   exact pixel width/height with a plain (non-cover) background-image. With
   the "simpleFade" preset there's exactly one full-size tile per slide, so
   overriding just these three elements is enough to make it responsive:
   we force them to always fill the (now fluid) .mp-slider box and let
   background-size:cover handle the crop, instead of the plugin's baked-in
   pixel values. !important is required because the plugin sets these as
   inline styles via jQuery .css(), which otherwise beats a stylesheet rule.
   -------------------------------------------------------------------------- */
.mp-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 940px;
	aspect-ratio: 940 / 392;
	height: auto;
	margin: 0 auto;
}
.mp-slider .pic,
.mp-slider .mask,
.mp-slider .mask > div {
	width: 100% !important;
	height: 100% !important;
	left: 0 !important;
	top: 0 !important;
}
.mp-slider .pic,
.mp-slider .mask > div {
	background-size: cover !important;
	background-position: center center !important;
}

/* ==========================================================================
   TABLET  (max-width: 1000px)
   Fluid containers, two-up column grids
   ========================================================================== */
@media (max-width: 1000px) {

	html, body { min-width: 0 !important; }

	.main {
		width: 94% !important;
		max-width: 960px;
	}
	header,
	.container_12,
	footer {
		width: 94% !important;
		max-width: 940px;
		box-sizing: border-box;
	}
	.mp-slider { width: 94% !important; }

	/* Reposition slider arrows so they stay inside the slide at any height */
	.mp-prev, .mp-next {
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
	}

	/* This element is intentionally hidden off-screen in the original
	   design via a huge negative margin (margin:-220% 0 0 0). That trick
	   becomes unreliable once the slider's height is fluid. On mobile,
	   responsive.js physically moves this element into <footer> (it often
	   holds real representation/PR contact info, not just a stray credit)
	   — hide it here in its original spot as a fallback in case JS
	   doesn't run; footer .ic below re-reveals it once relocated. */
	.ic {
		display: none !important;
	}
	footer .ic {
		display: block !important;
		position: static !important;
		float: none !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 0 12px 0 !important;
		padding: 0 15px !important;
		background: none !important;
		color: #999 !important;
		font-size: 12px !important;
		line-height: 18px !important;
		text-align: center !important;
		overflow: visible !important;
	}

	/* Turn every .wrapper into a wrapping flex row so the old float-based
	   .col-1 ... .col-12 grid classes lay out fluidly instead of overflowing */
	.wrapper {
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
	}
	.wrapper > [class^="col-"],
	.wrapper > [class*=" col-"] {
		float: none !important;
		width: calc(50% - 10px) !important;
		margin: 0 !important;
	}

	.map_container iframe { width: 100%; }
}

/* ==========================================================================
   MOBILE NAV  (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

	header {
		padding: 15px 0;
	}
	.logo {
		float: left;
		margin: 4px 0 0 20px;
	}
	.logo a {
		width: 200px;
		height: 40px;
		background-size: contain;
	}

	.menu-toggle { display: block; }

	nav {
		float: none;
		width: 100%;
		padding: 15px 0 0 0;
		clear: both;
	}
	.sf-menu { display: none; width: 100%; }
	nav.nav-open .sf-menu {
		display: block;
		background: #f5f5f5;
		border-radius: 8px;
		padding: 6px 0;
	}
	.sf-menu > li {
		float: none;
		width: 100%;
		margin: 0;
	}
	.sf-menu > li > a {
		padding: 12px 20px;
		display: block;
	}
	.sf-menu > li.current > a,
	.sf-menu > li:hover > a,
	.sf-menu > li.sfHover > a {
		background: #333;
	}
}

/* ==========================================================================
   PHONE  (max-width: 640px)
   Everything stacks to a single column
   ========================================================================== */
@media (max-width: 640px) {

	.main-indents { padding: 15px 0; }

	.content-box {
		padding: 18px 15px 20px 15px;
		margin: 0;
	}
	.a1, .a2 { margin: 0; }

	/* Full stack: every direct child of a .wrapper goes full-width */
	.wrapper {
		flex-direction: column;
	}
	.wrapper > * {
		width: 100% !important;
	}

	.img-indent, .img-indent-1 {
		float: none;
		display: block;
		margin: 0 0 15px 0;
	}

	.mp-slider .banner { font-size: 20px; }
	.mp-slider .row-2 { font-size: 34px; line-height: 38px; }

	.copyright, .social-list {
		float: none;
		width: 100%;
		text-align: center;
	}
	.social-list {
		display: flex;
		justify-content: center;
		margin-top: 12px;
	}
	.social-list li { float: none; }

	footer {
		padding: 20px 15px;
	}
}

/* ==========================================================================
   SMALL PHONE  (max-width: 420px)
   ========================================================================== */
@media (max-width: 420px) {
	body { font-size: 15px; }
	h1 { font-size: 26px; line-height: 30px; }
	h2 { font-size: 22px; line-height: 28px; }
	h3 { font-size: 19px; line-height: normal; }
	.logo a { width: 160px; height: 32px; }
}
