/* =============================================
   NOVAHAUS SERVICE — STYLESHEET
   B2B Neutral Palette
   --slate-900: #0F172A  (text primary)
   --slate-700: #334155  (text secondary)
   --slate-500: #64748B  (text muted)
   --slate-200: #E2E8F0  (borders)
   --slate-50:  #F8FAFC  (backgrounds)
   --blue-600:  #2563EB  (accent / CTAs)
   --blue-50:   #EFF6FF  (accent light bg)
   ============================================= */

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

:root {
  --c-text:      #0F172A;
  --c-text-2:    #334155;
  --c-muted:     #64748B;
  --c-border:    #E2E8F0;
  --c-bg:        #FFFFFF;
  --c-bg-subtle: #F8FAFC;
  --c-accent:    #2563EB;
  --c-accent-dk: #1D4ED8;
  --c-accent-lt: #EFF6FF;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.1);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1200px;
  --section-py:  96px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.section { padding: var(--section-py) 0; }

/* ---- BADGE ---- */
.badge {
  display: inline-block;
  background: var(--c-accent-lt);
  color: var(--c-accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--c-muted); font-size: 1.0625rem; }

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
h4 { font-size: .9375rem; font-weight: 600; margin-bottom: 12px; }
p  { color: var(--c-text-2); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn-primary:hover {
  background: var(--c-accent-dk);
  border-color: var(--c-accent-dk);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn-outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  text-decoration: none;
}
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.hero .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--c-accent);
  border-color: #fff;
}
.btn-light:hover {
  background: #f0f4ff;
  text-decoration: none;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover {
  border-color: #fff;
  text-decoration: none;
}
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img { display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}
.main-nav ul a {
  display: block;
  padding: 8px 12px;
  color: var(--c-text-2);
  font-size: .9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.main-nav ul a:hover { color: var(--c-accent); background: var(--c-accent-lt); }
.nav-cta { padding: 9px 18px; font-size: .875rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  color: #fff;
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}
.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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%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/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-content { max-width: 540px; }
.hero-content .badge { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); margin-bottom: 20px; }

.hero-content h1 { color: #fff; margin-bottom: 20px; }
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.0625rem; margin-bottom: 36px; max-width: 460px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat-label { font-size: .8125rem; color: rgba(255,255,255,.6); }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-illustration { width: 100%; max-width: 520px; drop-shadow(0 20px 40px rgba(0,0,0,0.3)); }

/* =============================================
   PARTNERS
   ============================================= */
.partners {
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-subtle);
}
.partners-label {
  text-align: center;
  font-size: .8125rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  margin-bottom: 24px;
}
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partner-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: -.01em;
  opacity: .7;
  transition: opacity .2s;
}
.partner-logo:hover { opacity: 1; }

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--c-bg); }

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

.service-card {
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}
.service-card:hover { box-shadow: var(--shadow-md); border-color: #CBD5E1; }

.service-card--featured {
  background: linear-gradient(135deg, #1e40af 0%, #2563EB 100%);
  border-color: transparent;
  color: #fff;
}
.service-card--featured h3,
.service-card--featured p { color: rgba(255,255,255,.95); }
.service-card--featured .service-list li { color: rgba(255,255,255,.85); }
.service-card--featured .service-list li::before { color: rgba(255,255,255,.6); }

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.service-icon { width: 48px; height: 48px; margin-bottom: 20px; }

.service-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  color: var(--c-text-2);
  font-size: .9375rem;
  padding-left: 20px;
  position: relative;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-size: .875rem;
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--c-bg-subtle); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-bg-shape { width: 100%; border-radius: var(--radius-lg); }

.about-stat-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}
.about-stat-card { top: 20px; left: -20px; }
.about-stat-card--offset { bottom: 20px; right: -20px; top: auto; }
.about-stat-card .stat-num { font-size: 1.25rem; color: var(--c-accent); }
.about-stat-card .stat-label { font-size: .8125rem; color: var(--c-muted); }

.about-content .badge { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }

.about-features { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9375rem;
  color: var(--c-text-2);
}
.check-icon {
  width: 20px;
  height: 20px;
  background: var(--c-accent-lt);
  color: var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 1px;
}

/* =============================================
   WHY NOVAHAUS
   ============================================= */
.why { background: var(--c-bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 28px 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s, border-color .2s;
}
.why-card:hover { box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.why-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: .9375rem; color: var(--c-muted); }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, #1e40af 0%, #2563EB 100%);
  padding: 72px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,.8); font-size: 1.0625rem; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--c-bg-subtle); }
.contact .section-header { margin-bottom: 48px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact-card .detail-icon { width: 24px; height: 24px; }
.contact-card strong { font-size: .875rem; color: var(--c-muted); font-weight: 500; }
.contact-card a, .contact-card span { font-size: .9375rem; color: var(--c-text); font-weight: 500; }
.contact-card a:hover { color: var(--c-accent); text-decoration: none; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0F172A;
  color: rgba(255,255,255,.7);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo { margin-bottom: 16px; color: #fff; }
.footer-brand p { font-size: .9375rem; color: rgba(255,255,255,.5); max-width: 280px; }

.footer-col h4 { color: #fff; font-size: .875rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  color: rgba(255,255,255,.55);
  font-size: .9375rem;
  text-decoration: none;
  transition: color .15s;
}
.footer-col ul a:hover { color: #fff; }

address { font-style: normal; display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; }
address a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
address a:hover { color: #fff; }
address p { color: rgba(255,255,255,.55); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: .875rem; color: rgba(255,255,255,.35); }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-page { background: var(--c-bg); }
.legal-inner { max-width: 760px; }
.legal-inner h1 { margin-bottom: 40px; }
.legal-body h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.legal-body p { margin-bottom: 16px; }
.legal-body a { color: var(--c-accent); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }
  .services-grid { grid-template-columns: 1fr; }

  .contact-cards { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stat-divider { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 8px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav ul a { padding: 12px 8px; font-size: 1rem; }
  .nav-cta { width: 100%; justify-content: center; margin-top: 8px; }
}

@media (max-width: 480px) {
  .hero { padding: 72px 0 56px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .partners-logos { gap: 20px; }
}
