/* SIDO Marinsömnad – design system */

:root {
  --text-primary: #111318;
  --bg-off-white: #F6F7F9;
  --stitch-red: #C64B45;
  --cool-gray: #E9ECF1;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --stitch-dash: 3px dashed var(--stitch-red);
  --radius: 8px;
  --shadow: 0 2px 12px rgba(17, 19, 24, 0.06);
  --space: 1.5rem;
  --wrap: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-off-white);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* —— Stitch (söm) —— */
.stitch {
  height: 0;
  border-bottom: var(--stitch-dash);
  margin: 0;
}

.stitch-header {
  margin-top: 0;
}

.stitch-title {
  width: 80px;
  margin: 0.5rem 0 1.5rem 0;
}

.stitch-hero,
.stitch-footer {
  margin-top: 0;
}

.card-stitch,
.step-stitch {
  width: 48px;
  border-bottom: var(--stitch-dash);
  margin-bottom: 1rem;
}

/* —— Header —— */
.site-header {
  background: var(--bg-off-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--text-primary);
  display: block;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo-text .logo-sido {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.logo-text .logo-marin {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--stitch-red);
}

.main-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--stitch-red);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-cta {
  background: var(--stitch-red);
  color: #fff;
}

.btn-cta:hover {
  background: #a83d38;
  color: #fff;
}

.btn-primary {
  background: var(--stitch-red);
  color: #fff;
}

.btn-primary:hover {
  background: #a83d38;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-off-white);
}

.nav-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111318'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center/contain no-repeat;
  border: none;
  cursor: pointer;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 55vh;
  min-height: clamp(420px, 55vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8e6e0 0%, #d4d8dc 100%);
  background-image: url(../bilder/BG-use.jpeg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 252, 245, 0.35) 0%,
    rgba(255, 250, 238, 0.5) 50%,
    rgba(246, 242, 232, 0.65) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  max-width: 20ch;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 24px rgba(255, 255, 255, 0.6);
}

.hero-ingress {
  font-size: 1.1rem;
  margin: 0 0 1.75rem 0;
  max-width: 42ch;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
  scroll-margin-top: 80px; /* så att rubriker inte hamnar under headern vid ankarlänkning */
}

.section:nth-child(even) {
  background: var(--cool-gray);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0;
  color: var(--text-primary);
}

/* —— Tjänster (cards) —— */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cards-services {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-off-white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(17, 19, 24, 0.08);
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1rem 0;
  border-radius: var(--radius);
}

.section-services .card {
  background: #fff;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-primary);
}

/* —— Så jobbar vi (steps) —— */
.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  background: var(--stitch-red);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.step p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-primary);
}

/* —— Tvätt & impregnering —— */
.tvatt-content .lead {
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0;
  color: var(--text-primary);
}

/* —— Galleri —— */
.gallery-intro {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cool-gray);
}

.gallery-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
}

.gallery-empty {
  margin: 0;
  padding: 1.5rem;
  background: var(--cool-gray);
  border-radius: var(--radius);
  color: var(--text-primary);
  grid-column: 1 / -1;
}

.gallery-placeholder-img {
  aspect-ratio: 4/3;
  background: var(--cool-gray);
  border-radius: var(--radius);
}

/* —— Om oss —— */
.about-content {
  max-width: 55ch;
}

.about-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
}

.about-content p {
  margin: 0;
  color: var(--text-primary);
}

/* —— Kontakt —— */
.contact-intro {
  margin: 0 0 2rem 0;
  color: var(--text-primary);
  max-width: 50ch;
}

.contact-image-wrap {
  margin: 0 0 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.contact-info-wrap {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info-title,
.contact-form-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.contact-info-wrap .stitch-title,
.contact-form-wrap .stitch-title {
  margin-bottom: 1.25rem;
}

.contact-info p {
  margin: 0 0 1.25rem 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted, #5c6b73);
  margin-bottom: 0.2rem;
}

.contact-info a {
  color: var(--stitch-red);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form-wrap {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  margin: 0 0 1.25rem 0;
}

.form-row label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--cool-gray);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-primary);
}

.form-row select {
  cursor: pointer;
  appearance: auto;
}

.form-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted, #5c6b73);
  margin-top: 0.35rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--stitch-red);
  box-shadow: 0 0 0 2px rgba(198, 75, 69, 0.2);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin: 1.5rem 0 0 0;
}

.message {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* —— Footer —— */
.site-footer {
  background: var(--text-primary);
  color: var(--bg-off-white);
  padding: 2rem 0;
  text-align: center;
}

.site-footer .wrap {
  padding-top: 1rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
}

.footer-org,
.footer-copy {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

.footer-copy {
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .cards-services {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-off-white);
    padding: 1rem var(--space);
    flex-direction: column;
    border-bottom: var(--stitch-dash);
  }

  .main-nav.open {
    display: flex;
  }

  .header-inner .btn-cta {
    order: 1;
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .card,
  .step {
    padding: 1.25rem;
  }
}
