/* ==========================================================================
   Law Plus Australia — styles.css
   Brand colours from the LP logo: royal blue #1D1F84 + orange #ED6F32,
   serif headings, system sans-serif body. Mobile-first, no external assets.
   ========================================================================== */

:root {
  --navy: #1d1f84;
  --navy-dark: #14166a;
  --navy-light: #31328f;
  --gold: #ed6f32;
  --gold-light: #f28b57;
  --gold-pale: #fdebe0;
  --ink: #3a3d55;
  --muted: #6c6f82;
  --paper: #dcdee9;
  --white: #ffffff;
  --border: #e4e5ee;
  --tint-on-dark: #c7c8ec;
  --muted-on-dark: #8a8da0;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(29, 31, 132, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--navy);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo img {
  width: 42px;
  height: 42px;
  display: block;
}

.logo span {
  color: var(--gold);
}

/* Logo on the dark footer: white text + white disc behind the blue mark */
.site-footer .logo {
  color: var(--white);
}

.site-footer .logo span {
  color: var(--gold-light);
}

.site-footer .logo img {
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
  box-sizing: border-box;
}

.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold);
  background: var(--gold-pale);
}

/* Dropdown (desktop: hover/focus; mobile: shown inline) */
.has-dropdown {
  position: relative;
}

.dropdown {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 240px;
}

.dropdown a {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--gold);
}

.header-phone svg {
  flex: 0 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--tint-on-dark);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(237, 111, 50, 0.25), transparent 45%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  font-size: 2.3rem;
  margin-bottom: 0.8rem;
}

.hero .lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* Page hero (interior pages) */
.page-hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(195, 154, 59, 0.18), transparent 40%),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 3rem 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.4rem;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  font-size: 1.08rem;
  margin-bottom: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs li {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.35rem;
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumbs a {
  color: var(--gold-light);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current='page'] {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Sections & cards
   ========================================================================== */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.2rem;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header .eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.card .card-link {
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.5rem;
}

.card .card-link::after {
  content: ' →';
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--navy);
}

/* Two-column text/media rows */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.panel {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.panel h2,
.panel h3 {
  color: var(--white);
}

.panel a:not(.btn) {
  color: var(--gold-light);
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}

.tick-list li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.6em;
}

.tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.55rem;
  height: 0.9rem;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
}

/* Note / callout box */
.note {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}

.note strong {
  color: var(--navy);
}

/* Locations strip */
.locations-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.location-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.location-tile:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.location-tile h3 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.location-tile p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.55;
}

.testimonial blockquote::before {
  content: '\201C';
  color: var(--gold);
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.15em;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}

.testimonial cite strong {
  color: var(--navy);
  display: block;
}

/* FAQ accordion */
.faq-list {
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1rem 3rem 1rem 1.2rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
  font-family: var(--sans);
}

.faq-item.is-open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  display: none;
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA banner */
.cta-banner {
  background:
    radial-gradient(circle at 15% 20%, rgba(195, 154, 59, 0.25), transparent 45%),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 3.2rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 1.8rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 1.6rem;
}

.cta-banner .hero-actions {
  justify-content: center;
  margin-top: 0;
}

/* Article body */
.article-body {
  max-width: 760px;
}

.article-body h2 {
  margin-top: 1.8em;
}

.article-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.6rem;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  max-width: 640px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact details list */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.contact-list svg {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  color: var(--gold);
}

/* Map placeholder */
.map-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem;
}

/* Team grid */
.team-member {
  text-align: center;
  padding: 1.4rem 1rem;
}

.team-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  border: 3px solid var(--gold);
}

.team-member h3 {
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
}

.team-member .role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.team-member p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Office cards */
.office-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--white);
}

.office-card h3 {
  margin-bottom: 0.4rem;
}

.office-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  padding: 3rem 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem 0 1.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin-bottom: 0.4rem;
}

.footer-bottom .legal-links a {
  margin-right: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    gap: 0;
    padding-top: 0.6rem;
  }

  .main-nav a {
    padding: 0.7rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dropdown {
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding-left: 1rem;
  }

  .header-phone {
    display: none;
  }
}

@media (min-width: 901px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: block;
  }

  .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 50;
  }
}

@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }

  .hero h1 {
    font-size: 2.9rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .locations-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid.two-col .full {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
  }
}

@media (min-width: 1000px) {
  .cards.three {
    grid-template-columns: repeat(3, 1fr);
  }
}
