/*
============================================================================
HUSFIX.COM - SHARED LANDING PAGE STYLES
============================================================================

FILE: /assets/style.css
USED BY: All 10 landing pages (5 services × 2 languages)

DESIGN THEMES:
- DEFAULT: Dark Blue (#1a365d) + Orange (#e8751a) - Construction Trust
- NORDIC:  Forest Green (#1a5d3d) + Amber (#d69e2e) - Energy/Insulation pages
  → Applied via class="theme-nordic" on <body>

COLOR REFERENCE:
--primary:     Navy blue / Forest green
--primary-l:   Lighter variant
--accent:      Orange / Amber - CTAs
--accent-l:    Lighter accent - hovers

NEXT SESSION:
- [ ] Add real project photos to hero backgrounds
- [ ] Consider lazy loading for images
- [ ] Test on IE11 (probably not needed in Norway)
============================================================================
*/

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

:root {
  /* Default theme: Construction Trust (Blue + Orange) */
  --primary: #1a365d;
  --primary-l: #2a5298;
  --accent: #e8751a;
  --accent-l: #f59e3f;
  --accent-glow: rgba(232, 117, 26, 0.3);
  --bg: #f8f9fb;
  --bg-dark: #0f1f38;
  --text: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

/* ================================================================
   NORDIC THEME - for insulation/energy pages
   ================================================================
   Applied via: <body class="theme-nordic">
   ================================================================ */
.theme-nordic {
  --primary: #1a5d3d;
  --primary-l: #2d8a5e;
  --accent: #d69e2e;
  --accent-l: #ecc94b;
  --accent-glow: rgba(214, 158, 46, 0.3);
  --bg-dark: #0f2a1a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-dark { background: var(--bg-dark); color: var(--white); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-accent:hover {
  background: var(--accent-l);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ================================================================
   COOKIE CONSENT BANNER
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-dark);
  color: var(--white);
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  display: none;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  min-width: 280px;
}
.cookie-text a { color: var(--accent); text-decoration: underline; }

.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }

.cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}

.cookie-accept { background: var(--accent); color: var(--white); }
.cookie-accept:hover { background: var(--accent-l); }

.cookie-necessary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.cookie-necessary:hover { border-color: var(--white); }

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 31, 56, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 24px;
}
.theme-nordic .header { background: rgba(15, 42, 26, 0.95); }

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { font-size: 2.6rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }

.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.header-nav a:hover { color: var(--white); }

.lang-switch {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  overflow: hidden;
}
.lang-switch a { padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.6); transition: all 0.2s; }
.lang-switch a.active { background: var(--accent); color: var(--white); }
.lang-switch a:hover:not(.active) { color: var(--white); }

.header-phone { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 700; font-size: 0.95rem; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.3s; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--primary-l) 100%);
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(232,117,26,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(42,82,152,0.2) 0%, transparent 50%);
}
.theme-nordic .hero::before {
  background-image:
    radial-gradient(circle at 20% 80%, rgba(214,158,46,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45,138,94,0.2) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,117,26,0.15);
  border: 1px solid rgba(232,117,26,0.3);
  color: var(--accent-l);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ================================================================
   TRUST BADGES
   ================================================================ */
.trust-bar { background: var(--white); padding: 32px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--white); margin-bottom: 4px;
}
.trust-item strong { font-size: 0.95rem; color: var(--primary); }
.trust-item span { font-size: 0.8rem; color: var(--text-light); }

/* ================================================================
   WHY PROFESSIONAL / CARDS
   ================================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-card-icon {
  width: 48px; height: 48px; background: rgba(232,117,26,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px;
}
.theme-nordic .why-card-icon { background: rgba(214,158,46,0.1); }
.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.why-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; }

/* ================================================================
   SERVICES LIST
   ================================================================ */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 20px; transition: border-color 0.3s;
}
.service-item:hover { border-color: var(--accent); }
.service-check {
  flex-shrink: 0; width: 28px; height: 28px;
  background: rgba(232,117,26,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; font-size: 0.8rem;
}
.service-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.service-item p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ================================================================
   PROCESS STEPS
   ================================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-card { text-align: center; }
.process-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: var(--white);
  margin: 0 auto 16px; box-shadow: 0 4px 16px var(--accent-glow);
}
.process-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.process-card p { font-size: 0.85rem; color: var(--text-light); }

/* ================================================================
   FAQ
   ================================================================ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question {
  width: 100%; padding: 20px 24px; background: none; border: none;
  text-align: left; font-size: 1rem; font-weight: 600; color: var(--primary);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit;
}
.faq-question::after { content: '+'; font-size: 1.3rem; font-weight: 300; transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }

/* ================================================================
   CONTACT FORM
   ================================================================ */
.form-section { background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%); position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.form-info p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.7; }
.form-contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; color: var(--white); }
.form-contact-icon { width: 44px; height: 44px; background: rgba(232,117,26,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.theme-nordic .form-contact-icon { background: rgba(214,158,46,0.15); }
.form-card { background: var(--white); border-radius: 16px; padding: 36px; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group label .required { color: #e53e3e; }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s; background: #f7fafc;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,54,93,0.1); background: var(--white); }
.form-control.error { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 16px; margin-top: 8px; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; display: none; }
.form-status.success { display: block; background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }
.form-status.error-msg { display: block; background: #fff5f5; color: #9b2c2c; border: 1px solid #fed7d7; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: #080e1a; color: rgba(255,255,255,0.5); padding: 40px 0 24px; text-align: center; font-size: 0.85rem; }
.theme-nordic .footer { background: #050e08; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ================================================================
   IMAGE SHOWCASE
   ================================================================ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.showcase-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.showcase-grid img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ================================================================
   HONEYPOT (invisible to humans)
   ================================================================ */
.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  tab-index: -1;
}

/* ================================================================
   TERMS CHECKBOX
   ================================================================ */
.terms-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 8px;
}
.terms-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.terms-label {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  cursor: pointer;
}
.terms-label a {
  color: var(--primary);
  text-decoration: underline;
}
.terms-label.error {
  color: #e53e3e;
}

/* ================================================================
   SERVICE CARDS (for home page)
   ================================================================ */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body {
  padding: 24px;
}
.service-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.service-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .form-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .service-card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; padding: 100px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 56px 0; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .cookie-buttons { justify-content: center; }
}

/* ================================================================
   SCROLL ANIMATION
   ================================================================ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
