/* style.css - W7.Cont Rebranding */
:root {
  --primary: #164670; /* Blue */
  --primary-dark: #0e2e4a;
  --secondary: #fb8500; /* Orange */
  --secondary-dark: #e85d04;
  
  /* Soft Medium-Dark Theme */
  --bg-light: #1b2838; /* Base background */
  --section-bg: #141f2b; /* Alternating section */
  --bg-white: #223246; /* Cards / Elevated box */
  --bg-card: rgba(255, 255, 255, 0.04);
  
  --text-main: #f8fafc;
  --text-muted: #a0b2c6;
  --footer-bg: #0c131c;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3 { font-weight: 700; line-height: 1.2; color: #fff; }
p { font-size: 1.05rem; color: var(--text-muted); }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(251, 133, 0, 0.3);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 133, 0, 0.4);
}
.btn-secondary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(22, 70, 112, 0.3);
}
.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 70, 112, 0.4);
}
.btn-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--secondary);
  color: #fff;
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(20, 31, 43, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
}
.logo svg {
  margin-right: 8px;
  color: var(--secondary);
}
.nav-menu { display: flex; gap: 2.5rem; align-items: center; }
.nav-menu a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1.05rem;
}
.nav-menu a:hover { color: var(--secondary); }
.nav-blog { color: var(--secondary) !important; font-weight: 700 !important; }

/* Hero */
.hero {
  padding: 12rem 0 7rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(251, 133, 0, 0.1), transparent 50%);
}
.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(251, 133, 0, 0.15);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(251, 133, 0, 0.3);
}
.hero h1 { font-size: 3.8rem; margin-bottom: 1.5rem; letter-spacing: -1.5px; color: var(--text-main); }
.hero p { font-size: 1.25rem; margin-bottom: 3rem; max-width: 90%; color: var(--text-muted); }
.hero-buttons { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s;
}
.hero-image img:hover { transform: perspective(1000px) rotateY(0); }

/* Target Section */
.target-section { padding: 8rem 0; background: var(--section-bg); }
.section-header { margin-bottom: 5rem; text-align: center; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 1.2rem; color: #fff;}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.glass {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, border 0.3s ease;
  display: flex;
  flex-direction: column;
}
.glass:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 133, 0, 0.3);
  background: rgba(255, 255, 255, 0.08);
}
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.glass h3 { font-size: 1.4rem; margin-bottom: 1rem; color: #fff; }
.glass p { flex-grow: 1; }

/* About Section */
.about-section { padding: 8rem 0; background: var(--bg-light); }
.about-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: center;
}
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 20px; object-fit: cover; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.crc-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: var(--secondary);
  color: #fff;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(251, 133, 0, 0.3);
}
.about-content h2 { font-size: 3rem; margin-bottom: 2rem; color: #fff; }
.about-content p { margin-bottom: 1.8rem; font-size: 1.15rem; }

/* Services Image Grid */
.services-section { padding: 8rem 0; background: var(--section-bg); }
.services-section .section-header { margin-bottom: 4rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.service-item {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.service-item:hover { transform: translateY(-10px); border-color: rgba(22, 70, 112, 0.4); }
.service-item img { width: 100%; height: 240px; object-fit: cover; }
.service-info { padding: 2.5rem; }
.service-info h3 { font-size: 1.4rem; margin-bottom: 1rem; color: #fff; }

/* Blog Teaser */
.blog-teaser {
  padding: 8rem 0;
  background: linear-gradient(135deg, rgba(22, 70, 112, 0.15) 0%, rgba(20, 31, 43, 1) 100%);
  border-top: 2px solid rgba(22, 70, 112, 0.2);
  border-bottom: 2px solid rgba(22, 70, 112, 0.2);
}
.blog-teaser h2 { font-size: 3.2rem; margin-bottom: 1.5rem; color: #fff;}
.blog-teaser p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; color: var(--text-muted); }

/* Footer */
footer { padding: 5rem 0 2rem; background: var(--footer-bg); color: rgba(255,255,255,0.8); }
footer p, footer a, footer h4 { color: rgba(255,255,255,0.8) !important; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand h2 { color: var(--secondary) !important; margin-bottom: 1rem; font-size: 2.5rem; letter-spacing: -1px; display: flex; align-items: center; }
.footer-brand h2 svg { color: var(--secondary); margin-right: 10px; }
.footer-links h4, .footer-compliance h4 { margin-bottom: 1.5rem; font-size: 1.2rem; color: #fff !important;}
.footer-compliance a { text-decoration: none; display: inline-block; margin-bottom: 0.8rem; transition: 0.3s; }
.footer-compliance a:hover { color: var(--secondary) !important; text-decoration: underline; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2.5rem; font-size: 0.95rem; }

/* WA Float */
.wa-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s cubic 1;
}
.wa-float:hover { transform: scale(1.15) rotate(-10deg); background-color: #128c7e; color: #fff; }

/* Responsive adjustments */
@media(max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-image { display: none; }
  .hero { padding: 10rem 0 6rem; background: transparent; }
  .about-container { grid-template-columns: 1fr; gap: 4rem; }
  .about-content { text-align: center; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu, .nav-cta { display: none; }
  .footer-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
}

@media(max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.8rem; }
  .blog-teaser h2 { font-size: 2.2rem; }
  .about-content h2 { font-size: 2.2rem; }
  .card-img { height: 200px; }
  .wa-float { bottom: 20px; right: 20px; width: 60px; height: 60px; }
  .wa-float svg { width: 30px; height: 30px; }
  .crc-badge { right: 0; bottom: -15px; padding: 0.8rem 1.5rem; }
}
