/* ===================================================
   Alpha Tec Engineering - Custom Styles
   Primary: #1e3a5f | Accent: #e8a838
   =================================================== */

:root {
  --primary: #1e3a5f;
  --primary-light: #2a4f7f;
  --primary-dark: #152a44;
  --accent: #e8a838;
  --accent-light: #f0bc55;
  --accent-dark: #c98e20;
  --gray-light: #f5f7fa;
  --gray-mid: #e8ecf0;
  --gray-text: #6c757d;
  --dark: #1a1a2e;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
  --shadow-hover: 0 8px 32px rgba(30, 58, 95, 0.2);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

/* ---- Navbar ---- */
.navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
  padding: 0.8rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.15);
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.nav-link {
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 1rem !important;
  letter-spacing: 0.3px;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover {
  color: var(--accent-dark) !important;
}

.btn-nav-cta {
  background: var(--accent);
  color: var(--primary) !important;
  border-radius: 6px;
  padding: 0.45rem 1.2rem !important;
  font-weight: 700;
}

.btn-nav-cta:hover {
  background: var(--accent-dark);
  color: var(--white) !important;
}

.btn-nav-cta::after {
  display: none;
}

/* ---- Hero Sections ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-home {
  background: linear-gradient(135deg, #1e3a5f 0%, #2a5298 40%, #1e3a5f 70%, #0d1f35 100%);
}

.hero-page {
  min-height: 45vh;
  background: linear-gradient(135deg, #1e3a5f 0%, #2a5298 60%, #1a3050 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 168, 56, 0.2);
  border: 1px solid rgba(232, 168, 56, 0.4);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* ---- Buttons ---- */
.btn-primary-custom {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(232, 168, 56, 0.4);
}

.btn-primary-custom:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 168, 56, 0.5);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.5);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,168,56,0.1);
}

.btn-primary-dark {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-primary-dark:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Section Titles ---- */
.section-label {
  display: inline-block;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray-text);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem auto 0;
}

.title-underline-left {
  margin-left: 0;
}

/* ---- Service Cards ---- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-bottom: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(30,58,95,0.08), rgba(232,168,56,0.12));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-link {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-link:hover {
  color: var(--primary);
  gap: 0.7rem;
}

/* ---- Why Alpha Tec ---- */
.why-section {
  background: var(--gray-light);
}

.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.why-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.why-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.why-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.why-desc {
  font-size: 0.88rem;
  color: var(--gray-text);
}

/* ---- Partners ---- */
.partner-box {
  background: var(--gray-mid);
  border-radius: var(--radius);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}

.partner-box:hover {
  background: #dde3ea;
  color: var(--gray-text);
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #2a5298 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: rgba(232, 168, 56, 0.06);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}

.footer-brand img {
  height: 48px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer h5 {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---- Scroll to top ---- */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

#scrollTop.visible {
  opacity: 1;
  visibility: visible;
}

#scrollTop:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ---- AOS Animations ---- */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---- Services Page ---- */
.service-section {
  padding: 5rem 0;
}

.service-section:nth-child(even) {
  background: var(--gray-light);
}

.service-visual {
  background: linear-gradient(135deg, rgba(30,58,95,0.08), rgba(232,168,56,0.15));
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
}

.service-detail-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-detail-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: #444;
  font-size: 0.95rem;
}

.service-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---- Customers Page ---- */
.industry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  text-align: center;
  border-top: 4px solid var(--primary);
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent);
}

.industry-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.industry-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.industry-card p {
  color: var(--gray-text);
  font-size: 0.88rem;
}

.decision-makers {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.decision-makers h2 {
  color: var(--white);
}

.dm-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.3rem;
  transition: var(--transition);
}

.dm-badge:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  height: 100%;
}

.testimonial-card::before {
  content: '"';
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  color: #444;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--gray-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gray-text);
}

.testimonial-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--gray-text);
}

/* ---- About Page ---- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 100px;
  height: 100px;
  background: var(--gray-mid);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gray-text);
  border: 4px solid var(--gray-light);
}

.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--gray-text);
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-bottom: 4px solid var(--accent);
  height: 100%;
}

.value-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.value-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.88rem;
  color: var(--gray-text);
}

/* ---- Contact Page ---- */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-control, .form-select {
  border: 1.5px solid var(--gray-mid);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.contact-info-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.contact-detail-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-detail-value a {
  color: var(--white);
}

.contact-detail-value a:hover {
  color: var(--accent);
}

.map-placeholder {
  background: var(--gray-mid);
  border-radius: var(--radius-lg);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gray-text);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px dashed #c8d0da;
}

.map-placeholder i {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.4;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.hours-item:last-child {
  border-bottom: none;
}

/* ---- Imprint / Privacy ---- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-mid);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p, .legal-content li {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* ---- Utilities ---- */
.bg-primary-custom { background: var(--primary); }
.bg-light-custom { background: var(--gray-light); }
.text-accent { color: var(--accent); }
.text-primary-custom { color: var(--primary); }

.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero-page { min-height: 35vh; }
  .service-visual { height: 220px; font-size: 3.5rem; }
  .decision-makers { padding: 2rem; }
  .contact-form-wrap { padding: 1.75rem; }
  .contact-info-card { padding: 1.75rem; }
  .section-pad { padding: 3.5rem 0; }
  #scrollTop { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 1.8rem; }
  .btn-primary-custom, .btn-outline-custom { width: 100%; justify-content: center; }
}
