/* =============================================================
   PROFINITI — Shared Stylesheet
   profiniti.css
   Selector scoping:
   · Section-specific rules  → prefixed with the section's ID
   · General page content    → prefixed with #page-container
   · Global/structural rules → no prefix (html, body, :root, header#navbar, footer, @media)
   ============================================================= */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #c9a84c;
  --gold-dark:  #b8943e;
  --navy:       #1a2540;
  --navy-dark:  #111827;
  --dark:       #333;
  --white:      #ffffff;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', sans-serif;
}

html { scroll-behavior: smooth; font-size: 17px; }
body { font-family: var(--sans); color: var(--dark); background: #fff; overflow-x: hidden; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

#page-container .page-section { display: block; }

/* ── EYEBROW ── */
#page-container .eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

/* ── BUTTONS ── */
#page-container .btn-filled {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.84rem; font-weight: 600;
  color: #fff; background: var(--gold); border: 1.5px solid var(--gold);
  padding: 14px 26px; border-radius: 8px; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
#page-container .btn-filled:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }
#page-container .btn-filled svg { width: 13px; height: 13px; flex-shrink: 0; }

#page-container .btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.84rem; font-weight: 600;
  color: var(--gold); border: 1.5px solid var(--gold);
  padding: 14px 26px; border-radius: 8px;
  text-decoration: none; background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
#page-container .btn-outline:hover { background: var(--gold); color: #fff; transform: translateY(-1px); }
#page-container .btn-outline svg { width: 13px; height: 13px; flex-shrink: 0; }


/* =============================================================
   NAVIGATION
   ============================================================= */

header#navbar,
header#navbar {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1100;
  width: 100%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  height: 90px;
  transition: box-shadow 0.3s;
}

/* Slide-down animation fires once when .is-fixed is added by JS */
nav.is-fixed,
header#navbar.is-fixed {
  animation: navSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes navSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* body padding not needed with sticky — element stays in flow */
body.nav-is-fixed { padding-top: 0; }

header#navbar .nav-inner,
header#navbar .nav-inner {
  height: 90px;
  display: flex; align-items: center; justify-content: space-between;
}

header#navbar .nav-logo img,
header#navbar .site-logo img,
header#navbar .nav-logo img { height: 65px; width: auto; display: block; object-fit: contain; }
header#navbar .nav-logo-fallback,
header#navbar .nav-logo-fallback { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--dark); }
header#navbar .site-logo a { display: flex; align-items: center; text-decoration: none; }
header#navbar .header-side { display: flex; align-items: center; gap: 20px; }

header#navbar .nav-links,
header#navbar .nav-links,
header#navbar ul.menu-wrapper {
  display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0;
}
header#navbar .nav-links a,
header#navbar .nav-links a,
header#navbar ul.menu-wrapper .menu-item > a {
  font-size: 0.80rem; font-weight: 500; color: var(--dark); text-decoration: none; transition: color 0.2s;
}
header#navbar .nav-links a:hover,
header#navbar .nav-links a.active,
header#navbar .nav-links a:hover,
header#navbar .nav-links a.active,
header#navbar ul.menu-wrapper .menu-item > a:hover,
header#navbar ul.menu-wrapper .menu-item.current-menu-item > a { color: var(--gold); }
header#navbar .nav-links a.active,
header#navbar .nav-links a.active,
header#navbar ul.menu-wrapper .menu-item.current-menu-item > a { font-weight: 600; }

header#navbar .btn-client,
header#navbar li.btn-menu > a,
header#navbar .btn-client {
  background: var(--gold); color: #fff;
  font-size: 0.75rem; font-weight: 600;
  padding: 9px 22px; border-radius: 6px;
  text-decoration: none; transition: background 0.2s; white-space: nowrap;
  display: inline-flex; align-items: center;
}
header#navbar .btn-client:hover,
header#navbar li.btn-menu > a:hover,
header#navbar .btn-client:hover { background: var(--gold-dark); color: #fff; }

/* Hamburger */
.hamburger,
#mobile-nav-open {
  flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; background: none; border: none;
  width: 32px; height: 32px; padding: 0; position: relative; z-index: 1100;
  display: none;
}
#mobile-nav-open .nav-icon { display: none; }

.hamburger span,
#mobile-nav-open span:not(.nav-icon) {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px; transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
  opacity 0.25s ease,
  top 0.35s cubic-bezier(0.4,0,0.2,1),
  background 0.25s ease;
  position: absolute; left: 0;
}
.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 22px; }
#mobile-nav-open span:nth-of-type(2) { top: 8px; }
#mobile-nav-open span:nth-of-type(3) { top: 15px; }
#mobile-nav-open span:nth-of-type(4) { top: 22px; }

.hamburger.is-open span:nth-child(1) { top: 15px; transform: rotate(45deg); background: var(--navy); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { top: 15px; transform: rotate(-45deg); background: var(--navy); }
#mobile-nav-open.is-open span:nth-of-type(2) { top: 15px; transform: rotate(45deg); background: var(--navy); }
#mobile-nav-open.is-open span:nth-of-type(3) { opacity: 0; transform: scaleX(0); }
#mobile-nav-open.is-open span:nth-of-type(4) { top: 15px; transform: rotate(-45deg); background: var(--navy); }

/* Dropdown */
header#navbar .nav-dropdown,
header#navbar .nav-dropdown,
#header-menu .menu-item-has-children { position: relative; }

header#navbar .nav-dropdown > a,
header#navbar .nav-dropdown > a,
#header-menu .menu-item-has-children > a { display: flex; align-items: center; gap: 5px; cursor: pointer; }

header#navbar .nav-dropdown > a .chevron,
header#navbar .nav-dropdown > a .chevron,
#header-menu .menu-item-has-children > a .chevron {
  width: 10px; height: 10px; display: inline-block; transition: transform 0.25s ease; flex-shrink: 0;
}
header#navbar .nav-dropdown:hover > a .chevron,
header#navbar .nav-dropdown:hover > a .chevron,
#header-menu .menu-item-has-children:hover > a .chevron { transform: rotate(180deg); }

/* Dropdown indicator via ::after */
header#navbar .nav-links > li.menu-item-has-children > a::after,
header#navbar .nav-links > li.menu-item-has-children > a::after,
header#navbar ul.menu-wrapper > li.menu-item-has-children > a::after,
#header-menu > div > ul > li.menu-item-has-children > a::after {
  content: ''; display: inline-block; width: 10px; height: 10px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23333' stroke-width='1.8'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; background-position: center; transition: transform 0.25s ease;
}
header#navbar .nav-links > li.menu-item-has-children:hover > a::after,
header#navbar .nav-links > li.menu-item-has-children:hover > a::after,
header#navbar ul.menu-wrapper > li.menu-item-has-children:hover > a::after,
#header-menu > div > ul > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23c9a84c' stroke-width='1.8'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E");
}
header#navbar .nav-links > li.menu-item-has-children > a:hover::after,
header#navbar .nav-links > li.menu-item-has-children > a:hover::after,
header#navbar ul.menu-wrapper > li.menu-item-has-children > a:hover::after,
#header-menu > div > ul > li.menu-item-has-children > a:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23c9a84c' stroke-width='1.8'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E");
}
/* Level-2 items inside dropdown — hide the ::after only if it has a .chevron span already */
header#navbar .nav-dropdown > a:has(.chevron)::after,
header#navbar .nav-dropdown > a:has(.chevron)::after,
#header-menu .menu-item-has-children > a:has(.chevron)::after { display: none; }

/* Dropdown panel */
header#navbar .dropdown-menu,
header#navbar .dropdown-menu,
#header-menu .menu-item-has-children > ul.sub-menu {
  position: absolute; top: calc(100% + 18px); left: 50%;
  background: #fff; border: 1px solid rgba(0,0,0,0.09); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13); padding: 10px 0; min-width: 280px; z-index: 200;
  opacity: 0; pointer-events: none; list-style: none; margin: 0;
  transform: translateX(-50%) translateY(8px); transition: opacity 0.22s ease, transform 0.22s ease;
}
header#navbar .dropdown-menu::before,
header#navbar .dropdown-menu::before,
#header-menu .menu-item-has-children > ul.sub-menu::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px; background: #fff;
  border-left: 1px solid rgba(0,0,0,0.09); border-top: 1px solid rgba(0,0,0,0.09);
  rotate: 45deg; border-radius: 2px 0 0 0;
}
header#navbar .nav-dropdown:hover .dropdown-menu,
header#navbar .nav-dropdown:hover .dropdown-menu,
#header-menu .menu-item-has-children:hover > ul.sub-menu {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}

header#navbar .dropdown-section-title,
header#navbar .dropdown-section-title,
header#navbar .sub-menu-section-header,
header#navbar .sub-menu-section-header {
  display: block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #bbb; padding: 10px 18px 6px; font-family: var(--sans); list-style: none;
}
header#navbar .sub-menu-section-header a,
header#navbar .sub-menu-section-header a { display: none; }

header#navbar .dropdown-divider,
header#navbar .dropdown-divider,
header#navbar .sub-menu-divider,
header#navbar .sub-menu-divider { height: 1px; background: #f0f0f0; margin: 6px 0; display: block; padding: 0; }

/* Dropdown items — both custom .dropdown-item and WP plain li > a */
header#navbar .dropdown-item,
header#navbar .dropdown-item,
#header-menu .menu-item-has-children > ul.sub-menu > li > a {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px;
  text-decoration: none; color: var(--dark); font-size: 0.82rem; font-weight: 400;
  transition: background 0.15s, color 0.15s; font-family: var(--sans);
}
header#navbar .dropdown-item:hover,
header#navbar .dropdown-item:hover,
#header-menu .menu-item-has-children > ul.sub-menu > li > a:hover { background: #fdf9f2; color: var(--gold); }

/* Current/active item in dropdown */
#header-menu .menu-item-has-children > ul.sub-menu > li.current-menu-item > a { color: var(--gold); font-weight: 600; }

/* Level 2 nested sub-menu (Medical Professionals children) — slides right */
#header-menu .menu-item-has-children > ul.sub-menu li.menu-item-has-children {
  position: relative;
}
#header-menu .menu-item-has-children > ul.sub-menu li.menu-item-has-children > ul.sub-menu {
  position: absolute; top: -6px; left: 100%;
  background: #fff; border: 1px solid rgba(0,0,0,0.09); border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.11); padding: 6px 0;
  min-width: 220px; z-index: 300; list-style: none; margin: 0;
  opacity: 0; pointer-events: none;
  transform: translateX(6px); transition: opacity 0.18s ease, transform 0.18s ease;
}
#header-menu .menu-item-has-children > ul.sub-menu li.menu-item-has-children:hover > ul.sub-menu {
  opacity: 1; pointer-events: all; transform: translateX(0);
}
/* Chevron indicator on level-2 parent item */
#header-menu .menu-item-has-children > ul.sub-menu li.menu-item-has-children > a {
  position: relative; padding-right: 36px;
}
#header-menu .menu-item-has-children > ul.sub-menu li.menu-item-has-children > a::after {
  content: '' !important;
  position: absolute !important; right: 12px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23bbb' stroke-width='1.8'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E") !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block !important;
  transition: background-image 0.15s;
}
#header-menu .menu-item-has-children > ul.sub-menu li.menu-item-has-children > a:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23c9a84c' stroke-width='1.8'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E");
}
/* Level 2 item links */
#header-menu .menu-item-has-children > ul.sub-menu li.menu-item-has-children > ul.sub-menu > li > a {
  display: block; padding: 9px 20px;
  font-size: 0.80rem; font-weight: 400; color: #555; text-decoration: none;
  white-space: nowrap; transition: background 0.15s, color 0.15s;
}
#header-menu .menu-item-has-children > ul.sub-menu li.menu-item-has-children > ul.sub-menu > li > a:hover {
  background: #fdf9f2; color: var(--gold);
}

header#navbar .di-icon,
header#navbar .di-icon {
  width: 28px; height: 28px; background: #f7f4ef; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--gold); transition: background 0.15s;
}
header#navbar .dropdown-item:hover .di-icon,
header#navbar .dropdown-item:hover .di-icon { background: #f0e8d5; }
header#navbar .di-icon svg,
header#navbar .di-icon svg { width: 14px; height: 14px; }
header#navbar .di-label,
header#navbar .di-label { flex: 1; display: flex; flex-direction: column; }
header#navbar .di-label strong,
header#navbar .di-label strong { display: block; font-weight: 500; font-size: 0.82rem; color: inherit; }
header#navbar .di-label span,
header#navbar .di-label span { display: block; font-size: 0.70rem; color: #aaa; margin-top: 1px; line-height: 1.3; }
header#navbar .dropdown-item:hover .di-label span,
header#navbar .dropdown-item:hover .di-label span { color: rgba(201,168,76,0.55); }

/* ── Mobile menu drawer — slides in from RIGHT, below header ── */
#mmenu,
#mobile-nav {
  position: fixed;
  top: 90px;           /* JS overrides this on init — fallback for no-JS */
  right: 0;
  left: auto;
  bottom: 0;
  width: min(320px, 100vw);
  background: #fff;
  z-index: 1090;       /* below header (1100) so header stays on top */
  padding: 0;
  display: flex; flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 1px solid #e8e8e8;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%);           /* hidden off-screen to the right */
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  font-family: var(--sans);
}
#mmenu.open,
#mobile-nav.open { transform: translateX(0); }  /* slide in from right */

/* Content wrapper */
#mobile-nav #mobile-nav-container,
#mmenu #mobile-nav-container {
  padding: 8px 24px 40px;
  flex: 1;
}

/* Strip all list bullets — WP output includes menu-container div wrapper */
#mobile-nav ul,
#mobile-nav .menu-container ul,
#mobile-nav ul.menu-wrapper,
#mobile-nav .sub-menu {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

/* Remove desktop nav-links styles that bleed into mobile nav */
#mobile-nav ul.nav-links,
#mobile-nav ul.menu-wrapper.nav-links {
  display: block !important;        /* override desktop display:flex */
  gap: 0 !important;
  flex-direction: unset !important;
}

/* Top-level links */
#mobile-nav ul.menu-wrapper > .menu-item > a,
#mobile-nav .menu-container ul.menu-wrapper > .menu-item > a {
  display: block;
  padding: 15px 0;
  font-size: 0.95rem; font-weight: 500;
  color: var(--dark); text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
  white-space: normal;
}
#mobile-nav ul.menu-wrapper > .menu-item > a:hover,
#mobile-nav .menu-container ul.menu-wrapper > .menu-item > a:hover { color: var(--gold); }

/* Current item */
#mobile-nav .current-menu-item > a { color: var(--gold) !important; font-weight: 600; }

/* Client login link */
#mobile-nav .mmenu-login {
  color: var(--gold) !important; font-weight: 600;
  border-bottom: none !important; margin-top: 8px;
}

/* Parent item row — flex so link + injected chevron sit side by side */
#mobile-nav .menu-item-has-children,
#mobile-nav .menu-container .menu-item-has-children {
  display: flex !important; flex-wrap: wrap; align-items: stretch;
  border-bottom: 1px solid #f0f0f0;
}
#mobile-nav .menu-item-has-children > a,
#mobile-nav .menu-container .menu-item-has-children > a {
  flex: 1;
  border-bottom: none !important;
  padding: 15px 0;
  display: flex; align-items: center;
}

/* Suppress the desktop ::after chevron inside mobile nav */
#mobile-nav .menu-item-has-children > a::after {
  display: none !important;
  content: none !important;
}

/* Also suppress desktop dropdown hover styles inside mobile nav */
#mobile-nav .menu-item-has-children > ul.sub-menu {
  opacity: 1 !important;
  pointer-events: all !important;
  position: static !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  min-width: 0 !important;
}

/* JS-injected chevron button */
.mob-chevron {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; border-left: 1px solid #f0f0f0;
  cursor: pointer; color: var(--dark);
  padding: 0 16px; flex-shrink: 0; align-self: stretch;
  transition: background 0.2s, color 0.2s; min-width: 48px;
}
.mob-chevron svg { width: 20px; height: 20px; transition: transform 0.3s ease; }
.mob-chevron.is-open { color: var(--gold); background: #fdf9f2; }
.mob-chevron.is-open svg { transform: rotate(180deg); }
.mob-chevron:hover { color: var(--gold); background: #fdf9f2; }

/* Sub-menu — collapsed by default via CSS class toggle */
#mobile-nav .sub-menu,
#mobile-nav .menu-container .sub-menu {
  width: 100%; flex-basis: 100%;
  list-style: none !important;
  padding: 0 0 4px 16px; margin: 0;
  border-top: 1px solid #f5f5f5;
  display: none !important;
}
/* JS adds .is-open to parent .menu-item to reveal sub-menu */
#mobile-nav .menu-item-has-children.is-open > .sub-menu {
  display: block !important;
}

/* Sub-menu item links */
#mobile-nav .sub-menu .menu-item > a {
  display: block;
  padding: 11px 0; font-size: 0.88rem; font-weight: 400;
  color: #555; text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.2s;
  white-space: normal;
  /* reset any inherited flex/grid from parent */
  flex: unset; align-self: unset;
}
#mobile-nav .sub-menu .menu-item > a:hover { color: var(--gold); }
#mobile-nav .sub-menu .menu-item:last-child > a { border-bottom: none; }

/* Level-2 nested */
#mobile-nav .sub-menu .sub-menu { padding-left: 12px; border-top: none; }
#mobile-nav .sub-menu .sub-menu .menu-item > a { font-size: 0.82rem; color: #777; }

/* Overlay — covers page behind drawer but NOT behind header */
#mmenu-overlay {
  position: fixed;
  top: 90px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1080;       /* below drawer (1090) and header (1100) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#mmenu-overlay.visible { opacity: 1; pointer-events: all; }



/* =============================================================
   HOME PAGE — HERO SECTION
   ============================================================= */
#hero-section { background: #fff; overflow: hidden; }
#hero-section .container {
  display: flex; align-items: stretch;
  padding-top: 0; padding-bottom: 0; gap: 0;
  min-height: calc(100vh - 64px);
  padding-left: 0; padding-right: 0;
}
#hero-section .hero-left {
  flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px 80px 80px;
}
#hero-section .hero-left h1 { font-family: var(--serif); font-size: clamp(2.4rem, 3.8vw, 3.6rem); font-weight: 700; line-height: 1.10; color: var(--dark); margin-bottom: 24px; }
#hero-section .hero-subtitle { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--dark); line-height: 1.55; margin-bottom: 20px; font-weight: 700; }
#hero-section .hero-body { font-size: 0.90rem; color: #777; line-height: 1.80; margin-bottom: 0; }
#hero-section .hero-divider { width: 100%; height: 1px; background: #e0e0e0; margin: 28px 0; }
#hero-section .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
#hero-section .hero-right { flex: 1; min-height: 100%; overflow: hidden; }
#hero-section .hero-right img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }


/* =============================================================
   HOME PAGE — STATS BAR
   ============================================================= */
#stats-section { border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #fff; }
#stats-section .container { display: flex; padding-top: 40px; padding-bottom: 40px; }
#stats-section .stat-item { flex: 1; text-align: center; padding: 0 16px; }
#stats-section .stat-item + .stat-item { border-left: 1px solid #ddd; }
#stats-section .stat-num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
#stats-section .stat-lbl { font-size: 0.78rem; color: #888; line-height: 1.40; }


/* =============================================================
   HOME PAGE — HOW WE WORK
   ============================================================= */
#how-section { background: #fff; }
#how-section .container { display: flex; align-items: center; gap: 80px; padding-top: 90px; padding-bottom: 90px; }
#how-section .how-img { flex: 0 0 40%; }
#how-section .how-img img { width: 100%; border-radius: 8px; display: block; object-fit: cover; }
#how-section .how-text { flex: 1; }
#how-section .how-text h2 { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.7rem); font-weight: 700; line-height: 1.20; color: var(--dark); margin-bottom: 20px; }
#how-section .how-text p { font-size: 0.88rem; color: #666; line-height: 1.80; max-width: 460px; }


/* =============================================================
   HOME PAGE — WHO WE WORK WITH
   ============================================================= */
#who-section { background: #fff; }
#who-section .container { padding-top: 80px; padding-bottom: 80px; }
#who-section .who-header { text-align: center; margin-bottom: 48px; }
#who-section .who-header h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 700; color: var(--dark); }
#who-section .who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
#who-section .who-card {
  border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; transition: box-shadow 0.25s, transform 0.25s;
}
#who-section .who-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.10); transform: translateY(-4px); }
#who-section .who-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f0ede8; }
#who-section .who-card-body { padding: 20px 16px 16px; flex: 1; text-align: center; }
#who-section .who-card-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--gold); line-height: 1.25; margin-bottom: 10px; }
#who-section .who-card-desc { font-size: 0.78rem; color: #777; line-height: 1.70; margin-bottom: 0; }
#who-section .who-card-foot { background: var(--gold); padding: 13px; text-align: center; transition: background 0.2s; }
#who-section .who-card:hover .who-card-foot { background: var(--gold-dark); }
#who-section .who-card-foot span { font-size: 0.75rem; font-weight: 600; color: #fff; }


/* =============================================================
   HOME PAGE — PROFINITI DIFFERENCE
   ============================================================= */
#difference-section { background: #fff; text-align: center; }
#difference-section .container { padding-top: 80px; padding-bottom: 80px; }
#difference-section .diff-head { margin-bottom: 56px; }
#difference-section .diff-head h2 { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.5rem); font-weight: 700; line-height: 1.18; color: var(--dark); margin-bottom: 10px; }
#difference-section .diff-head p { font-size: 0.84rem; color: #999; }

#difference-section .diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden;
}
#difference-section .diff-cell {
  padding: 40px 28px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; text-align: center;
}

/* Remove right border from last cell in each row */
#difference-section .diff-cell:nth-child(3n) { border-right: none; }

/* Remove bottom border from ALL cells in the last row.
   Strategy: target the last item and work backwards within the same row.
   Last cell always loses bottom border. */
#difference-section .diff-cell:last-child { border-bottom: none; }

/* Last row has 1 item (count is 3n+1, e.g. 4, 7, 10…):
   Only the last child — already handled above. */

/* Last row has 2 items (count is 3n+2, e.g. 5, 8, 11…):
   Remove bottom from last AND second-to-last,
   but only when second-to-last is NOT a 3rd-column item. */
#difference-section .diff-cell:nth-last-child(2):not(:nth-child(3n)) { border-bottom: none; }

/* Last row has 3 items (count is 3n, e.g. 3, 6, 9…):
   Remove bottom from the last 3 cells. */
#difference-section .diff-cell:nth-last-child(3):nth-child(3n+1) { border-bottom: none; }
#difference-section .diff-cell:nth-last-child(2):nth-child(3n+2) { border-bottom: none; }

/* Grid stretch rules for last row */
#difference-section .diff-grid:has(.diff-cell:only-child) .diff-cell { grid-column: 1 / -1; }
#difference-section .diff-grid:has(.diff-cell:first-child:nth-last-child(1)) .diff-cell { grid-column: 1 / -1; }
#difference-section .diff-grid:has(.diff-cell:nth-child(3n+1):last-child) .diff-cell:last-child { grid-column: 1 / -1; }
#difference-section .diff-grid:has(.diff-cell:nth-child(3n+2):last-child) { grid-template-columns: repeat(6, 1fr); }
#difference-section .diff-grid:has(.diff-cell:nth-child(3n+2):last-child) .diff-cell { grid-column: span 2; }
#difference-section .diff-grid:has(.diff-cell:nth-child(3n+2):last-child) .diff-cell:nth-last-child(2),
#difference-section .diff-grid:has(.diff-cell:nth-child(3n+2):last-child) .diff-cell:last-child { grid-column: span 3; }
#difference-section .diff-grid:has(.diff-cell:nth-child(3n+2):last-child) .diff-cell:nth-child(3n) { border-right: 1px solid #e8e8e8; }
#difference-section .diff-grid:has(.diff-cell:nth-child(3n+2):last-child) .diff-cell:nth-child(3n):not(:nth-last-child(-n+2)) { border-right: none; }
#difference-section .diff-grid:has(.diff-cell:nth-child(3n+2):last-child) .diff-cell:last-child { border-right: none; }

#difference-section .diff-icon-wrap {
  width: 56px; height: 56px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
#difference-section .diff-icon-wrap svg { width: 22px; height: 22px; color: #fff; }
#difference-section .diff-icon-wrap i {
  font-size: 24px;
  color: #fff;
  line-height: 1;
}
#difference-section .diff-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.25; }
#difference-section .diff-desc { font-size: 0.78rem; color: #999; line-height: 1.70; }


/* =============================================================
   HOME PAGE — TESTIMONIALS
   ============================================================= */
/* =============================================================
   HOME PAGE — TESTIMONIALS (responsive, touch-friendly slider)
   ============================================================= */
#testimonials-section { background: #fff; }
#testimonials-section .container { padding-top: 80px; padding-bottom: 80px; }

#testimonials-section .testi-header { text-align: center; margin-bottom: 52px; }
#testimonials-section .testi-header h2 { font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 700; color: var(--dark); margin-bottom: 14px; line-height: 1.15; }
#testimonials-section .testi-header p { font-size: 0.90rem; color: #888; line-height: 1.70; max-width: 520px; margin: 0 auto; }

/* ── 2-column centered grid ── */
#testimonials-section .testi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* ── Card ── */
#testimonials-section .testi-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}
#testimonials-section .testi-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.09); transform: translateY(-2px); }
#testimonials-section .testi-stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; }
#testimonials-section .testi-quote { font-size: 0.88rem; color: #444; line-height: 1.80; flex: 1; font-style: italic; }
#testimonials-section .testi-author { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
#testimonials-section .testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: 0.04em; }
#testimonials-section .testi-name { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
#testimonials-section .testi-role { font-size: 0.70rem; color: #aaa; margin-top: 2px; }

/* Odd card last (5th) — centered in its row */
#testimonials-section .testi-grid .testi-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 12px);
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  #testimonials-section .testi-grid { grid-template-columns: 1fr; max-width: 100%; }
  #testimonials-section .testi-grid .testi-card:last-child:nth-child(odd) { grid-column: auto; max-width: 100%; }
}



/* =============================================================
   ABOUT PAGE — PAGE HERO BANNER (parallax)
   ============================================================= */
#page-hero-section {
  position: relative; min-height: 600px; padding-top: 90px;
  display: flex; align-items: center; overflow: hidden;
}
#page-hero-section::before {
  content: ''; position: absolute; inset: -80px 0;
  background-image: var(--hero-bg,
  url('https://profiniti.com.au/wp-content/uploads/2026/05/Sydney-CBD-Aerial-Sunset.webp'));
  background-size: cover; background-position: center 40%;
  background-repeat: no-repeat; background-attachment: fixed; z-index: 0;
}
#page-hero-section::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,18,35,0.60) 0%, rgba(10,18,35,0.50) 60%, rgba(10,18,35,0.65) 100%);
  z-index: 1;
}
#page-hero-section .container {
  position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px;
  text-align: center; min-height: calc(600px - 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
#page-hero-section h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; color: #fff; letter-spacing: 0.01em; text-shadow: 0 2px 20px rgba(0,0,0,0.40); }


/* =============================================================
   ABOUT PAGE — ABOUT INTRO
   ============================================================= */
#about-intro-section { background: #fff; }
#about-intro-section .container { padding-top: 80px; padding-bottom: 80px; }
#about-intro-section h2 { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 700; color: var(--dark); line-height: 1.15; margin-bottom: 24px; }
#about-intro-section .about-intro-body { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
#about-intro-section .about-intro-body p { font-size: 0.92rem; color: #555; line-height: 1.80; }


/* =============================================================
   ABOUT PAGE — FOUNDER
   ============================================================= */
#founder-section { background: #fff; border-top: 1px solid #f0f0f0; }
#founder-section .container { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
#founder-section .founder-img { position: relative; }
#founder-section .founder-img img { width: 100%; display: block; border-radius: 8px; object-fit: cover; max-height: 540px; }
#founder-section .founder-text .eyebrow { margin-bottom: 8px; }
#founder-section .founder-text h2 { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; color: var(--dark); line-height: 1.15; margin-bottom: 24px; }
#founder-section .founder-bio { display: flex; flex-direction: column; gap: 14px; }
#founder-section .founder-bio p { font-size: 0.88rem; color: #555; line-height: 1.80; }
#founder-section .founder-credentials { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eee; font-size: 0.82rem; color: #888; line-height: 1.65; }


/* =============================================================
   ABOUT PAGE — WHAT WE DO
   ============================================================= */
#what-we-do-section { background: #faf9f7; }
#what-we-do-section .container { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
#what-we-do-section .wwd-left h2 { font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.8rem); font-weight: 700; color: var(--dark); line-height: 1.15; margin-bottom: 20px; }
#what-we-do-section .wwd-left > p { font-size: 0.88rem; color: #666; line-height: 1.80; margin-bottom: 32px; }
#what-we-do-section .wwd-accordion { border-top: 1px solid #e5e5e5; }
#what-we-do-section .acc-item { border-bottom: 1px solid #e5e5e5; }
#what-we-do-section .acc-header { display: flex; align-items: center; gap: 14px; padding: 18px 0; cursor: pointer; user-select: none; }
#what-we-do-section .acc-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--gold); opacity: 0.15; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity 0.2s; }
#what-we-do-section .acc-item.open .acc-icon { opacity: 1; }
#what-we-do-section .acc-icon svg { width: 16px; height: 16px; color: var(--dark); }
#what-we-do-section .acc-item.open .acc-icon svg { color: #fff; }
#what-we-do-section .acc-title { flex: 1; font-size: 0.92rem; font-weight: 600; color: var(--dark); }
#what-we-do-section .acc-toggle { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #ddd; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color 0.2s, background 0.2s; color: #aaa; }
#what-we-do-section .acc-item.open .acc-toggle { background: var(--gold); border-color: var(--gold); color: #fff; }
#what-we-do-section .acc-toggle svg { width: 10px; height: 10px; transition: transform 0.3s; }
#what-we-do-section .acc-item.open .acc-toggle svg { transform: rotate(45deg); }
#what-we-do-section .acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.35s ease; padding: 0 0 0 50px; }
#what-we-do-section .acc-item.open .acc-body { max-height: 200px; padding: 0 0 18px 50px; }
#what-we-do-section .acc-body p { font-size: 0.84rem; color: #777; line-height: 1.75; }
#what-we-do-section .wwd-right { position: relative; }
#what-we-do-section .wwd-right img { width: 100%; border-radius: 8px; object-fit: cover; display: block; height: 460px; box-shadow: 0 16px 48px rgba(0,0,0,0.12); }


/* =============================================================
   ABOUT PAGE — WHY PROFINITI
   ============================================================= */
#why-section { background: #fff; }
#why-section .container { padding-top: 80px; padding-bottom: 80px; }
#why-section .why-header { text-align: center; margin-bottom: 60px; }
#why-section .why-header h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 700; color: var(--dark); line-height: 1.20; }
#why-section .why-grid-top { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #eee; border-radius: 8px 8px 0 0; overflow: hidden; }
#why-section .why-grid-bot { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid #eee; border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; }
#why-section .why-cell { padding: 40px 32px; border-right: 1px solid #eee; text-align: center; }
#why-section .why-grid-top .why-cell { border-bottom: 1px solid #eee; }
#why-section .why-grid-top .why-cell:last-child,
#why-section .why-grid-bot .why-cell:last-child { border-right: none; }
#why-section .why-icon-wrap { width: 52px; height: 52px; border: 1.5px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: #bbb; }
#why-section .why-icon-wrap svg { width: 20px; height: 20px; }
#why-section .why-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.25; }
#why-section .why-desc { font-size: 0.78rem; color: #999; line-height: 1.70; }


/* =============================================================
   ABOUT PAGE — CTA BANNER
   ============================================================= */
#cta-section { background: #faf9f7; }
#cta-section .container { padding-top: 80px; padding-bottom: 80px; text-align: center; }
#cta-section .cta-eyebrow { font-size: 0.74rem; font-weight: 600; color: var(--gold); margin-bottom: 12px; letter-spacing: 0.02em; }
#cta-section h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; color: var(--dark); line-height: 1.18; margin-bottom: 16px; }
#cta-section p { font-size: 0.90rem; color: #777; line-height: 1.75; max-width: 520px; margin: 0 auto 36px; }
#cta-section .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* =============================================================
   SHARED — CONTACT SECTION
   ============================================================= */
#contact-section { background: var(--navy); }
#contact-section .container {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "text  form"
    "info  form";
  gap: 40px 80px;
  padding-top: 80px; padding-bottom: 80px;
  align-items: start;
}
#contact-section .contact-text  { grid-area: text; }
#contact-section .contact-info  { grid-area: info; }
#contact-section .gform_wrapper { grid-area: form; }
#contact-section .contact-text .eyebrow { color: var(--gold); }
#contact-section .contact-text h2 { font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1.18; margin-bottom: 20px; }
#contact-section .contact-text p { font-size: 0.86rem; color: rgba(255,255,255,0.60); line-height: 1.75; }
#contact-section .contact-text .reply { font-size: 0.78rem; color: rgba(255,255,255,0.40); margin-top: 14px; }

/* Divider between reply and address block */
#contact-section .contact-divider {
  height: 1px; background: rgba(255,255,255,0.15);
  margin: 24px 0;
}

/* Address box */
#contact-section .contact-addresses {
  border-radius: 6px;
  padding: 0;
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 24px;
}
#contact-section .contact-address-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0;
}
#contact-section .contact-address-item + .contact-address-item {
  border-top: 1px solid rgba(255,255,255,0.10);
}
#contact-section .contact-address-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(201,168,76,0.15); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-top: 1px;
}
#contact-section .contact-address-icon svg { width: 16px; height: 16px; }
#contact-section .contact-address-body { display: flex; flex-direction: column; gap: 4px; }
#contact-section .contact-address-text {
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.75); line-height: 1.55;
}
#contact-section .contact-address-link {
  font-size: 0.75rem; font-weight: 500;
  color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: opacity 0.2s;
}
#contact-section .contact-address-link:hover { opacity: 0.75; }
#contact-section .contact-address-link svg { width: 11px; height: 11px; }

/* Badges row */
#contact-section .contact-badges {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 20px;
}
#contact-section .contact-badge-img {
  height: 72px; width: auto; max-width: 160px;
  background: #fff; border-radius: 8px;
  padding: 8px 12px;
  object-fit: contain; display: block;
  border: 1px solid rgba(255,255,255,0.15);
  filter: brightness(1.05) contrast(1.02);
}

/* Registration line */
#contact-section .contact-reg {
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.60); text-align: left;
  margin-bottom: 12px; line-height: 1.50;
}

/* Disclaimer */
#contact-section .contact-disclaimer {
  font-size: 0.68rem; color: rgba(255,255,255,0.30);
  line-height: 1.65; font-style: italic;
}

#contact-section .gf-two-col { width: calc(50% - 8px); flex: 0 0 calc(50% - 8px); }
/* ── Form label colours — dark bg (contact section default) ── */
#contact-section .gfield_label { color: rgba(255,255,255,0.70); }
#contact-section .gchoice label { color: rgba(255,255,255,0.80); }
#contact-section .ginput_container_consent label { color: rgba(255,255,255,0.55); }
#contact-section .gform_confirmation_message { color: rgba(255,255,255,0.80); background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.35); }
#contact-section .gform_ajax_spinner { border-color: rgba(255,255,255,0.30); border-top-color: #fff; }
@keyframes gf-spin { to { transform: rotate(360deg); } }

/* .light-section modifier on #contact-section */
#contact-section.light-section { background: #f5f5f5; }
#contact-section.light-section .contact-text h2 { color: var(--dark); }
#contact-section.light-section .contact-text p { color: #666; }
#contact-section.light-section .contact-text .reply { color: #999; }
#contact-section.light-section .contact-divider { background: #e5e5e5; }
#contact-section.light-section .contact-address-item + .contact-address-item { border-top-color: #eee; }
#contact-section.light-section .contact-address-icon { background: rgba(201,168,76,0.10); }
#contact-section.light-section .contact-address-text { color: #555; }
#contact-section.light-section .contact-badge-img { background: #fff; border-color: #eee; filter: none; }
#contact-section.light-section .contact-reg { color: #555; }
#contact-section.light-section .contact-disclaimer { color: #aaa; }
#contact-section.light-section .gfield_label { color: #555; }
#contact-section.light-section .gchoice label { color: #555; }
#contact-section.light-section .ginput_container_consent label { color: #777; }
#contact-section.light-section .ginput_container input[type="text"],
#contact-section.light-section .ginput_container input[type="email"],
#contact-section.light-section .ginput_container input[type="tel"],
#contact-section.light-section .ginput_container textarea { background: #fff; border-color: #ddd; }
#contact-section.light-section .gform_confirmation_message { color: #444; background: rgba(201,168,76,0.08); border-color: rgba(201,168,76,0.30); }
#contact-section.light-section .gform_ajax_spinner { border-color: rgba(0,0,0,0.15); border-top-color: var(--gold); }


/* =============================================================
   SHARED — FOOTER
   Layout: logo+tagline left | header#navbar links center | socials right
   Bottom bar: full-width copyright strip
   ============================================================= */
#footer-section { background: var(--navy-dark); color: rgba(255,255,255,0.50); }
#footer-section .container { padding-top: 52px; padding-bottom: 52px; }

/* Main row: logo | nav | socials */
#footer-section .footer-main {
  display: flex; align-items: center;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 24px;
}

/* ── Logo wrap — supports both dot-matrix markup and <img> logo ── */
#footer-section .f-logo-wrap {
  flex: 0 0 auto;
  display: flex; flex-direction: column;
  align-items: flex-start;
  min-width: 140px;
}

/* WP logo image */
#footer-section .f-logo-wrap img,
#footer-section .f-logo-wrap .site-logo img {
  height: 48px; width: auto;
  display: block;
  object-fit: contain;
  /* Invert dark logo to white on dark background */
  filter: brightness(0) invert(1);
  opacity: 0.90;
  margin-bottom: 8px;
}

/* Dot-matrix fallback */
#footer-section .dot-logo { margin-bottom: 4px; }
#footer-section .dot-row { display: flex; gap: 5px; margin-bottom: 5px; }
#footer-section .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
#footer-section .d1 { opacity: 0.25; }
#footer-section .d2 { opacity: 0.55; }
#footer-section .d3 { opacity: 0.90; }
#footer-section .f-brand-name {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 4px;
}
#footer-section .f-tagline {
  font-size: 0.74rem; font-style: italic;
  color: rgba(255,255,255,0.40); font-family: var(--serif);
}
#footer-section .f-divider {
  height: 1px; background: rgba(255,255,255,0.15);
  margin: 10px 0; width: 100%;
}

/* ── Nav — supports both hardcoded <ul class="f-nav"> and WP wp_nav_menu output ── */
#footer-section .footer-nav-wrap {
  flex: 1;
  position: static !important;
  z-index: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#footer-section .f-nav,
#footer-section .footer-nav-wrap ul,
#footer-section .footer-nav-wrap ul.f-nav,
#footer-section #menu-footer-menu {
  flex: 1;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 8px 0;
  list-style: none !important;
  margin: 0 !important; padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Pipe separators between items */
#footer-section .f-nav > li,
#footer-section #menu-footer-menu > li,
#footer-section .footer-nav-wrap ul > li {
  display: flex; align-items: center;
  background: transparent !important;
}
#footer-section .f-nav > li:not(:last-child)::after,
#footer-section #menu-footer-menu > li:not(:last-child)::after,
#footer-section .footer-nav-wrap ul > li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px; height: 12px;
  background: rgba(255,255,255,0.20) !important;
  margin: 0 16px;
}

/* Links */
#footer-section .f-nav a,
#footer-section #menu-footer-menu a,
#footer-section .footer-nav-wrap a {
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.60) !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: color 0.2s; white-space: nowrap;
}
#footer-section .f-nav a:hover,
#footer-section #menu-footer-menu a:hover,
#footer-section .footer-nav-wrap a:hover { color: var(--gold) !important; }

/* Hide WP sub-menus and dropdown chevrons in footer */
#footer-section .sub-menu { display: none !important; }
#footer-section li.menu-item-has-children > a::after { display: none !important; }

/* Social icons — right */
#footer-section .f-socials {
  flex: 0 0 auto;
  display: flex; gap: 10px; align-items: center;
}
#footer-section .fsoc {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.60); text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
#footer-section .fsoc:hover { border-color: var(--gold); color: var(--gold); }
#footer-section .fsoc svg { width: 16px; height: 16px; }

/* Bottom copyright bar */
#footer-section .footer-bot {
  text-align: center;
  font-size: 0.72rem; color: rgba(255,255,255,0.30);
  line-height: 1.60;
}
#footer-section .footer-bot a { color: rgba(255,255,255,0.35); text-decoration: none; }

@media (max-width: 900px) {
  #footer-section .footer-main {
    flex-direction: column; gap: 32px; text-align: center;
    align-items: center;
  }
  #footer-section .f-logo-wrap { align-items: center; }
  #footer-section .f-nav,
  #footer-section #menu-footer-menu,
  #footer-section .footer-nav-wrap ul { justify-content: center; }
}
@media (max-width: 600px) {
  #footer-section .f-nav > li:not(:last-child)::after,
  #footer-section #menu-footer-menu > li:not(:last-child)::after,
  #footer-section .footer-nav-wrap ul > li:not(:last-child)::after { margin: 0 10px; }
  #footer-section .f-nav a,
  #footer-section #menu-footer-menu a,
  #footer-section .footer-nav-wrap a { font-size: 0.78rem; }
}



/* =============================================================
   SHARED — SCROLL TO TOP
   ============================================================= */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); border: 1px solid rgba(201,168,76,0.40);
  color: var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, background 0.2s; z-index: 800;
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--gold); color: #fff; }
.scroll-top svg { width: 15px; height: 15px; }


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 768px) {
  #page-hero-section::before { background-attachment: scroll; background-position: center center; inset: 0; }
  #page-hero-section { min-height: 380px; }
  #page-hero-section .container { min-height: 280px; }
}

/* ── Nav height: 70px on mobile ── */
@media (max-width: 767px) {
  header#navbar,
  header#navbar { height: 70px !important; min-height: 70px !important; }
  header#navbar .nav-inner,
  header#navbar .nav-inner { height: 70px !important; }
  /* Logo 50px on mobile */
  header#navbar .nav-logo img,
  header#navbar .site-logo img,
  header#navbar .nav-logo img { height: 50px !important; }
  /* drawer top set by JS via setDrawerTop() */
}

@media (max-width: 1080px) {
  header#navbar .nav-links,
  header#navbar ul.menu-wrapper,
  header#navbar .site-menu,
  header#navbar #header-menu,
  header#navbar .btn-client,
  header#navbar li.btn-menu,
  header#navbar .nav-links,
  header#navbar .btn-client { display: none !important; }
  .hamburger, #mobile-nav-open { display: flex !important; }
  .container { padding-left: 15px; padding-right: 15px; }
  header#navbar .nav-inner,
  header#navbar .nav-inner { padding-left: 32px; padding-right: 32px; }
  #hero-section .hero-left { padding: 60px 40px; }
  #who-section .who-grid { grid-template-columns: repeat(2, 1fr); }
  #difference-section .diff-grid { grid-template-columns: repeat(2, 1fr); }
  #difference-section .diff-cell:nth-child(3n) { border-right: 1px solid #e8e8e8; }
  #difference-section .diff-cell:nth-child(2n) { border-right: none; }
  #why-section .why-grid-top { grid-template-columns: repeat(2, 1fr); }
  #founder-section .container { grid-template-columns: 1fr; gap: 40px; }
  #what-we-do-section .container { grid-template-columns: 1fr; gap: 48px; }
  /* Contact: collapse to single column, reorder: text → form → info */
  #contact-section .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: none;
    gap: 32px;
  }
  #contact-section .contact-text  { grid-area: auto; order: 1; }
  #contact-section .gform_wrapper { grid-area: auto; order: 2; max-width: 100%; margin-left: 0; }
  #contact-section .contact-info  { grid-area: auto; order: 3; }
  #contact-section .gf-two-col { width: 100%; flex: 0 0 100%; }
}

@media (max-width: 700px) {
  .container { padding-left: 20px; padding-right: 20px; }
  header#navbar .nav-inner,
  header#navbar .nav-inner { padding-left: 20px; padding-right: 20px; }
  #hero-section .container { flex-direction: column; min-height: unset; }
  #hero-section .hero-left { flex: none; width: 100%; padding: 88px 20px 40px; max-width: 100%; }
  #hero-section .hero-right { flex: none; width: 100%; height: 300px; }
  #hero-section .hero-right img { height: 100%; }
  #stats-section .container { flex-direction: column; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
  #stats-section .stat-item + .stat-item { border-left: none; border-top: 1px solid #ddd; padding-top: 24px; }
  #how-section .container { flex-direction: column; padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  #how-section .how-img { width: 100%; }
  #who-section .container, #difference-section .container { padding-top: 56px; padding-bottom: 56px; }
  #who-section .who-grid { grid-template-columns: 1fr; }

  /* Single column — override all desktop :has() grid tricks */
  #difference-section .diff-grid,
  #difference-section .diff-grid:has(.diff-cell:nth-child(3n+2):last-child) {
    grid-template-columns: 1fr !important;
  }
  /* Every cell: no right border, keep bottom border except truly last */
  #difference-section .diff-cell,
  #difference-section .diff-grid:has(.diff-cell:nth-child(3n+2):last-child) .diff-cell {
    border-right: none !important;
    grid-column: 1 / -1 !important;
  }
  /* Restore bottom borders so rows are separated */
  #difference-section .diff-cell { border-bottom: 1px solid #e8e8e8; }
  #difference-section .diff-cell:last-child { border-bottom: none; }
  #contact-section .gf-two-col { width: 100%; flex: 0 0 100%; }
  #page-hero-section .container { padding-top: 48px; padding-bottom: 48px; }
  #what-we-do-section .wwd-right img { height: 280px; }
}



/* =============================================================
   MEDICAL PROFESSIONALS PAGE
   ============================================================= */

/* ── PAGE INTRO ── */
#med-intro-section { background: #fff; }
#med-intro-section .container { padding-top: 64px; padding-bottom: 52px; }
#med-intro-section .eyebrow { margin-bottom: 10px; }
#med-intro-section h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.12; margin-bottom: 16px; max-width: 820px;
}
#med-intro-section .intro-lead {
  font-size: 0.88rem; color: #666; line-height: 1.80; max-width: 860px;
}

/* ── SERVICE CARDS ── */
#med-cards-section { background: #fff; }
#med-cards-section .container { padding-top: 24px; padding-bottom: 72px; }

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.svc-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.svc-card-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block;
  border-radius: 4px; margin-bottom: 20px; background: #e8e4de;
}
.svc-card-title {
  font-family: var(--serif);
  font-size: 1.25rem; font-weight: 700;
  color: var(--dark); line-height: 1.20; margin-bottom: 8px;
}
.svc-card-subtitle {
  font-size: 0.78rem; font-weight: 600;
  color: var(--gold); line-height: 1.40; margin-bottom: 10px;
}
.svc-card-desc {
  font-size: 0.82rem; color: #666;
  line-height: 1.75; margin-bottom: 18px; flex: 1;
}
.svc-card-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--gold); text-decoration: none;
  border: 1.5px solid var(--gold);
  padding: 10px 18px; border-radius: 6px;
  align-self: flex-start;
  transition: background 0.2s, color 0.2s;
}
.svc-card-btn:hover { background: var(--gold); color: #fff; }
.svc-card-btn svg { width: 12px; height: 12px; }

/* ── WHY PROFINITI (page-specific) ── */
#why-profiniti-section { background: #fff; border-top: 1px solid #f0f0f0; }
#why-profiniti-section .container { padding-top: 72px; padding-bottom: 72px; }
#why-profiniti-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700; color: var(--dark);
  text-align: center; margin-bottom: 52px;
}
.why-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.why-col-title { font-size: 0.82rem; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.why-col-desc { font-size: 0.80rem; color: #666; line-height: 1.75; }

/* ── CONNECTED SERVICES ── */
#connected-services-section { background: #fff; border-top: 1px solid #f0f0f0; }
#connected-services-section .container {
  padding-top: 72px; padding-bottom: 80px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.cs-left .eyebrow { margin-bottom: 12px; }
.cs-left h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.12; margin-bottom: 16px;
}
.cs-left .cs-lead { font-size: 0.86rem; color: #666; line-height: 1.80; margin-bottom: 32px; }

.cs-accordion { border-top: 1px solid #e5e5e5; }
.cs-item { border-bottom: 1px solid #e5e5e5; }
.cs-header { display: flex; align-items: center; gap: 14px; padding: 17px 0; cursor: pointer; user-select: none; }
.cs-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--gold); opacity: 0.18;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity 0.2s;
}
.cs-item.open .cs-icon { opacity: 1; }
.cs-icon svg { width: 16px; height: 16px; stroke: var(--navy); }
.cs-item.open .cs-icon svg { stroke: #fff; }
.cs-title { flex: 1; font-size: 0.90rem; font-weight: 600; color: var(--dark); }
.cs-toggle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #ddd; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #aaa; transition: border-color 0.2s, background 0.2s;
  font-size: 1.1rem; line-height: 1; font-weight: 300;
}
.cs-item.open .cs-toggle { background: var(--gold); border-color: var(--gold); color: #fff; }
.cs-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.35s;
  padding: 0 0 0 50px;
}
.cs-item.open .cs-body { max-height: 160px; padding: 0 0 16px 50px; }
.cs-body p { font-size: 0.82rem; color: #777; line-height: 1.75; }

.cs-right { position: relative; }
.cs-right img {
  width: 100%; border-radius: 6px;
  object-fit: cover; display: block;
  height: 520px; box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* ── FAQ SECTION ── */
#faq-section { background: #faf9f7; border-top: 1px solid #eeebe5; }
#faq-section .container { padding-top: 80px; padding-bottom: 80px; }
#faq-section .faq-header { max-width: 560px; margin-bottom: 52px; }
#faq-section .faq-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.15; margin-bottom: 12px;
}
#faq-section .faq-header p { font-size: 0.88rem; color: #777; line-height: 1.75; }

.faq-grid { display: flex; flex-direction: column; max-width: 780px; margin: 0 auto; }
.faq-col { }
.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-item:first-child { border-top: 1px solid #e5e5e5; }
.faq-question {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 20px 0; cursor: pointer; user-select: none;
}
.faq-question-text {
  font-size: 0.92rem; font-weight: 600;
  color: var(--dark); line-height: 1.40; flex: 1; transition: color 0.2s;
}
.faq-item.open .faq-question-text { color: var(--gold); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid #ddd; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; margin-top: 1px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.3s;
  font-size: 1.1rem; line-height: 1; font-weight: 300;
}
.faq-item.open .faq-icon {
  border-color: var(--gold); background: var(--gold); color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  padding: 0;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { font-size: 0.85rem; color: #666; line-height: 1.80; }
.faq-answer p + p { margin-top: 10px; }

/* ── RESPONSIVE — medical professionals page ── */
@media (max-width: 1080px) {
  .service-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .why-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  #connected-services-section .container { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .service-cards-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-cols { grid-template-columns: 1fr; gap: 20px; }
  #med-intro-section .container { padding-top: 40px; padding-bottom: 32px; }
}


/* =============================================================
   INSIGHTS PAGE
   ============================================================= */
/* Page hero */
#insights-hero { background: var(--navy); }
#insights-hero .container { padding-top: 56px; padding-bottom: 56px; }
#insights-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700; color: #fff; margin-bottom: 10px;
}
#insights-hero p {
  font-size: 0.90rem; color: rgba(255,255,255,0.60); line-height: 1.70;
  max-width: 520px;
}

/* Featured post */
#insights-featured { background: #fff; border-bottom: 1px solid #eee; }
#insights-featured .container { padding-top: 56px; padding-bottom: 48px; }
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 10px; overflow: hidden;
  border: 1px solid #e8e8e8;
  text-decoration: none; color: inherit;
  transition: box-shadow 0.25s;
}
.featured-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.10); }
.featured-img {
  width: 100%; height: 100%; min-height: 320px;
  object-fit: cover; display: block; background: #e8e4de;
}
.featured-body {
  padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.featured-tag {
  display: inline-block; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #fff; background: var(--gold);
  padding: 3px 10px; border-radius: 4px; margin-bottom: 16px;
}
.featured-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.20; margin-bottom: 14px;
}
.featured-body p {
  font-size: 0.88rem; color: #666; line-height: 1.75; margin-bottom: 20px; flex: 1;
}
.featured-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: #aaa;
}
.featured-meta .sep { color: #ddd; }

/* Filter bar */
#insights-filters { background: #fff; border-bottom: 1px solid #eee; }
#insights-filters .container {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.filter-btn {
  font-size: 0.78rem; font-weight: 500;
  padding: 7px 18px; border-radius: 100px;
  border: 1.5px solid #ddd; background: #fff;
  color: #555; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.filter-sep {
  width: 1px; height: 20px; background: #e0e0e0; margin: 0 4px;
}

/* Articles grid */
#insights-grid { background: #fff; }
#insights-grid .container { padding-top: 40px; padding-bottom: 72px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* Image overlay card — matching screenshot */
.ins-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: 10px; overflow: hidden;
  position: relative; aspect-ratio: 3/4;
  background: var(--navy);
  transition: transform 0.25s, box-shadow 0.25s;
}
.ins-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.20); }

.ins-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.45; transition: opacity 0.35s;
  display: block;
}
.ins-card:hover .ins-card-img { opacity: 0.35; }

/* Blue-navy colour overlay (matches screenshot tint) */
.ins-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
          to bottom,
          rgba(185, 148, 62, 0.20) 0%,
          rgba(185, 148, 62, 0.50) 50%,
          rgba(185, 148, 62, 0.88) 100%
  );
}

/* Card content */
.ins-card-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 16px;
}

/* Category badge — top left */
.ins-badge {
  display: inline-block; align-self: flex-start;
  font-size: 0.60rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--gold);
  padding: 3px 8px; border-radius: 3px;
  margin-bottom: auto;
}
.ins-badge.articles { background: #6b7fd4; }

/* Title */
.ins-title {
  font-size: 0.88rem; font-weight: 600;
  color: #fff; line-height: 1.35;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.40);
}

/* Date + read time — bottom */
.ins-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto;
}
.ins-date {
  font-size: 0.66rem; font-weight: 600;
  color: #fff; background: rgba(20,35,75,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 3px 8px; border-radius: 3px;
  white-space: nowrap;
}
.ins-read {
  font-size: 0.70rem; color: rgba(255,255,255,0.80);
}

/* Pagination */
.ins-pagination {
  display: flex; align-items: center; justify-content: space-between;
}
.page-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.80rem; font-weight: 500;
  color: var(--dark); background: #fff;
  border: 1.5px solid #ddd; border-radius: 6px;
  padding: 10px 20px; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.page-btn:hover { border-color: var(--dark); }
.page-btn svg { width: 14px; height: 14px; }
.page-btn.disabled { opacity: 0.35; pointer-events: none; }

/* Responsive */
@media (max-width: 1080px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 260px; }
}
@media (max-width: 700px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .featured-body { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .articles-grid { grid-template-columns: 1fr; }
}


/* =============================================================
   INTERNATIONAL BUSINESS PAGE
   ============================================================= */
#intl-hero {
  position: relative; min-height: 420px; padding-top: 90px;
  display: flex; align-items: center; overflow: hidden;
}
#intl-hero::before {
  content: ''; position: absolute; inset: -60px 0;
  background-image: url('https://profiniti.com.au/wp-content/uploads/2026/05/Sydney-CBD-Aerial-Sunset.webp'),
  url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1800&auto=format');
  background-size: cover; background-position: center 35%;
  background-repeat: no-repeat; background-attachment: fixed; z-index: 0;
}
#intl-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,18,35,0.82) 40%, rgba(10,18,35,0.45) 100%);
  z-index: 1;
}
#intl-hero .container {
  position: relative; z-index: 2;
  padding-top: 80px; padding-bottom: 80px;
}
#intl-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700; color: #fff;
  line-height: 1.10; max-width: 700px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.40);
}


#intl-intro { background: #fff; }
#intl-intro .container { padding-top: 72px; padding-bottom: 72px; }
#intl-intro .eyebrow { margin-bottom: 12px; }
#intl-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.18; margin-bottom: 20px; max-width: 680px;
}
#intl-intro .intro-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 860px;
}
#intl-intro p { font-size: 0.88rem; color: #666; line-height: 1.80; }


.intl-wwd { background: #fff; }
.intl-wwd.alt { background: #faf9f7; }
.intl-wwd .container {
  padding-top: 72px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.intl-wwd.alt .container {
  direction: ltr;
}
.intl-wwd.alt .intl-wwd-right { order: -1; }
.intl-wwd.alt .intl-wwd-left { order: 1; }

.intl-wwd-left .section-tag {
  font-size: 0.72rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.intl-wwd-left h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.18; margin-bottom: 14px;
}
.intl-wwd-left .wwd-lead {
  font-size: 0.86rem; color: #666; line-height: 1.80; margin-bottom: 28px;
}

/* Accordion */
.intl-acc { border-top: 1px solid #e5e5e5; }
.intl-acc-item { border-bottom: 1px solid #e5e5e5; }
.intl-acc-header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; cursor: pointer; user-select: none;
}
.intl-acc-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gold); opacity: 0.18;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: opacity 0.2s;
}
.intl-acc-item.open .intl-acc-icon { opacity: 1; }
.intl-acc-icon svg { width: 15px; height: 15px; stroke: var(--navy); }
.intl-acc-item.open .intl-acc-icon svg { stroke: #fff; }
.intl-acc-title { flex: 1; font-size: 0.90rem; font-weight: 600; color: var(--dark); }
.intl-acc-toggle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #ddd; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #aaa; transition: background 0.2s, border-color 0.2s;
  font-size: 1rem; line-height: 1;
}
.intl-acc-item.open .intl-acc-toggle { background: var(--gold); border-color: var(--gold); color: #fff; }
.intl-acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), padding 0.35s;
  padding: 0 0 0 48px;
}
.intl-acc-item.open .intl-acc-body { max-height: 320px; padding: 0 0 16px 48px; }
.intl-acc-body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.intl-acc-body li {
  font-size: 0.82rem; color: #666; line-height: 1.55;
  padding-left: 14px; position: relative;
}
.intl-acc-body li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

.intl-wwd-right img {
  width: 100%; border-radius: 8px; object-fit: cover; display: block;
  height: 480px; box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}


#intl-why { background: #fff; border-top: 1px solid #f0f0f0; }
#intl-why .container {
  padding-top: 72px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
#intl-why .why-img img {
  width: 100%; border-radius: 8px; object-fit: cover;
  display: block; height: 480px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.why-right .section-tag {
  font-size: 0.72rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px;
}
.why-right h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.18; margin-bottom: 20px;
}
.why-right p { font-size: 0.86rem; color: #666; line-height: 1.80; margin-bottom: 16px; }


#intl-who { background: #fff; border-top: 1px solid #f0f0f0; }
#intl-who .container {
  padding-top: 72px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.intl-who-left .section-tag {
  font-size: 0.72rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px;
}
.intl-who-left h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.15; margin-bottom: 36px;
}
/* List — clean divider rows, no bullets */
.who-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid #e5e5e5;
}
.who-list li {
  font-size: 0.90rem; color: #555; line-height: 1.55;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}
.intl-who-right img {
  width: 100%; border-radius: 10px; object-fit: cover;
  display: block; height: 520px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.10);
}


#intl-difference {
  background: var(--navy);
  text-align: center;
}
#intl-difference .container { padding-top: 80px; padding-bottom: 80px; }
.diff-section-tag {
  font-size: 0.72rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 12px;
}
#intl-difference h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700; color: #fff;
  line-height: 1.12; margin-bottom: 12px;
}
#intl-difference .diff-sub {
  font-size: 0.88rem; color: rgba(255,255,255,0.55);
  line-height: 1.70; max-width: 440px; margin: 0 auto 52px;
}

.intl-diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; overflow: hidden;
  max-width: 860px; margin: 0 auto;
}
.intl-diff-cell {
  padding: 36px 24px; border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.intl-diff-cell:nth-child(3n) { border-right: none; }
.intl-diff-cell:nth-last-child(-n+3):nth-child(3n+1),
.intl-diff-cell:last-child,
.intl-diff-cell:nth-last-child(2):not(:nth-child(3n)) { border-bottom: none; }
.intl-diff-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.20);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: var(--gold);
}
.intl-diff-icon svg { width: 18px; height: 18px; }
.intl-diff-title {
  font-family: var(--serif); font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: 8px; line-height: 1.25;
}
.intl-diff-desc { font-size: 0.78rem; color: rgba(255,255,255,0.50); line-height: 1.70; }


#intl-cta { background: #faf9f7; border-top: 1px solid #eeebe5; }
#intl-cta .container { padding-top: 80px; padding-bottom: 80px; text-align: center; }
#intl-cta .eyebrow { margin-bottom: 10px; }
#intl-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.18; margin-bottom: 14px;
}
#intl-cta p {
  font-size: 0.90rem; color: #777;
  line-height: 1.75; max-width: 500px; margin: 0 auto 36px;
}
#intl-cta .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


@media (max-width: 768px) {
  #intl-hero::before { background-attachment: scroll; inset: 0; }
  #intl-hero { min-height: 280px; }
}
@media (max-width: 1080px) {
  .intl-wwd .container,
  .intl-wwd.alt .container { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
  #intl-why .container { grid-template-columns: 1fr; gap: 40px; }
  #intl-who .container { grid-template-columns: 1fr; gap: 40px; }
  .intl-diff-grid { grid-template-columns: repeat(2, 1fr); }
  .intl-diff-cell:nth-child(2n) { border-right: none; }
  .intl-diff-cell:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.12); }
  .intl-diff-cell:nth-child(3n):nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .intl-wwd-right img, #intl-why .why-img img, .intl-who-right img { height: 260px; }
  .intl-diff-grid { grid-template-columns: 1fr; }
  .intl-diff-cell { border-right: none !important; }
  #intl-intro .intro-cols { grid-template-columns: 1fr; gap: 16px; }
}


/* =============================================================
   SMEs AND FOUNDERS PAGE
   ============================================================= */
#sme-hero {
  position: relative; min-height: 380px; padding-top: 90px;
  display: flex; align-items: center; overflow: hidden;
}
#sme-hero::before {
  content: ''; position: absolute; inset: -60px 0;
  background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=1800&auto=format');
  background-size: cover; background-position: center 40%;
  background-attachment: fixed; z-index: 0;
}
#sme-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,18,35,0.65) 0%, rgba(10,18,35,0.72) 100%);
  z-index: 1;
}
#sme-hero .container { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; text-align: center; }
#sme-hero h1 {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.40);
}
@media (max-width: 768px) { #sme-hero::before { background-attachment: scroll; inset: 0; } }


#sme-intro { background: #fff; }
#sme-intro .container { padding-top: 72px; padding-bottom: 72px; }
#sme-intro .eyebrow { margin-bottom: 12px; }
#sme-intro h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; color: var(--dark); line-height: 1.14; margin-bottom: 20px; max-width: 820px;
}
#sme-intro p { font-size: 0.90rem; color: #666; line-height: 1.80; max-width: 720px; }


.sme-wwd { background: #fff; }
.sme-wwd.alt { background: #faf9f7; }
.sme-wwd .container {
  padding-top: 72px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
.sme-wwd.alt .sme-wwd-img { order: -1; }
.sme-wwd.alt .sme-wwd-left { order: 1; }

.sme-wwd-left .section-tag {
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px;
}
.sme-wwd-left h2 {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700; color: var(--dark); line-height: 1.18; margin-bottom: 12px;
}
.sme-wwd-left .wwd-lead { font-size: 0.86rem; color: #666; line-height: 1.80; margin-bottom: 28px; }

.sme-acc { border-top: 1px solid #e5e5e5; }
.sme-acc-item { border-bottom: 1px solid #e5e5e5; }
.sme-acc-header {
  display: flex; align-items: center; gap: 13px; padding: 15px 0;
  cursor: pointer; user-select: none;
}
.sme-acc-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--gold);
  opacity: 0.18; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity 0.2s;
}
.sme-acc-item.open .sme-acc-icon { opacity: 1; }
.sme-acc-icon svg { width: 14px; height: 14px; stroke: var(--navy); }
.sme-acc-item.open .sme-acc-icon svg { stroke: #fff; }
.sme-acc-title { flex: 1; font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.sme-acc-toggle {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #ddd;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #aaa; font-size: 1rem; line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
.sme-acc-item.open .sme-acc-toggle { background: var(--gold); border-color: var(--gold); color: #fff; }
.sme-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), padding 0.35s; padding: 0 0 0 45px; }
.sme-acc-item.open .sme-acc-body { max-height: 160px; padding: 0 0 14px 45px; }
.sme-acc-body p { font-size: 0.82rem; color: #666; line-height: 1.75; margin: 0; }

.sme-wwd-img img {
  width: 100%; border-radius: 8px; object-fit: cover; display: block;
  height: 520px; box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}


#sme-who { background: #fff; border-top: 1px solid #f0f0f0; }
#sme-who .container {
  padding-top: 72px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
.sme-who-img img {
  width: 100%; border-radius: 8px; object-fit: cover;
  display: block; height: 580px; box-shadow: 0 16px 48px rgba(0,0,0,0.10);
}
.sme-who-right .section-tag {
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px;
}
.sme-who-right h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700; color: var(--dark); line-height: 1.15; margin-bottom: 32px;
}
.who-stages { display: flex; flex-direction: column; gap: 0; }
.who-stage { padding: 20px 0; border-bottom: 1px solid #eee; }
.who-stage:last-child { border-bottom: none; }
.who-stage-title {
  font-size: 0.84rem; font-weight: 600; color: var(--dark); margin-bottom: 10px;
}
.who-stage ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.who-stage li {
  font-size: 0.82rem; color: #666; line-height: 1.60;
  padding-left: 16px; position: relative;
}
.who-stage li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}


#sme-difference { background: var(--navy); text-align: center; }
#sme-difference .container { padding-top: 80px; padding-bottom: 80px; }
.sme-diff-tag { font-size: 0.72rem; font-weight: 600; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
#sme-difference h2 {
  font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; color: #fff; line-height: 1.12; margin-bottom: 10px;
}
#sme-difference .diff-sub {
  font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.70;
  max-width: 420px; margin: 0 auto 52px;
}
.sme-diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  overflow: hidden; max-width: 860px; margin: 0 auto;
}
.sme-diff-cell {
  padding: 34px 22px; border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12); text-align: center;
}
.sme-diff-cell:nth-child(3n) { border-right: none; }
.sme-diff-cell:nth-last-child(-n+3) { border-bottom: none; }
.sme-diff-cell:last-child { border-bottom: none; border-right: none; }
.sme-diff-icon {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.20);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: var(--gold);
}
.sme-diff-icon svg { width: 17px; height: 17px; }
.sme-diff-title { font-family: var(--serif); font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 7px; line-height: 1.25; }
.sme-diff-desc { font-size: 0.76rem; color: rgba(255,255,255,0.50); line-height: 1.70; }


#sme-cta { background: #faf9f7; border-top: 1px solid #eeebe5; }
#sme-cta .container { padding-top: 80px; padding-bottom: 80px; text-align: center; }
#sme-cta .eyebrow { margin-bottom: 10px; }
#sme-cta h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; color: var(--dark); line-height: 1.18; margin-bottom: 14px;
}
#sme-cta p { font-size: 0.90rem; color: #777; line-height: 1.75; max-width: 500px; margin: 0 auto 36px; }
#sme-cta .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


@media (max-width: 1080px) {
  .sme-wwd .container, .sme-wwd.alt .container { grid-template-columns: 1fr; gap: 40px; }
  .sme-wwd.alt .sme-wwd-img { order: 0; }
  .sme-wwd.alt .sme-wwd-left { order: 0; }
  #sme-who .container { grid-template-columns: 1fr; gap: 40px; }
  .sme-diff-grid { grid-template-columns: repeat(2, 1fr); }
  .sme-diff-cell:nth-child(2n) { border-right: none; }
  .sme-diff-cell:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.12); }
  .sme-diff-cell:nth-child(2n) { border-right: none !important; }
  .sme-diff-cell:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .sme-wwd-img img, .sme-who-img img { height: 260px; }
  .sme-diff-grid { grid-template-columns: 1fr; }
  .sme-diff-cell { border-right: none !important; }
  .sme-diff-cell:nth-last-child(-n+1) { border-bottom: none; }
}


/* =============================================================
   ARTICLE PAGE
   ============================================================= */
/* Breadcrumb */
.article-breadcrumb {
  padding: 14px 0 0;
  font-size: 0.75rem;
  color: #aaa;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.article-breadcrumb a { color: #888; text-decoration: none; transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--gold); }
.article-breadcrumb .sep { color: #ccc; }
.article-breadcrumb .current { color: var(--dark); font-weight: 500; }

/* Hero banner */
#article-hero {
  background: #fff;
  padding: 32px 0;
}
#article-hero .container {
  padding: 40px 0 40px 48px;
  display: grid;
  grid-template-columns: 1fr 40%;
  gap: 0;
  align-items: end;
  background: #fafbfc;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
}
#article-hero .hero-left { }
.article-category {
  display: inline-block;
  font-size: 0.70rem; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
#article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.12; margin-bottom: 28px;
}

/* Author + share row */
.article-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
}
.article-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 115px; height: 115px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: var(--dark); flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.author-role { font-size: 0.78rem; color: #999; }

.share-block { display: flex; align-items: center; gap: 10px; }
.share-label { font-size: 0.75rem; color: #888; font-weight: 500; }
.share-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: opacity 0.2s;
}
.share-icon:hover { opacity: 0.80; }
.share-icon svg { width: 16px; height: 16px; }
.share-ig { background: #E1306C; color: #fff; }
.share-fb { background: #1877F2; color: #fff; }
.share-li { background: #0A66C2; color: #fff; }

.article-dateline {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.75rem; color: #aaa;
}
.article-dateline .sep { color: #ddd; }
.article-dateline .read-time { display: flex; align-items: center; gap: 5px; }
.article-dateline svg { width: 13px; height: 13px; }

/* Hero image — ~40% width, flush to container edges */
.article-hero-img {
  align-self: stretch;
  min-height: 260px;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  margin: -40px -48px -40px 0;
}
.article-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
  display: block; min-height: 380px;
}

/* Main layout: article content + sidebar */
#article-body { background: #fff; }
#article-body .container {
  padding-top: 56px; padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

/* Article content */
.article-content { min-width: 0; }

.article-lead {
  font-size: 0.95rem; color: #555;
  line-height: 1.80; margin-bottom: 36px;
  padding-bottom: 36px; border-bottom: 1px solid #eee;
}

/* Callout box — Key Takeaways */
.article-callout {
  background: #faf9f7;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.article-callout h3 {
  font-family: var(--serif);
  font-size: 1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 12px;
}
.article-callout ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.article-callout li {
  font-size: 0.84rem; color: #555;
  line-height: 1.65; padding-left: 18px; position: relative;
}
.article-callout li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

/* ── .text-content — reusable rich text styles
   Used on article pages, guide pages, default page.php content.
   Apply as: <article class="article-content text-content">
   or standalone: <div class="text-content">
──────────────────────────────────────────────── */

/* Headings */
.text-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.20; margin: 40px 0 16px;
}
.text-content h2:first-child { margin-top: 0; }

.text-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.25; margin: 32px 0 12px;
}
.text-content h3:first-child { margin-top: 0; }

.text-content h4 {
  font-family: var(--sans);
  font-size: 0.95rem; font-weight: 600; color: var(--dark);
  margin: 24px 0 10px;
}
.text-content h4:first-child { margin-top: 0; }

/* Paragraphs */
.text-content p {
  font-size: 0.88rem; color: #555;
  line-height: 1.85; margin-bottom: 16px;
}
.text-content p:last-child { margin-bottom: 0; }

/* Lists */
.text-content ul,
.text-content ol {
  margin: 0 0 18px; padding-left: 0;
  list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.text-content li {
  font-size: 0.88rem; color: #555; line-height: 1.70;
  padding-left: 20px; position: relative;
}
.text-content ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}
.text-content ol { counter-reset: ol-tc; }
.text-content ol li { counter-increment: ol-tc; }
.text-content ol li::before {
  content: counter(ol-tc) '.';
  position: absolute; left: 0; top: 0;
  font-size: 0.80rem; font-weight: 600; color: var(--gold);
}

/* Links */
.text-content a {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  transition: border-color 0.2s;
}
.text-content a:hover { border-color: var(--gold); }

/* Blockquote */
.text-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.6em 0; padding: 4px 0 4px 22px;
}
.text-content blockquote p {
  font-size: 0.95rem; font-style: italic; color: #444; margin: 0;
}

/* Horizontal rule */
.text-content hr {
  border: none; border-top: 1px solid #e8e8e8; margin: 2em 0;
}

/* Images */
.text-content img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
.text-content figure { margin: 1.6em 0; }
.text-content figcaption { font-size: 0.75rem; color: #aaa; margin-top: 8px; text-align: center; }

/* Tables */
.text-content table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.88rem; line-height: 1.55; margin-bottom: 1.4em;
  border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden;
}
.text-content table td,
.text-content table th {
  padding: 12px 16px; border-bottom: 1px solid #e5e5e5;
  vertical-align: top; color: #555; text-align: left;
}
.text-content table tr:first-child td,
.text-content table thead th {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--gold); background: rgba(201,168,76,0.06);
  border-bottom: 2px solid rgba(201,168,76,0.25);
}
.text-content table tbody tr:nth-child(even) { background: rgba(0,0,0,0.018); }
.text-content table tbody tr:last-child td { border-bottom: none; }

/* Alias — article-content inherits all text-content styles */
.article-content.text-content { min-width: 0; }

/* FAQ accordion in article */
.article-faq { margin-top: 8px; }
.article-faq h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700; color: var(--dark);
  margin-bottom: 20px;
}
.afaq-item { border-bottom: 1px solid #e8e8e8; }
.afaq-item:first-of-type { border-top: 1px solid #e8e8e8; }
.afaq-question {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 16px 0; cursor: pointer; user-select: none;
}
.afaq-q-text {
  font-size: 0.88rem; font-weight: 600; color: var(--dark);
  line-height: 1.45; flex: 1; transition: color 0.2s;
}
.afaq-item.open .afaq-q-text { color: var(--gold); }
.afaq-icon {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #ddd; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #aaa; line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s;
}
.afaq-item.open .afaq-icon { background: var(--gold); border-color: var(--gold); color: #fff; transform: rotate(45deg); }
.afaq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.3s; }
.afaq-item.open .afaq-answer { max-height: 200px; padding-bottom: 16px; }
.afaq-answer p { font-size: 0.84rem; color: #666; line-height: 1.75; margin: 0; }

/* CTA block inside article */
.article-cta {
  background: #faf9f7; border: 1px solid #eeebe5;
  border-radius: 8px; padding: 28px 28px;
  text-align: center; margin: 36px 0;
}
.article-cta p {
  font-size: 0.88rem; color: #666;
  line-height: 1.70; margin-bottom: 16px;
}
.article-cta .btn-filled { margin: 0 auto; }

/* Last updated note */
.article-updated {
  font-size: 0.74rem; color: #aaa;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid #eee;
}

/* Author bio box */
.author-bio-box {
  margin-top: 40px; padding: 28px;
  border: 1px solid #e8e8e8; border-radius: 10px;
  display: flex; gap: 20px; align-items: flex-start;
}
.author-bio-avatar {
  width: 125px; height: 125px; border-radius: 50%;
  background: var(--navy); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; color: var(--gold);
}
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .author-bio-box { flex-direction: column; align-items: center; text-align: center; }
}
.author-bio-text h4 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  color: var(--dark); margin-bottom: 2px;
}
.author-bio-text .bio-role { font-size: 0.75rem; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.author-bio-text p { font-size: 0.82rem; color: #666; line-height: 1.75; margin: 0; }

/* Bottom share */
.article-share-bottom {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid #eee;
  display: flex; align-items: center; gap: 12px;
}
.article-share-bottom .share-label { font-size: 0.80rem; color: #888; font-weight: 500; }


.article-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  border: 1px solid #e8e8e8; border-radius: 10px; padding: 22px 20px;
}
.sidebar-widget h4 {
  font-family: var(--serif); font-size: 0.95rem; font-weight: 700;
  color: var(--dark); margin-bottom: 14px;
}
.toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  font-size: 0.78rem; color: #666; text-decoration: none;
  line-height: 1.50; display: block; padding: 5px 0;
  border-bottom: 1px solid #f5f5f5; transition: color 0.2s, padding-left 0.2s;
}
.toc-list a:hover { color: var(--gold); }
.toc-list a.toc-active { color: var(--gold); font-weight: 600; padding-left: 8px; border-left: 2px solid var(--gold); margin-left: -10px; padding-left: 8px; }
.toc-list li:last-child a { border-bottom: none; }

.sidebar-cta { background: var(--navy); border: none; }
.sidebar-cta h4 { color: var(--gold); }
.sidebar-cta p { font-size: 0.80rem; color: rgba(255,255,255,0.60); line-height: 1.65; margin-bottom: 16px; }
.sidebar-cta .btn-filled { width: 100%; justify-content: center; font-size: 0.78rem; padding: 11px 16px; }


#related-section { background: #faf9f7; border-top: 1px solid #eeebe5; }
#related-section .container { padding-top: 64px; padding-bottom: 72px; }
.related-eyebrow { font-size: 0.74rem; font-weight: 600; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
#related-section h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 700; color: var(--dark); margin-bottom: 36px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow 0.25s, transform 0.25s; }
.related-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); transform: translateY(-3px); }
.related-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #e8e4de; }
.related-card-body { padding: 18px 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.related-tag { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.related-card-title { font-family: var(--serif); font-size: 0.95rem; font-weight: 700; color: var(--dark); line-height: 1.30; }
.related-card-desc { font-size: 0.78rem; color: #777; line-height: 1.65; flex: 1; }
.related-card-date { font-size: 0.70rem; color: #bbb; }

/* Responsive */
@media (max-width: 1024px) {
  #article-hero { padding: 16px 0; }
  #article-hero .container { grid-template-columns: 1fr; padding: 24px 20px 0; overflow: hidden; }
  .article-hero-img { min-height: 220px; border-radius: 0 0 12px 12px; margin: 24px 0 0 0; }
  #article-body .container { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #article-hero h1 { font-size: 1.65rem; }
  .article-meta { flex-direction: column; align-items: flex-start; }
  .related-grid { grid-template-columns: 1fr; }
}


/* =============================================================
   BREADCRUMB
   ============================================================= */
#insights-breadcrumb,
.page-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #eee;
}
#insights-breadcrumb .container,
.page-breadcrumb .container {
  padding-top: 14px;
  padding-bottom: 14px;
}
.breadcrumb-list {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.breadcrumb-item {
  display: flex; align-items: center;
  font-size: 0.78rem; color: #999;
}
.breadcrumb-item a {
  color: #888; text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-item a:hover { color: var(--gold); }

/* Separator › between items */
.breadcrumb-item:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px; flex-shrink: 0;
  margin: 0 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23ccc' stroke-width='1.8'%3E%3Cpath d='M3 2l4 3-4 3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Current page item */
.breadcrumb-item.current { color: var(--dark); font-weight: 500; }


/* =============================================================
   FAQ ITEMS — Option B (borderless rows, gold left-border on open)
   ============================================================= */
.faq-items {
  border-top: 1px solid #e5e5e5;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  transition: border-left 0.2s;
}

/* Open state — gold left border accent */
.faq-item.is-open {
  border-left: 2.5px solid var(--gold);
  padding-left: 20px;
  margin-left: -20px;
}

/* Question button */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question-text {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.40;
  transition: color 0.2s;
}
.faq-item.is-open .faq-question-text { color: var(--gold); }

/* Chevron icon — CSS-drawn to avoid font loading issues */
.faq-chevron {
  flex-shrink: 0;
  width: 18px; height: 18px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23aaa' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease, background-image 0.2s;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c9a84c' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E");
}

/* Answer */
.faq-answer {
  overflow: hidden;
  padding-bottom: 0;
}
.faq-answer[hidden] { display: none; }
.faq-answer:not([hidden]) { display: block; padding-bottom: 20px; }
.faq-answer p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.80;
  margin: 0;
}


/* =============================================================
   WP TABLE — figure.wp-block-table
   ============================================================= */

/* Remove WP block default margin/padding */
#page-content figure.wp-block-table {
  margin: 2rem 0;
  overflow-x: auto;          /* scroll on small screens */
  -webkit-overflow-scrolling: touch;
}

#page-content figure.wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.55;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  /* Override WP background colour classes */
  background: transparent !important;
  table-layout: auto;
}

/* All cells */
#page-content figure.wp-block-table table td,
#page-content figure.wp-block-table table th {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
  color: #555;
  text-align: left;
}

/* First column */
#page-content figure.wp-block-table table td:first-child,
#page-content figure.wp-block-table table th:first-child {
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  width: 30%;
}

/* Header row — first <tr> when it contains <strong> */
#page-content figure.wp-block-table table tbody tr:first-child td {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  border-bottom: 2px solid rgba(201,168,76,0.25);
  padding-top: 12px;
  padding-bottom: 12px;
}
#page-content figure.wp-block-table table tbody tr:first-child td strong {
  font-weight: 700;
  color: inherit;
}

/* Alternating row tint */
#page-content figure.wp-block-table table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.018);
}

/* Last row — no bottom border */
#page-content figure.wp-block-table table tbody tr:last-child td {
  border-bottom: none;
}

/* Outer table border */
#page-content figure.wp-block-table table {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

/* Responsive — tighten padding on mobile */
@media (max-width: 600px) {
  #page-content figure.wp-block-table table td,
  #page-content figure.wp-block-table table th {
    padding: 11px 12px;
    font-size: 0.82rem;
  }
  #page-content figure.wp-block-table table td:first-child {
    white-space: normal;
    width: auto;
  }
}


/* =============================================================
   GRAVITY FORMS — Global styles scoped to #page-container
   Works on both dark (contact section) and light backgrounds.
   Override colours per-context using the .gf-theme-dark /
   .gf-theme-light modifier classes on the wrapper element.
   ============================================================= */

/* ── Wrapper ── */
#page-container .gform_wrapper { width: 100%; }
#page-container .gform_wrapper * { box-sizing: border-box; }

/* ── Fields list ── */
#page-container .gform_fields {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 16px;
}
#page-container .gfield {
  width: 100%; display: flex; flex-direction: column; gap: 6px;
}
#page-container .gf-two-col {
  width: calc(50% - 8px); flex: 0 0 calc(50% - 8px);
}

/* ── Labels ── */
#page-container .gfield_label {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  color: #555; letter-spacing: 0.03em; line-height: 1.4; margin: 0;
}
#page-container .gfield_required { margin-left: 2px; }
#page-container .gfield_required_asterisk { color: var(--gold); font-size: 0.75rem; }

/* ── Inputs & textarea ── */
#page-container .ginput_container input[type="text"],
#page-container .ginput_container input[type="email"],
#page-container .ginput_container input[type="tel"],
#page-container .ginput_container input[type="number"],
#page-container .ginput_container input[type="url"],
#page-container .ginput_container textarea {
  font-family: var(--sans); font-size: 0.88rem; color: var(--dark);
  background: #fff; border: 1.5px solid #ddd;
  border-radius: 0 10px 0 10px; padding: 11px 14px; width: 100%; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
/* Fixed height for text inputs only — not textarea */
#page-container .ginput_container input[type="text"],
#page-container .ginput_container input[type="email"],
#page-container .ginput_container input[type="tel"],
#page-container .ginput_container input[type="number"],
#page-container .ginput_container input[type="url"] {
  height: 43px; padding-top: 0; padding-bottom: 0;
}
#page-container .ginput_container input::placeholder,
#page-container .ginput_container textarea::placeholder { color: #bbb; }
#page-container .ginput_container input:focus,
#page-container .ginput_container textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
#page-container .ginput_container_textarea textarea {
  resize: vertical; min-height: 120px; line-height: 1.65;
}

/* ── Radio buttons ── */
#page-container .ginput_container_radio { padding: 2px 0; }
#page-container .gfield_radio {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0;
}
#page-container .gchoice { display: flex; align-items: center; gap: 8px; }
#page-container .gchoice input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--gold);
  cursor: pointer; flex-shrink: 0; margin: 0;
}
#page-container .gchoice label {
  font-size: 0.85rem; color: #555; cursor: pointer; line-height: 1; font-weight: 400; margin: 0;
}

/* ── Consent checkbox ── */
#page-container .ginput_container_consent { display: flex; align-items: flex-start; gap: 10px; }
#page-container .ginput_container_consent input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--gold);
  cursor: pointer; flex-shrink: 0; margin-top: 3px;
}
#page-container .ginput_container_consent label {
  font-size: 0.80rem; color: #777; line-height: 1.60; cursor: pointer; font-weight: 400;
}
#page-container .ginput_container_consent label a { color: var(--gold); text-decoration: none; }
#page-container .ginput_container_consent label a:hover { text-decoration: underline; }

/* ── Validation ── */
#page-container .gfield_error input,
#page-container .gfield_error textarea {
  border-color: #e05a5a !important; box-shadow: 0 0 0 3px rgba(224,90,90,0.12) !important;
}
#page-container .gfield_error .gfield_label { color: #d94f4f; }
#page-container .validation_message {
  font-size: 0.70rem; color: #d94f4f; margin-top: 4px; display: block;
}

/* ── Submit button ── */
#page-container .gform_footer { margin-top: 8px; padding: 0; }
#page-container .gform_footer .gform-button,
#page-container .gform_footer .gform_button {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.03em; color: #fff; background: var(--gold);
  border: none; padding: 13px 32px; border-radius: 0 10px 0 10px; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
#page-container .gform_footer .gform-button:hover,
#page-container .gform_footer .gform_button:hover {
  background: var(--gold-dark); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
#page-container .gform-button__text--active { display: none; }
#page-container .gform_footer .gform-button.gform-button--loading .gform-button__text--inactive { display: none; }
#page-container .gform_footer .gform-button.gform-button--loading .gform-button__text--active { display: inline; }

/* ── Confirmation / spinner ── */
#page-container .gform_confirmation_message {
  font-size: 0.90rem; color: #444;
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.30);
  border-radius: 8px; padding: 20px 24px; line-height: 1.65;
}
#page-container .gform_ajax_spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.15); border-top-color: var(--gold);
  border-radius: 50%; animation: gf-spin 0.7s linear infinite; margin-left: 8px;
}

/* ── Dark theme override (navy bg — used in #contact-section) ── */
#contact-section .gfield_label,
#page-container .gf-theme-dark .gfield_label { color: rgba(255,255,255,0.70); }

#contact-section .gchoice label,
#page-container .gf-theme-dark .gchoice label { color: rgba(255,255,255,0.80); }

#contact-section .ginput_container_consent label,
#page-container .gf-theme-dark .ginput_container_consent label { color: rgba(255,255,255,0.55); }

#contact-section .ginput_container input[type="text"],
#contact-section .ginput_container input[type="email"],
#contact-section .ginput_container input[type="tel"],
#contact-section .ginput_container textarea,
#page-container .gf-theme-dark .ginput_container input[type="text"],
#page-container .gf-theme-dark .ginput_container input[type="email"],
#page-container .gf-theme-dark .ginput_container input[type="tel"],
#page-container .gf-theme-dark .ginput_container textarea {
  background: rgba(255,255,255,0.95); border-color: transparent;
}

#contact-section .gform_confirmation_message,
#page-container .gf-theme-dark .gform_confirmation_message {
  color: rgba(255,255,255,0.80);
  background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.35);
}

#contact-section .gform_ajax_spinner,
#page-container .gf-theme-dark .gform_ajax_spinner {
  border-color: rgba(255,255,255,0.25); border-top-color: #fff;
}

/* ── Mobile: two-col → full width ── */
@media (max-width: 600px) {
  #page-container .gf-two-col { width: 100%; flex: 0 0 100%; }
}


/* =============================================================
   CONTACT PAGE — light theme contact section
   ============================================================= */
#contact-page-section { background: #fff; }
#contact-page-section .container {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "text  form"
    "info  form";
  gap: 40px 80px;
  padding-top: 80px; padding-bottom: 80px;
  align-items: start;
}
#contact-page-section .contact-text  { grid-area: text; }
#contact-page-section .contact-info  { grid-area: info; }
#contact-page-section .gform_wrapper { grid-area: form; max-width: 600px; }

/* Text colours — light bg */
#contact-page-section .contact-text .eyebrow { color: var(--gold); }
#contact-page-section .contact-text h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 700; color: var(--dark); line-height: 1.18; margin-bottom: 20px;
}
#contact-page-section .contact-text p { font-size: 0.88rem; color: #666; line-height: 1.75; }
#contact-page-section .contact-text .reply { font-size: 0.80rem; color: #999; margin-top: 14px; }

/* Address box — light version */
#contact-page-section .contact-addresses {
  display: flex; flex-direction: column; gap: 0; margin-bottom: 24px;
}
#contact-page-section .contact-address-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 0;
}
#contact-page-section .contact-address-item + .contact-address-item {
  border-top: 1px solid #eee;
}
#contact-page-section .contact-address-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(201,168,76,0.10); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
#contact-page-section .contact-address-icon svg { width: 15px; height: 15px; }
#contact-page-section .contact-address-text { font-size: 0.84rem; color: #555; line-height: 1.60; }
#contact-page-section .contact-address-link {
  font-size: 0.76rem; font-weight: 500; color: var(--gold);
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  transition: opacity 0.2s;
}
#contact-page-section .contact-address-link:hover { opacity: 0.75; }
#contact-page-section .contact-address-link svg { width: 11px; height: 11px; }

/* Badges */
#contact-page-section .contact-badges { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
#contact-page-section .contact-badge-img {
  height: 64px; width: auto; max-width: 160px;
  background: #f5f5f5; border-radius: 8px; padding: 8px 12px;
  object-fit: contain; display: block; border: 1px solid #eee;
}

/* Reg + disclaimer */
#contact-page-section .contact-reg {
  font-size: 0.78rem; font-weight: 500; color: #555; margin-bottom: 10px; line-height: 1.50;
}
#contact-page-section .contact-disclaimer {
  font-size: 0.68rem; color: #aaa; line-height: 1.65; font-style: italic;
}

@media (max-width: 1080px) {
  #contact-page-section .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: none;
    gap: 32px;
  }
  #contact-page-section .contact-text  { grid-area: auto; order: 1; }
  #contact-page-section .gform_wrapper { grid-area: auto; order: 2; max-width: 100%; }
  #contact-page-section .contact-info  { grid-area: auto; order: 3; }
}


/* =============================================================
   CONTACT PAGE — hero parallax
   ============================================================= */
#contact-hero {
  position: relative;
  min-height: 340px;
  display: flex; align-items: center; overflow: hidden;
}
#contact-hero::before {
  content: '';
  position: absolute; inset: -80px 0;
  background-image:
          url('https://profiniti.com.au/wp-content/uploads/2026/05/Sydney-CBD-Aerial-Sunset.webp'),
          url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1800&auto=format');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}
#contact-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
          to bottom,
          rgba(10,18,35,0.68) 0%,
          rgba(10,18,35,0.55) 60%,
          rgba(10,18,35,0.72) 100%
  );
  z-index: 1;
}
#contact-hero .container {
  position: relative; z-index: 2;
  padding-top: 80px; padding-bottom: 80px;
  text-align: center;
}
#contact-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.40);
  margin: 0;
}

/* Disable fixed attachment on mobile */
@media (max-width: 768px) {
  #contact-hero::before {
    background-attachment: scroll;
    inset: 0;
  }
  #contact-hero { min-height: 240px; }
}

/* Contact page sections background */
#contact-page-section { background: #f5f5f5; }


/* =============================================================
   PAGE.PHP — DEFAULT PAGE TEMPLATE
   ============================================================= */

/* ── Default page body area ── */
#default-page-content {
  background: #fff;
}
#default-page-content .container {
  padding-top: 64px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 72px;
  align-items: start;
}

/* No sidebar — full width */
#default-page-content.no-sidebar .container {
  grid-template-columns: 1fr;
  max-width: 820px;
}

/* ── Main content column ── */
.default-page-body { min-width: 0; }

/* Headings */
.default-page-body h1,
.default-page-body h2,
.default-page-body h3,
.default-page-body h4 {
  font-family: var(--serif);
  color: var(--dark);
  line-height: 1.20;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.default-page-body h1:first-child,
.default-page-body h2:first-child,
.default-page-body h3:first-child { margin-top: 0; }

.default-page-body h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
.default-page-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; }
.default-page-body h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 700; }
.default-page-body h4 { font-size: 1rem; font-weight: 600; font-family: var(--sans); }

/* Paragraphs */
.default-page-body p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.82;
  margin-bottom: 1.2em;
}
.default-page-body p:last-child { margin-bottom: 0; }

/* Links */
.default-page-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  transition: border-color 0.2s;
}
.default-page-body a:hover { border-color: var(--gold); }

/* Lists */
.default-page-body ul,
.default-page-body ol {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.75;
  margin: 0 0 1.2em;
  padding-left: 0;
  list-style: none;
}
.default-page-body ul li,
.default-page-body ol li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.4em;
}
.default-page-body ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
}
.default-page-body ol { counter-reset: ol; }
.default-page-body ol li { counter-increment: ol; }
.default-page-body ol li::before {
  content: counter(ol) '.';
  position: absolute; left: 0; top: 0;
  font-size: 0.80rem; font-weight: 600; color: var(--gold);
}

/* Blockquote */
.default-page-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
}
.default-page-body blockquote p {
  font-size: 1rem;
  font-style: italic;
  color: #444;
  margin: 0;
}

/* Horizontal rule */
.default-page-body hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 2em 0;
}

/* Images */
.default-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.default-page-body figure {
  margin: 1.6em 0;
}
.default-page-body figcaption {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 8px;
  text-align: center;
}

/* ── Sidebar ── */
.default-page-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-box {
  background: #faf9f7;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 22px 20px;
}
.sidebar-box h4 {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 14px;
}
.sidebar-box p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.70;
  margin: 0 0 14px;
}
.sidebar-box p:last-child { margin-bottom: 0; }
.sidebar-box .btn-filled {
  width: 100%;
  justify-content: center;
  font-size: 0.78rem;
  padding: 11px 16px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  #default-page-content .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .default-page-sidebar { position: static; }
}
@media (max-width: 600px) {
  #default-page-content .container { padding-top: 40px; padding-bottom: 56px; }
}


/* =============================================================
   CAREERS PAGE
   ============================================================= */

/* ── Hero ── */
#careers-hero {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#careers-hero::before {
  content: '';
  position: absolute; inset: -80px 0;
  background-image:
          url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1800&auto=format');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}
#careers-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,18,35,0.55);
  z-index: 1;
}
#careers-hero .container {
  position: relative; z-index: 2;
  padding-top: 80px; padding-bottom: 80px;
  text-align: center;
}
#careers-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; color: #fff;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.30);
}
@media (max-width: 768px) {
  #careers-hero::before { background-attachment: scroll; inset: 0; }
  #careers-hero { min-height: 320px; }
}

/* ── Intro section ── */
#careers-intro { background: #fff; }
#careers-intro .container {
  padding-top: 72px; padding-bottom: 72px;
  max-width: 900px;
}
#careers-intro .eyebrow { margin-bottom: 14px; }
#careers-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.12; margin-bottom: 24px;
}
#careers-intro p {
  font-size: 0.92rem; color: #666;
  line-height: 1.80; margin-bottom: 14px;
  max-width: 760px;
}
#careers-intro .cta-row {
  margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap;
}


/* img-section */
.img-section > .container { align-items: stretch; }
.img-section > .container > * { position: relative; }
.img-section > .container > *:has(img) { min-height: 400px; }
.img-section > .container > * img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; border-radius: 10px;
}
@media (max-width: 1080px) {
  .img-section > .container > * { position: static; }
  .img-section > .container > *:has(img) { min-height: 300px; position: relative; }
  .img-section > .container > * img {
    position: absolute; height: 100%; width: 100%; border-radius: 10px;
  }
}
@media (max-width: 600px) {
  .img-section > .container > *:has(img) { min-height: 240px; }
}