/* Fonts & icons loaded non-blocking in <head> to improve FOUC and render speed */

/* Accessibility: skip-link (visible on keyboard focus) */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: #0f172a;
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 9999;
  border-radius: 6px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

/* Visually hidden (for screen reader helpers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form status messaging */
.form-status {
  margin-top: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
}
.form-status.success {
  background: #ecfdf5;
  color: #064e3b;
}
.form-status.error {
  background: #fef3f2;
  color: #7f1d1d;
}
.form-status.sending {
  background: #eff6ff;
  color: #0c4a6e;
}

.contact-help {
  margin-top: 0.5rem;
  color: #475569;
}
.contact-help a {
  color: var(--primary-color);
  text-decoration: underline;
}

.submit-btn:focus {
  outline: 3px solid rgba(56, 189, 248, 0.25);
  outline-offset: 2px;
}
.noscript-warning {
  color: #92400e;
  background: #fff7ed;
  padding: 0.6rem;
  border-radius: 6px;
  margin-top: 1rem;
}

/* Responsive image defaults */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

body {
  font-family: "Inter", "Space Grotesk", sans-serif;
  background-color: #ffffff;
  color: #0f172a;
  line-height: 1.6;
}

/* Base Reset & Variables */
:root {
  --primary-color: #38bdf8;
  --primary-dark: #0ea5e9;
  --text-dark: #0f172a;
  --text-light: #cbd5e1;
  --bg-dark: #0f172a;
  --bg-light: #ffffff;
  --border-color: #334155;
  --shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

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

body {
  font-family: "Inter", "Space Grotesk", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Make the main content area flexible so footer can be pushed to the bottom */
.page-content {
  flex: 1 1 auto;
  display: block;
}

/* Prevent any horizontal scroll caused by fullscreen backgrounds */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Header & Navigation */
.header {
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.1);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* Logo Section */
.logo-section {
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-small span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  background: linear-gradient(
    135deg,
    var(--text-dark) 0%,
    var(--primary-color) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.slogan {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: var(--text-dark);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropbtn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn {
  color: var(--primary-color);
}

.dropdown:hover .dropbtn i {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-light);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.1);
  animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--bg-light);
  padding-left: 1.5rem;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Right Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icons a {
  color: var(--text-dark);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.social-icons a:hover {
  color: var(--bg-light);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: var(--primary-color);
  background: rgba(56, 189, 248, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-nav {
    gap: 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0.8rem 1.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .social-icons {
    display: none;
  }

  .social-icons.mobile-visible {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.8rem 1rem;
  }

  .logo-small span {
    font-size: 1.6rem;
  }

  .slogan {
    font-size: 0.7rem;
  }

  .main-nav {
    gap: 1rem;
  }
}

/* Active state for current page */
.nav-links li a.active {
  color: var(--primary-color);
}

.nav-links li a.active::after {
  width: 100%;
}

/* Contact Hero Section */
.contact-hero {
  background-image: url("../Images/backgrounds/7110.jpg");
  background-size: cover;
  background-position: center;
  padding: 4rem 1rem;
  text-align: center;
  color: #f8fafc;
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 0;
}

.contact-hero h1,
.contact-hero p {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.contact-hero p {
  font-size: 1.2rem;
  color: #e2e8f0;
  line-height: 1.6;
  opacity: 0.9;
}

/* Contact Form Section */
.contact-form-section {
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  display: flex;
  justify-content: center;
  align-items: center;
  /* Make the section occupy most of the viewport so centering is visually in the middle */
  min-height: calc(100vh - 160px);
  box-sizing: border-box;
}

.contact-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  width: 100%;
  max-width: 500px;
  border: 1px solid #e2e8f0;
  animation: fadeInUp 0.8s ease-out;
}

/* Ensure the form itself stays centered inside the section */
.contact-container {
  margin: 0 auto;
}

.contact-container h2 {
  color: #0f172a;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
  position: relative;
}

.contact-container h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 2px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-group {
  flex: 1 0 calc(50% - 20px);
  margin: 0 10px 20px;
  min-width: 150px;
}

.form-group-full {
  flex: 1 0 100%;
  margin: 0 10px 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #0f172a;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

textarea {
  resize: none;
  min-height: 100px;
  font-family: inherit;
}

/* Company Size Selector */
.company-size-group {
  margin-bottom: 20px;
}

.company-size-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.size-option {
  position: relative;
}

.size-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.size-option label {
  display: block;
  padding: 12px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;
}

.size-option input[type="radio"]:checked + label {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
  color: #38bdf8;
}

.size-option label:hover {
  border-color: #38bdf8;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin: 20px 0;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 3px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: #475569;
}

.checkbox-group a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Terms Notice */
.terms-notice {
  background-color: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn.loading {
  position: relative;
  color: transparent;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 600px) {
  .contact-hero {
    padding: 3rem 1rem;
    min-height: 30vh;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 1.1rem;
  }

  .contact-form-section {
    padding: 2rem 1rem;
    /* On small screens, use a shorter min-height so content isn't pushed off-screen */
    min-height: 70vh;
  }

  .contact-container {
    padding: 2rem 1.5rem;
  }

  .contact-container h2 {
    font-size: 1.75rem;
  }

  .form-group {
    flex: 1 0 100%;
  }

  .company-size-options {
    grid-template-columns: 1fr;
  }

  .size-option label {
    padding: 15px 12px;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 2rem 1rem;
  }

  .contact-hero h1 {
    font-size: 1.75rem;
  }

  .contact-container {
    padding: 1.5rem;
  }

  .contact-container h2 {
    font-size: 1.5rem;
  }

  input,
  select,
  textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  .submit-btn {
    padding: 14px 16px;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 4rem 2rem 0;
  color: #cbd5e1;
  border-top: 1px solid #334155;
  margin-top: auto;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 350px;
  margin: 0;
}

.footer-slogan {
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
  margin-top: 0.5rem;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #f8fafc;
  font-weight: 600;
  position: relative;
}

.footer-links h4::after,
.footer-social h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #38bdf8;
  border-radius: 1px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: "▸";
  color: #38bdf8;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-social .social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social a {
  color: #cbd5e1;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  padding: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.footer-social a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
  border-color: transparent;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #64748b;
  padding: 2rem 0;
  border-top: 1px solid #334155;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(15, 23, 42, 0.95);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-copyright {
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #38bdf8;
}

/* Ensure footer stays at bottom */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }

  .footer-brand p {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.5rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links h4::after,
  .footer-social h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-social a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 2rem 1rem 0;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-logo {
    font-size: 1.8rem;
  }

  .footer-brand p {
    font-size: 0.95rem;
  }

  .footer-links h4,
  .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    padding: 0.6rem;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding: 1.5rem 0;
  }

  .footer-copyright {
    font-size: 0.85rem;
  }

  .footer-legal {
    gap: 1rem;
  }

  .footer-legal a {
    font-size: 0.8rem;
  }
}

/* Additional utility for very small screens */
@media (max-width: 360px) {
  .footer-social .social-icons {
    gap: 0.5rem;
  }

  .footer-social a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}
