/* ═══════════════════════════════════════════════
   CumulusOps — Global Styles
   Colors: Navy #1B2A5B | Red #CC0000 | White #fff
   ═══════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── HEADER ─── */
.site-header {
  display: flex;
  align-items: center;
  padding: 14px 40px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo {
  display: inline-block;
  border: 2.5px solid #1B2A5B;
  padding: 5px 14px;
  font-size: 17px;
  font-weight: 700;
  color: #1B2A5B;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo:hover { background: rgba(27,42,91,0.04); }

/* ─── NAV ─── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 40px;
}
.main-nav > a,
.nav-dropdown > a {
  color: #1B2A5B;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.main-nav > a:hover,
.nav-dropdown > a:hover { color: #CC0000; }
.main-nav > a.active { color: #CC0000; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: ' \25BE';
  font-size: 11px;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  min-width: 210px;
  padding: 6px 0;
  border-radius: 2px;
  z-index: 1100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 22px;
  font-size: 13px;
  color: #1B2A5B;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: #f4f4f8; color: #CC0000; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1B2A5B;
  margin: 5px 0;
  transition: 0.3s;
}

/* ─── SOCIAL BAR ─── */
.social-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 90;
}
.social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transition: background 0.2s;
}
.social-bar a:hover { background: rgba(27,42,91,0.08); }
.social-bar svg {
  width: 16px;
  height: 16px;
  fill: #1B2A5B;
}

/* ─── HERO (homepage) ─── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero-bg.jpg') center/cover no-repeat;
  filter: grayscale(100%);
}
.hero-card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.97);
  padding: 48px 44px;
  max-width: 520px;
  margin-right: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.hero-card h1 {
  font-size: 34px;
  font-weight: 300;
  color: #1B2A5B;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-card p {
  font-size: 13px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 10px;
}
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.hero-buttons .spacer { flex: 1; }

/* ─── BUTTONS ─── */
.btn-navy {
  display: inline-block;
  padding: 11px 26px;
  background: #1B2A5B;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-navy:hover { background: #263a7a; }

.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: #CC0000;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-red:hover { background: #e00; }

.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1B2A5B;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-circle:hover { background: #263a7a; }

/* ─── SERVICES GRID (homepage) ─── */
.services-section {
  background: #1B2A5B;
  padding: 60px 40px 70px;
}
.services-section h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 36px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
}
.service-card {
  background: #fff;
  padding: 34px 28px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  border-left: 4px solid #1B2A5B;
}
.service-card h3 {
  color: #1B2A5B;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.service-card p {
  font-size: 13px;
  line-height: 1.65;
  color: #555;
  flex: 1;
}
.service-card .learn-more {
  color: #CC0000;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
  display: inline-block;
}
.service-card .learn-more:hover { text-decoration: underline; }

/* ─── CTA SECTION ─── */
.cta-section {
  padding: 80px 40px;
  text-align: center;
  background: #f7f7f9;
}
.cta-section h2 {
  font-size: 30px;
  font-weight: 300;
  color: #1B2A5B;
  margin-bottom: 6px;
}
.cta-divider {
  width: 60px;
  height: 3px;
  background: #1B2A5B;
  margin: 16px auto;
}
.cta-section p {
  font-size: 14px;
  color: #777;
  margin-bottom: 28px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #111827 0%, #1e293b 40%, #334155 70%, #1e293b 100%);
}
.page-hero .hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(100,116,139,0.3) 0%, transparent 60%);
}
.page-hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 60px 60px;
}
.page-hero-content h1 {
  font-size: 34px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 20px;
}
.page-hero-content p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

/* ─── CONTENT SECTIONS (inner pages) ─── */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
}
.page-content h2 {
  font-size: 26px;
  font-weight: 300;
  color: #1B2A5B;
  margin-bottom: 24px;
}
.page-content p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
}

/* Why Choose Us numbered sections */
.why-section {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}
.why-section:last-child { border-bottom: none; }
.why-number {
  font-size: 36px;
  font-weight: 700;
  color: #1B2A5B;
  flex-shrink: 0;
  width: 60px;
}
.why-section p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* Industries cards */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.industry-card {
  background: #f7f7f9;
  padding: 32px 28px;
  border-left: 4px solid #1B2A5B;
}
.industry-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1B2A5B;
  margin-bottom: 12px;
}
.industry-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}
.industry-card.full-width {
  grid-column: 1 / -1;
}

/* Blog */
.blog-post {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}
.blog-post-img {
  width: 200px;
  height: 150px;
  background: linear-gradient(135deg, #1B2A5B, #334155);
  flex-shrink: 0;
  border-radius: 2px;
}
.blog-post-content { flex: 1; }
.blog-post-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}
.blog-post-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1B2A5B;
  margin-bottom: 10px;
}
.blog-post-content h3 a { color: #1B2A5B; }
.blog-post-content h3 a:hover { color: #CC0000; }
.blog-post-content p {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 30px;
}
.contact-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1B2A5B;
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 14px;
  line-height: 2;
  color: #555;
}
.contact-info a { color: #CC0000; }
.contact-info a:hover { text-decoration: underline; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1B2A5B;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form button {
  align-self: flex-start;
  padding: 12px 40px;
  background: #CC0000;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: #e00; }
.form-status {
  padding: 10px;
  font-size: 13px;
  display: none;
}
.form-status.success {
  display: block;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.form-status.error {
  display: block;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

/* ─── FOOTER ─── */
.site-footer {
  background: #1B2A5B;
  color: #fff;
  padding: 50px 40px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 1100px;
}
.footer-contact h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-contact p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
}
.footer-contact a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}
.footer-contact a:hover { color: #fff; }
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-form .form-row {
  display: flex;
  gap: 12px;
}
.footer-form input,
.footer-form textarea {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255,255,255,0.45);
}
.footer-form input:focus,
.footer-form textarea:focus {
  border-color: rgba(255,255,255,0.7);
}
.footer-form textarea {
  min-height: 80px;
  resize: vertical;
}
.footer-form button {
  align-self: center;
  padding: 10px 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.footer-form button:hover {
  background: rgba(255,255,255,0.1);
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ─── 404 PAGE ─── */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-page h1 {
  font-size: 120px;
  font-weight: 700;
  color: #1B2A5B;
  line-height: 1;
}
.error-page p {
  font-size: 18px;
  color: #777;
  margin: 16px 0 30px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .site-header { padding: 12px 16px; flex-wrap: wrap; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-left: 0;
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
  }
  .main-nav.open { display: flex; }
  .main-nav > a,
  .nav-dropdown > a {
    padding: 10px 0;
    font-size: 15px;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .menu-toggle { display: block; }

  .hero { min-height: auto; }
  .hero-card {
    margin: 20px 16px;
    padding: 32px 24px;
    max-width: none;
  }
  .hero-card h1 { font-size: 26px; }
  .hero-buttons { flex-wrap: wrap; }
  .hero-buttons .spacer { display: none; }

  .services-section { padding: 40px 16px; }
  .services-grid { grid-template-columns: 1fr; }

  .cta-section { padding: 50px 16px; }
  .page-hero-content { padding: 40px 20px; }
  .page-hero-content h1 { font-size: 26px; }
  .page-content { padding: 40px 16px; }

  .why-section { flex-direction: column; gap: 10px; }

  .blog-post { flex-direction: column; }
  .blog-post-img { width: 100%; height: 180px; }

  .site-footer { padding: 36px 16px 20px; }
  .social-bar { display: none; }
}
