/* ==========================================================================
   Berry Light BB Ltd - Site Stylesheet
   ========================================================================== */

:root {
  --primary: #0B5FA5;
  --primary-dark: #08406F;
  --accent: #E2711D;
  --heading: #0B2C4D;
  --text: #3B4756;
  --text-light: #6B7785;
  --bg: #FFFFFF;
  --bg-secondary: #F4F6F8;
  --bg-footer: #0B2C4D;
  --border: #E2E6EA;
  --success: #1F8A4C;
  --ongoing: #C9760B;
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --container-width: 1180px;
  --shadow: 0 6px 24px rgba(11, 44, 77, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 44, 77, 0.14);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 12px; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
svg { width: 22px; height: 22px; stroke: currentColor; }

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

main section { padding: 84px 0; }
main section.section-tight { padding: 48px 0; }
.bg-secondary { background: var(--bg-secondary); }
.bg-footer { background: var(--bg-footer); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.lede { font-size: 1.1rem; color: var(--text-light); max-width: 640px; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-head);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); color: var(--heading); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand-name { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: 1rem; }
.brand-tag { font-size: 0.72rem; color: var(--text-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.nav-links > a {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text);
  padding: 8px 2px;
  position: relative;
}
.nav-links > a:hover,
.nav-links > a.active,
.nav-links .dropdown > a:hover,
.nav-links .dropdown > a.active { color: var(--primary); }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.dropdown:hover .dropdown-panel,
.dropdown.open .dropdown-panel { display: flex; }
.dropdown-panel a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.dropdown-panel a:hover { background: var(--bg-secondary); color: var(--primary); }
.dropdown-panel a small { color: var(--text-light); font-size: 0.76rem; font-weight: 400; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--heading);
  transition: all 0.2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 90px; background: linear-gradient(180deg, var(--bg-secondary) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 40px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat b { font-family: var(--font-head); font-size: 1.5rem; color: var(--heading); }
.hero-stat span { font-size: 0.8rem; color: var(--text-light); }

.hero-page { padding: 56px 0 60px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Image frames ---------- */
.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: var(--ar, 4/3);
  box-shadow: var(--shadow);
}
.img-frame.thumb { aspect-ratio: 4/3; box-shadow: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.frame-photo { width: 100%; height: 100%; object-fit: cover; }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--primary); opacity: 0.9; }
.c-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.c-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.c-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.c-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* ---------- Grid / two-col ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.reverse { grid-template-columns: 1fr 1fr; }
.two-col.reverse > *:first-child { order: 1; }
.two-col.reverse > *:last-child { order: 2; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(11, 95, 165, 0.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .body { padding: 22px; }
.service-card .link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text);
}
.check-list svg { flex-shrink: 0; color: var(--success); width: 20px; height: 20px; margin-top: 2px; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--heading); border-radius: var(--radius); padding: 44px 30px; }
.stat-item { text-align: center; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.stat-item b { font-family: var(--font-head); font-size: 2rem; }
.stat-item span { font-size: 0.85rem; color: rgba(255,255,255,.7); }

/* ---------- Logo row ---------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.logo-chip {
  padding: 14px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand p { color: rgba(255,255,255,.6); font-size: 0.9rem; margin-top: 16px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a, .footer-col li {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
}
.contact-info-card .row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.contact-info-card .row:last-child { margin-bottom: 0; }
.contact-info-card .ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(11, 95, 165, 0.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-card h4 { margin-bottom: 2px; font-size: 0.95rem; }
.contact-info-card p { margin: 0; font-size: 0.9rem; color: var(--text-light); }
.hours-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 0.88rem; }
.hours-list li:last-child { border-bottom: none; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--text-light); margin: 12px 0 0; text-align: center; }

/* ---------- About page ---------- */
.policy-block { padding: 28px 0; border-bottom: 1px solid var(--border); }
.policy-block:last-child { border-bottom: none; }
.policy-block h3 { display: flex; align-items: center; gap: 12px; }
.policy-block svg { color: var(--primary); flex-shrink: 0; }

/* ---------- Gallery / lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery .img-frame { cursor: pointer; aspect-ratio: 4/3; }
.gallery .img-frame:hover .frame-photo { transform: scale(1.04); }
.gallery .frame-photo { transition: transform 0.3s ease; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 33, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-box { max-width: 720px; width: 100%; }
.lightbox-box .img-frame { aspect-ratio: 4/3; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 16px; font-size: 0.92rem; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ---------- Projects page ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.project-card .top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(11, 95, 165, 0.1);
  padding: 5px 11px;
  border-radius: 999px;
}
.badge { font-size: 0.72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.badge-completed { color: var(--success); background: rgba(31, 138, 76, 0.12); }
.badge-ongoing { color: var(--ongoing); background: rgba(201, 118, 11, 0.12); }
.project-card .meta { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-light); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .two-col, .two-col.reverse, .contact-grid { grid-template-columns: 1fr; }
  .two-col.reverse > *:first-child { order: 2; }
  .two-col.reverse > *:last-child { order: 1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .dropdown { width: 100%; }
  .dropdown-panel {
    position: static;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 14px;
    width: 100%;
  }
  .dropdown.open .dropdown-panel { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-sm { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}
