/* =====================================================
   AWA - Modern Website Styles
   Amjad Wadi Andam - Third Party Inspection Services
   ===================================================== */

/* CSS Custom Properties */
:root {
  --color-primary: #17355e;
  --color-secondary: #3d7cd4;
  --color-accent: #2563eb;
  --color-light: #eff6ff;
  --color-lighter: #f8fafc;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-white: #ffffff;
  --color-border: #e2e8f0;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --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.1), 0 10px 10px -5px rgba(0,0,0,0.04);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* =====================================================
   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);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

/* =====================================================
   Utility Classes
   ===================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-block;
  background: var(--color-light);
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* =====================================================
   Animations
   ===================================================== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeLeft 0.8s ease 0.2s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-delay="100"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="200"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="300"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="400"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="500"] { transition-delay: 0.5s; }

/* =====================================================
   Header
   ===================================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  height: 72px;
  display: flex;
  align-items: center;
}

#header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--color-text-light);
  font-weight: 400;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-light);
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   Hero Section
   ===================================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f5f0ff 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 24px;
  line-height: 1.2;
  color: var(--color-primary);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(23, 53, 94, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 53, 94, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  border: 2px solid var(--color-primary);
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(23, 53, 94, 0.15));
}

.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* =====================================================
   Services Section
   ===================================================== */
.services {
  padding: 100px 0;
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-secondary);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.service-link:hover {
  color: var(--color-accent);
}

/* =====================================================
   Content Grid (About & Detail Sections)
   ===================================================== */
.about {
  padding: 100px 0;
  background: var(--color-lighter);
}

.detail-section {
  padding: 100px 0;
  background: var(--color-white);
}

.detail-section.alt-bg {
  background: var(--color-lighter);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.content-grid.reverse .content-text {
  order: 1;
}

.content-grid.reverse .content-image {
  order: 2;
}

.content-image img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.content-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-bottom: 8px;
  color: var(--color-primary);
}

.content-text h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 24px;
  font-family: var(--font-body);
}

.content-text p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-logo {
  margin-bottom: 12px;
}

.about-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.highlight-icon {
  width: 24px;
  height: 24px;
  background: var(--color-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.detail-tags span {
  background: var(--color-light);
  color: var(--color-secondary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* =====================================================
   Objective Section — Hub & Ribbon Diagram
   ===================================================== */
.objective {
  padding: 80px 0;
  background: #f8fafc;
}

.obj-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

/* ---- Left: vertical label + hub ---- */
.obj-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.obj-vertical-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #555;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInLabel 0.6s ease 0.3s forwards;
}

@keyframes fadeInLabel {
  to { opacity: 1; }
}

/* ---- Hub circle ---- */
.obj-hub {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.obj-hub-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed #bbb;
}

.obj-hub-ring--outer {
  inset: 0;
  animation: spinRing 25s linear infinite;
}

.obj-hub-ring--inner {
  inset: 18px;
  border-color: #ccc;
  animation: spinRing 18s linear infinite reverse;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.obj-hub-logo {
  position: absolute;
  inset: 30px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  z-index: 2;
}

.obj-hub-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.obj-hub-logo span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

/* ---- Connector dots (5 colored dots on the hub ring edge) ---- */
.obj-connector {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  z-index: 3;
  transform-origin: center center;
}

/* Position each dot at the right edge of the hub, spaced vertically to align with banners */
.obj-connector[data-index="0"] { background: #e8a020; top: 18px;  right: -6px; animation: pulseDot 2s ease-in-out 0.4s infinite; }
.obj-connector[data-index="1"] { background: #e06b1a; top: 50px;  right: -6px; animation: pulseDot 2s ease-in-out 0.7s infinite; }
.obj-connector[data-index="2"] { background: #c0392b; top: 79px;  right: -6px; animation: pulseDot 2s ease-in-out 1.0s infinite; }
.obj-connector[data-index="3"] { background: #17a589; top: 108px; right: -6px; animation: pulseDot 2s ease-in-out 1.3s infinite; }
.obj-connector[data-index="4"] { background: #148f77; top: 138px; right: -6px; animation: pulseDot 2s ease-in-out 1.6s infinite; }

@keyframes pulseDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 currentColor; }
  50% { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(255,255,255,0.3); }
}

/* ---- Connector lines (SVG drawn between hub and banners) ---- */
.obj-lines {
  flex-shrink: 0;
  overflow: visible;
}

.obj-line {
  stroke-dasharray: 6 4;
  stroke-dashoffset: 0;
  animation: dashMove 1.5s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -20; }
}

/* ---- Right: banners ---- */
.obj-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.obj-banner {
  display: flex;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transform: translateX(60px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease;
}

/* Staggered entrance */
.obj-diagram.in-view .obj-banner:nth-child(1) { transition-delay: 0.15s; }
.obj-diagram.in-view .obj-banner:nth-child(2) { transition-delay: 0.30s; }
.obj-diagram.in-view .obj-banner:nth-child(3) { transition-delay: 0.45s; }
.obj-diagram.in-view .obj-banner:nth-child(4) { transition-delay: 0.60s; }
.obj-diagram.in-view .obj-banner:nth-child(5) { transition-delay: 0.75s; }

.obj-diagram.in-view .obj-banner {
  transform: translateX(0);
  opacity: 1;
}

.obj-banner:hover {
  transform: translateX(6px) !important;
  box-shadow: var(--shadow-lg);
}

/* Number diamond */
.obj-banner-num {
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  position: relative;
  flex-shrink: 0;
}

/* Banner text body */
.obj-banner-body {
  flex: 1;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.obj-banner-body strong {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  display: block;
  margin-bottom: 3px;
}

.obj-banner-body span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.82);
}

/* Individual banner colors */
.obj-banner--1 .obj-banner-num { background: #d4901c; }
.obj-banner--1 .obj-banner-body { background: #e8a020; }

.obj-banner--2 .obj-banner-num { background: #c45e15; }
.obj-banner--2 .obj-banner-body { background: #e06b1a; }

.obj-banner--3 .obj-banner-num { background: #a93226; }
.obj-banner--3 .obj-banner-body { background: #c0392b; }

.obj-banner--4 .obj-banner-num { background: #138d75; }
.obj-banner--4 .obj-banner-body { background: #17a589; }

.obj-banner--5 .obj-banner-num { background: #107a64; }
.obj-banner--5 .obj-banner-body { background: #148f77; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .obj-diagram {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  /* Hide the SVG connector lines on mobile */
  .obj-lines {
    display: none;
  }

  .obj-left {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .obj-vertical-label {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.2em;
    font-size: 1rem;
  }

  .obj-hub {
    width: 130px;
    height: 130px;
  }

  .obj-hub-logo img {
    width: 36px;
    height: 36px;
  }

  .obj-connector {
    display: none;
  }

  .obj-banners {
    width: 100%;
  }

  .obj-banner-num {
    width: 42px;
    font-size: 1.1rem;
  }

  .obj-banner-body {
    padding: 12px 14px;
  }

  .obj-banner-body strong {
    font-size: 0.75rem;
  }

  .obj-banner-body span {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .obj-left {
    flex-direction: column;
  }

  .obj-vertical-label {
    letter-spacing: 0.15em;
  }

  .obj-hub {
    width: 110px;
    height: 110px;
  }
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact {
  padding: 100px 0;
  background: var(--color-lighter);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-secondary);
}

.contact-details h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.contact-details p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-details a {
  color: var(--color-secondary);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================================================
   Footer
   ===================================================== */
#footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
}

.footer-content {
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

#footer h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
}

.footer-links li,
.footer-services li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--color-white);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom p {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.825rem;
}

/* =====================================================
   Back to Top
   ===================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* =====================================================
   Responsive Design
   ===================================================== */

/* Large screens */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image {
    max-width: 480px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-grid.reverse .content-text {
    order: 0;
  }

  .content-grid.reverse .content-image {
    order: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 60px 0 40px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-map {
    height: 300px;
  }

  section {
    padding: 80px 0;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.75rem;
  }

  .btn-primary, .btn-outline {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .service-card {
    padding: 24px 20px;
  }
}
