/* ============================================================
   Kommunika AS — kommunika.no
   Warm, welcoming, professional. Fraunces + Instrument Sans.
   ============================================================ */

:root {
  --paper: #FBF6EE;
  --paper-deep: #F4EBDC;
  --ink: #2B2320;
  --ink-soft: #6B5F58;
  --coral: #C4502A;
  --coral-deep: #9C3E1F;
  --coral-soft: #F6DED2;
  --amber: #E89B3C;
  --amber-soft: #FAE8CC;
  --pine: #16604C;
  --pine-deep: #0E4436;
  --pine-soft: #DDEEE7;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(43, 35, 32, 0.06), 0 6px 24px rgba(43, 35, 32, 0.06);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 35, 32, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo .dot { color: var(--coral); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover { color: var(--coral); }
.main-nav a.active { color: var(--coral); border-bottom-color: var(--coral); }
.main-nav a:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}
.nav-cta {
  background: var(--coral);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 100px;
  border-bottom: none !important;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--coral-deep); color: var(--white) !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-deep); }
.btn-outline { background: transparent; color: var(--coral); border-color: var(--coral); }
.btn-outline:hover { background: var(--coral-soft); }
.btn-light { background: var(--white); color: var(--pine-deep); }
.btn-light:hover { background: var(--amber-soft); }

/* ---------- Greeting strip (signature) ---------- */
.greeting-strip {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(43, 35, 32, 0.08);
  border-bottom: 1px solid rgba(43, 35, 32, 0.08);
  background: var(--paper-deep);
  padding: 13px 0;
  user-select: none;
}
.greeting-track {
  display: inline-block;
  animation: ticker 55s linear infinite;
}
.greeting-track span {
  font-family: "Fraunces", serif;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 26px;
}
.greeting-track .sep { color: var(--coral); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 92px 24px 84px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 58px);
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--coral);
}
.hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--pine);
  color: var(--white);
  padding: 52px 24px;
}
.trust-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-num {
  font-family: "Fraunces", serif;
  font-size: 44px;
  font-weight: 560;
  line-height: 1;
  margin-bottom: 10px;
}
.trust-label { font-size: 15px; color: var(--pine-soft); }

/* ---------- Sections ---------- */
.section { padding: 88px 24px; }
.section.tinted { background: var(--paper-deep); }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17.5px; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.svc-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(43,35,32,0.06), 0 14px 36px rgba(43,35,32,0.1);
}
.svc-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-icon.coral { background: var(--coral-soft); color: var(--coral-deep); }
.svc-icon.amber { background: var(--amber-soft); color: #8A5A14; }
.svc-icon.pine { background: var(--pine-soft); color: var(--pine-deep); }
.svc-card h3 { font-size: 21px; margin-bottom: 10px; }
.svc-card p { font-size: 15.5px; color: var(--ink-soft); flex: 1; }
.svc-card .svc-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed rgba(43,35,32,0.14);
}
.svc-card .svc-note svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--coral); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 44px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-ic {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-deep);
  display: flex; align-items: center; justify-content: center;
}
.why-ic svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 18px; margin-bottom: 6px; }
.why-item p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Language cloud ---------- */
.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
}
.lang-chip {
  background: var(--white);
  border: 1px solid rgba(43,35,32,0.1);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.lang-chip.more {
  background: var(--coral-soft);
  color: var(--coral-deep);
  border-color: transparent;
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--amber-soft);
  padding: 76px 24px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 12px; }
.cta-band p { color: var(--ink-soft); font-size: 17px; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C9BFB8;
  padding: 64px 24px 0;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: "Instrument Sans", sans-serif;
}
.footer-brand {
  font-family: "Fraunces", serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .dot { color: var(--coral); }
.footer-grid p, .footer-grid a {
  font-size: 15px;
  color: #C9BFB8;
  text-decoration: none;
  display: block;
  line-height: 2.1;
}
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: #93867E;
}

/* ---------- Booking page ---------- */
.page-hero {
  padding: 76px 24px 60px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.page-hero h1 { font-size: clamp(32px, 4.6vw, 46px); margin-bottom: 18px; }
.page-hero p { font-size: 18px; color: var(--ink-soft); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: "Fraunces", serif;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 15px; color: var(--ink-soft); }

.booking-frame-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.booking-frame-wrap iframe {
  width: 100%;
  height: 1100px;
  border: none;
  display: block;
}
.booking-fallback {
  padding: 70px 30px;
  text-align: center;
}
.booking-fallback h3 { font-size: 22px; margin-bottom: 12px; }
.booking-fallback p { color: var(--ink-soft); margin-bottom: 28px; max-width: 460px; margin-left: auto; margin-right: auto; }

.booking-help {
  max-width: 760px;
  margin: 52px auto 0;
  background: var(--pine-soft);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.booking-help svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--pine-deep); margin-top: 2px; }
.booking-help h3 { font-size: 17px; color: var(--pine-deep); margin-bottom: 4px; }
.booking-help p { font-size: 15px; color: var(--pine-deep); }
.booking-help a { color: var(--pine-deep); font-weight: 600; }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px;
}
.about-hero h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 22px; }
.about-hero h1 em { font-style: italic; color: var(--coral); }
.about-hero p { color: var(--ink-soft); font-size: 17.5px; margin-bottom: 18px; }
.about-visual {
  background: var(--amber-soft);
  border-radius: 22px;
  aspect-ratio: 4 / 3.4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-visual .word {
  position: absolute;
  font-family: "Fraunces", serif;
  color: rgba(138, 90, 20, 0.5);
}
.about-visual .word-main {
  position: relative;
  font-family: "Fraunces", serif;
  font-size: clamp(34px, 4vw, 46px);
  color: #8A5A14;
  font-weight: 560;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.value-card .v-ic {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.value-card .v-ic svg { width: 23px; height: 23px; }
.value-card h3 { font-size: 19px; margin-bottom: 10px; }
.value-card p { font-size: 15.5px; color: var(--ink-soft); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.team-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.team-card.open .team-avatar { background: var(--paper-deep); color: var(--ink-soft); }
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid, .values-grid, .steps-grid, .team-grid { grid-template-columns: 1fr; max-width: 480px; }
  .why-grid { grid-template-columns: 1fr; max-width: 540px; }
  .about-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 60px; padding-bottom: 60px; }
  .trust-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 64px 24px 60px; }
  .section { padding: 64px 24px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(43,35,32,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid rgba(43,35,32,0.07); }
  .main-nav a.nav-cta { margin-top: 14px; text-align: center; border-radius: 100px; }
  .menu-toggle { display: block; }
}
