/* Global reset & typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #545454;
  background: #ffffff;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #4B548B;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  flex: 1;
}

/* Layout wrapper */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  min-height: 140px;
}

.logo {
  height: 88px;
  width: auto;
  display: block;
}

/* Navigation */
nav a {
  margin: 0 10px;
  color: #545454;
  font-weight: 500;
}

nav a.active {
  color: #4B548B;
  font-weight: 600;
}

/* Generic hero (used on home, etc.) */
.hero {
  background: linear-gradient(90deg, #4B548B 0%, #3f467f 100%);
  color: #ffffff;
  padding: 80px 0;
}

.hero .title {
  font-size: 40px;
  margin: 0 0 8px;
}

.hero p {
  font-size: 18px;
  max-width: 840px;
  opacity: 0.95;
}

/* Sections & cards */
.section {
  padding: 40px 0;
}

.section h2 {
  color: #4B548B;
  margin: 0 0 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid #eeeeee;
  border-radius: 12px;
  padding: 18px;
  background: #ffffff;
}

.card h3,
.card h2 {
  margin: 0 0 6px;
  color: #4B548B;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #4B548B;
  color: #ffffff;
  background: #4B548B;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.96;
}

/* Forms (used on contact/CTA) */
form.confidential {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

form.confidential input,
form.confidential textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
}

form.confidential button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #4B548B;
  background: #4B548B;
  color: #ffffff;
}

.small-note,
.small {
  font-size: 12px;
  color: #6b7280;
}

/* Footer (shared across all pages) */
footer {
  border-top: 2px solid #4B548B;
  background: #ffffff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-icon,
.mono {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.footer-title {
  font-weight: 700;
}

.footer-tagline {
  opacity: 0.85;
}

.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-abn,
.footer-copy {
  font-size: 12px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .logo {
    height: 72px;
  }
  .hero {
    padding: 60px 0;
  }
  .hero .title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  nav a {
    margin: 0 6px 0 0;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* === Imported from index.html inline styles for global consistency === */

    html, body { height: 100%; }
    body { min-height: 100vh; display: flex; flex-direction: column; }
    main { flex: 1; }
    /* Contained CTA bar */
    .cta-wrap { background: #0f1220; border: 1px solid #13162a; border-radius: 12px; padding: 1rem; }
    .cta-row { max-width: 1100px; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
    .btn-mail { display:inline-block; padding: .75rem 1.1rem; border-radius: .75rem; border: 1px solid #2a2f48; text-decoration:none; }
    .btn-mail:hover { background:#141a2d; }
    /* Keep brand/logo sizing if used */
    img.brand-logo { height: 58px; width: auto; }
    @media (min-width: 900px){ img.brand-logo { height: 64px; } }
    /* Footer simple and consistent */
    .footer-inner { max-width:1100px; margin:0 auto; padding: 1.5rem 1rem; text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:center; }
    .footer-inner .small { opacity:.9 }
  


@media (max-width: 640px){
  .wrap{ padding-left:16px; padding-right:16px; }
  img.logo{ margin-left:8px; }
  footer .footer-grid{ flex-direction:column; align-items:center; text-align:center; gap:10px; padding:16px 0; }
  footer .footer-left{ gap:8px; flex-direction:column; align-items:center; }
  footer .footer-left .footer-icon{ width:28px; height:28px; }
  footer .footer-title{ font-size:1rem; }
  footer .footer-tagline{ font-size:0.95rem; }
  footer .footer-right{ text-align:center; align-items:center; font-size:0.95rem; gap:4px; }
  footer .footer-abn{ font-weight:600; display:block; text-align:center; }
}



/* ===== v4 Mobile-only footer layout ===== */
@media (max-width: 640px){
  /* Row 1: icon + stacked title/tagline (left-aligned). Row 2: centered ABN + copyright (small) */
  footer .footer-grid{ width:100%; padding:16px 0; }
  footer .footer-left{ 
    display:flex; flex-direction:row; align-items:center; gap:10px;
    width:100%; justify-content:flex-start; text-align:left;
  }
  footer .footer-left .footer-icon{ width:28px; height:28px; }
  footer .footer-left .footer-title{ font-size:1rem; line-height:1.2; }
  footer .footer-left .footer-tagline{ font-size:0.95rem; opacity:.9; line-height:1.2; }

  footer .footer-right{ 
    width:100%;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center; gap:2px; margin-top:8px; font-size:0.9rem;
  }
  footer .footer-abn, footer .footer-copy{ margin:0; }
}



@media (max-width: 640px){
  /* Footer first row: center align icon + text */
  footer .footer-left{ 
    flex-direction:row; 
    justify-content:center; 
    align-items:center; 
    text-align:center;
    width:100%;
    gap:10px;
  }
  footer .footer-left .footer-icon{ width:26px; height:26px; }
  footer .footer-left .footer-title{ font-size:0.95rem; }
  footer .footer-left .footer-tagline{ font-size:0.9rem; opacity:0.85; }

  /* Footer ABN + copyright smaller and centered */
  footer .footer-right{
    font-size:0.8rem;
    gap:2px;
  }
  footer .footer-abn, footer .footer-copy{
    font-size:0.8rem;
    opacity:0.85;
  }
}

