/* css/style.css */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* ── CSS Variables ── */
:root {
  --red: #CC0000;
  --red-dark: #aa0000;
  --black: #1A1A1A;
  --grey-light: #F5F5F5;
  --grey-mid: #E8E8E8;
  --grey-text: #555555;
  --white: #FFFFFF;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --max-width: 1200px;
  --nav-height: 140px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--black); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { color: var(--grey-text); font-size: 1rem; line-height: 1.75; }

/* ── Layout Utilities ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--grey { background: var(--grey-light); }
.section--red { background: var(--red); }
.section--dark { background: var(--black); }
.text-center { text-align: center; }
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle { max-width: 600px; margin: 0 auto 48px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn--red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--red); }

/* ── Page Hero Banner (inner pages) ── */
.page-hero {
  background: var(--red);
  padding: 80px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 16px auto 0; }

/* ── Grid Helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { min-height: 380px; }
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-mid);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.nav__logo img {
  height: 108px;
  width: auto;
  display: block;
  margin-right: 48px;
}
/* Footer text logo (used where image background would clash) */
.logo-mark {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 6px;
}
.footer .logo-mark { color: var(--white); }
.footer .logo-sub { color: var(--red); }
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  transition: color var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--red); }
.nav__cta { margin-left: 24px; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--black);
}
.nav__mobile a:hover { color: var(--red); }

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__logo { margin-bottom: 16px; }
.footer__tagline { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 20px; }
.footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.footer__whatsapp:hover { background: #1ebe5c; }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col ul a { color: rgba(255,255,255,0.75); font-size: 0.9rem; transition: color var(--transition); }
.footer__col ul a:hover { color: var(--white); }
.footer__col address { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-style: normal; line-height: 1.8; }
.footer__col address a { color: var(--red); }
.footer__col address a:hover { color: #ff4444; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}
.footer__bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   WHATSAPP FLOATING BUTTON
══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ══════════════════════════════════════
   HOME — HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--grey-light);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://plus.unsplash.com/premium_photo-1661378522616-290a9a1ca7cd?fm=jpg&q=80&w=1920&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero__content h1 { margin-bottom: 20px; }
.hero__content p { font-size: 1.1rem; margin-bottom: 36px; color: var(--grey-text); }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ══════════════════════════════════════
   HOME — SERVICE CARDS
══════════════════════════════════════ */
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card__icon {
  width: 52px;
  height: 52px;
  background: #fff0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 28px; height: 28px; stroke: var(--red); fill: none; stroke-width: 1.8; }
.service-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; margin-bottom: 20px; }
.service-card__link { color: var(--red); font-size: 0.9rem; font-weight: 600; }
.service-card__link:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   HOME — PRODUCT STRIP
══════════════════════════════════════ */
.product-card {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-3px); }
.product-card img {
  height: 140px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 16px;
}
.product-card h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.product-card p { font-size: 0.82rem; color: var(--grey-text); }
.equipment-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .equipment-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .equipment-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   HOME — WHY CHOOSE QLS
══════════════════════════════════════ */
.why-card { text-align: center; padding: 32px 16px; }
.why-card__icon {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--red);
}
.why-card__icon svg { width: 30px; height: 30px; stroke: var(--red); fill: none; stroke-width: 1.8; }
.why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; }

/* ══════════════════════════════════════
   HOME — TESTIMONIAL SNIPPET
══════════════════════════════════════ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.testimonial-card__quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--black);
  margin-bottom: 24px;
  line-height: 1.75;
}
.testimonial-card__quote::before { content: '\201C'; color: var(--red); font-size: 2rem; line-height: 0; vertical-align: -0.5rem; margin-right: 4px; }
.testimonial-card__author { font-weight: 700; font-size: 0.9rem; }
.testimonial-card__role { font-size: 0.82rem; color: var(--grey-text); }

/* ══════════════════════════════════════
   HOME — CTA BANNER
══════════════════════════════════════ */
.cta-banner { padding: 80px 0; background: var(--red); text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 36px; }

/* ══════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════ */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-story img { border-radius: var(--radius); width: 100%; height: 360px; object-fit: cover; }
.about-story__text h2 { margin-bottom: 20px; }
.about-story__text p { margin-bottom: 16px; }
.values-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 32px 16px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--grey-mid); }
.value-card__icon { font-size: 2.4rem; margin-bottom: 12px; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; }
@media (max-width: 900px) {
  .about-story { grid-template-columns: 1fr; }
  .values-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .values-strip { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════
   SERVICES PAGE
══════════════════════════════════════ */
.service-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 80px 0; border-bottom: 1px solid var(--grey-mid); }
.service-section:last-of-type { border-bottom: none; }
.service-section--reverse .service-section__img { order: 2; }
.service-section--reverse .service-section__text { order: 1; }
.service-section__img img { border-radius: var(--radius); width: 100%; height: 380px; object-fit: cover; }
.service-section__text h2 { margin-bottom: 16px; }
.service-section__text p { margin-bottom: 24px; }
.service-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.service-product-item { border: 1px solid var(--grey-mid); border-radius: var(--radius); padding: 16px; text-align: center; transition: box-shadow 0.2s ease, transform 0.2s ease; cursor: pointer; }
.service-product-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-2px); }
.service-product-item img { height: 100px; width: 100%; object-fit: contain; margin-bottom: 10px; }
.service-product-item h4 { font-size: 0.82rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.service-product-item p { font-size: 0.75rem; }
@media (max-width: 768px) {
  .service-section { grid-template-columns: 1fr; }
  .service-section--reverse .service-section__img, .service-section--reverse .service-section__text { order: unset; }
}

/* ══════════════════════════════════════
   FAQ PAGE
══════════════════════════════════════ */
.faq-category { margin-bottom: 48px; }
.faq-category h3 { font-size: 1.1rem; color: var(--red); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--red); }
.faq-item { border-bottom: 1px solid var(--grey-mid); }
.faq-item__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item__question:hover { color: var(--red); }
.faq-item__chevron { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer { display: none; padding: 0 0 20px; }
.faq-item__answer p { font-size: 0.9rem; }
.faq-item.open .faq-item__answer { display: block; }

/* ══════════════════════════════════════
   TESTIMONIALS PAGE
══════════════════════════════════════ */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-form h3 { margin-bottom: 24px; font-size: 1.2rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--black); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-map { margin-top: 64px; }
.contact-map h3 { margin-bottom: 24px; }
.contact-map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
.contact-info { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-info-item h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); margin-bottom: 6px; }
.contact-info-item p, .contact-info-item a { font-size: 0.9rem; color: var(--grey-text); }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   COMING SOON / UNDER CONSTRUCTION
══════════════════════════════════════ */
.placeholder-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.placeholder-page__inner { max-width: 500px; padding: 0 16px; }
.placeholder-page__inner img { height: 80px; width: auto; margin: 0 auto 32px; }
.placeholder-page__inner h1 { margin-bottom: 16px; }
.placeholder-page__inner p { margin-bottom: 32px; }
