/* ── TMM AB — Trestad Mark & Maskinleasing ── */
:root {
  --green: #72BA6A;
  --green-light: #A9D1A4;
  --green-dark: #5a9e52;
  --dark: #3B3A3A;
  --dark-deeper: #2d2c2c;
  --dark-surface: #444343;
  --white: #ffffff;
  --gray: #b0b0b0;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(59, 58, 58, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
}
.logo-img { height: 40px; width: auto; }
.logo-text { font-weight: 700; font-size: 18px; letter-spacing: 0.05em; }

.nav { display: flex; gap: 32px; }
.nav a {
  color: var(--white); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--green);
  transition: width 0.3s;
}
.nav a:hover { color: var(--green); }
.nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: url('/images/hero.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(59,58,58,0.7) 0%, rgba(59,58,58,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 0 24px;
}
.hero-content h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--gray); max-width: 600px; margin: 0 auto 32px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 14px 32px;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  letter-spacing: 0.05em; transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green); color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-title {
  font-size: 36px; font-weight: 700; text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; color: var(--gray);
  font-size: 18px; margin-bottom: 48px;
}

/* ── WHY US ── */
.why-us { background: var(--dark-deeper); }
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--dark-surface);
  border-radius: 12px; padding: 32px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-icon { font-size: 32px; margin-bottom: 16px; }
.card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 12px;
  color: var(--green-light);
}
.card p { color: var(--gray); font-size: 14px; line-height: 1.7; }

/* ── SERVICES ── */
.services { background: var(--dark); }
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  border-radius: 12px; overflow: hidden;
  background: var(--dark-surface);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card img {
  width: 100%; height: 240px; object-fit: cover;
  display: block;
}
.service-info { padding: 24px; }
.service-info h3 {
  font-size: 20px; font-weight: 600; margin-bottom: 8px;
  color: var(--green-light);
}
.service-info p { color: var(--gray); font-size: 14px; }

/* ── GALLERY ── */
.gallery { background: var(--dark-deeper); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── CONTACT ── */
.contact { background: var(--dark); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact-info h3 {
  font-size: 22px; font-weight: 600; margin-bottom: 24px;
  color: var(--green-light);
}
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-item strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); }
.contact-item a, .contact-item span { color: var(--white); text-decoration: none; font-size: 16px; }
.contact-item a:hover { color: var(--green); }

.social-links { display: flex; gap: 16px; }
.social-links a {
  color: var(--gray); text-decoration: none; font-size: 14px;
  transition: color 0.2s;
}
.social-links a:hover { color: var(--green); }

.contact-form {
  display: flex; flex-direction: column; gap: 12px;
}
.contact-form input, .contact-form textarea {
  background: var(--dark-surface); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 14px 16px;
  color: var(--white); font-size: 14px; font-family: var(--font);
  outline: none; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--green);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: var(--gray);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { text-align: center; border: none; font-family: var(--font); }

.form-status { font-size: 14px; margin-top: 8px; }
.form-status.success { color: var(--green); }
.form-status.error { color: #ef4444; }

/* ── FOOTER ── */
.footer {
  background: var(--dark-deeper);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 24px; flex-wrap: wrap; gap: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
}
.footer-logo { height: 36px; }
.footer-brand strong { font-size: 14px; }
.footer-brand span { font-size: 12px; color: var(--gray); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  color: var(--gray); text-decoration: none; font-size: 13px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--green); }
.footer-contact { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer-contact a { color: var(--gray); text-decoration: none; font-size: 13px; }
.footer-contact a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 24px; font-size: 12px; color: var(--gray);
  text-align: center;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 8px; object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--white);
  font-size: 36px; cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--dark-deeper);
    flex-direction: column; padding: 80px 32px 32px;
    gap: 24px; transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
  }
  .nav.open { right: 0; }
  .nav a { font-size: 18px; }
  .menu-toggle { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  .hero-content h1 { font-size: 32px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
