/* Cloud 9 Global - Consolidated CSS - Single source of truth
   Modern, responsive, accessible, timeproof design
   Last updated: 2025-12-08 */

/* ===== CSS Variables ===== */
:root {
  --brand: #C93C00;
  --accent: #E84A1B;
  --muted: #666;
  --bg: #ffffff;
  --card: #fff;
  --shadow: rgba(0,0,0,0.08);
  --maxw: 1200px;
  --radius: 10px;
  --gap: 24px;
  --font-sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Reset & Base Styles ===== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: #222;
  background: linear-gradient(180deg, #fff, #fbfbfb);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  margin: 0;
}

/* ===== Layout Container ===== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 84px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.brand h1 {
  font-size: 1.05rem;
  color: var(--brand);
  margin: 0;
}

.brand p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Navigation ===== */
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav a:hover {
  color: var(--brand);
  background: rgba(201, 60, 0, 0.04);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  padding: 72px 0 56px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.hero h2 {
  font-size: 2.4rem;
  margin: 0 0 12px;
  line-height: 1.05;
}

.hero p {
  max-width: 920px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
}

/* ===== About Hero with Background ===== */
.about-hero {
  background-image: url("Cloud9Global_general.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  position: relative;
  color: #fff;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.about-hero > * {
  position: relative;
  z-index: 1;
}

/* ===== Services Section ===== */
.services {
  padding: 64px 0;
}

/* ===== Grid Layout ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

/* ===== Cards ===== */
.card {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.card h3 {
  margin-top: 0;
  color: #222;
}

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

/* Glass effect cards for about page */
.about-hero .card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

/* ===== Expertise Section ===== */
.expertise {
  background: #f7f8fa;
  padding: 64px 0;
}

.expertise .two {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

.expertise h2 {
  text-align: center;
  margin: 0 0 18px;
  font-size: 1.8rem;
  color: #222;
}

.list {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 18px var(--shadow);
}

.list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--muted);
}

.list li:last-child {
  border-bottom: 0;
}

/* ===== Clients Section ===== */
.clients {
  padding: 48px 0;
  text-align: center;
}

.clients .names {
  font-weight: 700;
  color: #222;
  margin: 12px 0;
}

/* ===== Footer ===== */
.site-footer {
  background: #111;
  color: #fff;
  padding: 36px 0;
  text-align: center;
}

.site-footer p {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Utility Classes ===== */
.kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  font-weight: 700;
  color: var(--brand);
  font-size: 0.85rem;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
  .expertise .two {
    grid-template-columns: 1fr;
  }
  
  .brand img {
    width: 64px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .header-inner {
    padding: 10px 0;
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}
