/* =========================================================
   Finnapps — Main Stylesheet
   Works as a standalone static file (no build step)
   ========================================================= */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --dark:        #1e2430;
  --dark-alt:    #2a3245;
  --blue:        #0088cc;
  --blue-light:  #00aaee;
  --white:       #ffffff;
  --light:       #f4f7fc;
  --text:        #555555;
  --heading:     #1e2430;
  --border:      #e0e6ef;
  --nav-h:       72px;
  --radius:      8px;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-card: 0 8px 30px rgba(0,136,204,0.18);
  --transition:  all 0.3s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#app { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 { color: var(--heading); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw,  2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw,  1.5rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section ────────────────────────────────────────────── */
.section          { padding: 80px 0; }
.section--light   { background: var(--light); }
.section--dark    { background: var(--dark); color: var(--white); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section__header          { text-align: center; margin-bottom: 52px; }
.section__header h2       { margin-bottom: 12px; }
.section__header p        { color: var(--text); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.section--dark .section__header p { color: rgba(255,255,255,0.72); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  letter-spacing: 0.2px;
}
.btn--primary {
  background: var(--blue); color: var(--white); border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-light); border-color: var(--blue-light);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,136,204,0.35);
}
.btn--outline {
  background: transparent; color: var(--blue); border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--white {
  background: var(--white); color: var(--blue); border-color: var(--white);
}
.btn--white:hover { background: transparent; color: var(--white); }
.btn + .btn { margin-left: 12px; }

/* ── Top Bar ────────────────────────────────────────────── */
#topbar {
  background: var(--dark-alt);
  font-size: 0.82rem;
  padding: 7px 0;
}
#topbar .container {
  display: flex; justify-content: flex-end; align-items: center; gap: 20px;
}
#topbar a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
#topbar a:hover { color: #fff; }

/* ── Navigation ─────────────────────────────────────────── */
#navbar {
  background: var(--dark);
  position: sticky; top: 0; z-index: 900;
  height: var(--nav-h);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex; align-items: center;
}
.nav-logo-img { height: 36px; width: auto; display: block; }

/* Links */
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: rgba(255,255,255,0.82);
  padding: 8px 12px; font-size: 0.87rem; font-weight: 500;
  border-radius: 4px; display: block;
  transition: var(--transition); white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--white); background: rgba(255,255,255,0.09);
}

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  min-width: 260px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  padding: 6px 0;
}
.nav-links > li:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
#navbar.no-hover .nav-dropdown { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.nav-dropdown li a {
  display: block; padding: 9px 18px;
  color: var(--heading); font-size: 0.86rem;
  transition: background 0.15s;
}
.nav-dropdown li a:hover { background: var(--light); color: var(--blue); }

/* Nav CTA button */
.nav-cta {
  background: var(--blue) !important; color: var(--white) !important;
  border-radius: 4px !important; padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--blue-light) !important; }

/* Language switcher dropdown */
.nav-lang-item { position: relative; }
.nav-lang-trigger {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.nav-lang-dd {
  min-width: 110px !important;
}
.nav-lang-dd li a {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600;
}

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); transition: var(--transition); border-radius: 2px;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--dark) 0%, #1a3755 100%);
  color: var(--white); padding: 96px 0; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230088cc' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p  {
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  max-width: 620px; margin: 0 auto 32px;
}
.hero .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero with background image */
.hero--img {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.hero--img::before {
  background: rgba(15, 22, 36, 0.68) !important;
  background-image: none !important;
}

/* Page-level hero (smaller, left-aligned) */
.hero--page { padding: 64px 0; text-align: left; }
.hero--page p { margin: 10px 0 0; font-size: 1.05rem; max-width: 680px; }

/* ── Hero slider ─────────────────────────────────────────── */
.hero-slider {
  position: relative; overflow: hidden;
  height: 560px;
}
@media (max-width: 768px) { .hero-slider { height: 420px; } }
@media (max-width: 480px) { .hero-slider { height: 360px; } }

.slider-track {
  display: flex; height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.slide {
  min-width: 100%; height: 100%;
  background-size: cover; background-position: center;
  display: flex; align-items: center; position: relative;
}
.slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(15,22,36,0.78) 0%, rgba(20,48,80,0.65) 100%);
}
.slide-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 760px;
  margin: 0 auto; padding: 0 32px;
  text-align: center;
}
.slide-content h1 { color: var(--white); margin-bottom: 16px; }
.slide-content p  {
  color: rgba(255,255,255,0.82); font-size: 1.1rem;
  max-width: 620px; margin: 0 auto 28px;
}
.slide-content .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Arrows */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.28);
  color: var(--white); font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background 0.2s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.28); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Dots */
.slider-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.slider-dot.active { background: var(--white); transform: scale(1.3); }

/* ── Cards grid ─────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--blue);
  transform: translateY(-4px);
}
.card--link { cursor: pointer; }
.card__icon  { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.card__title { font-size: 1.05rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.card__text  { color: var(--text); font-size: 0.93rem; margin: 0; }
.card__link  {
  display: inline-block; margin-top: 14px;
  color: var(--blue); font-weight: 600; font-size: 0.88rem;
}
.card__link:hover { text-decoration: underline; }

/* ── About / 2-col layout ───────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col h2 { margin-bottom: 18px; }

/* Pillar cards (mission/vision/goals) */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pillar {
  background: var(--light);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  border-top: 3px solid var(--blue);
}
.pillar--wide { grid-column: 1 / -1; }
.pillar h4   { color: var(--blue); margin-bottom: 8px; font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.6px; }
.pillar p    { font-size: 0.88rem; margin: 0; }

/* ── Process steps ──────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.process-step          { text-align: center; padding: 28px 16px; }
.process-step__num     { font-size: 2.8rem; font-weight: 800; color: var(--blue); opacity: 0.3; line-height: 1; margin-bottom: 10px; }
.process-step h3       { margin-bottom: 10px; font-size: 1.05rem; }
.process-step p        { font-size: 0.88rem; margin: 0; }

/* ── Feature list ───────────────────────────────────────── */
.feature-list { margin: 0; }
.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.93rem;
}
.feature-list li::before { content: '✓'; color: var(--blue); font-weight: 800; flex-shrink: 0; }
.feature-list li:last-child { border-bottom: none; }

/* ── Benefits list ──────────────────────────────────────── */
.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px; margin: 22px 0;
}
.benefits-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  background: var(--light);
  border-radius: var(--radius);
  font-size: 0.93rem;
}
.benefits-list li::before { content: '→'; color: var(--blue); font-weight: 800; flex-shrink: 0; margin-top: 1px; }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #005fa3 100%);
  color: var(--white); padding: 28px 0; text-align: center;
}
.cta-banner .container {
  display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p  {
  color: rgba(255,255,255,0.92); margin: 0; font-size: 1rem;
  max-width: 640px;
}

/* ── Why Us — Progress bars ─────────────────────────────── */
.why-progress { margin-top: 28px; }
.progress-item { margin-bottom: 20px; }
.progress-header {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; font-weight: 600; margin-bottom: 7px;
  color: var(--heading);
}
.progress-track {
  height: 5px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--blue); border-radius: 3px;
  transition: width 1.4s ease;
}

/* Why Us — illustration */
.why-illustration {
  display: flex; align-items: center; justify-content: center;
}
.why-illustration img {
  width: 100%; max-width: 480px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Why Us — Circular stats (dark bg) ──────────────────── */
.stats-dark {
  padding: 70px 0;
  background: linear-gradient(rgba(15,22,36,0.88), rgba(15,22,36,0.88)),
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1600&q=80')
    center / cover no-repeat;
}
.circ-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.circ-stat { display: flex; flex-direction: column; align-items: center; }
.circ-chart { width: 140px; height: 140px; margin-bottom: 16px; overflow: visible; }
.circ-bg   { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 7; }
.circ-fill {
  fill: none; stroke: var(--blue); stroke-width: 7;
  stroke-linecap: round;
}
.circ-label {
  fill: var(--white); font-size: 18px; font-weight: 700;
  text-anchor: middle; dominant-baseline: central;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.circ-stat p { color: rgba(255,255,255,0.78); font-size: 0.9rem; margin: 0; font-weight: 500; }

/* ── Why Us — Choose cards ───────────────────────────────── */
.choose-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center; margin-top: 44px;
}
.choose-card { padding: 12px 8px; }
.choose-icon {
  width: 80px; height: 80px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.choose-icon svg {
  width: 68px; height: 68px;
  stroke: var(--heading); fill: none;
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.choose-card h4 { margin-bottom: 10px; font-size: 0.97rem; color: var(--heading); }
.choose-card p  { font-size: 0.87rem; color: var(--text); margin: 0; line-height: 1.65; }

/* ── Why Us — Let's Make Magic CTA ──────────────────────── */
.magic-cta {
  padding: 90px 0; text-align: center; color: var(--white);
  background: linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.70)),
    url('https://images.unsplash.com/photo-1553028826-f4804a6dba3b?auto=format&fit=crop&w=1600&q=80')
    center / cover no-repeat;
}
.magic-cta h2 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.magic-cta p  { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── Service circle icons ───────────────────────────────── */
.svc-circle-icon {
  border-radius: 50%;
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--white);
}
.svc-circle-icon svg { width: 52%; height: 52%; }

/* Approach grid (8-item, 4-col) */
.approach-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 44px;
}
.approach-item { text-align: center; }
.approach-item .svc-circle-icon { margin: 0 auto 18px; }
.approach-item h4 { font-size: 0.93rem; color: var(--heading); margin-bottom: 10px; }
.approach-item p  { font-size: 0.84rem; color: var(--text); line-height: 1.7; }

/* Value proposition grid (6-item, 3-col horizontal cards) */
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px;
}
.value-item {
  display: flex; gap: 18px; align-items: flex-start;
}
.value-text h4 { font-size: 0.93rem; color: var(--heading); margin-bottom: 8px; }
.value-text p  { font-size: 0.84rem; color: var(--text); line-height: 1.7; margin: 0; }

/* Quote form (extends prod-form with select support) */
.quote-form select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.93rem; font-family: inherit;
  background: var(--white); color: var(--heading); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color 0.2s; box-sizing: border-box;
}
.quote-form select:focus { outline: none; border-color: var(--blue); }

/* ── Product pages ──────────────────────────────────────── */
.section--tinted { background: var(--light); }

.prod-intro-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: center;
}
.prod-media { width: 100%; }
.prod-video {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.prod-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.prod-video-placeholder { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prod-video-placeholder img { width: 100%; display: block; object-fit: cover; max-height: 360px; }
.prod-intro-text .section-heading { font-size: 1.35rem; }
.prod-intro-text p { margin-bottom: 14px; font-size: 0.93rem; line-height: 1.7; color: var(--text); }
.prod-intro-text .feature-list { margin: 0; }

.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px;
}
.pricing-plan {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow);
}
.pricing-price {
  font-size: 1.15rem; font-weight: 700; color: var(--blue); margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.pricing-items { list-style: none; padding: 0; margin: 0; }
.pricing-items li {
  padding: 7px 0; font-size: 0.89rem; color: var(--text);
  border-bottom: 1px solid #f0f0f0;
}
.pricing-items li::before { content: '• '; color: var(--blue); font-weight: 700; }
.pricing-items li:last-child { border-bottom: none; }

.prod-form { max-width: 720px; margin: 36px auto 0; }
.prod-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.prod-form input, .prod-form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.93rem; font-family: inherit;
  background: var(--white); color: var(--heading); transition: border-color 0.2s;
  box-sizing: border-box;
}
.prod-form input:focus, .prod-form textarea:focus { outline: none; border-color: var(--blue); }
.prod-form textarea { display: block; margin-bottom: 18px; }
.form-submit-center { text-align: center; }
.file-input-wrap { display: flex; align-items: stretch; }
.file-input-wrap label {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.93rem; cursor: pointer;
  background: var(--white); color: var(--text); box-sizing: border-box;
}
.file-input-wrap label:hover { border-color: var(--blue); }
.file-input-wrap input[type="file"] { display: none; }

.variants-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px;
}
.variant-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
}
.variant-title { color: var(--blue); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.variant-card > p { font-size: 0.88rem; color: var(--text); line-height: 1.65; margin-bottom: 14px; }
.variant-list { padding-left: 18px; margin: 0; }
.variant-list li { font-size: 0.87rem; color: var(--text); margin-bottom: 8px; line-height: 1.55; }

/* ── Forms ──────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group      { margin: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-label      { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.88rem; color: var(--heading); }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 0.93rem; font-family: inherit;
  transition: border-color 0.2s; background: var(--white); color: var(--heading);
}
.form-control:focus { outline: none; border-color: var(--blue); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control   { appearance: none; cursor: pointer; }
.form-success {
  background: #d4edda; color: #155724;
  padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 18px; display: none; font-weight: 500; font-size: 0.93rem;
}
.form-success.visible { display: block; }

/* Inline form-sent replacement (prod-form / quote-form success) */
.form-sent-msg {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 18px;
  padding: 48px 24px; background: #f0f8f0; border-radius: var(--radius);
  border: 1px solid #c3e6cb;
}
.form-sent-msg p { font-size: 1rem; color: #2d4a3e; margin: 0; line-height: 1.6; }

/* ── Contact layout ─────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px;
}
.contact-info-item .ci-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-item h4 {
  color: var(--blue); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 3px;
}
.contact-info-item p { margin: 0; font-size: 0.93rem; }
.contact-info-item a { color: var(--blue); }
.contact-info-item a:hover { text-decoration: underline; }

/* ── Home page specific ─────────────────────────────────── */
.home-tagline {
  text-align: center; font-size: 0.92rem; color: var(--text); margin-bottom: 8px; letter-spacing: 0.3px;
}
.home-about-text {
  text-align: center; max-width: 720px; margin: 0 auto 44px; color: var(--text); line-height: 1.75;
}
.about-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
.about-card {
  text-align: center; padding: 8px 0;
}
.about-card__img {
  width: 100%; height: 180px; overflow: hidden;
  border-radius: var(--radius); margin-bottom: 20px;
}
.about-card__img img { width: 100%; height: 100%; object-fit: cover; }
.about-card h4 { font-size: 1rem; color: var(--heading); margin-bottom: 10px; }
.about-card p  { font-size: 0.87rem; color: var(--text); line-height: 1.7; margin-bottom: 14px; }
.about-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-size: 0.85rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.about-card__link:hover { text-decoration: underline; }

/* Home products accordion */
.home-products-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.home-products-right img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
}
.home-prod-accordion { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.home-prod-item { border-bottom: 1px solid var(--border); }
.home-prod-item:last-child { border-bottom: none; }
.home-prod-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--white); border: none; cursor: pointer;
  font-size: 0.92rem; font-weight: 600; color: var(--heading); text-align: left;
}
.home-prod-toggle:hover { background: var(--light); }
.home-prod-content {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 20px;
}
.home-prod-item.open .home-prod-content { max-height: 300px; padding: 0 20px 18px; }
.home-prod-content p { font-size: 0.89rem; color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.home-prod-arrow { transition: transform 0.25s ease; font-size: 1.1rem; color: var(--text); }
.home-prod-item.open .home-prod-arrow { transform: rotate(180deg); }

/* Home process columns */
.home-proc-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.home-proc-step {
  padding: 64px 44px; background: #1a1f2e; color: rgba(255,255,255,0.8);
}
.home-proc-step--mid {
  background: #14202e url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
  position: relative;
}
.home-proc-step--mid::before {
  content: ''; position: absolute; inset: 0; background: rgba(20,32,46,0.88);
}
.home-proc-step--mid > * { position: relative; z-index: 1; }
.home-proc-step--blue { background: var(--blue); color: var(--white); }
.home-proc-num {
  font-size: 3rem; font-weight: 800; color: rgba(255,255,255,0.25);
  line-height: 1; margin-bottom: 16px;
}
.home-proc-step--blue .home-proc-num { color: rgba(255,255,255,0.4); }
.home-proc-step h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.home-proc-step p  { font-size: 0.87rem; line-height: 1.7; }

/* Home services grid */
.home-svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.home-svc-card {
  cursor: pointer; padding: 4px 0; border-bottom: 1px solid var(--border); padding-bottom: 28px;
}
.home-svc-card:hover .home-svc-icon svg { stroke: var(--blue); }
.home-svc-icon {
  width: 36px; height: 36px; margin-bottom: 14px;
}
.home-svc-icon svg { width: 28px; height: 28px; stroke: var(--heading); }
.home-svc-card h4 { font-size: 0.97rem; color: var(--heading); margin-bottom: 10px; }
.home-svc-card p  { font-size: 0.85rem; color: var(--text); line-height: 1.7; margin-bottom: 12px; }

/* Benefits split */
.benefits-split { display: grid; grid-template-columns: 1fr 1fr; }
.benefits-image {
  background-size: cover; background-position: center; background-repeat: no-repeat;
  min-height: 420px;
}
.benefits-panel {
  background: #16202e; overflow: hidden;
}
.benefits-inner { padding: 56px 52px; overflow: visible; }
.benefit-item {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px;
}
.benefit-item:last-child { margin-bottom: 0; }
.benefit-num {
  font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.3);
  flex-shrink: 0; width: 36px; padding-top: 2px;
}
.benefit-title {
  color: var(--blue); font-size: 0.97rem; margin-bottom: 6px;
}
.benefit-item p { font-size: 0.86rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin: 0; }

/* ── Footer ─────────────────────────────────────────────── */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
}
.footer-main { padding: 56px 0 40px; }
.footer-grid-4 {
  display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1.2fr; gap: 40px;
}
.footer-brand { padding-right: 16px; }
.footer-logo-img {
  height: 32px; width: auto; display: block; margin-bottom: 14px;
}
.footer-tagline { font-size: 0.83rem; line-height: 1.75; color: rgba(255,255,255,0.6); }
.footer-col h4  { color: var(--white); margin-bottom: 18px; font-size: 0.83rem; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; list-style: none; }
.footer-links a  { color: rgba(255,255,255,0.55); font-size: 0.85rem; transition: color 0.2s; text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.footer-enquiry { display: flex; flex-direction: column; gap: 10px; }
.footer-enquiry input, .footer-enquiry textarea {
  width: 100%; padding: 10px 13px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); font-size: 0.85rem; font-family: inherit;
  background: rgba(255,255,255,0.06); color: var(--white); box-sizing: border-box;
  transition: border-color 0.2s;
}
.footer-enquiry input::placeholder, .footer-enquiry textarea::placeholder { color: rgba(255,255,255,0.38); }
.footer-enquiry input:focus, .footer-enquiry textarea:focus { outline: none; border-color: var(--blue); }
.footer-enquiry textarea { resize: vertical; }
.btn--sm { padding: 9px 20px; font-size: 0.85rem; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: rgba(255,255,255,0.62);
}
.footer-contact-list li svg { flex-shrink: 0; margin-top: 2px; stroke: var(--blue); }
.footer-contact-list a { color: rgba(255,255,255,0.62); text-decoration: none; transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  font-size: 0.82rem; color: rgba(255,255,255,0.38);
  background: var(--dark);
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: background 0.2s, color 0.2s; text-decoration: none;
}
.social-icon:hover { background: var(--blue); color: var(--white); }

/* ── Partner page — highlight icons ─────────────────────── */
.partner-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.partner-highlight {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  padding: 16px;
}
.partner-highlight .ph-icon {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0;
}
.partner-highlight .ph-icon svg {
  width: 32px; height: 32px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.partner-highlight span {
  font-size: 0.9rem; font-weight: 600; color: var(--heading); text-align: center;
}

/* ── Partner page — join type cards ─────────────────────── */
.join-type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.join-type-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 8px 0;
}
.join-type-card .jt-icon {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.join-type-card .jt-icon svg {
  width: 22px; height: 22px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.join-type-card h4 { margin-bottom: 6px; font-size: 0.97rem; }
.join-type-card p  { font-size: 0.88rem; margin: 0; line-height: 1.6; }

/* ── Partner open-to-hear strip ──────────────────────────── */
.open-hear {
  background: var(--dark-alt); color: var(--white);
  padding: 56px 0; text-align: center;
}
.open-hear h2 { color: var(--white); margin-bottom: 8px; }
.open-hear::after { display: none; }
.open-hear p  { color: rgba(255,255,255,0.75); margin: 0 0 12px; font-size: 0.97rem; }
.open-hear .contact-strip { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.open-hear .contact-strip a { color: var(--blue-light); font-weight: 600; }
.open-hear .contact-strip a:hover { text-decoration: underline; }

/* ── Partner form ────────────────────────────────────────── */
.partner-form-wrap { max-width: 760px; margin: 0 auto; }

/* ── Section heading with blue underbar ─────────────────── */
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading::after {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin-top: 4px;
}
/* Centered variant — bar also centers */
.section-heading--center {
  text-align: center;
}
.section-heading--center::after {
  margin-left: auto;
  margin-right: auto;
}

/* ── Job accordion ──────────────────────────────────────── */
.job-accordion { display: flex; flex-direction: column; gap: 12px; }

.job-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.job-toggle {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white); border: none; cursor: pointer;
  font-family: inherit; font-size: 0.97rem; font-weight: 600;
  color: var(--heading); text-align: left;
  transition: background 0.2s;
}
.job-toggle:hover { background: var(--light); }

.job-toggle .job-arrow {
  font-size: 0.75rem; color: var(--text);
  transition: transform 0.25s ease; flex-shrink: 0; margin-left: 12px;
}
.job-item.open .job-toggle .job-arrow { transform: rotate(180deg); }

.job-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: var(--white);
}
.job-item.open .job-content {
  max-height: 600px;
  padding: 0 20px 18px;
}
.job-content ul { padding-left: 4px; }
.job-content ul li {
  position: relative; padding: 5px 0 5px 18px;
  font-size: 0.92rem; color: var(--text); line-height: 1.55;
}
.job-content ul li::before {
  content: '•'; position: absolute; left: 0;
  color: var(--blue); font-weight: 800;
}

/* File input */
.form-control-file {
  width: 100%; padding: 8px 0;
  font-size: 0.9rem; color: var(--text); font-family: inherit;
  cursor: pointer;
}

/* ── 404 page ───────────────────────────────────────────── */
.not-found {
  text-align: center; padding: 100px 24px;
}
.not-found .code { font-size: 5.5rem; font-weight: 800; color: var(--blue); line-height: 1; }
.not-found h2    { margin: 14px 0 28px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .two-col           { grid-template-columns: 1fr; gap: 40px; }
  .pillars           { grid-template-columns: 1fr 1fr; }
  .contact-layout    { grid-template-columns: 1fr; }
  .benefits-list     { grid-template-columns: 1fr; }
  .partner-highlights{ grid-template-columns: repeat(2, 1fr); }
  .join-type-cards   { grid-template-columns: 1fr; }
  .choose-grid         { grid-template-columns: repeat(2, 1fr); }
  .circ-stats-grid     { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .approach-grid       { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .value-grid          { grid-template-columns: repeat(2, 1fr); }
  .prod-intro-grid     { grid-template-columns: 1fr; }
  .pricing-grid        { grid-template-columns: 1fr; }
  .variants-grid       { grid-template-columns: 1fr; }
  .prod-form .form-row { grid-template-columns: 1fr; }
  .about-cards-grid    { grid-template-columns: 1fr; gap: 28px; }
  .home-products-layout{ grid-template-columns: 1fr; }
  .home-proc-cols      { grid-template-columns: 1fr; }
  .home-svc-grid       { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .benefits-split      { grid-template-columns: 1fr; }
  .benefits-image      { height: 300px; }
  .footer-grid-4       { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--dark);
    flex-direction: column; align-items: flex-start;
    padding: 12px 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { padding: 11px 12px; border-radius: 4px; }

  /* Show dropdown always on mobile when parent is hovered/focused */
  .nav-dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,0.06);
    border-radius: 4px; margin: 2px 0 6px 16px; padding: 4px 0;
    min-width: unset; width: calc(100% - 16px);
    display: none;
  }
  .nav-links > li:hover .nav-dropdown,
  .nav-links > li:focus-within .nav-dropdown { display: block; }
  .nav-dropdown li a { color: rgba(255,255,255,0.72); font-size: 0.84rem; padding: 8px 14px; }
  .nav-dropdown li a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
  .nav-toggle { display: flex; }
  .nav-lang-item { margin: 4px 0; }
  .nav-lang-dd { position: static; box-shadow: none; opacity: 1 !important; visibility: visible !important; transform: none !important; background: rgba(255,255,255,0.08); }

  /* Sections */
  .section { padding: 56px 0; }
  .hero    { padding: 64px 0; }
  .hero--page { padding: 48px 0; }
  .pillars { grid-template-columns: 1fr; }
  .form-grid   { grid-template-columns: 1fr; }
  .cards-grid        { grid-template-columns: 1fr; }
  .choose-grid       { grid-template-columns: 1fr 1fr; }
  .approach-grid     { grid-template-columns: 1fr 1fr; }
  .value-grid        { grid-template-columns: 1fr; }
  .process-grid      { grid-template-columns: 1fr 1fr; }
  .home-svc-grid     { grid-template-columns: 1fr; }
  .footer-grid-4     { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
  .benefits-inner    { padding: 40px 28px; }
}

@media (max-width: 480px) {
  .hero h1    { font-size: 1.7rem; }
  .hero p     { font-size: 0.97rem; }
  .process-grid{ grid-template-columns: 1fr; }
  .btn + .btn  { margin-left: 0; margin-top: 8px; }
  .hero .btns  { flex-direction: column; align-items: center; }
}
