/* ==========================================================================
   Nettler Electric - Design System
   ========================================================================== */

:root {
  --primary-color: #009be9;
  --secondary-color: #1558ea;
  --dark-color: #121a20;
  --heading-color: #121a20;
  --text-color: #5b7280;
  --text-light: #9ca3af;
  --white: #ffffff;
  --light-bg: #f9f9fb;
  --light-bg-2: #fdfdfd;
  --light-bg-3: #fbfbff;
  --input-bg: #eaeff3;
  --input-border: #f0f0f0;
  --textarea-bg: #fafafb;
  --gray-overlay-text: #fefefe;
  --footer-bg: #111111;
  --logo-height: 48px;
  --container-max: 1320px;
  --heading-font: 'Space Grotesk', sans-serif;
  --body-font: 'Space Grotesk', sans-serif;
  --transition: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  background: var(--secondary-color);
}

body {
  font-family: var(--body-font);
  font-size: 1.6rem;
  line-height: 2.6rem;
  color: var(--text-color);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 900;
  color: var(--heading-color);
  letter-spacing: 0.25px;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: 4.2rem;
  line-height: 5.2rem;
}

h2 {
  font-size: 3.6rem;
  line-height: 4.6rem;
}

h3 {
  font-size: 1.8rem;
  line-height: 2.8rem;
}

p {
  font-size: 1.6rem;
  line-height: 2.6rem;
  color: var(--text-color);
  letter-spacing: 0.25px;
  font-weight: 400;
}

.pretitle {
  display: inline-block;
  font-size: 1.3rem;
  line-height: 2.3rem;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1.6rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.pretitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  opacity: 0.3;
}

.pretitle.white {
  color: var(--white);
}

.pretitle.white::after {
  background: var(--white);
}

.text-light {
  color: var(--text-light);
}

.text-white {
  color: var(--white);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 96%;
  margin: 0 auto;
  max-width: var(--container-max);
}

.section {
  padding: 48px 0;
  overflow: hidden;
  position: relative;
}

.section.white {
  background: var(--white);
}

.section.no-pad {
  padding: 0;
}

.section.small-pad-bottom {
  padding-bottom: 18px;
}

.section.big-pad-bottom {
  padding-bottom: 90px;
}

.section.gray-overlay {
  background-color: var(--dark-color);
  color: var(--gray-overlay-text);
  background-image: url('https://images.unsplash.com/photo-1620283085439-39620a1e21c4?w=2000&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
}

.section.gray-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 32, 0.85);
  z-index: 1;
}

.section.gray-overlay > .container {
  position: relative;
  z-index: 2;
}

.section.gray-overlay p,
.section.gray-overlay h2,
.section.gray-overlay h3 {
  color: var(--gray-overlay-text);
}

.section.gray-overlay p {
  color: #d8dde2;
}

.section.light {
  background: linear-gradient(180deg, #f9f9fb 0%, #fdfdfd 55%, #fbfbff 100%);
}

.section.white-top {
  position: relative;
}

.section.white-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  z-index: 1;
}

.section.white-top > .container {
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .section.white-top::before {
    height: 90px;
  }
}

@media (min-width: 600px) {
  .section {
    padding: 60px 0 48px;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 66px 0 54px;
  }
}

@media (min-width: 1025px) {
  .section {
    padding: 72px 0;
  }
}

@media (min-width: 1200px) {
  .section {
    padding: 78px 0;
  }
  .section.big-pad-bottom {
    padding-bottom: 120px;
  }
  .section.small-pad-bottom {
    padding-bottom: 36px;
  }
  .pretitle {
    letter-spacing: 2px;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 18px 0;
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  height: var(--logo-height);
  z-index: 110;
}

.logo img {
  height: var(--logo-height);
  width: auto;
  transition: opacity var(--transition);
}

.logo .logo-light {
  display: block;
}

.logo .logo-dark {
  display: none;
}

.header.scrolled .logo .logo-light {
  display: none;
}

.header.scrolled .logo .logo-dark {
  display: block;
}

.main-nav {
  display: none;
}

.main-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-links > li > a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  text-transform: capitalize;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}

.header.scrolled .main-links > li > a {
  color: var(--heading-color);
}

.main-links > li > a:hover {
  color: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-now-mobile {
  display: inline-flex;
}

.call-now-mobile .btn {
  padding: 9px 12px;
  font-size: 1.3rem;
}

.header-cta {
  display: none !important;
}

@media (min-width: 1025px) {
  .main-nav {
    display: block;
    flex: 1;
    margin: 0 24px;
  }
  .call-now-mobile {
    display: none !important;
  }
  .header-cta {
    display: inline-flex !important;
  }
  .main-links {
    justify-content: center;
  }
}

/* Mobile nav trigger */
.mobile-nav-trigger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  z-index: 110;
}

.mobile-nav-trigger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.header.scrolled .mobile-nav-trigger span {
  background: var(--heading-color);
}

.mobile-nav-trigger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--heading-color);
}

.mobile-nav-trigger.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-trigger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--heading-color);
}

@media (min-width: 1025px) {
  .mobile-nav-trigger {
    display: none;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99;
  padding: 100px 24px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu a {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--heading-color);
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  text-transform: capitalize;
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none;
  }
}

/* Dropdown menus (desktop) */
.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: var(--white);
  border-radius: 4px;
  padding: 16px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 50;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 24px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--heading-color);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.dropdown li a:hover {
  color: var(--primary-color);
  background: var(--light-bg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 2px;
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.25px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: all var(--transition);
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transition: left 0.6s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  box-shadow: 0 8px 20px rgba(0, 155, 233, 0.3);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn.white {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.btn.stroked {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn.stroked.white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn.stroked.white:hover {
  background: var(--white);
  color: var(--primary-color);
}

.btn.sm {
  padding: 12px 15px;
  font-size: 1.4rem;
}

.btn.xl {
  padding: 20px 30px;
  font-size: 1.8rem;
}

.btn-xsmall {
  padding: 9px 12px;
  font-size: 1.3rem;
}

.btn-full {
  width: 100%;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
}

.btn-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn:hover .btn-arrow svg {
  transform: translateX(4px);
}

.btn-arrow.white svg path {
  stroke: var(--white);
}

/* Arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 2.5rem;
  transition: gap var(--transition), color var(--transition);
}

.arrow-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.arrow-link:hover {
  gap: 12px;
  color: var(--secondary-color);
}

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

.arrow-link.white {
  color: var(--white);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding-top: 120px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 0 80px;
}

.hero-pretitle {
  margin-bottom: 1.6rem;
  font-size: 1.3rem;
  line-height: 2.3rem;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  color: var(--primary-color);
  font-weight: 500;
  display: inline-block;
  position: relative;
  padding-bottom: 0.4rem;
}

.hero-pretitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  opacity: 0.6;
}

.hero h1 {
  font-size: 3.6rem;
  line-height: 4.4rem;
  color: var(--white);
  margin-bottom: 2rem;
  font-weight: 900;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.6rem;
  line-height: 2.6rem;
  margin-bottom: 3.2rem;
  max-width: 600px;
}

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

@media (min-width: 600px) {
  .hero {
    min-height: 600px;
    padding-top: 140px;
  }
  .hero h1 {
    font-size: 4.2rem;
    line-height: 5.2rem;
  }
}

@media (min-width: 1025px) {
  .hero {
    padding-top: 0;
  }
  .hero-content {
    padding: 140px 0 100px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 2.4rem;
    line-height: 3.2rem;
  }
}

/* ==========================================================================
   Basic Text (Intro) Section
   ========================================================================== */

.basic-text {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.basic-text h2 {
  margin-bottom: 2rem;
  font-size: 3rem;
  line-height: 4rem;
}

.basic-text p {
  font-size: 1.6rem;
  line-height: 2.6rem;
}

@media (min-width: 1025px) {
  .basic-text h2 {
    font-size: 3.6rem;
    line-height: 4.6rem;
  }
}

/* ==========================================================================
   Image With Text
   ========================================================================== */

.image-with-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.image-with-text .image-wrap {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.image-with-text .image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  max-height: 540px;
}

.image-with-text .text-content {
  color: var(--gray-overlay-text);
}

.image-with-text .text-content h2 {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 3rem;
  line-height: 4rem;
}

.image-with-text .text-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.6rem;
  line-height: 2.6rem;
  margin-bottom: 2.4rem;
}

@media (min-width: 1025px) {
  .image-with-text .text-content h2 {
    font-size: 3.6rem;
    line-height: 4.6rem;
  }
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

.services-section .section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

.services-section .section-header h2 {
  font-size: 3rem;
  line-height: 4rem;
  margin-bottom: 2rem;
}

.services-section .section-header p {
  font-size: 1.6rem;
  line-height: 2.6rem;
}

@media (min-width: 1025px) {
  .services-section .section-header h2 {
    font-size: 3.6rem;
    line-height: 4.6rem;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1441px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--dark-color);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform var(--transition);
}

.service-card .card-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 26, 32, 0.3) 0%, rgba(18, 26, 32, 0.85) 100%);
  z-index: 2;
  transition: opacity var(--transition);
}

.service-card:hover .card-image img {
  transform: scale(1.08);
}

.service-card:hover::before {
  opacity: 0.6;
}

.service-card .card-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  color: var(--white);
}

.service-card .card-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 2.6rem;
  margin-bottom: 8px;
  color: var(--white);
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 500;
  transition: gap var(--transition);
}

.service-card .card-link svg {
  width: 16px;
  height: 16px;
}

.service-card:hover .card-link {
  gap: 12px;
}

/* ==========================================================================
   Floated Text & Image
   ========================================================================== */

.floated-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.floated-section .image-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.floated-section .image-wrap.shadow img {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.floated-section .image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.floated-section .text-content h2 {
  font-size: 3rem;
  line-height: 4rem;
  margin-bottom: 2rem;
}

.floated-section .text-content p {
  font-size: 1.6rem;
  line-height: 2.6rem;
  margin-bottom: 2.4rem;
}

.floated-section.gray-overlay .text-content h2 {
  color: var(--white);
}

.floated-section.gray-overlay .text-content p {
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 1025px) {
  .floated-section {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  .floated-section .text-content h2 {
    font-size: 3.6rem;
    line-height: 4.6rem;
  }
  .floated-section.image-right .image-wrap {
    order: 2;
  }
  .floated-section.image-left .image-wrap {
    order: 1;
  }
}

/* ==========================================================================
   Service Areas
   ========================================================================== */

.service-areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.service-areas .image-wrap {
  text-align: center;
}

.service-areas .image-wrap img {
  max-width: 100%;
  height: auto;
}

.service-areas .text-content h2 {
  font-size: 3rem;
  line-height: 4rem;
  margin-bottom: 2rem;
}

.service-areas .text-content p {
  font-size: 1.6rem;
  line-height: 2.6rem;
  margin-bottom: 2.4rem;
}

.locations-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 24px;
  margin-bottom: 32px;
}

.locations-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--heading-color);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--primary-color);
}

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

@media (min-width: 600px) {
  .locations-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .service-areas {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  .service-areas .image-wrap {
    order: 1;
  }
  .service-areas .text-content {
    order: 2;
  }
  .service-areas .text-content h2 {
    font-size: 3.6rem;
    line-height: 4.6rem;
  }
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */

.contact-section {
  position: relative;
  color: var(--white);
  padding: 80px 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 32, 0.85);
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  color: var(--white);
  font-size: 3rem;
  line-height: 4rem;
  margin-bottom: 2rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.6rem;
  line-height: 2.6rem;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-item .icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.125);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.contact-item:hover .icon {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.contact-item .icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.contact-item .info-label {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  display: block;
}

.contact-item .info-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  display: block;
}

.contact-form-card {
  background: var(--white);
  border-radius: 5px;
  padding: 32px;
  box-shadow: 0 42px 42px rgba(0, 0, 0, 0.3);
}

.contact-form-card h3 {
  color: var(--heading-color);
  font-size: 2.4rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #484c59;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  font-size: 1.5rem;
  color: var(--heading-color);
  transition: border var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 155, 233, 0.1);
}

textarea.form-control {
  height: auto;
  min-height: 150px;
  max-height: 200px;
  padding: 14px 16px;
  background: var(--textarea-bg);
  border: 0;
  resize: vertical;
  font-family: inherit;
}

.contact-form-card .btn {
  width: 100%;
  margin-top: 8px;
  padding: 16px 30px;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
}

@media (min-width: 1025px) {
  .contact-info h2 {
    font-size: 3.6rem;
    line-height: 4.6rem;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  .contact-form-card {
    padding: 40px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--footer-bg);
  color: var(--gray-overlay-text);
  padding: 30px 0 24px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0,0 L100,0 L40,100 L0,100 Z' fill='%231557ea' opacity='0.05'/></svg>");
  background-size: cover;
  background-position: top left;
  pointer-events: none;
}

.footer > .container {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.125);
  margin-bottom: 24px;
}

.footer-branding {
  text-align: center;
}

.footer-branding .logo {
  height: 48px;
  margin: 0 auto 20px;
  justify-content: center;
}

.footer-branding .logo img {
  height: 48px;
}

.footer-branding p {
  color: var(--text-light);
  font-size: 1.2rem;
  line-height: 2rem;
  max-width: 320px;
  margin: 0 auto 20px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}

.footer-col h4 {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 1.4rem;
  color: var(--text-light);
  transition: color var(--transition);
}

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

.footer-bottom {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
}

@media (min-width: 768px) {
  .footer {
    padding: 42px 0 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    text-align: left;
  }
  .footer-branding {
    text-align: left;
  }
  .footer-branding .logo {
    margin: 0 0 20px 0;
    justify-content: flex-start;
  }
  .footer-branding p {
    text-align: left;
    margin: 0 0 20px 0;
  }
  .footer-social {
    justify-content: flex-start;
  }
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.2fr 2fr;
  }
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Utility & Misc
   ========================================================================== */

::selection {
  background: var(--primary-color);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ==========================================================================
   Accessibility · skip link, focus-visible, prefers-reduced-motion
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Visual polish · grain, refined buttons, better hovers
   ========================================================================== */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
}

/* Refined button states */
.btn {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn:focus-visible {
  outline: 3px solid rgba(0, 155, 233, 0.55);
  outline-offset: 3px;
}

/* Refined card hovers */
.service-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.35s ease;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.service-card .card-link svg {
  transition: transform 0.25s ease;
}

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

/* Better reveal stagger */
.reveal {
  transition-delay: 0.05s;
}

.services-grid .service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.services-grid .service-card.reveal:nth-child(4) { transition-delay: 0.2s; }
.services-grid .service-card.reveal:nth-child(5) { transition-delay: 0.25s; }
.services-grid .service-card.reveal:nth-child(6) { transition-delay: 0.3s; }
.services-grid .service-card.reveal:nth-child(7) { transition-delay: 0.35s; }
.services-grid .service-card.reveal:nth-child(8) { transition-delay: 0.4s; }

/* Nav link underline indicator */
.main-links > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-links > li > a:hover::after {
  transform: scaleX(1);
}

/* Hero heading refinements */
.hero h1 {
  letter-spacing: -0.02em;
}

.hero-content {
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form validation states */
.form-group.has-error .form-control {
  border-color: #e54545;
  box-shadow: 0 0 0 3px rgba(229, 69, 69, 0.12);
}

.form-group.has-success .form-control {
  border-color: #22a06b;
}

.form-error {
  display: none;
  margin-top: 6px;
  font-size: 1.3rem;
  color: #e54545;
  font-weight: 500;
}

.form-group.has-error .form-error {
  display: block;
}

.form-control::placeholder {
  color: #9aa4ae;
}

/* Form button loading spinner */
.btn .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -3px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(120px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 480px);
  padding: 16px 22px;
  background: var(--dark-color);
  color: var(--white);
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  font-size: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: #1d7a4e;
}

.toast-error {
  background: #a83232;
}

.toast .toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.toast .toast-icon svg {
  width: 16px;
  height: 16px;
}

/* Mobile menu improvements */
.mobile-menu {
  visibility: hidden;
}

.mobile-menu.active {
  visibility: visible;
}

.mobile-menu li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active li:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active li:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active li:nth-child(5) { transition-delay: 0.25s; }

/* Image loading */
img[loading="lazy"] {
  background: #1a2430;
}

/* Better form focus */
.form-control:focus {
  background: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 155, 233, 0.15);
}

/* Better select styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%235b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
