/* ==========================================================================
   J&R ROOFING & PROPERTY MAINTENANCE LTD
   Master Stylesheet
   Color Scheme: Jet Black, Pure White, Crimson Red (Derived from Official Logo)
   ========================================================================== */

:root {
  /* Brand Palette from Logo */
  --primary-red: #DC2626;
  --primary-red-hover: #B91C1C;
  --primary-red-light: #FEE2E2;
  --primary-red-glow: rgba(220, 38, 38, 0.25);
  
  --dark-bg: #0C1017;
  --dark-surface: #141B26;
  --dark-card: #1A2332;
  --dark-border: #2A364B;
  
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;
  
  --light-bg: #F8FAFC;
  --light-surface: #FFFFFF;
  --light-border: #E2E8F0;
  
  --gold-star: #F59E0B;
  --success-green: #10B981;
  
  /* Layout & Fonts */
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --container-max: 1200px;
  --transition: all 0.25s ease-in-out;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-bar {
  background-color: #07090D;
  color: var(--text-light-muted);
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-item svg {
  width: 14px;
  height: 14px;
  color: var(--primary-red);
}

.top-item a:hover {
  color: #FFFFFF;
}

.badge-trust-mini {
  background: rgba(220, 38, 38, 0.15);
  color: #F87171;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Main Site Header */
.site-header {
  background-color: var(--dark-bg);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: rgba(12, 16, 23, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.35);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-title span {
  color: var(--primary-red);
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-light-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: #CBD5E1;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after, .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-red);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--primary-red-glow);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--dark-bg);
  color: #FFFFFF;
  border-color: var(--dark-border);
}

.btn-dark:hover {
  background-color: var(--dark-surface);
  border-color: var(--primary-red);
  color: #FFFFFF;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background-color: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-red {
  background-color: rgba(220, 38, 38, 0.15);
  color: var(--primary-red);
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.badge-white {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(12, 16, 23, 0.95) 0%, rgba(20, 27, 38, 0.92) 100%),
              url('../images/flyer_services_brochure.png') center/cover no-repeat;
  color: #FFFFFF;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--light-bg), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-content h1 span.highlight {
  color: var(--primary-red);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #E2E8F0;
  font-weight: 600;
}

.hero-trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary-red);
}

/* Hero Visual Card */
.hero-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dark-border);
}

.hero-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--dark-border);
}

.hero-badge-overlay {
  position: absolute;
  top: 2.25rem;
  right: 2.25rem;
  background: var(--primary-red);
  color: #FFFFFF;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
  border-radius: var(--radius-md);
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-red);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light-muted);
}

/* ==========================================================================
   TRUST BAR / KEY HIGHLIGHTS
   ========================================================================== */
.trust-bar {
  background: #FFFFFF;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--light-border);
  position: relative;
  z-index: 10;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-bar-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
}

.trust-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.trust-bar-box h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.trust-bar-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--dark-bg);
  color: #FFFFFF;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-dark .section-title {
  color: #FFFFFF;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-dark .section-desc {
  color: var(--text-light-muted);
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(220, 38, 38, 0.3);
}

.service-card:hover::before {
  background-color: var(--primary-red);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(220, 38, 38, 0.08);
  border-radius: var(--radius-md);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon-box svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-red);
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   FEATURED PROJECTS GALLERY (With Authentic Pictures)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-red);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.project-thumb-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #000000;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb {
  transform: scale(1.05);
}

.project-tag-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(12, 16, 23, 0.85);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  border-left: 3px solid var(--primary-red);
}

.project-expand-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--primary-red);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.project-card:hover .project-expand-btn {
  opacity: 1;
  transform: translateY(0);
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-light-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #94A3B8;
  padding-top: 0.75rem;
  border-top: 1px solid var(--dark-border);
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-meta-item svg {
  color: var(--primary-red);
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   ABOUT STORY / BROTHERS SECTION
   ========================================================================== */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-collage {
  position: relative;
}

.about-main-img {
  width: 88%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 4px solid #FFFFFF;
}

.about-secondary-card {
  position: absolute;
  bottom: -2.5rem;
  right: 0;
  width: 60%;
  background: var(--dark-bg);
  color: #FFFFFF;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
  border-left: 5px solid var(--primary-red);
}

.about-secondary-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about-secondary-card p {
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

.feature-checklist {
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-icon {
  width: 22px;
  height: 22px;
  background: var(--primary-red);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon svg {
  width: 13px;
  height: 13px;
}

.checklist-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-dark);
}

.checklist-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px var(--primary-red-glow);
}

/* ==========================================================================
   CALLOUT BANNER (NEED A NEW ROOF?)
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #991B1B 0%, #DC2626 50%, #7F1D1D 100%);
  color: #FFFFFF;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: url('../images/flyer_need_new_roof.png') center right/contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.cta-banner-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-block {
  background: var(--dark-bg);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--dark-border);
}

.contact-info-block h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 0.75rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(220, 38, 38, 0.15);
  color: var(--primary-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-details strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light-muted);
  margin-bottom: 2px;
}

.contact-info-details a, .contact-info-details span {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.contact-info-details a:hover {
  color: var(--primary-red);
}

/* Service Area Tag List */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.area-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  border: 1px solid var(--dark-border);
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: var(--primary-red);
}

.lightbox-image {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #000000;
}

.lightbox-meta {
  padding: 1.5rem;
  color: #FFFFFF;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lightbox-caption {
  font-size: 0.95rem;
  color: var(--text-light-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #06090E;
  color: var(--text-light-muted);
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--primary-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-light-muted);
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #CBD5E1;
}

.footer-bottom a:hover {
  color: var(--primary-red);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .services-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-story-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 1100px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 2px solid var(--primary-red);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    transform: translateY(-10px);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  }
  
  .nav-menu.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }
  
  .header-cta-group .btn {
    display: none;
  }
  
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.15rem;
  }
  
  .services-grid, .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-bar-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Flexible content prevents long contact details from widening the page. */
.responsive-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.responsive-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.responsive-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); scroll-margin-top: 6rem; }
.service-detail:nth-of-type(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.footer-col, .contact-card, .contact-sidebar, .contact-info-details,
.hero-grid > *, .brand-text { min-width: 0; }
a[href^="mailto:"], .contact-info-details { overflow-wrap: anywhere; }
.btn, .mobile-toggle, .filter-tab-btn { min-height: 44px; }
.project-expand-btn, .lightbox-close-btn, .social-btn { width: 44px; height: 44px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary-red); outline-offset: 4px; }
.project-card:focus-within .project-expand-btn { opacity: 1; transform: none; }

@media (hover: none) {
  .project-expand-btn { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .contact-grid, .service-detail, .service-detail:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .responsive-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .nav-container { padding: 0.75rem 1rem; gap: 0.5rem; }
  .brand-link { gap: 0.6rem; min-width: 0; }
  .brand-title { font-size: 1.05rem; }
  .brand-subtitle { font-size: 0.55rem; letter-spacing: 0.08em; }
  .brand-logo { width: 44px; height: 44px; }
  .header-cta-group { flex-shrink: 0; }
  .nav-menu { padding: 1rem; gap: 0; }
  .nav-link { display: block; width: 100%; min-height: 48px; padding: 0.75rem; }
  .top-bar .container, .top-bar-left, .top-bar-right { gap: 0.5rem; }
  .top-bar-right { width: 100%; }
  .top-bar-right > a { min-height: 44px; overflow-wrap: anywhere; max-width: 100%; }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-title, .cta-banner h2 { font-size: 1.85rem; }
  .hero { padding: 3rem 0; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { gap: 0.75rem; margin-bottom: 1.5rem; }
  .hero-actions .btn, .cta-banner-buttons .btn { width: 100%; }
  .hero-trust-row { gap: 1rem; }
  .hero-card { padding: 1rem; }
  .hero-card-img { height: auto; aspect-ratio: 4 / 3; }
  .hero-badge-overlay { top: 1.5rem; right: 1.5rem; }
  .responsive-grid-two, .responsive-grid-three, .responsive-grid-four { grid-template-columns: minmax(0, 1fr); }
  .about-story-grid { gap: 2rem; }
  .about-main-img { width: 100%; }
  .about-secondary-card { position: relative; bottom: auto; width: 100%; margin-top: 1rem; padding: 1.25rem; }
  .contact-card, .contact-info-block, .service-card { padding: 1.25rem; }
  .form-control, .form-select, .form-textarea { font-size: 16px; min-width: 0; }
  .project-meta-row { flex-wrap: wrap; gap: 0.5rem; }
  .footer-grid { gap: 2rem; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
  .lightbox-modal { padding: 0.75rem; }
  .lightbox-content { max-height: calc(100dvh - 1.5rem); overflow-y: auto; }
  .lightbox-image { max-height: 50dvh; }
  .lightbox-meta { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
