/* Perna Engineering - perna.onhost.com.au */
:root {
  --blue: #025db2;
  --blue-dark: #0147a3;
  --blue-light: #1a75cc;
  --topbar: #014fa0;
  --dark: #1a1f2e;
  --dark-mid: #2b3040;
  --text: #54595f;
  --text-light: #7a7a7a;
  --white: #ffffff;
  --off-white: #f5f7f9;
  --border: #e0e5ea;
  --font-head: 'Barlow', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--dark); }

/* ── TOP BAR ── */
.top-bar {
  background: var(--topbar);
  padding: 7px 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }
.top-bar-contact { display: flex; gap: 24px; align-items: center; }
.top-bar-contact span { display: flex; align-items: center; gap: 6px; }
.top-bar-contact svg { width: 13px; height: 13px; opacity: 0.7; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo img { height: 52px; width: auto; }

/* NAV */
.site-nav { display: flex; align-items: center; }
.site-nav > ul { list-style: none; display: flex; gap: 2px; align-items: center; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li.active > a {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* DROPDOWN */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-top: 3px solid var(--blue);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  list-style: none;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
  background: transparent;
}
.site-nav > ul > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font-head);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { color: var(--blue); background: var(--off-white); }

/* HAMBURGER */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.25s; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 520px;
  background: #1a1f2e center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,51,102,0.72) 0%, rgba(2,51,102,0.35) 55%, rgba(2,51,102,0.05) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.hero-content-inner { max-width: 600px; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.95); }
.hero h1 span { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.95); -webkit-text-stroke: 0.5px rgba(100,180,255,0.5); }
.hero p { color: #fff; font-size: 17px; font-weight: 500; margin-bottom: 30px; max-width: 500px; text-shadow: 0 1px 6px rgba(0,0,0,0.85); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 4px;
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.2s; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.btn-blue-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-blue-outline:hover { background: var(--blue); color: #fff; }

/* ── SERVICE LOGO BAR ── */
.service-logo-bar {
  background: #fff;
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.service-logo-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.service-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
  text-decoration: none;
}
.service-logo-item:last-child { border-right: none; }
.service-logo-item:hover { background: var(--off-white); }
.service-logo-item img { height: 42px; width: auto; max-width: 160px; object-fit: contain; }

/* ── SECTIONS ── */
.section { padding: 80px 24px; }
.section-sm { padding: 50px 24px; }
.section-dark { background: var(--dark); }
.section-mid { background: var(--dark-mid); }
.section-light { background: var(--off-white); }
.container { max-width: 1200px; margin: 0 auto; }

.section-label { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; display: block; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.section-title.light { color: #fff; }
.section-lead { font-size: 17px; color: var(--text-light); max-width: 640px; margin-bottom: 48px; }
.section-lead.light { color: rgba(255,255,255,0.7); }

/* TWO COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child { order: 1; }
.two-col-img { border-radius: 6px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.15); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--dark-mid); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; padding: 36px 30px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 14px;
}
.service-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.service-card-icon { width: 48px; height: 48px; background: rgba(2,93,178,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #025db2; }
.service-card-icon svg { width: 26px; height: 26px; }
.service-card h3 { color: #fff; font-size: 18px; font-weight: 700; }
.service-card p { color: rgba(255,255,255,0.65); font-size: 14.5px; line-height: 1.65; flex: 1; }
.service-card a.card-link { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #025db2; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.service-card a.card-link:hover { color: #fff; }

/* INDUSTRIES GRID */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry-card { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: flex-end; }
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.industry-card:hover img { transform: scale(1.04); }
.industry-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,30,70,0.88) 0%, rgba(2,30,70,0.2) 60%); z-index: 1; }
.industry-card-body { position: relative; z-index: 2; padding: 24px; width: 100%; }
.industry-card-body h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.industry-card-body p { color: rgba(255,255,255,0.75); font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; }
.industry-card-body a { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #025db2; }

/* STATS BAR */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--blue); }
.stat-item { padding: 40px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat-item .label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.06em; }

/* CTA STRIP */
.cta-strip { background: var(--blue); padding: 56px 24px; text-align: center; }
.cta-strip h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 16px; }

/* PROJECTS GRID */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { border-radius: 6px; overflow: hidden; background: var(--dark-mid); border: 1px solid rgba(255,255,255,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.28); }
.project-card-img { aspect-ratio: 16/9; overflow: hidden; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card-body { padding: 22px; }
.project-card-body h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.project-card-body p { color: rgba(255,255,255,0.6); font-size: 13.5px; line-height: 1.6; }

/* PAGE HERO */
.page-hero { background: var(--blue); padding: 80px 24px 72px; position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero::before { content: ''; position: absolute; top: 0; right: 0; width: 40%; height: 100%; background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.05) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 12px; font-family: var(--font-head); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 14px; text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.9); }
.page-hero p { color: #fff; font-size: 17px; max-width: 600px; margin-top: 14px; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }

/* CONTENT PAGE */
.page-content { padding: 64px 24px; }
.page-content .container { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.page-content.no-sidebar .container { grid-template-columns: 1fr; max-width: 840px; }
.page-body h2 { font-size: 1.6rem; margin: 36px 0 14px; color: var(--dark); }
.page-body h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--dark); }
.page-body h4 { font-size: 1rem; margin: 20px 0 8px; color: var(--dark); font-weight: 700; }
.page-body p { margin-bottom: 18px; }
.page-body ul, .page-body ol { padding-left: 22px; margin-bottom: 18px; }
.page-body li { margin-bottom: 6px; }
.page-body blockquote { border-left: 3px solid var(--blue); padding: 14px 20px; margin: 24px 0; background: var(--off-white); font-style: italic; color: var(--text-light); }
.page-body strong { color: var(--dark); }

/* SIDEBAR */
.page-sidebar .sidebar-box { background: var(--off-white); border-radius: 6px; padding: 28px; margin-bottom: 24px; }
.page-sidebar .sidebar-box h4 { font-size: 12px; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.page-sidebar .sidebar-nav { list-style: none; }
.page-sidebar .sidebar-nav li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 14px; transition: color 0.15s, padding-left 0.15s; }
.page-sidebar .sidebar-nav li:last-child a { border-bottom: none; }
.page-sidebar .sidebar-nav li a:hover { color: var(--blue); padding-left: 6px; }
.page-sidebar .sidebar-nav li.active a { color: var(--blue); font-weight: 600; }
.sidebar-contact-box { background: var(--blue); border-radius: 6px; padding: 28px; color: rgba(255,255,255,0.85); }
.sidebar-contact-box h4 { color: rgba(255,255,255,0.6) !important; margin-bottom: 16px !important; }
.sidebar-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 13.5px; }
.sidebar-contact-item svg { width: 16px; height: 16px; color: rgba(255,255,255,0.7); flex-shrink: 0; margin-top: 2px; }
.sidebar-contact-item a { color: rgba(255,255,255,0.85); }
.sidebar-contact-item a:hover { color: #fff; }

/* GALLERY GRID */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; cursor: zoom-in; transition: transform 0.2s, opacity 0.2s; }
.gallery-grid img:hover { transform: scale(1.02); opacity: 0.9; }

/* CONTACT PAGE */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-info-icon { width: 44px; height: 44px; background: rgba(2,93,178,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); }
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-text strong { display: block; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 3px; }
.contact-info-text a, .contact-info-text p { color: var(--text); font-size: 15px; }
.contact-info-text a:hover { color: var(--blue); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 12px; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 4px; font-family: var(--font-body); font-size: 14.5px; color: var(--text); background: #fff; transition: border-color 0.2s; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-form textarea { height: 130px; resize: vertical; }

/* VALUES GRID */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.value-card { padding: 36px 28px; border: 1px solid var(--border); border-radius: 6px; position: relative; overflow: hidden; }
.value-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); }
.value-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--dark); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.value-card ul { list-style: none; padding: 0; }
.value-card ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); display: flex; align-items: flex-start; gap: 8px; }
.value-card ul li:last-child { border-bottom: none; }
.value-card ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 7px; }

/* ── FOOTER ── */
.site-footer { background: #0a1628; color: rgba(255,255,255,0.65); padding: 60px 24px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 48px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #025db2; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 13.5px; transition: color 0.15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 13.5px; }
.footer-contact li svg { width: 14px; height: 14px; color: #025db2; flex-shrink: 0; margin-top: 3px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255,255,255,0.3); }

/* ── MOBILE ── */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .page-content .container { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .service-logo-bar-inner { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-nav > ul { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--blue-dark); padding: 12px 0; z-index: 999; }
  .site-nav > ul.open { display: flex; }
  .site-nav > ul > li > a { padding: 12px 24px; border-radius: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; background: rgba(0,0,0,0.15); border-radius: 0; }
  .dropdown li a { color: rgba(255,255,255,0.8); border-bottom-color: rgba(255,255,255,0.1); }
  .dropdown li a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .service-logo-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .top-bar-inner { flex-direction: column; gap: 4px; text-align: center; }
}
