/* =========================================================
   VSC Projects (Pty) Ltd — style.css
   Vanilla CSS. No frameworks.
   ========================================================= */

:root {
  --navy: #0B2545;
  --navy-dark: #081b34;
  --charcoal: #2E2E32;
  --grey: #6B7280;
  --grey-light: #E5E7EB;
  --off-white: #F6F7F9;
  --white: #FFFFFF;
  --orange: #F5821F;
  --orange-dark: #D96E10;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 10px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 6px 20px rgba(11, 37, 69, 0.12);

  --header-height: 76px;
  --bottom-nav-height: 68px;

  --max-width: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em 0; color: var(--navy); font-weight: 700; }
p { margin: 0 0 1em 0; }

.icon-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading { margin-bottom: 40px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-lead { color: var(--grey); max-width: 560px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
}

section { padding: 72px 0; scroll-margin-top: calc(var(--header-height) + 12px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; height: 100%; }
.logo-img { height: 48px; width: auto; }
.logo-placeholder {
  font-weight: 800;
  color: var(--navy);
  border: 2px dashed var(--grey-light);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.nav-link {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { border-color: var(--orange); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--navy);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  transition: max-height 0.25s ease;
}
.mobile-menu.open { max-height: 420px; }
.mobile-menu ul { padding: 12px 24px 0; display: flex; flex-direction: column; }
.mobile-menu .nav-link { display: block; padding: 14px 0; border-bottom: 1px solid var(--grey-light); font-size: 1.02rem; }
.mobile-menu-cta { margin: 16px 24px 20px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0 72px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow { color: var(--orange); }
.hero-tagline {
  font-weight: 600;
  color: #C9D4E3;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-sub {
  color: #C9D4E3;
  font-size: 1.05rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.about-content { max-width: 760px; }
.about-content p { color: var(--grey); font-size: 1.05rem; }
.about-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- Services ---------- */
.services { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 22px;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 12px; }
.service-description { color: var(--grey); font-size: 0.92rem; margin-bottom: 16px; }
.service-card ul { display: flex; flex-direction: column; gap: 8px; }
.service-card li {
  color: var(--grey);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* ---------- Projects ---------- */
.projects { background: var(--white); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.project-card-body { padding: 18px 20px; }
.project-category {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.project-card-body h3 { font-size: 1rem; margin-bottom: 6px; }
.project-card-body p { color: var(--grey); font-size: 0.9rem; margin: 0; }
.project-card:hover .project-image { transform: scale(1.03); }
.project-image { transition: transform 0.2s ease; }

/* ---------- Why VSC ---------- */
.why-vsc { background: var(--navy); color: var(--white); }
.why-vsc h2 { color: var(--white); }
.why-vsc .eyebrow { color: var(--orange); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.why-card h3 { color: var(--white); font-size: 1.02rem; margin-bottom: 10px; }
.why-card p { color: #C9D4E3; font-size: 0.9rem; margin: 0; }

/* ---------- Contact / Quote ---------- */
.contact { background: var(--off-white); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--grey); font-weight: 700; }
.contact-list a { color: var(--navy); font-weight: 700; font-size: 1.05rem; }
.contact-list a:hover { color: var(--orange); }

.quote-form {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--off-white);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.form-submit { width: 100%; margin-top: 6px; }
.form-message {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-message.success { color: #1D7A3C; }
.form-message.error { color: #C0392B; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #C9D4E3; padding: 56px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand h3 { color: var(--white); margin-bottom: 12px; }
.footer-brand p { margin: 0 0 6px; font-size: 0.92rem; }
.footer-brand a { color: #C9D4E3; }
.footer-brand a:hover { color: var(--orange); }
.footer-links h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.6px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.92rem; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Floating WhatsApp Button ---------- */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 600;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.9rem;
}
.floating-whatsapp:hover { background: var(--whatsapp-dark); }
.floating-whatsapp .icon-svg { width: 20px; height: 20px; }

/* ---------- Mobile Bottom Navigation ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  height: var(--bottom-nav-height);
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  box-shadow: 0 -2px 12px rgba(11, 37, 69, 0.1);
  align-items: stretch;
  justify-content: space-between;
  padding: 6px 4px;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--grey);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav-item.active { color: var(--orange); }

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */
@media (max-width: 700px) {
  :root { --header-height: 64px; }

  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  section { padding: 48px 0; }
  .section-heading { margin-bottom: 28px; }

  .hero { padding: 36px 0 48px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .service-card img { height: 180px; }

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

  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Show fixed mobile UI */
  .bottom-nav { display: flex; }
  .floating-whatsapp { right: 16px; bottom: calc(var(--bottom-nav-height) + 16px); }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { padding: 14px; border-radius: 50%; }

  /* Prevent bottom nav from covering content */
  body { padding-bottom: var(--bottom-nav-height); }
}

@media (min-width: 701px) {
  .bottom-nav { display: none !important; }
}
