/* ============================================================
   JB BUILD & FIX LTD — Shared Stylesheet
   Scandinavian-Industrial · Mobile-First · Production Ready
   ============================================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --navy:   #1f2f46;
  --navy-dark: #162237;
  --navy-light: #2a3d58;
  --orange: #f28c28;
  --orange-dark: #d97a1a;
  --orange-light: #f9a84d;
  --bg:     #f8f8f6;
  --bg-alt: #f0efec;
  --white:  #ffffff;
  --text:   #1a1a1a;
  --muted:  #6b7280;
  --border: #e2e0da;
  --shadow-sm: 0 2px 8px rgba(31,47,70,0.08);
  --shadow-md: 0 8px 32px rgba(31,47,70,0.12);
  --shadow-lg: 0 20px 60px rgba(31,47,70,0.18);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s ease;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--orange);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--navy);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p { color: var(--text); }
.text-muted { color: var(--muted); }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }

/* --- SECTION LABELS --- */
.section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-label::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--orange);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 800px; }

.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: var(--white); }
.section--dark { background: var(--navy-dark); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242,140,40,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.9);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn--lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s, background 0.3s;
}
.site-nav.scrolled {
  background: var(--navy-dark);
  box-shadow: var(--shadow-lg);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--nav-h);
  padding: 6px 0;
}
.nav-logo-img {
  height: 100%;
  width: auto;
  max-height: 68px;
  display: block;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.85; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-phone:hover { color: var(--orange-light); }
.nav-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.open { opacity: 1; }
.nav-overlay a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
}
.nav-overlay a:hover { color: var(--orange); }
.nav-overlay .nav-phone-mobile {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
}

/* ============================================================
   PAGE HERO BANNERS (sub-pages)
   ============================================================ */
.page-hero {
  background: var(--navy-dark);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1400') center/cover no-repeat;
  opacity: 0.1;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 580px; margin-top: 1rem; font-size: 1.1rem; }
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
}
.page-hero-breadcrumb a { color: var(--orange); }
.page-hero-breadcrumb span { color: rgba(255,255,255,0.9); }

/* ============================================================
   HOME HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600') center/cover no-repeat;
  transform-origin: center;
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1.03); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,34,55,0.92) 0%, rgba(31,47,70,0.75) 60%, rgba(31,47,70,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--nav-h) 0 0;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(242,140,40,0.15);
  border: 1px solid rgba(242,140,40,0.3);
  color: var(--orange);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--orange); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}
.hero-trust-item svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-md);
}
.service-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
  background: var(--white);
}
.service-card:last-child { border-right: none; }
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: var(--bg); }
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: var(--orange); }
.service-icon svg { width: 26px; height: 26px; stroke: white; fill: none; stroke-width: 1.75; }
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.service-card:hover h3 { color: var(--orange); }
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.service-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition), gap var(--transition);
}
.service-link:hover { color: var(--orange); gap: 0.7rem; }
.service-link svg { width: 14px; height: 14px; }

/* ============================================================
   ABOUT PREVIEW
   ============================================================ */
.about-preview { background: var(--bg); }
.about-preview-img {
  position: relative;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-preview-badge {
  position: absolute;
  bottom: 2rem;
  right: -1rem;
  background: var(--orange);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-preview-badge .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}
.about-preview-badge .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.about-text p:last-of-type { margin-bottom: 2rem; }
.stats-row {
  display: flex;
  gap: 2.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.stat-num .plus { color: var(--orange); }
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.25rem;
}

/* ============================================================
   PROJECTS PREVIEW
   ============================================================ */
.projects-section { background: var(--bg-alt); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.project-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.07); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(22,34,55,0.92) 0%, rgba(22,34,55,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.project-tag {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}
.project-card h4 { color: var(--white); font-size: 1.1rem; }
.project-card-hover {
  position: absolute;
  inset: 0;
  background: rgba(242,140,40,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-card-hover { opacity: 1; }
.project-card-hover span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid white;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
}
.section-cta { text-align: center; margin-top: 1rem; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-us { background: var(--navy); overflow: hidden; position: relative; }
.why-us::before {
  content: 'JB';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 22rem;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}
.why-us h2 { color: var(--white); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.trust-item {
  padding: 2.5rem 1.75rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.trust-item:last-child { border-right: none; }
.trust-check {
  width: 40px;
  height: 40px;
  background: rgba(242,140,40,0.15);
  border: 1px solid rgba(242,140,40,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.trust-check svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 2.5; }
.trust-item h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.trust-item p { font-size: 0.85rem; color: rgba(255,255,255,0.9); line-height: 1.5; }

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.areas-section { background: var(--white); }
.areas-content { text-align: center; }
.areas-content h2 { margin-bottom: 1rem; }
.areas-content > p { color: var(--muted); max-width: 480px; margin: 0 auto 2rem; }
.areas-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.area-pill {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--navy);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.area-pill:hover,
.area-pill.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 380px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--bg-alt); }
.testimonials h2 { text-align: center; margin-bottom: 0.5rem; }
.testimonials-sub { text-align: center; color: var(--muted); margin-bottom: 3.5rem; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--orange);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}
.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}
.stars svg { width: 16px; height: 16px; fill: #f59e0b; }
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}
.testimonial-author-info strong { display: block; font-size: 0.9rem; font-weight: 600; }
.testimonial-author-info span { font-size: 0.8rem; color: var(--muted); }
.reviews-cta { text-align: center; }
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.google-badge:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}
.google-badge img { width: 20px; height: 20px; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-cta-bar {
  background: var(--orange);
  padding: 2rem 0;
}
.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.contact-cta-bar h3 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}
.contact-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.contact-cta-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  transition: opacity var(--transition);
}
.contact-cta-link:hover { opacity: 0.8; }
.contact-cta-link svg { width: 18px; height: 18px; }
.contact-cta-sep { color: rgba(255,255,255,0.9); }

.contact-section { background: var(--bg); }
.contact-form-wrap { max-width: 700px; margin: 0 auto; }
.contact-form-wrap h2 { text-align: center; margin-bottom: 0.5rem; }
.contact-form-wrap .subtitle { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-group label .req { color: var(--orange); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,47,70,0.08);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e53e3e;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-error-msg { font-size: 0.8rem; color: #e53e3e; margin-top: 0.3rem; display: none; }
.form-error-msg.visible { display: block; }

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--orange);
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.form-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242,140,40,0.35);
}
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.form-success {
  display: none;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #4ade80;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(34,197,94,0.15);
  outline: none;
}
.form-success.visible { display: block; animation: successPop 0.4s ease; }
@keyframes successPop {
  0% { opacity: 0; transform: scale(0.97) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}
.form-success h4 {
  color: #15803d;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}
.form-success p { color: #166534; font-size: 0.95rem; line-height: 1.7; }
.form-success p + p { margin-top: 0.75rem; }
.form-success .success-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  background: #15803d;
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition);
}
.form-success .success-phone:hover { background: #166534; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.9);
  padding: 4.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { }
.footer-logo {
  margin-bottom: 1.25rem;
}
.footer-logo-img {
  height: 72px;
  width: auto;
  display: block;
}
.footer-tagline { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; color: rgba(255,255,255,0.9); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.9); }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.footer-contact-item a { color: rgba(255,255,255,0.9); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--orange); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  z-index: 9000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; font-size: 0.875rem; color: rgba(255,255,255,0.9); line-height: 1.6; }
.cookie-text a { color: var(--orange); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.cookie-btn-accept {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.cookie-btn-accept:hover { background: var(--orange-dark); }
.cookie-btn-reject {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
}
.cookie-btn-reject:hover { border-color: rgba(255,255,255,0.9); color: white; }
.cookie-btn-pref {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: transparent;
  text-decoration: underline;
  font-size: 0.8rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.2s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.25s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.3s; }

/* ============================================================
   ABOUT PAGE SPECIFIC
   ============================================================ */
.timeline {
  position: relative;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 4rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--orange);
  border-radius: 50%;
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.timeline-title { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.timeline-desc { font-size: 0.875rem; color: var(--muted); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.value-icon {
  width: 56px;
  height: 56px;
  background: rgba(31,47,70,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.value-icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.75; }
.value-card h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   SERVICES PAGE SPECIFIC
   ============================================================ */
.service-section-item {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}
.service-section-item:last-child { border-bottom: none; }
.service-section-item.alt { background: var(--bg-alt); }
.service-section-img {
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-section-img img { width: 100%; height: 100%; object-fit: cover; }
.service-section-content h2 { margin-bottom: 1rem; }
.service-section-content p { color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; }
.service-bullets { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.service-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}
.service-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ============================================================
   PROJECTS PAGE SPECIFIC
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.projects-masonry {
  columns: 3;
  column-gap: 1.5rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.masonry-item:hover img { transform: scale(1.05); }
.masonry-item .project-card-overlay { border-radius: 0; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22,34,55,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  z-index: 1;
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--orange); }
.lightbox-img { height: 360px; overflow: hidden; }
.lightbox-img img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-body { padding: 2rem; }
.lightbox-body h3 { margin-bottom: 0.5rem; }
.lightbox-body p { color: var(--muted); }

/* ============================================================
   CONTACT PAGE SPECIFIC
   ============================================================ */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(31,47,70,0.07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 1.75; }
.contact-info-item strong { display: block; font-weight: 600; margin-bottom: 0.2rem; font-size: 0.9rem; }
.contact-info-item a, .contact-info-item span { font-size: 0.9rem; color: var(--muted); transition: color var(--transition); }
.contact-info-item a:hover { color: var(--orange); }
.response-promise {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
  color: white;
}
.response-promise h4 { color: var(--orange); font-size: 1rem; margin-bottom: 0.4rem; }
.response-promise p { font-size: 0.875rem; color: rgba(255,255,255,0.9); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(3) { border-right: none; }
  .trust-item:nth-child(4), .trust-item:nth-child(5) { border-top: 1px solid rgba(255,255,255,0.08); }
  .trust-item:nth-child(5) { border-right: none; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; }
  .projects-masonry { columns: 2; }
  .form-row { grid-template-columns: 1fr; }
  .contact-cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-trust { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .nav-logo-img { max-height: 52px; }
  .footer-logo-img { height: 56px; }
  .section { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-masonry { columns: 1; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { gap: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-preview-badge { right: 0.5rem; }
  .nav-phone span { display: none; }
}
@media (max-width: 400px) {
  h1 { font-size: 2.4rem; }
  .values-grid { grid-template-columns: 1fr; }
}


/* Kad cookie banner nav redzams — noņem lieko padding */
body.cookies-accepted 
.footer-links a { color: rgba(255,255,255,0.9) !important; }
.footer-col h5 { color: rgba(255,255,255,0.85) !important; }
.footer-contact-item a,
.footer-contact-item span { color: rgba(255,255,255,0.9) !important; }


/* Footer bottom bar */




.footer-bottom { padding: 1.25rem 0 5rem; text-align: center; font-size: 0.85rem; color: #f28c28; line-height: 1.6; }
.footer-bottom a { color: #f28c28; }
.footer-bottom a:hover { color: #f9a84d; }
