/* ============================================================
   Quenra Solutions — Shared Stylesheet
   Colors: Blue #005994 | Green #87C71F | White #fff | Dark #1a1a1a
   Fonts: Epilogue (headings) | Work Sans (body)
============================================================ */

/* ---------- Root Variables ---------- */
:root {
  --blue:        #005994;
  --green:       #87C71F;
  --white:       #ffffff;
  --dark:        #1a1a1a;
  --gray-bg:     #f6f6f9;
  --text-muted:  #555;
  --font-head:   'Epilogue', sans-serif;
  --font-body:   'Work Sans', sans-serif;
  --max-w:       1224px;
  --nav-h:       111px;
  --transition:  all 0.3s ease;
  --radius:      4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, textarea { font-family: var(--font-body); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem);   font-weight: 800; }
h2 { font-size: clamp(2rem,   4vw, 3.25rem); font-weight: 800; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 700; }
h4 { font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 700; }
h5 { font-size: clamp(1rem,   1.5vw, 1.3rem); font-weight: 700; }
h6 { font-size: clamp(0.95rem,1.2vw, 1.1rem); font-weight: 700; }
p  { font-size: 1rem; line-height: 1.75; }
.body-small { font-size: 0.875rem; line-height: 1.6; }

.text-blue  { color: var(--blue); }
.text-green { color: var(--green); }
.text-white { color: var(--white); }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   NAVIGATION
============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.site-nav.scrolled {
  height: 70px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 60px;
  width: auto;
  transition: var(--transition);
}
.site-nav.scrolled .nav-logo img { height: 44px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid #e8e8e8;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.nav-mobile.open { max-height: 400px; padding: 12px 0 20px; }
.nav-mobile a {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--blue);
  padding: 12px 20px;
  font-size: 1rem;
  display: block;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:hover { color: var(--green); background: var(--gray-bg); }

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 545px;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1462206092226-f46025ffe607?w=1366&q=70&auto=format')
              center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.14);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 915px;
  padding: 60px 16px;
}
.hero-content h1 {
  color: var(--blue);
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.hero-content h1 span { color: var(--green); }
.hero-content p {
  color: var(--dark);
  max-width: 760px;
  font-size: 1.05rem;
  font-weight: 400;
}

/* ============================================================
   SECTION SHARED
============================================================ */
.section { padding: 80px 0; }
.section--blue  { background: var(--blue); }
.section--white { background: var(--white); }
.section--gray  { background: var(--gray-bg); }

.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
  color: var(--text-muted);
}

/* ============================================================
   WHAT WE'RE GOOD AT — Service Cards
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  padding: 36px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,89,148,0.12);
}
.service-card .icon {
  width: 56px; height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card .icon i {
  font-size: 1.4rem;
  color: var(--white);
}
.service-card h5 {
  color: var(--blue);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   PROCESS SECTION (Blue BG)
============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.process-step { text-align: left; }
.process-step .step-img {
  width: 120px; height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}
.step-number {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 12px;
}
.process-step h5 { color: var(--white); margin-bottom: 8px; }
.process-step p  { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

/* ============================================================
   WHY CHOOSE US — Benefits
============================================================ */
.benefits-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}
.benefits-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.benefits-images img {
  border-radius: 8px;
  object-fit: contain;
  width: 100%;
  transition: transform 0.3s ease;
}
.benefits-images img:hover { transform: scale(1.03); }
.benefits-list { display: flex; flex-direction: column; gap: 20px; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.benefit-item .benefit-icon {
  min-width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.benefit-item .benefit-icon i { color: var(--white); font-size: 1.1rem; }
.benefit-item h5 { color: var(--blue); margin-bottom: 4px; }
.benefit-item p  { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   CLIENTS / PARTNERS
============================================================ */
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
}
.partners-row img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: var(--transition);
}
.partners-row img:hover { filter: none; opacity: 1; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.testimonial-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--gray-bg);
  border-radius: 8px;
  padding: 28px;
}
.testimonial-card img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--blue);
}
.testimonial-card h6  { color: var(--blue); margin-bottom: 8px; }
.testimonial-card p   { color: #333; font-size: 0.92rem; }

/* ============================================================
   CONTACT SECTION (Blue BG)
============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.contact-form-col h2 span { color: var(--green); }
.contact-form-col > p {
  color: rgba(255,255,255,0.9);
  margin: 16px 0 32px;
  font-size: 1rem;
}

/* Form */
.form-control { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  color: rgb(241,241,241);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  background: rgba(245,248,251,0.6);
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--dark);
  height: 48px;
  transition: border-color 0.25s, background 0.25s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(245,248,251,0.9);
}
.form-group textarea {
  height: 140px;
  resize: vertical;
}
.btn-submit {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 36px;
  border-radius: var(--radius);
  transition: background 0.3s ease, transform 0.2s;
  align-self: flex-start;
  letter-spacing: 0.5px;
}
.btn-submit:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.contact-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-logo-col img {
  max-height: 500px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--blue);
  padding: 50px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-logo img { height: 60px; width: auto; }
.footer-col h6 { color: var(--green); margin-bottom: 10px; }
.footer-col p, .footer-col a {
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.8;
  display: block;
}
.footer-col a:hover { color: var(--green); }

/* ============================================================
   PAGE HERO (Inner pages)
============================================================ */
.page-hero {
  background: var(--blue);
  padding: 80px 16px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero h1 span { color: var(--green); }
.page-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 20px auto 0;
  font-size: 1.05rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.breadcrumb a, .breadcrumb span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }

/* ============================================================
   ABOUT PAGE
============================================================ */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-story img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
}
.about-story .story-text h2 { margin-bottom: 20px; }
.about-story .story-text h2 span { color: var(--green); }
.about-story .story-text p { color: var(--text-muted); margin-bottom: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.value-card {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  transition: var(--transition);
}
.value-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(135,199,31,0.12);
  transform: translateY(-4px);
}
.value-card .val-icon {
  width: 60px; height: 60px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.value-card .val-icon i { color: var(--white); font-size: 1.5rem; }
.value-card h5 { color: var(--blue); margin-bottom: 10px; }
.value-card p  { color: var(--text-muted); font-size: 0.92rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.team-card {
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  transition: var(--transition);
}
.team-card:hover { box-shadow: 0 10px 30px rgba(0,89,148,0.12); transform: translateY(-4px); }
.team-card .team-img {
  width: 100%; height: 220px;
  object-fit: cover;
  background: var(--gray-bg);
}
.team-card .team-info { padding: 20px 16px; }
.team-card h6 { color: var(--blue); margin-bottom: 4px; }
.team-card p  { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================================
   SERVICES PAGE
============================================================ */
.services-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 64px;
}
.services-detail:nth-child(even) { direction: rtl; }
.services-detail:nth-child(even) > * { direction: ltr; }
.services-detail img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.services-detail .svc-text h3 { color: var(--blue); margin-bottom: 16px; }
.services-detail .svc-text h3 span { color: var(--green); }
.services-detail .svc-text p { color: var(--text-muted); margin-bottom: 14px; }
.svc-features { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.svc-features li {
  display: flex; align-items: center; gap: 10px;
  color: var(--dark); font-size: 0.95rem;
}
.svc-features li i { color: var(--green); font-size: 1rem; flex-shrink: 0; }

/* CTA Banner */
.cta-banner {
  background: var(--green);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.9); max-width: 580px; margin: 0 auto 32px; }
.btn-cta {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: 14px 40px;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  display: inline-block;
}
.btn-cta:hover { background: var(--dark); transform: translateY(-2px); }

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  background: var(--blue);
  padding: 48px 0;
}
.stat-item { padding: 0 16px; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--green);
  margin-bottom: 6px;
}
.stat-label { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* ============================================================
   ANIMATIONS (AOS overrides & custom)
============================================================ */
[data-aos] { transition-duration: 0.75s !important; }

/* Whatsapp bubble (from original) */
.whatsapp-bubble {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1000;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.whatsapp-bubble:hover { transform: scale(1.1); }
.whatsapp-bubble i { color: var(--white); font-size: 1.6rem; }

/* ============================================================
   RESPONSIVE — Tablet (max 1024px)
============================================================ */
@media (max-width: 1024px) {
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .process-grid     { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .team-grid        { grid-template-columns: repeat(2, 1fr); }
  .benefits-wrap    { grid-template-columns: 1fr; }
  .benefits-images  { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap     { grid-template-columns: 1fr; gap: 40px; }
  .contact-logo-col { display: none; }
  .services-detail  { grid-template-columns: 1fr; gap: 32px; }
  .services-detail:nth-child(even) { direction: ltr; }
  .stats-strip      { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .about-story      { grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }
  .footer-inner     { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE — Mobile (max 768px)
============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 80px; }
  .section { padding: 60px 0; }
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: 456px; }
  .hero-content { padding: 53px 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid  { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-logo { margin: 0 auto; }

  .partners-row img { height: 52px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }

  .contact-logo-col { display: none; }
  .cta-banner { padding: 48px 16px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .benefits-images { grid-template-columns: 1fr; }
}
