/*
Theme Name: SiteSync Hamilton Taxi
Description: Theme for Hamilton Taxi, a rebuild of the 2018 Flatsome site that keeps its look (the "Call to book" strip, the centred yellow logo, the grey menu bar, the photo sliders, the grey "Hamilton Taxis" call band, the Contact Us column beside the page text and the purple footer bar) without Flatsome, so the site runs on current PHP and WordPress. Content comes from the SiteSync plugin; this theme only renders it.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Author: SiteSync
Text Domain: sitesync-hamilton-taxi
Update URI: false
*/

/* The old site's Google Font (Lato, SIL Open Font License 1.1), Latin subset, served with the
   theme. */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/lato-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/lato-700.woff2) format("woff2"); }

:root {
	/* The old site's colours: link and phone red (#dd3333), the purple of "Hamilton Taxis" and
	   the footer bar (#4f4f77), the grey call band (#dbdbdb), the menu bar (#f1f1f1), the navy
	   band of the old Services page (#05004e), Flatsome's text greys and its blue button. */
	--red: #dd3333;
	--red-d: #b92424;
	--purple: #4f4f77;
	--navy: #05004e;
	--band: #dbdbdb;
	--bar: #f1f1f1;
	--line: #ddd;
	--ink: #555;
	--text: #777;
	--dark: #111;
	--blue: #1954c2;
	--white: #fff;
	--yellow: #fdb93e;
	--wrap: 1080px;
	--font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font: 400 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover, a:focus-visible { color: var(--red-d); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1.3em; }
strong, b { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.nowrap { white-space: nowrap; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px;
	padding: 10px 16px; background: var(--white); color: var(--dark);
}

.icon { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.15em; }

/* ---- Header: the "Call to book" strip, the centred logo, then the grey menu bar ---- */

.topbar { background: var(--white); text-align: center; padding: 4px 0 10px; }
.topbar__text {
	margin: 0; color: var(--ink); font-size: 27px; font-weight: 700; line-height: 1.3;
	text-transform: uppercase;
}
.topbar__text a { color: var(--red); }

.site-header__bar { background: var(--white); }
.site-header__inner {
	display: flex; align-items: center; justify-content: center; height: 162px;
	position: relative;
}
.site-header__logo { display: block; }
.site-header__logo img { width: auto; max-height: 162px; }
.site-header__logo-text { color: var(--dark); font-size: 28px; font-weight: 700; }

.site-nav { background: var(--bar); border-top: 1px solid #e4e4e4; }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0 15px; display: flex; justify-content: center; max-width: var(--wrap); }
.site-nav a {
	display: block; padding: 20px 7px; color: #666; font-size: 13px; font-weight: 700;
	letter-spacing: .02em; text-transform: uppercase; line-height: 1.6;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--dark); text-decoration: none; }
.site-nav .is-current > a { color: var(--dark); }

.menu-toggle {
	display: none; background: none; border: 0; padding: 10px; margin: 0; cursor: pointer;
	color: var(--ink); line-height: 0;
}
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .icon--close { display: none; }

/* ---- Slider: full-width photos at a fixed height, as on the old site ---- */

.section--slider { position: relative; overflow: hidden; background: #000; height: var(--slider-h, 400px); }
.slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slider__slide.is-active { opacity: 1; z-index: 1; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__dots {
	position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
	display: flex; justify-content: center; gap: 10px;
}
.slider__dots button {
	width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
	background: transparent; border: 1px solid rgba(255, 255, 255, .85);
}
.slider__dots button.is-active { background: var(--white); }
@media (prefers-reduced-motion: reduce) { .slider__slide { transition: none; } }

/* ---- Call band: "Hamilton Taxis" and the phone number on the grey band ---- */

.section--call-band { background: var(--band); padding: 30px 0 60px; text-align: center; }
.section--call-band.is-dark { background: var(--navy); }
.call-band__title { margin: 0; font-size: 42px; line-height: 1.3; color: var(--purple); }
.call-band__title a { color: var(--red); white-space: nowrap; }
.call-band__title a:hover { color: var(--red-d); }
.call-band__line { display: block; }
.call-band__line + .call-band__line { margin-top: 18px; }
.call-band__line--phone { font-size: 44px; color: var(--purple); }
.is-dark .call-band__title,
.is-dark .call-band__line--phone { color: var(--white); }

/* ---- Page body: the Contact Us column on the left, the page's text on the right ---- */

.page-body { padding: 30px 0 50px; }
.page-body__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.page-body__side,
.page-body__content { min-width: 0; }

.side h2,
.section--text h2 { font-size: 20px; margin: 0 0 .6em; }
.section--text.is-small h2 { font-size: 16px; margin: 0 0 1.3em; }
.section--text + .section--text { margin-top: 1.3em; }
.side .prose + .prose,
.side .prose + .side__figure,
.side .side__figure + .prose { margin-top: 1.3em; }
.side .prose + .side__phone { margin-top: 1em; }
.side__phone { margin: 0 0 1.3em; text-align: center; font-size: 27px; font-weight: 700; line-height: 1.3; }
.side__figure { margin: 0 0 1.3em; }
.side__figure img { width: 100%; }
.side__figure figcaption {
	background: rgba(0, 0, 0, .05); padding: 6px 10px; text-align: center;
	font-size: 14px; font-style: italic; color: var(--ink);
}
.prose > :last-child { margin-bottom: 0; }
.prose .lead { font-weight: 700; }

/* ---- Call box: the Contact page's number and call button (bookings are by phone only) ---- */

.call-box {
	margin-top: 1.6em; padding: 30px 20px; text-align: center; background: var(--bar);
	border-top: 3px solid var(--red);
}
.call-box__text { margin: 0 0 .3em; color: var(--ink); }
.call-box__number { margin: 0 0 .6em; font-size: 44px; font-weight: 700; line-height: 1.2; }
.btn.btn--call { display: inline-flex; align-items: center; gap: 10px; background: var(--red); font-size: 18px; padding: 13px 26px; }
.btn.btn--call:hover { background: var(--red-d); }

/* ---- 404 and plain WordPress pages ---- */

.notfound, .wp-page { padding: 40px 15px 60px; }
.btn {
	display: inline-block; padding: 10px 18px; background: var(--blue); color: var(--white);
	font-weight: 700; text-transform: uppercase;
}
.btn:hover { color: var(--white); background: #1445a0; text-decoration: none; }

/* ---- Footer: the purple bar with the copyright line ---- */

.site-footer { background: var(--purple); color: rgba(255, 255, 255, .6); font-size: 14px; padding: 14px 0; }
.site-footer p { margin: 0; }
.site-footer strong { color: rgba(255, 255, 255, .85); }
.site-footer a { color: rgba(255, 255, 255, .85); }

/* ---- Back to top and the phone bar ---- */

.to-top {
	position: fixed; left: 18px; bottom: 18px; z-index: 40; width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center; border-radius: 50%;
	background: var(--white); color: var(--ink); border: 2px solid currentColor;
	opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--dark); text-decoration: none; }

.phone-bar { display: none; }

/* ---- Tablets and phones ---- */

@media (max-width: 849px) {
	.page-body__inner { grid-template-columns: 1fr; gap: 36px; }
	.page-body__content { order: -1; }
	.call-band__title { font-size: 34px; }
	.call-band__line--phone { font-size: 36px; }
}

@media (max-width: 849px) {
	/* House style on phones: a slim sticky bar with the logo on the left and the menu button on
	   the right; the Call Now bar at the bottom replaces the top strip. */
	.topbar { display: none; }
	.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
	.site-header__inner { height: 70px; justify-content: space-between; padding-right: 8px; }
	.site-header__logo img { max-height: 62px; }
	.menu-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		border-top: 1px solid var(--line); box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
	}
	.menu-open .site-nav { display: block; }
	.menu-open .menu-toggle .icon--menu { display: none; }
	.menu-open .menu-toggle .icon--close { display: inline-block; }
	.site-nav ul { flex-direction: column; padding: 6px 0; }
	.site-nav a { padding: 13px 20px; font-size: 15px; }
	.site-header__bar { position: relative; }

	.section--slider { height: min(var(--slider-h, 400px), 75vw); }
	.page-body { padding: 26px 0 40px; text-align: center; }
	.section--call-band { padding: 26px 0 36px; }

	body { padding-bottom: 56px; }
	.phone-bar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0;
		z-index: 45; box-shadow: 0 -2px 8px rgba(0, 0, 0, .15);
	}
	.phone-bar a {
		display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px;
		color: var(--white); font-weight: 700; text-transform: uppercase; font-size: 15px;
	}
	.phone-bar a { background: var(--red); }
	.phone-bar a:hover { text-decoration: none; }
	.to-top { bottom: 72px; }
	.site-footer { text-align: center; }
}

@media (max-width: 549px) {
	body { font-size: 16px; }
	.call-band__title { font-size: 30px; }
	.call-band__line--phone { font-size: 32px; }
	.side__phone { font-size: 24px; }
	.call-box__number { font-size: 34px; }
}
