/* Harris Greig Auto — static rebuild of the WordPress/The7 site */

:root {
  --accent: #e46b2c;
  --hover-blue: #23aadd;
  --text: #8b8d94;
  --secondary: #adafb3;
  --heading: #333333;
  --link: #1ebbf0;
  --divider: rgba(0, 0, 0, 0.08);
  --footer: #020202;
  --box: 1280px;
  --content: 1190px;
  --gutter: 50px;
  --font: "Roboto", Helvetica, Arial, Verdana, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5em;
  color: var(--text);
  background: #fff url("../images/testbg.jpg") repeat center center fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }

h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; margin: 0 0 10px; }
h1 { font-size: 52px; line-height: 62px; }
h2 { font-size: 34px; line-height: 44px; }
h3 { font-size: 24px; line-height: 34px; }
h4 { font-size: 20px; line-height: 30px; }
h5 { font-size: 16px; line-height: 26px; }
h6 { font-size: 14px; line-height: 24px; }
p { margin: 0 0 10px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Boxed page ---------- */
.page {
  max-width: var(--box);
  margin: 0 auto;
  background: #fff;
}

/* ---------- Header (desktop) ---------- */
.masthead { position: relative; z-index: 50; }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content);
  margin: 0 auto;
  padding: 4px 30px;
}

.logo img { width: 222px; height: 150px; }

.header-widgets { display: flex; align-items: center; gap: 20px; }

.mini-contacts {
  display: inline-flex;
  align-items: center;
  color: #888;
  font: 18px/22px Arial, Helvetica, Verdana, sans-serif;
  white-space: nowrap;
}

.mini-contacts svg { width: 14px; height: 14px; margin-right: 6px; fill: currentColor; }

.soc-ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  color: #b1b4b8;
  transition: background-color 0.3s, color 0.3s;
}

.soc-ico svg { width: 10px; height: 16px; fill: currentColor; }
.soc-ico:hover { background: var(--accent); color: #fff; }

/* Black menu bar */
.nav-bar { background: #000; }

.nav-inner {
  display: flex;
  align-items: center;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 30px;
}

.main-nav {
  display: flex;
  flex: 1;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li { margin: 18px 14px; }

.main-nav a {
  display: block;
  padding: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  transition: color 0.3s;
}

.main-nav a > span { position: relative; display: block; }

/* The7 "left to right line" underline decoration */
.main-nav .underline {
  position: absolute;
  left: 1px;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-nav > li > a:hover,
.main-nav > li.act > a { color: var(--accent); }

.main-nav > li > a:hover .underline,
.main-nav > li.act > a .underline { width: 100%; }

.header-btn {
  display: inline-block;
  margin-left: 26px;
  padding: 10px 20px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Mobile header & menu ---------- */
.mobile-header {
  display: none;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  padding: 4px 20px;
  background: #fff;
  box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.07);
}

.mobile-logo { margin-right: auto; }
.mobile-logo img { width: 127px; height: 86px; }

.mobile-phone { color: #333; font: 700 13px/17px var(--font); }
.mobile-phone svg { width: 14px; height: 14px; }

.menu-toggle {
  width: 30px;
  height: 30px;
  padding: 7px 4px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin-bottom: 5px;
  background: #333;
  border-radius: 2px;
}

.menu-toggle span:last-child { margin-bottom: 0; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: 330px;
  max-width: 85vw;
  padding: 45px 15px 30px 30px;
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.13, 0.62, 0.11, 0.99);
}

.mobile-menu ul { list-style: none; margin: 0 0 25px; padding: 0; }
.mobile-menu li { border-bottom: 1px solid rgba(51, 51, 51, 0.12); }

.mobile-menu li a {
  display: block;
  padding: 10px 0;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu li a:hover,
.mobile-menu li.act a { color: var(--accent); }

.mobile-widgets { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mobile-widgets .header-btn { margin: 0; }
.mobile-widgets .mini-contacts { color: #b1b4b8; font: 500 13px/17px var(--font); }

.mobile-menu-close {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.mobile-menu-close span {
  position: absolute;
  top: 14px;
  left: 3px;
  width: 24px;
  height: 2px;
  background: #333;
  transform: rotate(45deg);
}

.mobile-menu-close span + span { transform: rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(17, 17, 17, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

body.menu-open .mobile-menu { transform: translateX(0); }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }

/* ---------- Home slider (single Revolution Slider slide, fades in) ---------- */
.slider {
  position: relative;
  aspect-ratio: 1240 / 550;
  max-height: 550px;
  width: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background: url("../images/HGSLIDER2.jpg") center / 100% 100% no-repeat;
}

.js .slide { opacity: 0; animation: slideIn 1s ease-in-out 0.2s forwards; }

@keyframes slideIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Page title bar ---------- */
.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 30px var(--gutter);
  background: #222 url("../images/low_contrast_linen.jpg") repeat center top;
  text-align: center;
}

.page-title h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 44px;
}

/* ---------- Main content ---------- */
.main { padding: 70px 0; }

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 325px;
}

.content { padding-right: var(--gutter); }

.sidebar {
  padding-left: var(--gutter);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  line-height: 20px;
}

.sidebar .widget { margin-bottom: 30px; }
.sidebar .widget:first-child { margin-bottom: 40px; }
.sidebar strong { color: var(--text); }

.recent-posts { list-style: none; margin: 0; padding: 0; }
.recent-posts li { margin-bottom: 10px; }
.recent-posts a { color: inherit; text-decoration: none; transition: color 0.3s; }
.recent-posts a:hover { color: var(--accent); }

/* Home */

.mission { margin-bottom: 50px; text-align: center; }
.mission h5 { color: #5b5b5b; margin-bottom: 20px; }

.separator {
  margin: 0 0 35px;
  border: 0;
  border-top: 1px solid #ebebeb;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.cols-3 img { width: 100%; margin-bottom: 35px; }

/* About */
.single-image { margin-top: 35px; }

/* What's New (blog list) */
.post-card {
  margin-bottom: 20px;
  padding: 25px 25px 25px;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.post-card:last-child { margin-bottom: 0; }

.entry-title { font-size: 20px; line-height: 30px; margin-bottom: 5px; }
.entry-title a { color: var(--heading); text-decoration: none; transition: color 0.3s; }
.entry-title a:hover { color: var(--accent); }

.entry-meta {
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 18px;
}

.entry-meta > * + *::before { content: "\2022"; margin: 0 6px; }

.details {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--heading);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
}

.details svg { width: 5px; height: 12px; fill: currentColor; }
.details:hover { color: var(--accent); }

/* ---------- Form ---------- */
.contact-form label { display: block; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  height: 40px;
  margin-top: 2px;
  padding: 5px 15px;
  background: #fdfdfd;
  border: 1px solid rgba(51, 51, 51, 0.11);
  border-radius: 2px;
  color: var(--text);
  font: inherit;
}

.contact-form textarea { height: 240px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }

.contact-form .invalid { border-color: #dc3232 !important; }

.btn {
  display: inline-block;
  padding: 12px 18px;
  background: var(--accent);
  border: 0;
  border-radius: 1px;
  color: #fff;
  font: 700 14px/16px var(--font);
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover { background: var(--hover-blue); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.form-status {
  margin-top: 15px;
  padding: 10px 15px;
  border: 2px solid #46b450;
  color: var(--heading);
}

.form-status.error { border-color: #dc3232; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #fff; font-size: 13px; line-height: 20px; }

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 50px var(--gutter) 15px;
}

.footer-widgets section { margin-bottom: 25px; }
.footer .map { display: block; width: 100%; max-width: 340px; height: 265px; border: 0; }
.footer .recent-posts a { color: #fff; }
.footer .recent-posts a:hover { color: var(--accent); }

.bottom-bar {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.bottom-bar > div {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .slide { opacity: 1; animation: none; }
  .main-nav .underline, .mobile-menu, .menu-overlay { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav > li { margin: 18px 8px; }
  .main-nav a { font-size: 15px; }
}

@media (max-width: 991px) {
  :root { --gutter: 20px; }
  .header-top, .nav-bar { display: none; }
  .mobile-header { display: flex; }
  .with-sidebar { grid-template-columns: 1fr; }
  .content { padding-right: 0; }
  .sidebar { margin-top: 50px; padding-left: 0; border-left: 0; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 777px) {
  .main { padding: 50px 0; }
  .page-title { min-height: 0; padding: 25px var(--gutter); }
  .page-title h1 { font-size: 24px; line-height: 34px; }
  .cols-3 { grid-template-columns: 1fr; gap: 20px; }
  .footer-widgets { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 360px) {
  .mobile-phone { display: none; }
}
