/*
Theme Name: Cyvotel Communications LTD
Description: Corporate network solutions theme for Cyvotel.
Version: 1.2
Author: ChatGPT
*/

:root {
  --primary: #004b3d;  /* Deep Green */
  --accent: #d4af37;   /* Corporate Gold */
  --muted: #666;
  --light-bg: #f8f9fa;
  --border: #e0e0e0;
  --font-main: "Open Sans", Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: #222;
  background: #fff;
  line-height: 1.7;
}

/* ======= HEADER ======= */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.site-topbar {
  background: var(--primary);
  color: var(--accent);
  text-align: right;
  padding: 6px 0;
  font-size: 14px;
}

.site-topbar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  height: 60px;
  width: auto;
}

.site-brand {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

/* ======= NAVIGATION ======= */
.main-nav ul {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  padding: 14px 10px;
  transition: color 0.3s ease;
}

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

/* Dropdown Menu */
.main-nav li {
  position: relative;
}

.main-nav li ul {
  display: none;
  position: absolute;
  background: var(--primary);
  top: 100%;
  left: 0;
  list-style: none;
  padding: 10px 0;
  min-width: 180px;
}

.main-nav li:hover ul {
  display: block;
}

.main-nav li ul li a {
  padding: 10px 20px;
  display: block;
}

/* ======= PAGE CONTENT & CONTAINERS ======= */
.section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
  margin: 40px auto;
  max-width: 1100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.section h1,
.section h2 {
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 15px;
}

.section p {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.section img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  border-radius: 8px;
}

/* ======= GRID CARDS ======= */
.section-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.card {
  flex: 0 1 300px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

/* ======= ENHANCED HOMEPAGE STYLES ======= */

/* HERO SECTION */
.section.hero {
  background: linear-gradient(135deg, #0c2d1c 0%, #1e6b4e 100%);
  text-align: center;
  padding: 60px 20px;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 15px auto;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.network-visualization {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-metric {
  font-size: 1.3rem;
  color: #d4af37;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 750px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: #d4af37;
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #d4af37;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #fff;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary:hover {
  background: #fff;
  color: #0c2d1c;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-secondary:hover {
  background: #fff;
  color: #0c2d1c;
  transform: translateY(-2px);
}

/* TRUST BADGES */
.trust-badges {
  background: var(--light-bg);
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.trust-item {
  padding: 20px;
}

.trust-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.trust-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ENHANCED SOLUTIONS GRID */
.solutions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 25px;
}

.solution-card {
  position: relative;
  flex: 0 1 calc(33.333% - 17px);
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  padding: 0;
  text-align: left;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.solution-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.solution-card:hover .solution-image img {
  transform: scale(1.05);
}

.solution-card h3 {
  color: var(--primary);
  font-weight: 700;
  margin: 20px 20px 8px;
  font-size: 1.2rem;
}

.solution-card p {
  color: var(--muted);
  margin: 0 20px 15px;
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: left;
}

.solution-features {
  margin: 0 20px 20px;
  padding: 0;
  list-style: none;
}

.solution-features li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: var(--muted);
}

.solution-features li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* REDUNDANCY DIAGRAM */
.redundancy-diagram {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
}

.redundancy-diagram::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 1;
}

.diagram-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.diagram-step::before {
  content: '';
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid #ccc;
  border-radius: 50%;
  display: block;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
}

.diagram-step.active::before {
  background: var(--accent);
  border-color: var(--accent);
}

.step-content h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.step-content p {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.redundancy-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.feature h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

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

/* NIGERIA CONTEXT */
.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.problem-column, .solution-column {
  padding: 20px;
}

.challenge-item, .solution-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 15px;
  background: var(--light-bg);
  border-radius: 8px;
}

.challenge-icon, .solution-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.challenge-item h4, .solution-item h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.challenge-item p, .solution-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  text-align: left;
}

/* ENHANCED INDUSTRIES */
.section.industries {
  background: var(--light-bg);
}

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.industry-card {
  position: relative;
  flex: 0 1 calc(25% - 15px);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  background: #fffaf0;
  border-color: var(--accent);
}

.industry-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.industry-card h3 {
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 10px 0;
  font-size: 1rem;
  line-height: 1.4;
}

.industry-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

/* PARTNERS */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partner-logo {
  background: var(--light-bg);
  padding: 30px 20px;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border);
}

/* ======= SECTORS PAGE STYLING ======= */
.section.sectors {
  background: #fff;
  padding: 40px 20px;
  margin: 20px auto;
  max-width: 1100px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.sectors .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.sectors h1 {
  text-align: left;
  color: var(--primary);
  margin-bottom: 8px;
}

.sectors .intro {
  text-align: left;
  color: var(--muted);
  margin-bottom: 25px;
  font-size: 16px;
}

/* TWO CARDS PER ROW - FIXED TYPO */
.sectors .sector-card {
  position: relative;
  flex: 0 1 calc(50% - 13px); /* Exactly 2 cards per row accounting for gap */
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent); /* Gold vertical trim */
  border-radius: 8px;
  padding: 25px 20px 25px 30px;
  text-align: left;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.sectors .sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.sectors .sector-card h2 { /* Changed from h3 to h2 since your PHP uses h2 */
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.sectors .sector-card p {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
  text-align: left;
}

.sectors .sector-card a.cta {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.sectors .sector-card a.cta:hover {
  background: var(--accent);
  color: #fff;
}

/* Footer Styling — Brand Consistent */
.site-footer {
  background: #0c2d1c; /* Deep corporate green (consistent with header) */
  color: #fff;
  padding: 12px 0;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  border-top: 3px solid #d4af37; /* Gold accent line for polish */
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 4px;
}

.footer-contact a {
  color: #d4af37; /* Gold accent links */
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-contact .divider {
  color: #888;
}

.footer-copy {
  font-size: 13px;
  color: #ddd;
  letter-spacing: 0.2px;
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 1024px) {
  .solution-card {
    flex: 0 1 calc(50% - 13px);
  }
  
  .industry-card {
    flex: 0 1 calc(33.333% - 14px);
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .redundancy-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 30px 15px;
    margin: 15px auto;
  }
  
  .section.hero {
    padding: 40px 15px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-metric {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .solution-card,
  .industry-card {
    flex: 0 1 100%;
  }
  
  .context-grid {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .redundancy-diagram {
    flex-direction: column;
    gap: 30px;
  }
  
  .redundancy-diagram::before {
    display: none;
  }
  
  .sectors .sector-card {
    flex: 0 1 100%;
  }
  
  .header-container {
    padding: 10px 20px;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 25px 12px;
    margin: 10px auto;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}