:root {
  --primary-blue: #007bff;
  --dark-blue: #0056b3;
  --light-blue: #e6f2ff;
  --text-dark: #343a40;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  
  --font-main: 'Inter', Arial, sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  
  --transition-fast: 150ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 300ms ease-in-out;
}

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

html {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  overflow-x: hidden;
  padding-top: 70px; /* Space for fixed header */
}

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

ul {
  list-style: none;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  color: #555;
  font-size: 1.125rem;
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-bg-light {
  background-color: var(--bg-light);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container img {
  height: 40px;
  width: auto;
}

/* Navigation - Mobile First */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 25px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-blue);
  border-radius: 3px;
  transition: var(--transition-normal);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-blue);
}

.header-cta-group {
  display: none;
}

.mobile-phone {
  display: block;
  color: var(--primary-blue);
}

.mobile-phone svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .hamburger { display: none; }
  
  .mobile-nav-overlay {
    position: static;
    height: auto;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    flex-direction: row;
    display: flex;
    justify-content: flex-end;
    flex: 1;
    margin-left: 2rem;
  }
  
  .main-nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .main-nav a {
    font-size: 1rem;
    font-weight: 500;
  }

  .header-cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
  }

  .desktop-phone {
    font-weight: 600;
    color: var(--primary-blue);
  }

  .mobile-phone { display: none; }
}

/* Hero Sections */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -70px; /* offset header padding to make it full */
  padding-top: 70px;
}

/* NO OVERLAYS OR COLORS ON HERO IMAGE! */
.hero img.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2; /* above the image */
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  /* Add dark background to ensure text is readable since we cannot use overlay */
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin: 1rem;
}

.hero-content h1 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-content h2, .hero-content p {
  color: var(--text-dark);
}

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-align: center;
}

.primary-cta {
  background-color: var(--primary-blue);
  color: var(--white) !important;
}

.primary-cta:hover {
  background-color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.primary-cta:active {
  transform: scale(0.98);
  filter: brightness(0.9);
}

.secondary-cta {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.secondary-cta:hover {
  background-color: var(--light-blue);
  color: var(--dark-blue);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Cards */
.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
}

@media (min-width: 768px) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
}

.card-icon {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  transition: transform var(--transition-fast);
}

@media (min-width: 768px) {
  .card:hover .card-icon {
    transform: translateY(-2px) rotate(5deg);
  }
}

.card-icon svg {
  width: 48px;
  height: 48px;
}

.card h3 {
  color: var(--dark-blue);
}

/* Services Page Blocks */
.service-block {
  margin-bottom: 4rem;
}
.service-block-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.service-block-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #555;
}
.service-block-content ul li {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
@media (min-width: 768px) {
  .team-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
  }
}

.team-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}
.team-title {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Trust Badge */
.trust-badge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* Forms */
.contact-form-wrapper {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color var(--transition-normal);
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* Form underline animation */
.input-wrapper {
  position: relative;
}
.input-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-normal);
}
.form-control:focus + .input-wrapper::after,
.input-wrapper:focus-within::after {
  transform: scaleX(1);
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-control.invalid {
  border-color: #dc3545;
}
.form-control.invalid ~ .error-message {
  display: block;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  display: none;
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake {
  animation: shake 0.5s;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 86, 179, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-normal);
}

.gallery-overlay svg {
  color: white;
  width: 40px; height: 40px;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-normal);
}

@media (min-width: 768px) {
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  .gallery-item:hover .gallery-overlay {
    background: rgba(0, 86, 179, 0.4);
  }
  .gallery-item:hover .gallery-overlay svg {
    opacity: 1;
    transform: scale(1);
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: transform var(--transition-fast);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  transform: scale(1.2);
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: #adb5bd;
}
.footer-links a:hover {
  color: var(--primary-blue);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #adb5bd;
  font-size: 0.875rem;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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