/* style.css - Premium dark gold/orange theme for OrbiTech Supply Electronics */

/* Design Tokens */
:root {
  --bg-darkest: #060608;
  --bg-card: #0e0e11;
  --bg-input: #121217;
  --text-main: #f5f5f7;
  --text-muted: #8e8e93;
  --accent-gold: #ff9e00;
  --accent-orange: #ff6000;
  --accent-gradient: linear-gradient(135deg, #ff9e00 0%, #ff5400 100%);
  --accent-glow: 0 8px 24px rgba(255, 120, 0, 0.3);
  --border-light: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(255, 158, 0, 0.25);
  --header-height: 90px;
  --font-stack: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Global Reset & Scroll Behavior */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-stack);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Reusable Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

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

/* Typography & Subtitles */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.center-title {
  text-align: center;
  margin-bottom: 4rem;
}

.center-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.center-title .subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Button UI Components */
.btn-outline {
  display: inline-block;
  border: 1px solid var(--accent-orange);
  color: var(--accent-gold);
  background: transparent;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline-large {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-large:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.btn-gradient {
  display: inline-block;
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 120, 0, 0.5);
}

/* Header & Glassmorphic Navigation */
.site-header {
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(6, 6, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s, height 0.3s;
}

.site-header.scrolled {
  background: rgba(6, 6, 8, 0.95);
  height: 75px;
}

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

.logo img {
  height: 50px;
  width: auto;
  display: block;
  transition: height 0.3s;
}

.site-header.scrolled .logo img {
  height: 42px;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-gold);
}

/* Mobile Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: url('assets/hero.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(6, 6, 8, 0.4) 0%, rgba(6, 6, 8, 0.95) 75%),
              linear-gradient(0deg, var(--bg-darkest) 0%, rgba(6, 6, 8, 0.2) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  margin-top: 50px;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-gold);
  background: rgba(255, 158, 0, 0.05);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
}

.hero-badge span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.hero-headline {
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-headline .highlight {
  background: linear-gradient(90deg, #ff9e00, #ff5400);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

/* Stats Section */
.stats-bar {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0;
  position: relative;
  z-index: 3;
}

.stats-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item {
  flex: 1;
  text-align: center;
  min-width: 150px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.stat-number::after {
  content: '+';
  color: var(--accent-gold);
}

.stat-item:nth-child(2) .stat-number::after {
  content: '%';
}

.stat-item:nth-child(3) .stat-number::after {
  content: 'h';
}

.stat-label-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* About Us Section */
.about-section {
  padding: 8rem 0;
  background-color: var(--bg-darkest);
}

.about-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-info .lead-text {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.about-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  gap: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.feature-icon {
  background: rgba(255, 158, 0, 0.08);
  color: var(--accent-gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Interactive Component Finder / Search Section */
.products-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-card) 50%, var(--bg-darkest) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.search-widget {
  max-width: 760px;
  margin: 0 auto 5rem auto;
  position: relative;
}

.search-bar-container {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-bar-container:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 158, 0, 0.15);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 1rem;
  flex-shrink: 0;
}

#component-search {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 1.05rem;
  padding: 0.6rem 0;
}

#component-search::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.2s;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

/* Autocomplete results dropdown */
.search-results-box {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background-color 0.2s;
}

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

.result-item:hover {
  background-color: rgba(255, 158, 0, 0.05);
}

.part-meta h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.part-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.part-price-info {
  text-align: right;
}

.part-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.part-stock {
  font-size: 0.75rem;
  color: #30d158;
}

.part-stock.out {
  color: #ff453a;
}

.no-results {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Categories Grid styling */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 3rem 2rem;
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.category-icon {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

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

.category-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.category-link {
  text-decoration: none;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.category-link:hover {
  color: var(--text-main);
}

/* Map & Sourcing Form Section */
.find-us-section {
  padding: 8rem 0;
  background-color: var(--bg-darkest);
}

.form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 4rem 3rem;
  border-radius: 16px;
}

.form-container h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.form-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  outline: none;
}

.btn-submit {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  outline: none;
  padding: 1.1rem;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-stack);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: var(--accent-glow);
  transition: all 0.3s ease;
}

.btn-submit:hover {
  box-shadow: 0 10px 25px rgba(255, 120, 0, 0.45);
  transform: translateY(-1px);
}

/* Map details style */
.map-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
}

.address-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: 12px;
}

.address-details h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.address-details p {
  color: var(--text-main);
  font-size: 1rem;
}

.address-details .county-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.map-embed-wrapper {
  flex-grow: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  min-height: 350px;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer UI (Multi-row Grid) */
.site-footer {
  background-color: #0b0b0e;
  border-top: 1px solid var(--border-light);
  padding-top: 6rem;
  color: var(--text-muted);
}

.footer-upper {
  display: grid;
  grid-template-columns: 2fr 1fr 1.25fr 1fr;
  gap: 4rem;
  padding-bottom: 5rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.75rem;
}

.brand-col .footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 1.5rem;
}

.brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
}

.links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.links-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.links-col a:hover {
  color: var(--accent-gold);
}

.store-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.store-info-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.info-icon {
  flex-shrink: 0;
}

.store-info-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.store-info-list a:hover {
  color: var(--accent-gold);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  background: var(--bg-card);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  transition: border-color 0.3s, color 0.3s;
}

.social-links a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.footer-lower {
  border-top: 1px solid var(--border-light);
  padding: 2.2rem 0;
  font-size: 0.8rem;
}

.footer-lower-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.design-by {
  font-weight: 500;
  color: var(--text-main);
}

/* Success Modal styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.success-modal {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  width: 90%;
  max-width: 480px;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .success-modal {
  transform: scale(1);
}

.modal-check {
  width: 64px;
  height: 64px;
  background: rgba(255, 158, 0, 0.1);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem auto;
}

.success-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.success-modal p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-ref {
  background: var(--bg-input);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 2rem;
  display: inline-block;
}

.btn-modal-close {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  padding: 0.95rem;
  border-radius: 8px;
  font-family: var(--font-stack);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-modal-close:hover {
  box-shadow: var(--accent-glow);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-headline {
    font-size: 3rem;
  }
  .footer-upper {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }
  
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-darkest);
    border-bottom: 1px solid var(--border-light);
    padding: 2rem;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .header-cta {
    display: none;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-upper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-lower-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}