/* ============================================================
   KARTAB – GIS Company Website
   ============================================================ */

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

:root {
  /* Färger hämtade från logotypens kompassros (mörk oliv) och text (nära svart) */
  --brand:       #686B28;  /* mörk oliv – kompassrosens faktiska ton */
  --brand-mid:   #838630;  /* mellantoliv */
  --brand-light: #A0A43C;  /* ljusare oliv */
  --accent:      #7A7D2E;  /* olivaccent */
  --dark:        #1C1A12;  /* nära svart – logotypens textfärg */
  --text:        #2E2C22;
  --text-soft:   #66635A;
  --bg:          #F5F4EF;  /* varm off-white */
  --white:       #ffffff;
  --border:      #E2DDD0;
  --shadow:      0 4px 24px rgba(28,26,18,.10);
  --radius:      12px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--brand-mid); border-radius: 4px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28,26,18,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(28,26,18,.99);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--white);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--brand-light); }


.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-menu a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,.05); }
.mobile-menu.open { display: flex; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

/* ============================================================
   HERO / CAROUSEL
   ============================================================ */
.hero { position: relative; height: 100svh; min-height: 580px; overflow: hidden; }

.carousel { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(28,26,18,.88) 0%,
    rgba(28,26,18,.60) 55%,
    rgba(28,26,18,.25) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  padding-top: 76px; /* navbar height */
}

.slide-tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.slide-content h1 {
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 32px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.slide-sub {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: rgba(255,255,255,.85);
  max-width: 700px;
  margin-bottom: 44px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: .02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-mid), var(--brand));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(184,150,24,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,150,24,.5);
  background: linear-gradient(135deg, var(--brand-light), var(--brand-mid));
}
.btn-full { width: 100%; text-align: center; }

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: grid;
  place-items: center;
}
.carousel-btn:hover { background: var(--brand-mid); border-color: var(--brand-mid); }
.prev { left: 24px; }
.next { right: 24px; }
@media (max-width: 600px) {
  .carousel-btn { width: 26px; height: 26px; font-size: 11px; }
  .prev { left: 6px; }
  .next { right: 6px; }
}

.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: linear-gradient(135deg, var(--brand), var(--dark));
  padding: 40px 24px;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-light);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.75;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--border);
  transition: background var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}
.service-card:hover::before { background: var(--brand-light); }

.featured-badge { display: none; }

.service-icon {
  width: 52px; height: 52px;
  background: rgba(184,150,24,.12);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--brand);
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: .01em;
}
.service-card p {
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.65;
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text .section-sub { margin-bottom: 28px; }
.about-text p { color: var(--text-soft); margin-bottom: 16px; line-height: 1.75; }

.about-list {
  list-style: none;
  margin: 24px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
}
.about-list svg {
  width: 20px; height: 20px;
  color: var(--brand);
  flex-shrink: 0;
}

.about-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: visible;
}
.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand));
  color: var(--white);
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(184,150,24,.4);
  border: 4px solid var(--white);
}
.badge-num { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.badge-txt { font-size: 11px; font-weight: 500; opacity: .85; text-align: center; line-height: 1.3; }

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .about-img-wrap img { height: 320px; }
  .about-badge { bottom: -16px; right: 16px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(184,150,24,.14);
}
.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='%234a5e54' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-success {
  display: none;
  text-align: center;
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
  padding: 12px;
  background: rgba(184,150,24,.1);
  border-radius: 8px;
  border: 1px solid rgba(184,150,24,.3);
}
.form-success.show { display: block; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.info-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: box-shadow var(--transition);
}
.info-card:hover { box-shadow: var(--shadow); }
.info-icon {
  width: 44px; height: 44px;
  background: rgba(184,150,24,.1);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--brand);
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; }
.info-card h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.info-card p { font-size: 14px; color: var(--text-soft); line-height: 1.55; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { order: -1; }
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-logo .logo-img { height: 90px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.5); }
.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--brand-light); }
.footer-credit {
  margin-top: 10px;
  font-size: 15px;
  color: rgba(255,255,255,.6);
}
.footer-credit a {
  color: var(--brand-light);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-credit a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.3);
  max-width: 100%;
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
