/* =========================================================
   Sun Shine — Group of Companies — design system
   Industrial finishing aesthetic: deep graphite with a warm
   "sunshine" amber accent, strong clean headings.
   ========================================================= */

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

:root {
  --color-primary: #171d28;       /* deep graphite */
  --color-primary-dark: #0c1017;
  --color-accent: #f4a125;        /* sunshine amber */
  --color-accent-dark: #d4860f;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f7;
  --color-text: #22262e;
  --color-text-light: #656d78;
  --color-border: #e2e5ea;
  --container-width: 1240px;
  --font-display: "Manrope", Arial, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.68;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  line-height: 1.22;
  margin: 0 0 16px;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 18px; }
.lede { font-size: 1.1rem; color: var(--color-text-light); max-width: 780px; }

.eyebrow {
  display: inline-block; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--color-accent-dark);
  margin-bottom: 10px;
}

.crumb { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 6px; }
.crumb a { color: var(--color-text-light); }
.crumb a:hover { color: var(--color-accent-dark); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------------- Buttons ---------------- */
.button {
  display: inline-block; background: var(--color-accent); color: var(--color-primary-dark);
  padding: 13px 28px; border-radius: 3px; font-weight: 700; font-family: var(--font-display);
  font-size: 0.98rem; border: none; cursor: pointer;
}
.button:hover { background: var(--color-accent-dark); color: #fff; }
.button.outline { background: transparent; border: 2px solid #fff; color: #fff; }
.button.outline:hover { background: #fff; color: var(--color-primary-dark); }
.button.outline-dark { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.button.outline-dark:hover { background: var(--color-primary); color: #fff; }

/* ---------------- Top bar ---------------- */
.top-bar { background: var(--color-primary-dark); color: #b8bfc9; font-size: 0.85rem; }
.top-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 8px 24px; }
.top-bar a { color: #b8bfc9; }
.top-bar a:hover { color: #fff; }
@media (max-width: 780px) { .top-bar { display: none; } }

/* ---------------- Header / nav ---------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; gap: 20px; }
.site-logo img { height: 54px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block; color: var(--color-primary-dark); font-weight: 700; font-family: var(--font-display);
  font-size: 0.92rem; padding: 10px 13px; border-radius: 2px;
}
.main-nav > ul > li > a:hover, .main-nav a[aria-current="page"] { color: var(--color-accent-dark); }

.main-nav .has-sub { position: relative; }
.main-nav .sub-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--color-border); border-radius: 4px;
  min-width: 240px; box-shadow: 0 12px 28px rgba(12,16,23,0.14);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s;
  max-height: 70vh; overflow-y: auto;
}
.main-nav .has-sub:hover .sub-menu, .main-nav .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { padding: 9px 12px; font-size: 0.87rem; font-weight: 600; font-family: var(--font-body); }
.main-nav .sub-menu a:hover { background: var(--color-bg-alt); }

.nav-cta { margin-left: 6px; }
.menu-toggle { display: none; background: none; border: 2px solid var(--color-primary); border-radius: 4px; padding: 8px 10px; font-size: 1.1rem; cursor: pointer; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav-cta.desktop-only { display: none; }
  .main-nav { display: none; width: 100%; border-top: 1px solid var(--color-border); padding-top: 10px; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 14px; display: none; max-height: none; }
  .main-nav .has-sub.is-open .sub-menu { display: block; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--color-border); }
  .site-header .container { flex-wrap: wrap; }
  .nav-cta.mobile-only { display: block; margin: 12px 0 4px; }
}
@media (min-width: 1081px) { .nav-cta.mobile-only { display: none; } }

/* ---------------- Homepage hero ---------------- */
.home-hero { position: relative; min-height: 460px; display: flex; align-items: center; background: var(--color-primary-dark); overflow: hidden; }
.home-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 85% 15%, rgba(244,161,37,0.14), transparent 45%), linear-gradient(100deg, rgba(12,16,23,0.93) 30%, rgba(12,16,23,0.72) 100%);
}
.home-hero .container { position: relative; z-index: 2; padding: 70px 24px; text-align: center; }
.home-hero h1 { color: #fff; max-width: 820px; margin: 0 auto 14px; }
.home-hero h2 { color: var(--color-accent); font-size: 1.15rem; font-weight: 600; margin-bottom: 26px; }
.home-hero .hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Page hero banner */
.page-hero { background: var(--color-bg-alt); padding: 34px 0; border-bottom: 1px solid var(--color-border); }
.page-hero h1 { margin: 0; }

/* Service page: description (65-70%) + image (30-35%) below the hero */
.split-content { display: grid; grid-template-columns: 2.1fr 1fr; gap: 40px; align-items: start; }
.split-content img { border-radius: 8px; position: sticky; top: 110px; }
@media (max-width: 820px) { .split-content { grid-template-columns: 1fr; } .split-content img { position: static; } }

/* Service page hero without an image — plain dark banner */
.service-hero.no-image { min-height: 200px; align-items: center; }
.service-hero.no-image::after { display: none; }
.service-hero.no-image .container { padding-bottom: 0; }
.service-hero { position: relative; min-height: 280px; display: flex; align-items: flex-end; overflow: hidden; background: var(--color-primary-dark); }
.service-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.5; }
.service-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,16,23,0.95) 10%, rgba(12,16,23,0.4) 80%); z-index: 0; }
.service-hero .container { position: relative; z-index: 1; padding-bottom: 34px; }
.service-hero h1 { color: #fff; margin: 0 0 6px; }
.service-hero .crumb { color: #c7cdd6; }
.service-hero .crumb a { color: #c7cdd6; }
.service-hero .crumb a:hover { color: #fff; }

/* Sections */
.section { padding: 68px 0; }
.section.alt { background: var(--color-bg-alt); }
.section.dark { background: var(--color-primary-dark); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #c7cdd6; }
.section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; max-width: 100%; }

/* Full-width text sections with no image: use a genuine 2-column text
   layout so the content actually fills the wide container, instead of
   one narrow paragraph column leaving visible space beside it. */
.text-columns { columns: 2; column-gap: 48px; margin-top: 18px; }
.text-columns p { break-inside: avoid; }
@media (max-width: 760px) { .text-columns { columns: 1; } }

/* Excellence / values icon grid (homepage) */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 28px 20px; text-align: center; }
.value-card img { width: 56px; height: 56px; margin: 0 auto 16px; }
.value-card h3 { font-size: 1rem; margin-bottom: 6px; }
.value-card p { color: var(--color-text-light); font-size: 0.92rem; margin: 0; }

/* Services teaser / hub grid */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3/2; display: block; background: var(--color-bg-alt); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.service-card:hover img { transform: scale(1.07); }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,16,23,0.88) 20%, rgba(12,16,23,0.05) 65%); }
.service-card .label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px 14px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }

/* Numbered lists (benefits / process / applications / why choose us) */
.numbered-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 700px) { .numbered-grid { grid-template-columns: 1fr; } }
.numbered-card { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 22px 24px; display: flex; gap: 16px; }
.numbered-card .num {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--color-accent);
  color: var(--color-primary-dark); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.numbered-card h3 { font-size: 1rem; margin-bottom: 4px; }
.numbered-card p { color: var(--color-text-light); font-size: 0.93rem; margin: 0; }

/* Industries grid */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
.industry-card { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 30px 20px; text-align: center; }
.industry-card .icon-badge {
  width: 80px; height: 80px; border-radius: 50%; background: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.industry-card .icon-badge img { width: 40px; height: 40px; margin: 0; filter: brightness(0) invert(1); }
.industry-card h3 { font-size: 1.02rem; margin: 0; }

/* Certification grid */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-card { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; text-align: center; }
.cert-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; cursor: zoom-in; }
.cert-card h3 { padding: 16px; margin: 0; font-size: 1rem; }

/* Colour chart / data sheet docs */
.doc-list { display: grid; gap: 14px; max-width: 640px; }
.doc-list a {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--color-border);
  border-radius: 8px; padding: 16px 20px; font-weight: 600; color: var(--color-primary-dark);
}
.doc-list a:hover { border-color: var(--color-accent); }
.doc-list svg { flex: 0 0 auto; width: 22px; height: 22px; stroke: var(--color-accent-dark); }

/* Lightbox (certification images) */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(12,16,23,0.94); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 6px 10px; }

/* Quick Enquiry form (service pages) */
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 32px; max-width: 640px; margin: 0 auto; }
.form-card.wide { max-width: none; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-card label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.88rem; }
.form-card input, .form-card textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--color-border); border-radius: 4px;
  font-family: inherit; font-size: 0.95rem; background: var(--color-bg-alt);
}
.form-card .full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact page — branch cards */
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .branch-grid { grid-template-columns: 1fr; } }
.branch-card { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.branch-card iframe { width: 100%; height: 240px; border: 0; display: block; }
.branch-card .branch-body { padding: 22px; }
.branch-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.branch-block { margin-bottom: 14px; }
.branch-block .label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-accent-dark); font-weight: 700; margin-bottom: 4px; }
.branch-block p { margin: 0; color: var(--color-text-light); }

/* CTA band */
.cta-band { background: var(--color-primary-dark); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7cdd6; max-width: 600px; margin: 0 auto 24px; }

/* Footer */
.site-footer { background: var(--color-primary-dark); color: #b8bfc9; padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.7fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.site-footer .footer-logo img { height: 46px; margin-bottom: 14px; }
.site-footer p { color: #909aa6; font-size: 0.92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 9px; font-size: 0.93rem; }
.footer-services-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.footer-services-cols li { font-size: 0.85rem; line-height: 1.35; margin-bottom: 12px; }
@media (max-width: 480px) { .footer-services-cols { grid-template-columns: 1fr; } }
.site-footer a { color: #b8bfc9; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--color-accent); border-color: var(--color-accent); }
.footer-social svg { width: 15px; height: 15px; fill: #fff; }
.footer-bottom { padding: 18px 0; text-align: center; font-size: 0.85rem; color: #7a828d; }
.footer-bottom a { color: #b8bfc9; text-decoration: underline; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
