/* Avya Systems — shared styles */

:root {
  --navy:   #1a3a6e;
  --blue:   #3468c0;
  --teal:   #2ab8a8;
  --dark:   #0f2247;
  --light:  #f4f7fc;
  --white:  #ffffff;
  --gray:   #6b7a99;
  --border: #dde4f0;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

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

a { text-decoration: none; color: inherit; }

/* ── Navbar ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img { height: 44px; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal); }

.nav-links .btn-nav {
  background: var(--blue);
  color: var(--white);
  padding: 0.45rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-links .btn-nav:hover { background: var(--navy); color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #229e90; }

.btn-secondary { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--navy); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 60%, #1e5190 100%);
  color: var(--white);
  padding: 100px 5% 80px;
  text-align: center;
}

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

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

.hero p {
  font-size: 1.15rem;
  color: #b8cde8;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Section ── */
section { padding: 80px 5%; }

.section-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
}

.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* ── Cards grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: 0 8px 32px rgba(52,104,192,0.12); transform: translateY(-3px); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  background: #eef3fc;
}

.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.card p  { font-size: 0.95rem; color: var(--gray); }

/* ── Product highlight ── */
.product-highlight {
  background: var(--light);
  border-radius: 16px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.product-highlight.reverse { direction: rtl; }
.product-highlight.reverse > * { direction: ltr; }

.product-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.product-highlight h2 { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.product-highlight p  { color: var(--gray); margin-bottom: 1.5rem; }

.feature-list { list-style: none; margin-bottom: 1.5rem; }
.feature-list li { padding: 0.4rem 0; color: #2d3a56; font-size: 0.95rem; }
.feature-list li::before { content: "✓ "; color: var(--teal); font-weight: 700; }

.product-visual {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 12px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 5rem;
}

/* ── Stats ── */
.stats-bar {
  background: var(--navy);
  color: var(--white);
  padding: 50px 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--teal); }
.stat-label { font-size: 0.9rem; color: #b8cde8; margin-top: 0.3rem; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: #eef3fc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item p { font-size: 0.9rem; color: var(--gray); }
.contact-item strong { color: var(--navy); font-size: 0.95rem; }

/* ── Form ── */
.form-group { margin-bottom: 1.2rem; }

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #2d3a56;
  background: var(--white);
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(52,104,192,0.1);
}

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

/* ── Footer ── */
footer {
  background: var(--dark);
  color: #b8cde8;
  padding: 50px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand img { height: 64px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }

.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.9rem; color: #b8cde8; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ── ShipEx hero ── */
.shipex-hero {
  background: linear-gradient(135deg, #0f2247 0%, #1a3a6e 50%, #1e5a8a 100%);
  color: var(--white);
  padding: 90px 5% 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.shipex-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.shipex-hero p  { color: #b8cde8; font-size: 1.05rem; margin-bottom: 1.8rem; }
.shipex-hero-visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mini-stat {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}

.mini-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--teal); }
.mini-stat .lbl { font-size: 0.78rem; color: #8aafd4; margin-top: 0.2rem; }

/* ── Feature grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(42,184,168,0.1); }

.feature-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.88rem; color: var(--gray); }

/* ── Demo form section ── */
.demo-section {
  background: var(--light);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.demo-why h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 1.2rem; }
.demo-why-item { display: flex; gap: 1rem; margin-bottom: 1.2rem; align-items: flex-start; }
.demo-why-item .num { background: var(--teal); color: var(--white); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.demo-why-item p { font-size: 0.95rem; color: #2d3a56; }

.demo-form-box {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(26,58,110,0.08);
}

.demo-form-box h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.demo-form-box p  { font-size: 0.9rem; color: var(--gray); margin-bottom: 1.5rem; }

/* ── About grid ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 60px 4%; }

  .product-highlight,
  .contact-grid,
  .shipex-hero,
  .demo-grid,
  .footer-grid,
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .product-highlight.reverse { direction: ltr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }

  .hero { padding: 70px 4% 60px; }
  .shipex-hero { padding: 60px 4%; }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 40px 4%;
  }

  .product-highlight { padding: 2rem; }
  .product-visual { height: 180px; }

  .shipex-hero-visual {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .demo-form-box { padding: 1.5rem; }
}
