/* ============================================================
   Mobil Båtservice Orust AB — mobileboatservice.se
   Shared stylesheet for index.html (SV) and en.html (EN)
   Theme: night-sea navy + warm brass ("light & warmth aboard")
   ============================================================ */

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

:root {
  --ink:        #0b1f2e;
  --ink-soft:   #10293c;
  --ink-deep:   #081826;
  --paper:      #f7f4ed;
  --paper-deep: #efe8da;
  --card:       #fffdf8;

  --text:       #24323c;
  --muted:      #5b6b75;
  --text-inv:   #ece7db;
  --muted-inv:  #a3b4bf;

  --brass:        #c98f2f;
  --brass-bright: #e3aa45;
  --brass-soft:   rgba(201, 143, 47, .13);
  --ember:        #e2603f;

  --line:      rgba(11, 31, 46, .14);
  --line-inv:  rgba(236, 231, 219, .14);

  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 46, .09);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brass); color: var(--ink); }

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- buttons & small ui ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  color: var(--ink-deep);
  box-shadow: 0 6px 18px rgba(201, 143, 47, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 143, 47, .45); }

.btn-outline-inv {
  border-color: var(--line-inv);
  color: var(--text-inv);
  background: rgba(255, 255, 255, .03);
}
.btn-outline-inv:hover { border-color: var(--brass); transform: translateY(-2px); }

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--brass); transform: translateY(-2px); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brass);
  border-radius: 2px;
}

.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ember);
  flex: none;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 96, 63, .55); }
  55%      { box-shadow: 0 0 0 7px rgba(226, 96, 63, 0); }
}

/* ---------- header ---------- */

.topline {
  height: 3px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-bright) 45%, var(--brass) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 46, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-inv);
  color: var(--text-inv);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-inv);
  margin-right: auto;
}
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.15;
  letter-spacing: .01em;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted-inv);
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--text-inv); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted-inv);
  border: 1px solid var(--line-inv);
  border-radius: 999px;
  padding: .45em 1em;
  transition: color .15s ease, border-color .15s ease;
}
.lang-switch:hover { color: var(--text-inv); border-color: var(--brass); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-deep);
  background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  border-radius: 999px;
  padding: .55em 1.2em;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.header-phone svg { width: 16px; height: 16px; }
.header-phone:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201, 143, 47, .4); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-inv);
  border-radius: 10px;
  color: var(--text-inv);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -10%, #1a3d57 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 78%, var(--ink) 100%);
  color: var(--text-inv);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 40px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 600;
  color: #f5f1e6;
  margin-bottom: .35em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-bright);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 1.6em;
}
.hero-eyebrow svg { width: 15px; height: 15px; }

.hero-lede {
  font-size: 1.14rem;
  color: var(--muted-inv);
  max-width: 34em;
  margin-bottom: 1.8em;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4em; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-inv);
  border: 1px solid var(--line-inv);
  background: rgba(255, 255, 255, .04);
  border-radius: 999px;
  padding: .5em 1em;
}
.hero-trust svg { width: 15px; height: 15px; color: var(--brass-bright); flex: none; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

.mast-light { animation: mastglow 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes mastglow {
  0%, 100% { opacity: .9; }
  50%      { opacity: .45; }
}
.lighthouse-beam { animation: lhblink 4.5s ease-in-out infinite; }
@keyframes lhblink {
  0%, 88%, 100% { opacity: .12; }
  92%, 96%      { opacity: .8; }
}

.wave-divider { display: block; width: 100%; height: 72px; margin-top: -1px; }

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.section-dark {
  background:
    radial-gradient(900px 420px at 15% 0%, #16374f 0%, transparent 55%),
    var(--ink);
  color: var(--text-inv);
}
.section-dark .section-head p { color: var(--muted-inv); }
.section-warm { background: var(--paper-deep); }

/* ---------- services ---------- */

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

.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 143, 47, .45);
}
.service-card.is-featured {
  border-color: rgba(201, 143, 47, .55);
  background: linear-gradient(180deg, #fffdf6 0%, #fdf6e7 100%);
  box-shadow: 0 8px 26px rgba(201, 143, 47, .14);
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--brass-soft);
  color: var(--brass);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.28rem; margin-bottom: .45em; }
.service-card p { color: var(--muted); font-size: .97rem; margin: 0; }

.card-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-deep);
  background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  border-radius: 999px;
  padding: .4em .9em;
}
.card-badge.badge-dark {
  background: var(--ink);
  color: var(--brass-bright);
}

/* ---------- transparency / how we work ---------- */

.rec-chip {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-inv);
  border: 1px solid var(--line-inv);
  border-radius: 999px;
  padding: .55em 1.1em;
  margin-bottom: 1.6em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  padding: 0;
  margin: 0 0 48px;
  list-style: none;
}
.steps li {
  counter-increment: step;
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  padding: 28px;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brass-bright);
  margin-bottom: .4em;
}
.steps h3 { font-size: 1.2rem; color: #f5f1e6; }
.steps p { color: var(--muted-inv); font-size: .95rem; margin: 0; }

.transparency-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: #f5f1e6;
  border-left: 3px solid var(--brass);
  padding-left: 24px;
  max-width: 30em;
}

/* ---------- winter / refit ---------- */

.winter-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.winter-copy p { color: var(--muted); }
.winter-copy .btn { margin-top: .6em; }

.winter-note {
  display: flex;
  align-items: center;
  gap: .6em;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brass);
  margin-top: 1.2em;
}
.winter-note svg { width: 16px; height: 16px; flex: none; }

.fact-stack { display: grid; gap: 16px; }
.fact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.fact-card .service-icon { width: 46px; height: 46px; margin: 0; flex: none; }
.fact-card .service-icon svg { width: 23px; height: 23px; }
.fact-card h3 { font-size: 1.08rem; margin-bottom: .25em; }
.fact-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- pricing ---------- */

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table-wrap { overflow-x: auto; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 18px 26px;
}
.price-table thead th {
  background: var(--ink);
  color: var(--text-inv);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-table tbody tr + tr td { border-top: 1px solid var(--line); }
.price-table td:nth-child(2), .price-table td:nth-child(3),
.price-table th:nth-child(2), .price-table th:nth-child(3) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-table td:nth-child(2) { font-weight: 700; }
.price-table td:nth-child(3) { color: var(--muted); }
.price-service { font-weight: 600; }
.price-service small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: .85rem;
}

.price-notes {
  margin: 28px 0 0;
  padding: 0 0 0 2px;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 720px;
}
.price-notes li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: .93rem;
}
.price-notes li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 14px; height: 2px;
  background: var(--brass);
  border-radius: 2px;
}

/* ---------- service area ---------- */

.area-band {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  background: var(--paper);
}
.area-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}
.area-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
}
.area-title svg { width: 26px; height: 26px; color: var(--brass); flex: none; }
.area-copy p { color: var(--muted); font-size: .97rem; margin: 0 0 14px; }

.area-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chips span {
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: .45em 1.05em;
}
.area-chips .chip-more {
  border-style: dashed;
  color: var(--brass);
  border-color: rgba(201, 143, 47, .5);
  background: transparent;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.contact-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: #f5f1e6; }
.contact-copy p { color: var(--muted-inv); max-width: 30em; }

.contact-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-rows { display: grid; gap: 22px; margin-bottom: 28px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row svg { width: 21px; height: 21px; color: var(--brass-bright); flex: none; margin-top: 3px; }
.contact-row .label {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-inv);
  margin-bottom: 2px;
}
.contact-row a { text-decoration: none; }
.contact-row a:hover { color: var(--brass-bright); }
.contact-phone {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: #f5f1e6;
}
.contact-value { font-size: 1.02rem; color: var(--text-inv); }
.contact-value small { display: block; color: var(--muted-inv); font-size: .85rem; margin-top: 1px; }
.contact-card .btn { width: 100%; justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink-deep);
  color: var(--muted-inv);
  border-top: 1px solid var(--line-inv);
  padding: 34px 0;
  font-size: .88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-inv); font-weight: 600; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--muted-inv); text-decoration: none; }
.site-footer a:hover { color: var(--brass-bright); }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot, .mast-light, .lighthouse-beam { animation: none; }
  .btn, .service-card { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-inv);
    padding: 12px 24px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; font-size: 1.05rem; width: 100%; }
  .nav-toggle { display: inline-flex; }

  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 24px; gap: 32px; }
  .hero-art { max-width: 560px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .winter-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .area-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .header-phone .phone-num { display: none; }
  .header-phone { padding: .55em .85em; }
  .brand-name { font-size: 1rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .contact-card { padding: 26px 22px; }
  .price-table th, .price-table td { padding: 15px 18px; }
}

/* --- Official logo + hero photo (added 2026-07-31) --- */
.brand-logo { width:44px; height:44px; flex:none; border-radius:50%; background:#fff; padding:3px; object-fit:contain; box-shadow:0 1px 4px rgba(0,0,0,.3); }
.footer-logo { width:30px; height:30px; flex:none; border-radius:50%; background:#fff; padding:2px; object-fit:contain; }
.hero-art .hero-photo { width:100%; height:auto; display:block; border-radius:16px; box-shadow:0 24px 60px -24px rgba(0,0,0,.65); }

/* --- Section feature photos + full-bleed band (added 2026-07-31) --- */
.section-photo { margin:6px auto 42px; max-width:760px; }
.section-photo img { width:100%; height:auto; display:block; border-radius:16px; box-shadow:0 20px 50px -24px rgba(0,0,0,.55); }
.section-photo figcaption { margin-top:12px; text-align:center; font-size:.88rem; opacity:.82; }
.photo-band { display:block; width:100%; margin:0; line-height:0; }
.photo-band img { width:100%; height:clamp(240px,34vw,430px); object-fit:cover; display:block; }
