/* ============================================================
   INNSET SOLUTIONS — styles.css
   ============================================================ */


/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colours */
  --navy:        #0a1628;
  --navy-alt:    #0e1d36;
  --navy-card:   #12243f;
  --white:       #ffffff;
  --white-muted: rgba(255, 255, 255, 0.65);
  --gold:        #c9a96e;
  --gold-faint:  rgba(201, 169, 110, 0.08);
  --gold-soft:   rgba(201, 169, 110, 0.22);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width:  1160px;
  --section-py: 108px;
  --radius:     12px;
  --radius-sm:  8px;

  /* Motion */
  --ease:      0.3s ease;
  --ease-slow: 0.65s ease;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }


/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 3.5rem;
}


/* ============================================================
   SCROLL FADE-IN  (Intersection Observer adds .visible)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Staggered delays for sibling groups — repeats per row (3-column grid) */
.service-card.visible:nth-child(3n+2) { transition-delay: 0.13s; }
.service-card.visible:nth-child(3n+3) { transition-delay: 0.26s; }
.process-step.visible:nth-child(2) { transition-delay: 0.12s; }
.process-step.visible:nth-child(3) { transition-delay: 0.24s; }
.process-step.visible:nth-child(4) { transition-delay: 0.36s; }


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  padding: 18px 0;
  transition: background var(--ease), backdrop-filter var(--ease),
              padding var(--ease), border-color var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 22, 40, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 11px 0;
  border-color: rgba(201, 169, 110, 0.1);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ── Two-line wordmark ── */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
  transition: color var(--ease);
  gap: 2px;
}
.logo-innset {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color var(--ease);
}
.logo-solutions {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gold);
  transition: color var(--ease);
  text-transform: uppercase;
}
.nav-logo:hover .logo-innset    { color: var(--gold); }
.nav-logo:hover .logo-solutions { color: var(--white); }

/* ── Nav links ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-muted);
  position: relative;
  transition: color var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav-link:hover           { color: var(--white); }
.nav-link:hover::after    { width: 100%; }

/* ── Language toggle pill ── */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--gold-soft);
  border-radius: 20px;
  padding: 5px 14px;
  color: var(--white-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.lang-toggle:hover      { border-color: var(--gold); background: var(--gold-faint); }
.lang-option            { transition: color var(--ease); }
.lang-option.active     { color: var(--gold); font-weight: 600; }
.lang-divider           { color: rgba(255,255,255,0.25); margin: 0 2px; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO — two-column layout (text left | illustration right)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

/* Subtle dot-grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201,169,110,0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
/* Warm centre glow */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 55%,
    rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Canvas particle system — injected by script.js on desktop */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Two-column grid wrapper */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 28px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

/* Left column: text */
.hero-content {
  animation: heroSlideLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--white-muted);
  margin-bottom: 2.4rem;
  letter-spacing: 0.01em;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  /* left-aligned on desktop */
}

/* Right column: SVG illustration */
.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroSlideRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-illustration svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 28px 72px rgba(0, 0, 0, 0.5));
}

@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,169,110,0.28);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.btn-secondary:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}


/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: var(--section-py) 0;
  background: var(--navy-alt);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.service-card {
  display: block;         /* anchor elements are inline by default */
  color: inherit;
  text-decoration: none;
  background: var(--navy-card);
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: var(--radius);
  padding: 2.6rem 2.2rem;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease),
              opacity 0.7s ease;
}
/* Down-arrow hint — appears on hover to signal the card scrolls to a section */
.service-card::after {
  content: '↓';
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  margin-top: 1.2rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity var(--ease), transform var(--ease);
}
.service-card:hover::after {
  opacity: 0.6;
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-9px);
  border-color: rgba(201,169,110,0.38);
  box-shadow: 0 22px 44px rgba(0,0,0,0.32);
}
.service-icon  { display: block; margin-bottom: 1.6rem; }
.service-icon svg { display: block; }
.service-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.service-desc  { color: var(--white-muted); font-size: 0.93rem; line-height: 1.75; }

/* Secondary services grid — smaller cards below primary */
.services-grid--secondary {
  margin-top: 1.5rem;
}
.service-card--secondary {
  padding: 1.8rem 1.8rem;
}
.service-card--secondary .service-icon { margin-bottom: 1.1rem; }
.service-card--secondary .service-title { font-size: 1.1rem; }


/* ============================================================
   DETAIL SECTIONS  (expanded views linked from service cards)
   ============================================================ */
.detail-section {
  padding: var(--section-py) 0;
  background: var(--navy);
}
.detail-section.detail-alt {
  background: var(--navy-alt);
}

/* Gold top-line marks the recommended section */
.detail-section.detail-recommended {
  position: relative;
}
.detail-section.detail-recommended::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent
  );
}

/* Two-column: left = text/CTA, right = feature list */
.detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: start;
}

/* Stagger: feature list fades in slightly after the content column */
.detail-inner .fade-in:nth-child(2).visible {
  transition-delay: 0.16s;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 1.2rem;
}

.detail-intro {
  color: var(--white-muted);
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 2.2rem;
}

/* "ANBEFALT" gold pill badge */
.recommended-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.1rem;
}

/* Feature checklist */
.detail-features {
  list-style: none;
  padding: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.97rem;
  color: var(--white-muted);
  line-height: 1.5;
  transition: color var(--ease);
}
.feature-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.feature-item:hover       { color: var(--white); }

.feature-check { flex-shrink: 0; margin-top: 1px; }


/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: var(--section-py) 0;
  background: var(--navy);
}
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(
    to right, transparent,
    var(--gold-soft) 15%, var(--gold-soft) 85%,
    transparent);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--navy);
  border: 2px solid var(--gold-soft);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.6rem;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.process-step:hover .step-number {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.step-desc { color: var(--white-muted); font-size: 0.9rem; line-height: 1.65; }


/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-py) 0;
  background: var(--navy-alt);
}

/* Two-column: portrait card left, text right */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4.5rem;
  align-items: stretch;   /* portrait card fills the text column height */
  margin-bottom: 4rem;
}

/* Portrait photo column */
.about-portrait {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portrait-img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.portrait-caption {
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(201, 169, 110, 0.6);
  text-transform: uppercase;
}

/* Right text column */
.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.8rem;
}

.about-para {
  font-size: 1rem;
  color: var(--white-muted);
  line-height: 1.82;
  margin-bottom: 1.2rem;
}
.about-para:last-child { margin-bottom: 0; }

/* Stats row — large gold value + small muted label */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(201, 169, 110, 0.18);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stat-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--white-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.45;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--section-py) 0;
  background: var(--navy);
}
.contact-subtitle {
  color: var(--white-muted);
  font-size: 1.05rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
}
.contact-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-group label {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--white-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.label-optional { font-weight: 400; font-size: 0.8rem; opacity: 0.65; }
.form-group input,
.form-group textarea {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.93rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.22); }

.form-success {
  display: none;
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.28);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--gold);
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-success.show { display: block; }

.contact-email { margin-top: 2.2rem; font-size: 0.93rem; color: var(--white-muted); }
.contact-email a { color: var(--gold); transition: color var(--ease); }
.contact-email a:hover { color: var(--white); }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-alt);
  padding: 2rem;
  text-align: center;
  font-size: 0.83rem;
  color: var(--white-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}


/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-card);
  border-top: 1px solid var(--gold-soft);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--white-muted);
  margin: 0;
}

.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: opacity var(--ease);
}

.cookie-btn:hover { opacity: 0.85; }

.cookie-btn-accept {
  background: var(--gold);
  color: var(--navy);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--white-muted);
  border: 1px solid rgba(255,255,255,0.18);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.25rem;
  }
  .cookie-buttons { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}


/* ============================================================
   RESPONSIVE — TABLET  (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
  /* Hero: stack vertically */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 120px;
  }
  .hero-buttons { justify-content: center; }

  /* Illustration centred, reasonable max-width */
  .hero-illustration {
    order: 1;          /* illustration below text */
    max-width: 480px;
    margin: 0 auto;
  }

  .services-grid         { grid-template-columns: repeat(2, 1fr); }
  .detail-inner          { grid-template-columns: 1fr; gap: 2.8rem; }
  .about-inner           { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait-img          { min-height: 320px; height: 320px; }
  .about-stats           { grid-template-columns: repeat(3, 1fr); }
  .process-timeline      { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .process-timeline::before { display: none; }
}


/* ============================================================
   RESPONSIVE — MOBILE  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-py: 72px; }

  .hero {
    background: linear-gradient(135deg, #0a1628, #0d2040, #0a2030, #0a1628);
    background-size: 400% 400%;
    animation: heroGradientShift 9s ease infinite;
  }

  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0 -100% 0 auto;
    width: min(85vw, 320px);
    height: 100dvh;
    background: var(--navy-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2.2rem 2.2rem;
    gap: 2.2rem;
    transition: inset var(--ease-slow);
    box-shadow: -24px 0 48px rgba(0,0,0,0.5);
    z-index: 800;
  }
  .nav-menu.open { inset: 0 0 0 auto; }
  .nav-link { font-size: 1.1rem; }

  .process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    text-align: left;
  }
  .step-number { margin: 0; flex-shrink: 0; }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE  (≤ 580px)
   ============================================================ */
@media (max-width: 580px) {
  .services-grid        { grid-template-columns: 1fr; }
  .process-timeline     { grid-template-columns: 1fr; }
  .about-stats          { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-buttons         { flex-direction: column; align-items: center; }
  .btn                  { width: 100%; max-width: 300px; }
  .hero-illustration    { max-width: 330px; }
}
