/* Hand Surgery Centre — site stylesheet */

:root {
  --blue: #004566;
  --heading: #00456b;
  --link: #1b457e;
  --text: #5e5d5d;
  --grey: #e1e1e1;
  --container: 960px;
  --serif: 'Volkhov', Georgia, serif;
  --sans: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 22px;
}

img { border: 0; vertical-align: middle; max-width: 100%; }

a { color: var(--link); text-decoration: none; background: transparent; }
a:hover, a:focus { color: var(--link); text-decoration: none; }
a img:hover { opacity: .8; }

p { margin: 0 0 10px; }
td, p, li, input, textarea, label, select { font-family: var(--serif); font-size: 14px; line-height: 22px; color: var(--text); }

h1, h2, h3, h4, h5, h6, .pageheading {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--heading);
  margin-top: 20px;
  margin-bottom: 3%;
}
h1, .pageheading { font-size: 40px; line-height: 1.1; }
h2 { font-size: 34px; line-height: 1.1; }
h3 { font-size: 30px; line-height: 1.1; }
h4 { font-size: 28px; line-height: 1.1; margin-top: 10px; }
h5 { font-size: 26px; line-height: 1.1; margin-top: 10px; }
h6 { font-size: 24px; line-height: 1.1; margin-top: 10px; }
b, strong { font-weight: 700; }

ul, ol { margin-top: 0; margin-bottom: 10px; }
table { border-collapse: collapse; border-spacing: 0; }

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- Utility bar ---------- */

.utility-bar { background: var(--grey); height: 34px; padding: 0 15px; }
.utility-bar .utility {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.utility-links { margin-right: 40px; }
.utility-links a {
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  padding-right: 15px;
  position: relative;
  top: 5px;
}
.site-search { display: flex; align-items: center; height: 34px; }
.site-search label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  margin-right: 4px;
}
.site-search input[type="text"] {
  border: 0;
  border-radius: 15px;
  height: 25px;
  width: 130px;
  padding: 0 10px;
  margin: 0;
  background: #fff;
  font-family: var(--serif);
  font-size: 14px;
}
.site-search button {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 3px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  border-radius: 0;
}
.site-search button img { display: block; }

/* ---------- Header ---------- */

.site-header .header-row {
  display: flex;
  justify-content: space-between;
  height: 197px;
}
.site-header .logo { position: relative; top: -30px; }
.site-header .logo img { display: block; width: 166px; height: 197px; }
.header-contact { text-align: right; padding-top: 27px; margin-right: -15px; }
.header-contact p { margin: 0 0 10px; }
.header-contact .enquiry-link img { display: inline-block; }
.header-contact .phone img { margin-right: 10px; }
.header-contact .phone a {
  color: var(--blue);
  font-size: 36px;
  line-height: 22px;
  position: relative;
  top: 8px;
}
.header-contact .phone small { font-size: smaller; }
.header-contact .tag { font-size: 16px; font-style: italic; }

/* ---------- Main navigation ---------- */

.main-nav {
  background: #fff;
  height: 60px;
  border-bottom: 3px solid var(--blue);
}
.nav-toggle { display: none; }
.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 20px 15px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  border-radius: 18px 18px 0 0;
}
.nav-menu > li > a:hover,
.nav-menu > li > a:focus,
.nav-menu > li.open > a,
.nav-menu > li.active > a {
  background: var(--blue);
  color: #fff;
}
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 160px;
  padding: 5px 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.nav-menu > li.open > .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 3px 20px;
  color: #333;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus { background: linear-gradient(#f5f5f5, #e8e8e8); color: #262626; }
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover { background: transparent; color: var(--blue); }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  background: var(--blue);
  overflow: hidden;
}
.hero > img { display: block; width: 100%; max-width: none; height: auto; }
.hero-caption {
  position: absolute;
  top: -30px;
  bottom: 30px;
  left: calc(50% - 467.5px);
  width: var(--container);
  padding: 5% 30% 0 0;
  color: #fff;
}
.hero-caption h2 {
  margin: 20px 0 14px;
  color: #fff;
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
}
.hero-caption p { color: #fff; font-family: var(--sans); font-size: 14px; }
.hero-caption .hero-button {
  display: inline-block;
  margin: 5px 0;
  padding: 10px 15px;
  background: #fff;
  border-radius: 24px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

/* ---------- Content ---------- */

.main-content { padding: 20px 15px; }
.page-content { padding-bottom: 20px; }
.page-content::after { content: ""; display: table; clear: both; }

/* Home quick links */
.quick-links {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 20px;
}
.quick-links .row { display: flex; margin: 0 -15px; }
.quick-links .col { width: 20%; padding: 0 15px; text-align: center; }
.quick-links .col img { display: inline-block; }
.QL, .QL > a {
  margin: 30px 0 10px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Links page */
.links-list li { margin-bottom: 4px; }

/* Site map */
.sitemap-list, .sitemap-list ul { list-style: none; padding: 0; margin: 0; }
.sitemap-list .heading { display: block; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.sitemap-list > li > ul > li { padding-left: 30px; }
.sitemap-list > li > ul > li > ul > li { padding-left: 60px; position: relative; }
.sitemap-list > li > ul > li > ul > li::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 50%;
  width: 10px;
  border-left: 1px dotted #999;
  border-bottom: 1px dotted #999;
}
.sitemap-list > li > ul > li > ul > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 44px;
  top: 50%;
  bottom: 0;
  border-left: 1px dotted #999;
}

/* Search */
.search-form-inline { margin-bottom: 20px; }
.search-form-inline input[type="text"] {
  border: 1px solid var(--text);
  border-radius: 20px;
  padding: 5px 10px;
  margin: 5px 5px 5px 0;
  width: 240px;
}
.search-heading { text-align: center; font-weight: 700; }
.search-summary { text-align: center; }
.search-results li { margin-bottom: 4px; }

/* Buttons */
button, input[type="button"], input[type="submit"], .btn {
  background: var(--blue);
  border: 0;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  padding: 5px 15px;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 20px;
}

/* Contact form */
.page-content iframe { max-width: 100%; }
.enquiry-form { margin-top: 10px; }
.form-group { margin-bottom: 15px; }
.form-group > label {
  display: block;
  position: relative;
  width: 132px;
  margin: 0 0 0 -15px;
  padding: 7px 15px 0;
}
.required-star::after {
  content: "*";
  position: absolute;
  top: 5px;
  right: 2px;
  color: #d9534f;
}
.form-group > .field { display: flow-root; }
/* extra space where the old site's invisible reCAPTCHA row sat */
.form-actions { margin-top: 23px; }
.form-actions .field { padding-left: 160px; }
.form-control {
  display: block;
  width: 520px;
  max-width: 100%;
  height: 34px;
  margin: 5px 0;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 20px;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
textarea.form-control { height: auto; }
.form-control:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}
.enquiry-form .submit {
  background: linear-gradient(#fff, #e0e0e0);
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: 400;
  text-shadow: 0 1px 0 #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
}
.enquiry-form .submit:hover { background: #e0e0e0; }
.form-status { margin-top: 10px; font-style: italic; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--grey);
  padding: 20px 0 50px;
  font-family: var(--sans);
}
.site-footer .container {
  height: 150px;
  background: url("../../images/footer-hand.png") no-repeat right top;
}
.site-footer, .site-footer p, .site-footer div { font-family: var(--sans); }
.footer-list { padding-bottom: 20px; }

/* ---------- Lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: rgba(0, 0, 0, .8);
  cursor: zoom-out;
}
.lightbox-overlay figure { margin: 0; text-align: center; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  border: 8px solid #fff;
  border-radius: 4px;
  background: #fff;
}
.lightbox-overlay figcaption { color: #fff; margin-top: 8px; font-family: var(--sans); }

/* ---------- Tablet ---------- */

@media (min-width: 768px) and (max-width: 991px) {
  :root { --container: 736px; }
  .header-contact .tag { font-size: 20px; }
  .nav-menu > li > a { padding: 20px 8px; font-size: 13.5px; }
  .hero-caption { left: calc(50% - 355.5px); padding-right: 20%; }
  .hero-caption .hero-button { font-size: 16px; padding-top: 5px; padding-bottom: 5px; }
  .QL, .QL > a { font-size: 14px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  :root { --container: 100%; }
  .container { padding: 0 16px; }
  .utility-bar { padding: 0 16px; }
  .utility-bar .utility { justify-content: space-between; }
  .utility-links { margin-right: 10px; white-space: nowrap; }
  .site-search label { display: none; }
  .site-search input[type="text"] { width: 110px; }

  .site-header .header-row { flex-direction: column; align-items: center; height: auto; margin-bottom: 20px; }
  .site-header .logo { top: 0; }
  .header-contact { text-align: center; padding-top: 10px; margin-right: 0; }
  .header-contact .phone a { font-size: 30px; }

  /* The menu bar pins to the top of the screen once scrolled to, with a white line
     separating it from the banner below. */
  .main-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--blue);
    height: auto;
    min-height: 44px;
    border-bottom: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  }
  .main-nav .container { padding: 0; }
  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 10px 14px;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 22px;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-toggle .icon-bars { display: block; }
  .nav-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
  }
  .nav-toggle .icon-bar + .icon-bar { margin-top: 5px; }
  /* Long enough menus scroll inside the pinned bar instead of running off the screen */
  .nav-menu {
    display: none;
    flex-direction: column;
    background: var(--blue);
    max-height: calc(100vh - 46px);
    max-height: calc(100dvh - 46px);
    overflow-y: auto;
  }
  .main-nav.nav-open .nav-menu { display: flex; }
  .nav-menu > li > a {
    padding: 10px 15px;
    text-align: center;
    color: #fff;
    border-radius: 0;
  }
  .nav-menu > li.active > a,
  .nav-menu > li > a:hover,
  .nav-menu > li.open > a { background: rgba(255, 255, 255, .12); }
  .dropdown-menu {
    position: static;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .dropdown-menu a { color: #fff; text-align: center; padding: 5px 15px; white-space: normal; }
  .dropdown-menu a:hover,
  .dropdown-menu a:focus,
  .dropdown-menu .active > a { background: rgba(255, 255, 255, .12); color: #fff; }

  .hero > img { width: auto; height: 380px; max-width: none; margin-left: 50%; transform: translateX(-38%); }
  .hero-caption { left: 0; right: 0; width: auto; top: 0; bottom: 0; padding: 30px 16px 0; background: linear-gradient(90deg, rgba(0, 69, 102, .92) 0%, rgba(0, 69, 102, .55) 100%); }

  .quick-links { width: auto; padding: 0 16px 20px; }
  .quick-links .row { flex-direction: column; margin: 0; }
  .quick-links .col { width: 100%; padding: 0; margin-bottom: 10px; }

  .page-content iframe[align="right"] { float: none; display: block; width: 100%; margin-bottom: 10px; }
  .form-group > label { width: auto; margin: 0; padding: 7px 0 0; }
  .required-star::after { position: static; margin-left: 4px; }
  .form-actions .field { padding-left: 0; }

  .site-footer .container { height: auto; min-height: 150px; }
  .site-footer .footer-inner { width: 60%; }

  h1, .pageheading { font-size: 32px; }
  h2 { font-size: 28px; }
  img[style*="float"] { max-width: 45%; height: auto; }
}
