@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap");

:root {
  /* Warm, professional palette */
  --bg: #faf5f0;          /* warm ivory background */
  --bg-alt: #ffffff;      /* clean white sections */
  --accent: #145c6b;      /* deep teal (main accent) */
  --accent-soft: #d0edf1; /* soft teal tint */
  --accent-warm: #c05621; /* burnt orange secondary accent */
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border: #e5ded6;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.35);
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* make controls use same font */
button,
input,
textarea,
select {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: "DM Serif Display", "Times New Roman", serif;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

h1 {
  font-weight: 400;
}

h2,
h3 {
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    to bottom,
    rgba(250, 245, 240, 0.98),
    rgba(250, 245, 240, 0.94)
  );
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(224, 212, 200, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
}

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

.nav-logo img {
  height: 80px;
  width: auto;
}

.nav-brand-short {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-brand-long {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  line-height: 1.4;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.nav-link {
  position: relative;
  padding: 4px 0;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 999px;
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

/* Sections */

.section {
  padding: 72px 0;
  position: relative;
}

/* subtle dividers to reduce big empty bands */
.section + .section {
  border-top: 1px solid rgba(229, 222, 214, 0.7);
}

.section-alt {
  background: var(--bg-alt);
}

/* HERO – blurred background image, no heavy colour overlay */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 88px;
  padding-bottom: 80px;
  color: #f9fafb;
}

/* background image lives here, blurred */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("hero-nzslss.jpg") center 40% / cover no-repeat;
  filter: blur(4px);
  transform: scale(1.06); /* avoids blur edges */
  z-index: 0;
}

/* very soft dark vignette just at the edges for readability */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.38) 100%
  );
  z-index: 1;
}

/* make content sit above blurred photo */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(30px, 4.4vw, 40px);
  line-height: 1.18;
  margin: 12px 0 18px;
  color: #f9fafb;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.8);
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(249, 250, 251, 0.95);
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.75);
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fde68a;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.8);
}

/* hero tags */

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hero-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  backdrop-filter: blur(6px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-card {
  background: rgba(15, 23, 42, 0.84);
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition), background var(--transition);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-card h2 {
  font-size: 16px;
  margin: 0;
  color: #f9fafb;
}

.hero-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  color: #e5e7eb;
}

.hero-card-text {
  font-size: 13px;
  color: #cbd5f5;
  margin: 8px 0 14px;
}

.hero-card:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 250, 252, 0.95);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.9);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(148, 90, 43, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(148, 90, 43, 0.45);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  border-color: var(--accent-soft);
}

.btn.ghost:hover {
  background: var(--accent-soft);
}

.btn.full-width {
  width: 100%;
}

/* Section headers */

.section-header {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-warm);
  margin-bottom: 4px;
}

.section-header h2 {
  font-size: 22px;
  margin: 0 0 8px;
  position: relative;
}

/* decorative underline under section titles */

.section-header h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.section-intro {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.info-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 16px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(148, 90, 43, 0.08);
  transition: box-shadow var(--transition), border-color var(--transition),
    background var(--transition), transform var(--transition);
}

.info-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.info-card:hover {
  border-color: rgba(192, 132, 72, 0.45);
  box-shadow: 0 10px 22px rgba(148, 90, 43, 0.22);
  transform: translateY(-1px);
}

/* Membership */

.membership-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 24px;
  align-items: flex-start;
}

/* subtle tint for membership/committee */

#membership.section-alt {
  background: linear-gradient(180deg, #ffffff, #fdf7f2);
}

#committee.section-alt {
  background: linear-gradient(180deg, #ffffff, #f4f8f9);
}

.membership-text {
  font-size: 14px;
  color: var(--text-main);
  margin: 0;
  max-width: 640px;
}

/* small list to break text visually (if you decide to use it) */

.membership-highlights {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.membership-highlights li {
  margin-bottom: 4px;
}

.membership-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition), background var(--transition);
}

.membership-form:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 72, 0.4);
  box-shadow: 0 16px 36px rgba(148, 90, 43, 0.32);
}

.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
  background: #ffffff;
}

.form-field textarea {
  border-radius: 10px;
  resize: vertical;
  min-height: 90px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.inline-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-option input[type="radio"],
.inline-option input[type="checkbox"] {
  accent-color: var(--accent);
}

.checkbox-field {
  margin-top: 4px;
}

.optional {
  font-size: 11px;
  color: var(--text-muted);
}

/* President's Message (collapsible-ready styling) */

.president-toggle {
  margin-bottom: 12px;
}

.president-body {
  background: radial-gradient(circle at top left, #fff7ec, #ffffff);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  color: var(--text-main);
  max-width: 840px;

  max-height: 260px; /* collapsed height */
  overflow: hidden;
  position: relative;
}

/* soft fade at bottom when collapsed */
.president-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0));
}

/* expanded state */
.president-body.expanded {
  max-height: none;
}

.president-body.expanded::after {
  display: none;
}

.president-body p {
  margin: 0 0 14px;
}

.president-body p.lead {
  font-size: 15px;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 8px;
}

.president-signoff {
  font-style: italic;
  color: var(--text-muted);
}

/* Committee */

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.committee-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 14px 14px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(148, 90, 43, 0.08);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition), background var(--transition);
}

.committee-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: radial-gradient(circle at top left, #f6d7b0, #145c6b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}

.committee-card h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.committee-name {
  font-size: 13px;
  margin: 0 0 2px;
  color: var(--text-main);
}

.committee-meta {
  font-size: 12px;
  margin: 0;
  color: var(--text-muted);
}

.committee-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 72, 0.5);
  box-shadow: 0 12px 26px rgba(148, 90, 43, 0.24);
}

/* BLOG – blurred bookshelf background with light content on top */

#blog.section {
  position: relative;
  overflow: hidden;
  color: #1f2933;
  border-top: none; /* override generic divider */
}

/* blurred bookshelf image */
#blog.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("blog-law.jpg") center / cover no-repeat;
  filter: blur(4px);
  transform: scale(1.06);
  z-index: 0;
}

/* very light warm veil so it feels cohesive with the rest of the site */
#blog.section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 245, 240, 0.78),
    rgba(248, 244, 238, 0.9)
  );
  z-index: 1;
}

/* ensure content is above the blur */
#blog .container {
  position: relative;
  z-index: 2;
}

/* normal colours again */
#blog .section-eyebrow {
  color: var(--accent-warm);
}

#blog .section-header h2 {
  color: var(--text-main);
}

#blog .section-header h2::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

#blog .section-intro {
  color: var(--text-muted);
}

.blog-grid {
  margin-top: 16px;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 16px 16px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 26px rgba(148, 90, 43, 0.18);
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition), background var(--transition);
}

.blog-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.blog-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: #1f2933;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.blog-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 72, 0.6);
  box-shadow: 0 16px 38px rgba(148, 90, 43, 0.35);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 24px;
  align-items: flex-start;
}

.contact-details p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0;
}

.contact-details a {
  color: var(--accent);
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition), background var(--transition);
}

.contact-form:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 72, 0.4);
  box-shadow: 0 14px 32px rgba(148, 90, 43, 0.24);
}

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.7);
  background: #050c12;
  padding: 18px 0 22px;
}

.footer-inner {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

.footer-sub {
  margin-top: 4px;
}

/* Form status */

.form-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  min-height: 1.2em; /* keeps layout stable */
}

.form-status.success {
  color: #1b873f; /* soft green */
}

.form-status.error {
  color: #b00020; /* soft red */
}

button.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .membership-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 24px;
  }

  .nav-logo img {
    height: 70px;
  }

  .president-body {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .nav-bar {
    padding-inline: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
  }

  .section {
    padding: 54px 0;
  }

  .hero::before {
    background-position: center 30%;
  }
}

