/* ============================================================
   BC ENGINEERING WORKS - Public site styles
   Theme: industrial navy + machine blue (matches brand banner)
   ============================================================ */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1e88e5;
  --sky: #38b6ff;
  --steel: #8da2b5;
  --light: #f2f6fa;
  --white: #ffffff;
  --dark: #10151c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #23303e; background: var(--white); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Rajdhani', sans-serif; color: var(--navy); line-height: 1.15; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Topbar / Header ---------- */
.topbar { background: var(--navy); color: #cfe3f7; font-size: .82rem; padding: 7px 0; }
.topbar a { color: #cfe3f7; }
.topbar-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar i { color: var(--sky); margin-right: 4px; }

.site-header { background: var(--white); position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 14px rgba(11,37,69,.08); }
.header-in { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-family: 'Rajdhani'; font-weight: 700; font-size: 1.45rem; letter-spacing: 1px; }
.brand-text strong { display: block; font-family: 'Rajdhani'; font-size: 1.22rem; color: var(--navy); letter-spacing: .5px; }
.brand-text small { color: var(--blue); font-size: .68rem; letter-spacing: 1.6px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-weight: 600; font-size: .93rem; color: #33465c; padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 8px; font-weight: 600; font-size: .95rem; cursor: pointer; border: 0; transition: .25s; }
.btn-primary { background: linear-gradient(120deg, var(--blue), var(--sky)); color: #fff; box-shadow: 0 6px 18px rgba(30,136,229,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,136,229,.45); }
.btn-outline { border: 2px solid var(--sky); color: var(--sky); background: transparent; }
.btn-outline:hover { background: var(--sky); color: var(--navy); }
.btn-nav { background: var(--navy); color: #fff !important; padding: 9px 20px; border-radius: 8px; border-bottom: 0 !important; }
.btn-nav:hover { background: var(--blue); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1100px 500px at 85% 10%, #1b4c8c 0%, transparent 55%), linear-gradient(115deg, var(--navy) 30%, var(--navy-2) 100%); color: #eaf3fc; padding: 90px 0 110px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E"); }
.hero-in { position: relative; z-index: 2; max-width: 720px; }
.hero .kicker { color: var(--sky); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: .8rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 12px 0 18px; text-transform: uppercase; }
.hero h1 span { color: var(--sky); }
.hero p { color: #b9cde2; font-size: 1.05rem; max-width: 560px; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats b { font-family: 'Rajdhani'; font-size: 2rem; color: var(--sky); display: block; }
.hero-stats span { font-size: .82rem; color: #9fb8d2; }

/* ---------- Hero Slider (admin-managed) ---------- */
.hero-slider { position: relative; height: clamp(380px, 55vw, 560px); overflow: hidden; background: var(--navy); }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slider .slide.on { opacity: 1; pointer-events: auto; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,22,42,.82) 0%, rgba(8,22,42,.45) 55%, rgba(8,22,42,.15) 100%); }
.slide-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; z-index: 2; left: 0; right: 0; margin: 0 auto; }
.slide-content h2 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 3.1rem); text-transform: uppercase; max-width: 620px; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.slide-content p { color: #dbe9f8; font-size: clamp(.9rem, 1.6vw, 1.08rem); max-width: 520px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.14); color: #fff; font-size: 1.1rem; backdrop-filter: blur(4px); transition: .25s; }
.slide-nav:hover { background: var(--blue); }
.slide-nav.prev { left: 18px; }
.slide-nav.next { right: 18px; }
.slide-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; z-index: 5; }
.slide-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.45); transition: .25s; padding: 0; }
.slide-dots button.on { background: var(--sky); width: 26px; border-radius: 6px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--light); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.sec-head .kicker { color: var(--blue); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: .78rem; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 8px; text-transform: uppercase; }
.sec-head p { color: #5a6c7f; margin-top: 10px; }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: -55px; position: relative; z-index: 5; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--sky); }
.feature i { font-size: 1.6rem; color: var(--blue); margin-bottom: 10px; }
.feature h4 { font-size: .98rem; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.svc-card { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border: 1px solid #e6eef6; display: flex; flex-direction: column; transition: .25s; }
.svc-card:hover { transform: translateY(-6px); border-color: var(--sky); }
.svc-icon { width: 58px; height: 58px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: 14px; color: #fff; font-size: 1.4rem; margin-bottom: 18px; }
.svc-photo { position: relative; width: calc(100% + 52px); margin: -30px -26px 18px; height: 200px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: linear-gradient(135deg, #dfe9f3, #f0f5fa); display: grid; place-items: center; color: var(--steel); }
.svc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,37,69,.45)); opacity: 0; transition: .35s; pointer-events: none; }
.svc-photo::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--sky)); z-index: 2; transform: scaleX(0); transform-origin: left; transition: .35s; }
.svc-card:hover .svc-photo::after { opacity: 1; }
.svc-card:hover .svc-photo::before { transform: scaleX(1); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.svc-card:hover .svc-photo img { transform: scale(1.08); }
.svc-photo i { font-size: 2.6rem; color: var(--blue); }
.svc-card:hover { box-shadow: 0 18px 40px rgba(11,37,69,.18); }
.svc-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.svc-card p { color: #5a6c7f; font-size: .93rem; flex: 1; }
.svc-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.svc-actions .btn { padding: 9px 18px; font-size: .85rem; }
.btn-enq { background: var(--navy); color: #fff; }
.btn-enq:hover { background: var(--blue); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.about-visual { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: var(--radius); color: #fff; padding: 40px; position: relative; overflow: hidden; }
.about-visual .big-gear { position: absolute; right: -30px; bottom: -30px; font-size: 9rem; color: rgba(56,182,255,.12); }
.about-visual h3 { color: var(--sky); font-size: 1.5rem; }
.about-visual ul { list-style: none; margin-top: 18px; }
.about-visual li { padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.14); font-size: .93rem; color: #cfe0f2; }
.about-visual li i { color: var(--sky); margin-right: 8px; }
.check-list { list-style: none; margin-top: 18px; }
.check-list li { padding: 7px 0; color: #40536a; }
.check-list i { color: var(--blue); margin-right: 8px; }

/* ---------- Gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gal-item { border-radius: var(--radius); overflow: hidden; position: relative; background: linear-gradient(135deg, #d7e3ef, #f0f5fa); aspect-ratio: 4/3; display: grid; place-items: center; box-shadow: var(--shadow); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.gal-item:hover img { transform: scale(1.06); }
.gal-cap { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(11,37,69,.85)); color: #fff; padding: 26px 14px 12px; font-size: .85rem; font-weight: 600; }
.gal-placeholder { text-align: center; color: var(--steel); padding: 20px; }
.gal-placeholder i { font-size: 2.4rem; display: block; margin-bottom: 10px; color: var(--blue); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.info-card { background: var(--navy); color: #d9e8f7; border-radius: var(--radius); padding: 34px; }
.info-card h3 { color: #fff; margin-bottom: 16px; }
.info-card li { list-style: none; display: flex; gap: 12px; padding: 10px 0; font-size: .95rem; align-items: flex-start; }
.info-card i { color: var(--sky); margin-top: 4px; }
.info-card a { color: #d9e8f7; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; border: 1px solid #e6eef6; }
.form-card h3 { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #d6e2ee; border-radius: 8px; font: inherit; background: #fbfdff; transition: .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56,182,255,.15); }
textarea { margin-bottom: 14px; resize: vertical; }
.form-msg { margin-top: 12px; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: #189a52; }
.form-msg.err { color: #d43737; }
iframe.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 40px; box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--navy)); border-radius: var(--radius); color: #fff; padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.8rem; }
.cta-band p { color: #cfe4f8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #9db1c5; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; padding: 60px 0 40px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; letter-spacing: 1px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; font-size: .92rem; }
.site-footer a:hover { color: var(--sky); }
.contact-list i { color: var(--sky); margin-right: 8px; }
.gst-line { margin-top: 10px; font-size: .85rem; color: var(--sky); }
.footer-bottom { border-top: 1px solid #24303d; padding: 16px 0; font-size: .82rem; text-align: center; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: .25s; }
.wa-float:hover { transform: scale(1.1); }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(8,20,35,.72); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; padding: 32px; position: relative; animation: pop .25s ease; max-height: 92vh; overflow: auto; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 1.8rem; color: #8aa0b5; cursor: pointer; }
.modal-box h3 { font-size: 1.4rem; }
.modal-sub { color: var(--blue); font-weight: 600; font-size: .9rem; margin: 4px 0 18px; }

/* ---------- Page banner ---------- */
.page-banner { background: linear-gradient(115deg, var(--navy), var(--navy-2)); color: #fff; padding: 60px 0; text-align: center; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); text-transform: uppercase; }
.page-banner p { color: #9fb8d2; font-size: .9rem; margin-top: 6px; }
.page-banner a { color: var(--sky); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 18px 5%; gap: 14px; box-shadow: 0 14px 24px rgba(11,37,69,.14); }
  .main-nav.open { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 90px; }
}
