/* ============================================================
   MC GARAGET — Stylesheet
   ============================================================ */

:root {
  --black:      #1a1a1a;
  --dark:       #2c2c2c;
  --red:        #c0392b;
  --red-dark:   #a93226;
  --grey-light: #f4f4f4;
  --grey-mid:   #ddd;
  --grey-text:  #555;
  --white:      #fff;
  --header-bg:  #f5f5f5;
  --header-border: #ddd;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover {
  background: var(--red-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── HEADER ── */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo img {
  height: 52px;
  width: auto;
  max-width: calc(100vw - 80px);
  display: block;
}

/* NAV */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: var(--red);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.hero h1 span { color: var(--red); }
.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #aaa;
  margin-bottom: 1.75rem;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.meta-item { display: flex; gap: 0.75rem; align-items: baseline; flex-wrap: wrap; }
.meta-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--red);
  min-width: 56px;
  flex-shrink: 0;
}
.meta-value { color: #ddd; font-size: 0.95rem; }
.meta-value a { color: #ddd; }
.meta-value a:hover { color: var(--white); }
.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  width: 100%;
  object-fit: cover;
  max-height: 380px;
}

/* ── SECTIONS ── */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section:nth-child(even) { background: var(--grey-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.03em;
  color: var(--black);
  margin-bottom: 0.5rem;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 50px;
  background: var(--red);
  margin-top: 6px;
}
.section-sub { color: var(--grey-text); margin-bottom: 2rem; margin-top: 0.5rem; }
.section-note {
  margin-top: 1.5rem;
  color: var(--grey-text);
  font-size: 0.9rem;
  font-style: italic;
}

/* ── HITTA HIT / KARTA ── */
.hitta-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2rem;
  align-items: start;
}
.hitta-info p { margin-bottom: 1rem; line-height: 1.6; }
.hitta-map img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ── DÄCK CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.card-featured { border-color: var(--red); border-width: 2px; }
.card-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--red);
  padding: 2px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}
.card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.card-sub { font-size: 0.85rem; color: var(--grey-text); margin-bottom: 0.25rem; }
.card-tire-img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
  margin: 0.75rem 0;
}
.card-tire-img img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
  transition: transform 0.2s;
}
.card:hover .card-tire-img img { transform: scale(1.05); }

/* ── PRICE TABLE (kort) ── */
.price-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-top: auto; }
.price-table tr { border-bottom: 1px solid var(--grey-light); }
.price-table tr:last-child { border-bottom: none; }
.price-table td { padding: 0.4rem 0; }
.price-table .price { text-align: right; font-weight: 700; color: var(--red); white-space: nowrap; padding-left: 0.5rem; }

/* ── SERVICE TABLE ── */
.service-table-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.service-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 400px; }
.service-table tr { border-bottom: 1px solid var(--grey-light); }
.service-table tr:last-child { border-bottom: none; }
.service-table td { padding: 0.85rem 1.25rem; font-size: 0.95rem; vertical-align: middle; }
.service-table .price {
  text-align: right;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  min-width: 150px;
}
.service-table tr:hover { background: var(--grey-light); }

/* ── VERKSTAD BILD ── */
.verkstad-bild {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 500px;
}
.verkstad-bild img { width: 100%; }

/* ── PAGE HERO (undersidor) ── */
.page-hero {
  background: var(--black);
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--white);
  letter-spacing: 0.03em;
  max-width: 1100px;
  margin: 0 auto;
}
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 1.25rem clamp(3rem, 6vw, 5rem);
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.page-content p { margin-bottom: 1rem; max-width: 70ch; }
.page-content strong { font-weight: 700; }
.page-content blockquote {
  border-left: 3px solid var(--red);
  padding: 0.75rem 1.25rem;
  color: var(--grey-text);
  font-style: italic;
  margin: 1.5rem 0;
  background: var(--grey-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.page-content::after { content: ''; display: table; clear: both; }

/* ── OM OSS BILD ── */
.om-oss-bild {
  float: left;
  margin: 0 1.5rem 1rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 300px;
}
.om-oss-bild img { width: 100%; }

/* ── FORMULÄR ── */
.form-wrap {
  max-width: 640px;
  background: var(--grey-light);
  border: 1px solid var(--grey-mid);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2rem;
}
.form-group { margin-bottom: 1.4rem; }
.form-group:last-of-type { margin-bottom: 0; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
  background: var(--white);
}
.form-group textarea { height: 150px; resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-wrap .btn {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  padding: 0.9rem;
}
.form-divider {
  border: none;
  border-top: 1px solid var(--grey-mid);
  margin: 1.75rem 0;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  color: #aaa;
  padding: clamp(2rem, 4vw, 3rem) 1.25rem 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: 2.5rem;
}
.footer-inner h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.footer-inner p { font-size: 0.9rem; line-height: 1.7; }
.footer-inner a { color: #aaa; }
.footer-inner a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #555;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet: 900px */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .hitta-grid { grid-template-columns: 1fr 1.5fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile: 640px */
@media (max-width: 640px) {
  /* Header */
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-top: 1px solid var(--header-border);
    border-bottom: 2px solid var(--red);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.15rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    text-align: left;
  }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { margin-top: 1.5rem; }
  .hero-image img { max-height: 240px; width: 100%; object-fit: cover; }

  /* Cards */
  .card-grid { grid-template-columns: 1fr; }
  .card-tire-img { height: 120px; }

  /* Hitta */
  .hitta-grid { grid-template-columns: 1fr; }

  /* Om oss bild */
  .om-oss-bild {
    float: none;
    margin: 0 0 1.5rem 0;
    max-width: 100%;
  }

  /* Formulär */
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { max-width: 100%; padding: 1.25rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; }

  /* Service table scroll på mobil */
  .service-table td { padding: 0.65rem 0.75rem; font-size: 0.85rem; }
  .service-table .price { min-width: 110px; }

  /* Verkstad bild full bredd */
  .verkstad-bild { max-width: 100%; }
}

/* Extra liten: 380px */
@media (max-width: 380px) {
  .logo img { height: 42px; }
  .hero h1 { font-size: 1.9rem; }
  .btn { padding: 0.65rem 1.5rem; font-size: 1.05rem; }
}
