/* ==========================================================================
   Devoran Autocare – static site styles
   ========================================================================== */

:root {
  --blue: #1e73be;
  --blue-dark: #165a96;
  --text: #555;
  --heading-text: #444;
  --nav-text: #111;
  --bg: #fff;
  --bg-content: #fafafa;
  --footer-bg: #2e2f33;
  --footer-text: #fff;
  --rule: #d6d6d6;
  --max: 1200px;
  --content: 960px;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-content);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

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

.site-header {
  background: var(--bg);
  text-align: center;
  padding: 18px 16px 22px;
}

.site-logo { display: inline-block; }
.site-logo img { width: 360px; margin: 0 auto; }

.site-nav ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
}

.site-nav a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.header-call {
  display: none;
  margin-top: 12px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--bg);
  padding: 0 16px;
}

.hero img {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  aspect-ratio: 1500 / 674;
  object-fit: cover;
}

/* ---------- Main content ---------- */

.content {
  max-width: var(--content);
  margin: 0 auto;
  padding: 44px 16px 60px;
}

.page-title {
  color: var(--blue);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 36px;
}

.welcome-title {
  color: var(--blue);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.welcome-title span {
  display: block;
  font-size: 31px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  width: 420px;
  max-width: 100%;
  margin: 30px auto 36px;
}

.content p { margin: 0 0 1.2em; }

.content strong,
.content h3 {
  color: var(--heading-text);
  font-weight: 600;
}

.content h3 {
  font-size: 17px;
  margin: 0;
  line-height: 1.75;
}

.square-list {
  list-style: square;
  margin: 0 0 1.4em;
  padding-left: 80px;
}

.square-list li { line-height: 1.85; }

/* ---------- Services ---------- */

.service { margin-bottom: 1.4em; }
.service p { margin: 0; }

/* ---------- About: 60 / 40 split ---------- */

.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

.split .square-list { padding-left: 40px; }

/* ---------- Carousel ---------- */

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #ddd;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.carousel-track {
  display: flex;
  transition: transform .6s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: #222;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}

.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] { background: #fff; }

/* ---------- Contact ---------- */

.map-wrap {
  position: relative;
  aspect-ratio: 16 / 6;
  min-height: 300px;
  margin-bottom: 48px;
  background: #e8e8e8;
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-details { text-align: center; }
.contact-details address { font-style: normal; margin-bottom: 1.4em; }
.contact-details .phone-line { font-weight: 600; color: var(--heading-text); }
.contact-details a { color: inherit; text-decoration: none; }
.contact-details a:hover { color: var(--blue); }

/* ---------- Reviews ---------- */

.reviews-summary {
  text-align: center;
  margin-bottom: 36px;
}

.reviews-summary .score {
  font-size: 44px;
  font-weight: 600;
  color: var(--heading-text);
  line-height: 1;
}

.stars {
  color: #f5b301;
  letter-spacing: 2px;
  font-size: 22px;
}

.reviews-summary .count { font-size: 15px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.review-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.review-author {
  font-weight: 600;
  color: var(--heading-text);
  line-height: 1.3;
}

.review-author a { color: inherit; text-decoration: none; }
.review-date { font-size: 13px; color: #888; }
.review-card .stars { font-size: 17px; }
.review-text { font-size: 15px; line-height: 1.65; margin: 0; }

.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  transition: background .2s;
}

.btn:hover { background: var(--blue-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 10px 22px;
}

.btn-outline:hover { background: var(--blue); }

.powered-by {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 18px;
}

.reviews-fallback { text-align: center; }

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

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 44px 16px;
  font-size: 17px;
}

.site-footer p { margin: 0; }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 50px;
  height: 50px;
  border: 0;
  background: rgba(30, 30, 33, .85);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.to-top.show { opacity: 1; visibility: visible; }

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 8px 12px;
  z-index: 10;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-logo img { width: 260px; }
  .site-nav ul { gap: 4px 18px; }
  .site-nav a { font-size: 14px; }
  .header-call { display: inline-block; }
  .page-title { font-size: 30px; }
  .welcome-title { font-size: 27px; }
  .welcome-title span { font-size: 21px; margin-top: 6px; }
  .square-list,
  .split .square-list { padding-left: 24px; }
  .map-wrap { aspect-ratio: 4 / 3; }
  .site-footer { font-size: 15px; }
}
