/* static/css/style.css - Torquetec Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Ultra-Premium Light Mode Palette */
  --bg-primary: #fbfbfc;
  /* Soft off-white for depth */
  --bg-secondary: #ffffff;
  /* Crisp white for cards/foreground */
  --bg-tertiary: #f4f5f7;
  /* Very subtle grey for contrast sections */
  --bg-glass: rgba(255, 255, 255, 0.75);

  /* Typography Colors */
  --text-primary: #1a202c;
  /* Deep slate, almost black for high contrast */
  --text-secondary: #4a5568;
  /* Rich cool grey for readability */
  --text-muted: #a0aec0;

  /* Torquetec Brand Colors */
  --accent-primary: #ff6a28;
  /* Torquetec Vibrant Orange */
  --accent-hover: #e65516;
  /* Darker orange for interactions */
  --accent-secondary: #8c8c8c;
  /* Torquetec Logo Grey */
  --accent-tertiary: #2d3748;
  /* Industrial navy/grey */

  /* Advanced Gradients */
  --accent-gradient: linear-gradient(135deg, #ff6a28 0%, #ff8b54 100%);
  --subtle-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 106, 40, 0.03) 100%);

  /* Premium Borders & Shadows */
  --border-color: rgba(0, 0, 0, 0.06);
  --border-light: rgba(255, 255, 255, 0.6);

  /* Neumorphic & Layered Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.03), 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05), 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 20px rgba(255, 106, 40, 0.15);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);

  /* Fluid Animations */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  line-height: 1.2;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

main {
  flex: 1;
}

/* Base Sections */
.section {
  padding: 8rem 0;
}

/* Navigation System */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.05em;
}

.brand span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  z-index: -2;
}

.btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  transition: var(--transition-slow);
  z-index: -1;
  border-radius: 9999px;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 106, 40, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  background: linear-gradient(135deg, #e65516 0%, #ff6a28 100%);
}

.btn-primary:hover {
  transform: translateY(-3px);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(255, 106, 40, 0.4);
}

.btn-outline {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-outline::before {
  background: var(--accent-gradient);
}

.btn-outline:hover {
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 106, 40, 0.25);
}

/* Base Sections */
.section {
  padding: 6rem 0;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-slow);
  z-index: 2;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 106, 40, 0.15);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Form Styles */
.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 1.15rem 1.25rem;
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-primary) !important;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-inner);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(255, 106, 40, 0.15), var(--shadow-inner);
  background: #ffffff !important;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer Section */
footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Utilities & Grids */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

/* Responsive constraints & Mobile Navbar Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 900px) {

  .grid-2-col,
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a::after {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  .glass-card {
    padding: 2rem 1.5rem;
  }
}