:root {
  --navy: #0d5790;
  --deep-blue: #1366a6;
  --sky-blue: #0f97cd;
  --action-orange: #eb721c;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --success: #28a745;
  --error: #dc3545;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scrollbar-gutter: stable;
}

body {
  width: 100%;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

/* Text Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.fade-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards;
}

.fade-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Navigation */
.main-nav {
  background: var(--white);
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 1.5rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.bar {
  width: 24px;
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--action-orange);
  transition: all 0.3s ease;
}

.desktop-menu {
  display: flex;
  gap: 2rem;
}

.desktop-menu a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 300;
  transition: color 0.3s;
}

.desktop-menu a:hover {
  color: var(--action-orange);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  height: 62px;
}

.nav-actions .btn-primary {
  background: var(--action-orange);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-actions .btn-primary:hover {
  background: var(--deep-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235, 114, 28, 0.4);
}

/* Hero Section */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
  color: white;
  padding: 8rem 5% 6rem;
  position: relative;
  overflow: hidden;
  animation:normal;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: forwards;
}

.hero-content .eyebrow {
  color: var(--sky-blue);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content .hero-text {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Contact Section */
.contact-section {
  background: white;
  padding: 5rem 5%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-container h2,
.contact-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-form-container p,
.contact-info p {
  color: var(--dark-gray);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
  background: var(--light-gray);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 3px rgba(15, 151, 205, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.checkbox-label {
  color: var(--dark-gray);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0;
  cursor: pointer;
}

.btn-submit {
  background: var(--action-orange);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background: var(--deep-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235, 114, 28, 0.4);
}

/* Contact Info */
.contact-info {
  padding-top: 1rem;
}

.info-cards {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--sky-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-content h3 {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-content p {
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.info-content a {
  color: var(--sky-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.info-content a:hover {
  color: var(--action-orange);
}

.info-note {
  font-size: 0.9rem !important;
  color: var(--dark-gray) !important;
  font-style: italic;
}

.emergency-contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.emergency-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.emergency-contact p {
  color: white;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.emergency-number {
  display: inline-block;
  color: var(--action-orange);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.3s;
}

.emergency-number:hover {
  color: white;
}

/* Location Section */
.location-section {
  background: var(--light-gray);
  padding: 5rem 5%;
}

.location-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.location-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.location-content p {
  color: var(--dark-gray);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.service-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: left;
}

.area-column h4 {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.area-column ul {
  list-style: none;
}

.area-column li {
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.area-column li::before {
  content: "✓";
  color: var(--action-orange);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* FAQ Section */
.faq-section {
  background: white;
  padding: 5rem 5%;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.faq-header p {
  color: var(--dark-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.faq-item {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.faq-item p {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Footer */
.main-footer {
  background: var(--navy);
  color: white;
  padding: 4rem 5% 2rem;
  margin-top: 0;
}

[class*="elfsight-app"] {
  position: fixed !important;
  left: auto !important;
  right: 16px !important;
  bottom: 16px !important;
  max-width: calc(100vw - 32px) !important;
  z-index: 999 !important;
  width: auto !important;
  margin: 0 !important;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--sky-blue);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-logo {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.footer-logo span {
  color: var(--action-orange);
}

.footer-slogan {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--action-orange);
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--sky-blue);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-newsletter {
  background: var(--action-orange);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-newsletter:hover {
  background: var(--deep-blue);
}

.socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  margin-left: 6rem;
}

.social-link {
  color: #ccc;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--sky-blue);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-nav {
    padding: 0.85rem 3%;
  }

  .hamburger {
    display: inline-flex;
  }

  .desktop-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  .desktop-menu a {
    width: 100%;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(13, 87, 144, 0.08);
  }

  .desktop-menu a:last-child {
    border-bottom: none;
  }

  .desktop-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-actions {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: 1rem 3%;
  }

  .logo-img {
    height: 52px;
  }

  .contact-hero {
    padding: 6rem 5% 4rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content .hero-text {
    font-size: 1.1rem;
  }

  .contact-section {
    padding: 3rem 5%;
  }

  .contact-form {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .location-section,
  .faq-section {
    padding: 3rem 5%;
  }

  .service-areas {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .area-column {
    text-align: center;
  }

  .area-column ul {
    display: inline-block;
    text-align: left;
  }

  .area-column li {
    text-align: left;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .main-footer {
    padding-bottom: 1.5rem;
  }

  [class*="elfsight-app"] {
    right: 12px !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 48px;
  }

  .contact-hero {
    padding: 4rem 5% 3rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .info-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}
