/* =============================================
   RDC Tech Solutions — Stylesheet (Optimised)
   ============================================= */

/* =============================================
   GLOBAL + RESET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --amber:       #F5A623;
  --amber-dark:  #E09410;
  --dark:        #1a1a1a;
  --text:        #333;
  --muted:       #666;
  --light-bg:    #f5f5f5;
  --card-bg:     #fff;
  --border:      #e5e5e5;
  --nav-height: 152px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}

html { scroll-behavior: smooth; }

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =============================================
   UNIVERSAL CONTAINER BEHAVIOUR
   (applied to existing wrappers)
   ============================================= */

#about,
.stats-wrapper,
.services-header,
.services-grid,
.freshdesk-inner,
#contact,
.footer-grid,
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* =============================================
   NAVIGATION
   ============================================= */

nav {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled { border-color: var(--border); }

.logo {
  height: 175px;
  width: auto;
  object-fit: contain;
}

.hamburger {
  position: absolute;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* =============================================
   HERO (full‑width)
   ============================================= */

#hero {
  position: relative;
  min-height: 60vh;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 65%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 680px;
}

.hero-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--dark);
}

.hero-content h2 .amber { color: var(--amber); }

.hero-content p {
  font-size: 17px;
  color: #555;
  max-width: 520px;
  margin: 20px 0 36px;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

/* =============================================
   TRUSTED BAR
   ============================================= */

.trusted-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 40px 0;
  border-top: 1px solid #ddd;
  margin-top: 60px;
}

.trusted-bar span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
}

.trusted-logos {
  display: flex;
  gap: 28px;
}

.trusted-logos a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  opacity: 0.7;
}

.trusted-logos a:hover { opacity: 1; }

/* =============================================
   ABOUT
   ============================================= */

#about {
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.about-image-wrap { position: relative; }

.about-image-wrap img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.stat-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #fff;
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.stat-badge .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--amber);
}

.stat-badge .label {
  font-size: 13px;
  color: #555;
}

/* =============================================
   STATS
   ============================================= */

.stats-wrapper {
  padding-top: 100px;
  padding-bottom: 100px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.stat-item {
  text-align: center;
}

.stat-item .big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--dark);
}

.stat-item .desc {
  font-size: 15px;
  color: var(--muted);
}

/* =============================================
   SERVICES
   ============================================= */

#services {
  background: var(--light-bg);
  padding-top: 100px;
  padding-bottom: 100px;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--dark);
  margin-bottom: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

/* =============================================
   FRESHDESK
   ============================================= */

#freshdesk {
  background: #fff;
  padding-top: 100px;
  padding-bottom: 100px;
}

.freshdesk-inner {
  /* container behaviour already applied globally */
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#freshdesk h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin: 32px 0;
}

.cert-icon {
  font-size: 28px;
  color: var(--amber);
}

.expertise-card {
  margin-top: 40px;
}

.expertise-title {
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-row {
  margin-bottom: 20px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 6px;
}

.skill-track {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--amber);
  width: 0;
  transition: width 1.2s ease;
}

.expertise-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

/* =============================================
   CONTACT
   ============================================= */

#contact {
  background: var(--light-bg);
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
}

#contact h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.contact-form {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

textarea {
  min-height: 120px;
}

.btn-submit {
  background: var(--amber);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  background: #fff;
  color: var(--text);
  padding: 60px 0 32px;
  border-top: 1px solid #eee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
}

.footer-col ul li a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.8;
}

.footer-col ul li a:hover {
  color: var(--amber);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-contact-item i {
  color: var(--amber);
  margin-top: 4px;
}

.footer-contact-item a {
  color: var(--text);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--amber);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
}

.footer-legal a:hover {
  color: var(--amber);
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--amber);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.2s;
  z-index: 50;
}

.back-to-top:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {

  :root {
    --nav-height: 182px;
  }

  .logo {
    height: 80px;
  }

  #about {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .stats-wrapper {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  #services {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  #freshdesk {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  #contact {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}