/* Repair My Fone — responsive recreation of the 2014 Joomla "sinclair" template. */

:root {
  --navy: #00274b;      /* headings */
  --footer: #062740;
  --text: #555;         /* original was #696868; darkened slightly for contrast */
  --muted: #777;
  --tick: #0a5941;
  --band-top: #1e3c70;  /* header gradient, sampled from templates/sinclair/images/bg.jpg */
  --band-bottom: #6ea4d2;
  --band: 300px;
  --max: 960px;
}

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

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

body {
  margin: 0;
  background: #fff url("/templates/sinclair/images/bg-2.jpg") repeat-x center bottom;
  color: var(--text);
  font: 15px/1.55 "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--muted); }
p { margin: 0 0 18px; }
h1, h2 { color: var(--navy); line-height: 1.1; margin: 0 0 18px; font-size: 25px; }
h2 { font-size: 23px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: var(--navy); padding: 8px 12px; }

.wrap {
  background: linear-gradient(180deg, var(--band-top) 0, var(--band-bottom) var(--band), transparent var(--band)) no-repeat;
}
.container { max-width: var(--max); margin: 0 auto; }

/* Header */
.header {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "logo contact" "logo nav";
  column-gap: 20px;
  padding: 10px 0 0;
}
.logo { grid-area: logo; margin: 10px 10px 10px 0; }
.logo img { display: block; width: 269px; }
.contact-bar {
  grid-area: contact;
  justify-self: end;
  text-align: right;
  padding: 10px 0 0;
  color: #fff;
  font: bold 23px/1.3 Arial, Helvetica, sans-serif;
}
.contact-bar a { color: #fff; text-decoration: none; display: block; }
.contact-bar a:hover { text-decoration: underline; }
.contact-bar .email { font-size: 18px; }

.nav { grid-area: nav; align-self: end; justify-self: end; padding-bottom: 14px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 25px; justify-content: flex-end; }
.nav a { color: #fff; text-decoration: none; font-size: 20px; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { font-weight: bold; }

/* Slider (homepage) and page banner (inner pages) */
.slider, .banner { position: relative; background: #fff; }
.slider img, .banner img { display: block; width: 100%; }
.slides { list-style: none; margin: 0; padding: 0; display: grid; }
.slides li { grid-area: 1 / 1; opacity: 0; transition: opacity .6s ease; }
.slides li.is-active { opacity: 1; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 22px; line-height: 40px; cursor: pointer;
}
.slider__btn:hover, .slider__btn:focus-visible { background: rgba(0, 0, 0, .7); }
.slider__btn--prev { left: 10px; }
.slider__btn--next { right: 10px; }
@media (prefers-reduced-motion: reduce) { .slides li { transition: none; } }

/* Content */
.content { background: #fff; padding: 20px 10px 30px; min-height: 420px; }
.quote-banner { display: block; margin: 0 0 20px; }
.quote-banner img { display: block; width: 100%; }

.cols { display: grid; grid-template-columns: 68fr 30fr; gap: 2%; }
.jst { text-align: justify; }
.social a { vertical-align: middle; }
.social img { vertical-align: middle; margin-right: 6px; }
.testimonial { margin: 0; }
.testimonial cite { font-style: normal; }

.ticks { list-style: none; margin: 0 0 18px; padding: 0; }
.ticks li::before { content: "\2714\00a0"; color: var(--tick); }

.steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.steps img { width: 302px; }

.address { font-style: normal; }

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 30px; }
.map { width: 100%; height: 300px; border: 0; }

/* Contact form (styled after the RSForm "clean" theme) */
.form { display: grid; gap: 12px; max-width: 360px; }
.form label { display: block; }
.form input, .form textarea {
  width: 100%; font: inherit; color: #333;
  border: 1px solid #dadada; background: #fff; padding: 6px;
}
.form input:focus, .form textarea:focus { border-color: #8cc7ec; outline: 2px solid #b8e6ff; }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form button {
  justify-self: start; font: bold 15px Arial, sans-serif; color: #fff; cursor: pointer;
  background: var(--navy); border: 0; border-radius: 5px; padding: 9px 26px;
}
.form button:hover { background: #0b3c6e; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form__status:empty { display: none; }
.form__status { padding: 10px 12px; border-radius: 4px; }
.form__status.is-success { background: #e6f4ea; color: #145c2a; }
.form__status.is-error { background: #fdecea; color: #8a1c13; }

/* Footer */
.footer { background: var(--footer); color: #fff; }
.footer .container { text-align: right; font-size: 12px; padding: 12px 10px 25px; }
.footer p { margin: 0 0 10px; }
.footer .small { font-family: Calibri, sans-serif; font-size: 15px; }
.footer img { display: inline-block; }

/* Phones and small tablets */
@media (max-width: 800px) {
  :root { --band: 260px; }
  .header {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "contact" "nav";
    justify-items: center;
    padding: 6px 16px 0;
    row-gap: 6px;
  }
  .logo { margin: 0; }
  .logo img { width: 200px; }
  .contact-bar { justify-self: center; text-align: center; font-size: 19px; padding: 0; }
  .contact-bar .email { font-size: 16px; }
  .nav { justify-self: center; padding-bottom: 12px; }
  .nav ul { justify-content: center; gap: 4px 18px; }
  .nav a { font-size: 17px; }
  .content { padding: 18px 16px 26px; }
  .cols, .contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .jst { text-align: left; }
  .steps img { width: 100%; max-width: 302px; }
  .footer .container { text-align: center; padding: 14px 16px 22px; }
  .slider__btn { width: 32px; height: 32px; line-height: 32px; font-size: 18px; }
}
