/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Fonts ===== */
@font-face { font-family: 'Lulo Clean'; src: url('Assets/fonts/lulo-clean-w01-one-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN Next'; src: url('Assets/fonts/din-next-w01-light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Avenir Light'; src: url('Assets/fonts/avenir-lt-w01_35-light1475496.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Helvetica Bold'; src: url('Assets/fonts/helvetica-w01-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Helvetica Light'; src: url('Assets/fonts/helvetica-w01-light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('Assets/fonts/proxima-n-w01-reg.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* ===== Custom Properties ===== */
:root {
  --color-primary: #000000;
  --color-teal: #317F81;
  --color-teal-light: #57BBbf;
  --color-teal-dark: #296569;
  --color-white: #ffffff;
  --color-gray-light: #b0b0b0;
  --color-gray: #a0a09f;
  --color-gray-dark: #605e5e;
  --color-bg-footer: #57bbbf;
  --font-heading: 'Lulo Clean', sans-serif;
  --font-menu: 'DIN Next', sans-serif;
  --font-body: 'Avenir Light', sans-serif;
  --font-service-title: 'Helvetica Bold', sans-serif;
  --font-service-desc: 'Helvetica Light', sans-serif;
  --font-alt: 'Proxima Nova', sans-serif;
  --max-width: 1200px;
  --header-height: 120px;
}

/* ===== Typography ===== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-white);
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; letter-spacing: 0.05em; text-transform: uppercase; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 0.9rem; }
p { margin-bottom: 1em; }

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  height: var(--header-height);
}
.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.header-brand img {
  height: 70px;
  width: auto;
}
.header-tagline {
    font-family: var(--font-menu);
    font-size: 14px;
    font-weight: 880;
    line-height: 1.1;
    color: var(--color-gray-dark);
    letter-spacing: 0.12em;
    text-align: center;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-primary);
  transition: color 0.3s;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active { color: var(--color-teal); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-primary);
  margin: 6px 0;
  transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}
.hero-content { position: relative; z-index: 1; padding: 40px 20px; max-width: 800px; }
.hero-left { text-align: left; align-items: center; justify-content: flex-start; }
.hero-left .hero-content { max-width: var(--max-width); width: 100%; padding: 40px 20px; margin: 0 auto; }
.hero-content h1 { margin-bottom: 15px; font-size: 2.8rem; }
.hero-content h2 { font-size: 1.5rem; margin-bottom: 25px; font-weight: 400; }
.hero-content p { font-size: 1.1rem; margin-bottom: 30px; font-family: var(--font-body); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--color-primary); color: var(--color-white); }
.section-teal { background: var(--color-teal); color: var(--color-white); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { margin-bottom: 15px; }
.section-title p { color: var(--color-gray-dark); max-width: 700px; margin: 0 auto; }

/* ===== Two Column Layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col img { border-radius: 2px; width: 100%; }

/* ===== Services Section ===== */
.section-services {
  background: #f9f9f9;
  padding: 80px 0;
}

/* ===== Service Cards Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover img {
  transform: scale(1.05);
}
.service-card-overlay {
  position: relative;
  z-index: 1;
  padding: 25px 22px;
  height: 200px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.service-card h3 {
  font-family: var(--font-service-title);
  font-size: 1.15rem;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--color-white);
}
.service-card p {
  font-family: var(--font-service-desc);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 0;
}
.service-card .btn {
  margin-top: auto;
  padding: 10px 28px;
  font-size: 13px;
  border-color: var(--color-white);
  color: var(--color-white);
}
.service-card .btn:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ===== Practice Areas (Services page) ===== */
.practice-area {
  padding: 50px 0;
  border-bottom: 1px solid #eee;
}
.practice-area:last-child { border-bottom: none; }
.practice-area h3 {
  font-family: var(--font-service-title);
  font-size: 1.3rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.practice-area p {
  font-family: var(--font-service-desc);
  color: var(--color-gray-dark);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 700px;
}
.practice-details {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  max-width: 800px;
}
.practice-details li {
  font-family: var(--font-service-desc);
  color: var(--color-gray-dark);
  line-height: 1.8;
  margin-bottom: 14px;
  padding-left: 22px;
  position: relative;
}
.practice-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--color-teal);
  border-radius: 50%;
}
.practice-details li strong {
  color: var(--color-primary);
}

/* ===== About Page Intro ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
  align-items: start;
}
.about-intro-photo {
  position: relative;
}
.profile-photo {
  width: 75%;
  border-radius: 6px;
}

/* ===== About Credentials (Certifications + Sectors) ===== */
.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.about-credentials p {
	margin-top: 20px;
}
.qualifications { margin-top: 5px; }
.qualifications li {
  padding: 0px 0;
  font-family: var(--font-body);
  color: var(--color-gray-dark);
}
.xero-badge { margin-top: 30px; }
.xero-badge img { max-width: 150px; }

/* ===== Profile Section (legacy) ===== */
.profile-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
}
.profile-details h3 { margin-bottom: 10px; }
.profile-details p { margin-bottom: 8px; }

/* ===== Blog Cards ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.blog-card { overflow: hidden; }
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-card:hover img { transform: scale(1.03); }
.blog-card-body { padding: 20px 0; }
.blog-card-body h3 { font-family: var(--font-service-title); font-size: 1.1rem; margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.blog-card-body p { font-size: 0.95rem; color: var(--color-gray-dark); }
.blog-card-body .date { font-size: 0.85rem; color: var(--color-gray); margin-bottom: 8px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-footer);
  color: var(--color-primary);
  padding: 60px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-info h3 {
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.footer-info p,
.footer-info a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
}
.footer-info a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 15px; margin: 20px 0; }
.footer-social img { width: 25px; height: 25px; opacity: 0.8; transition: opacity 0.3s; }
.footer-social a:hover img { opacity: 1; }
.footer-copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.15);
  font-size: 0.85rem;
  color: var(--color-gray-dark);
}

/* ===== Contact Form ===== */
.contact-form { max-width: 100%; }
.contact-form h3 {
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-group { margin-bottom: 15px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 5px;
  font-family: var(--font-body);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* ===== Contact Page Specific ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-details h3 { margin-bottom: 20px; }
.contact-details p { margin-bottom: 10px; font-size: 0.95rem; }
.contact-details a { color: var(--color-teal); }
.contact-details a:hover { text-decoration: underline; }

.contact-info-block { margin-bottom: 25px; }
.contact-info-block h4 {
  font-family: var(--font-service-title);
  font-size: 0.95rem;
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}
.contact-info-block p { margin-bottom: 0; }

.contact-social { display: flex; gap: 15px; margin-top: 5px; }
.contact-social img { width: 28px; height: 28px; opacity: 0.7; transition: opacity 0.3s; }
.contact-social a:hover img { opacity: 1; }

.contact-form-wrapper {
  background: #f9f9f9;
  padding: 35px 30px;
  border-radius: 6px;
}
.contact-form-wrapper h3 { margin-bottom: 25px; }

.contact-form-native .btn {
  width: 100%;
  text-align: center;
  margin-top: 5px;
}

.form-success-msg {
  display: none;
  margin-top: 15px;
  padding: 12px 16px;
  background: var(--color-teal);
  color: var(--color-white);
  border-radius: 4px;
  font-size: 0.95rem;
  text-align: center;
}
.contact-form-native.submitted .form-success-msg { display: block; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  .hero { min-height: 60vh; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content h2 { font-size: 1.1rem; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .main-nav.open { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 350px; }

  .two-col,
  .about-intro,
  .about-credentials,
  .profile-section,
  .contact-grid,
  .footer-inner { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .two-col { gap: 30px; }
  .footer-inner { gap: 40px; }
}

/* ===== Article Overlay ===== */
.article-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background: rgba(0,0,0,0.6); overflow-y: auto; }
.article-overlay-inner { max-width: 860px; margin: 40px auto; background: #fff; border-radius: 12px; padding: 40px 48px 80px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.article-close-btn { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 2rem; cursor: pointer; color: #666; line-height: 1; padding: 0 4px; transition: color 0.2s; }
.article-close-btn:hover { color: #000; }
.article-back-btn { background: none; border: 1px solid var(--color-primary); padding: 10px 24px; font-family: 'Proxima Nova', sans-serif; font-size: 0.95rem; cursor: pointer; margin-bottom: 30px; transition: background 0.2s, color 0.2s; }
.article-back-btn:hover { background: var(--color-primary); color: #fff; }
.article-full h1 { font-family: 'Lulo Clean', sans-serif; font-size: 1.6rem; line-height: 1.4; margin-bottom: 10px; }
.article-date { color: #666; font-size: 0.9rem; margin-bottom: 30px; }
.article-content { font-family: 'Proxima Nova', sans-serif; font-size: 1.05rem; line-height: 1.8; color: #333; }
.article-content h2, .article-content h3, .article-content h4 { font-family: 'Helvetica Bold', sans-serif; margin: 30px 0 15px; }
.article-content h2 { font-size: 1.4rem; }
.article-content h3 { font-size: 1.2rem; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: 8px; margin: 20px 0; }
.article-content a { color: var(--color-teal); text-decoration: underline; }
.article-content blockquote { border-left: 4px solid var(--color-teal); padding: 12px 20px; margin: 20px 0; background: #f7f7f7; font-style: italic; }
.article-content pre { background: #1e1e1e; color: #d4d4d4; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 20px 0; font-size: 0.9rem; }
.article-content code { font-size: 0.9em; }
.article-content pre code { background: none; padding: 0; }
.article-content code:not(pre code) { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; }
@media (max-width: 600px) {
  .article-full h1 { font-size: 1.2rem; }
  .article-overlay-inner { margin: 0; border-radius: 0; padding: 20px 16px 60px; min-height: 100vh; }
}
