/* ===========================================================
   CARING IS OUR CALLING
   Theme matched to https://new.caringisourcalling.au
   Gold on near-black. Logo: /assets/img/logo.png
   =========================================================== */

:root {
  /* Core theme tokens — mirrored from the reference site */
  --gold: #f1b434;          /* Matching the logo yellow */
  --gold-dark: #d79c1f;
  --gold-soft: rgba(241, 180, 52, 0.12);
  --dark: #121212;
  --dark-2: #1b1b1b;
  --light: #ffffff;

  --ink: #333333;           /* body copy */
  --ink-strong: #1c1c1c;    /* headings on light */
  --muted: #444444;
  --line: #dddddd;          /* card borders, per reference .card */
  --line-soft: #e8e8e8;
  --field: #cccccc;         /* input borders, per reference */
  --surface: #ffffff;
  --surface-alt: #f7f7f7;

  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --content: 960px;         /* reference section width: 900px */
  --content-wide: 1120px;   /* card grids need a little more room */
  --radius: 8px;            /* reference .card radius */
  --radius-sm: 4px;         /* reference input/button radius */
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%;}

body {
  font-family: var(--font);
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 0.6rem; line-height: 1.25; }

::selection { background: var(--gold); color: var(--dark); }

/* ===========================================================
   HEADER / NAV  (reference: dark, sticky, gold bold links)
   =========================================================== */
header#navbar {
  background: var(--dark);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--content-wide);
  margin: auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* The logo artwork carries its own wordmark, so it is rendered
   tall enough for that wordmark to stay legible. */
.brand-logo {
  height: 72px;
  width: auto;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links li { margin-left: 20px; }

.nav-links li a {
  color: var(--gold);
  font-weight: bold;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.nav-links li a:hover { border-bottom-color: var(--gold); }

.nav-links li a.nav-cta {
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  background: var(--gold);
  color: var(--dark);
}

.nav-links li a.nav-cta:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   HERO  (reference: dark, centred, gold h1)
   =========================================================== */
#hero {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 90px 20px 100px;
}

.hero-inner { max-width: var(--content); margin: auto; }

#hero h1 {
  color: var(--gold);
  font-size: clamp(2.1rem, 5vw, 3rem);   /* reference: 3rem */
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-tag {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.00rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================================================
   BUTTONS  (reference: gold background, dark text, radius 4)
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 15px 30px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); }

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

.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===========================================================
   LAYOUT HELPERS  (reference: section max-width 900, centred)
   =========================================================== */
section#about,
section#commitments,
section#services,
section#modules,
section#why-us,
section#complaints {
  padding: 70px 20px;
  text-align: center;
}

.container {
  max-width: var(--content);
  margin: auto;
  text-align: center;
}

/* Card grids get a little more width than the 900px text column */
#commitments .container,
#services .container,
#why-us .container { max-width: var(--content-wide); }

.section-label {
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b4f00;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 18px;
}

.section-intro {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
  margin: 0 auto 40px;
}

/* ===========================================================
   VALUES STRIP
   =========================================================== */
.values-strip {
  background: var(--dark-2);
  padding: 28px 20px;
  border-top: 1px solid rgba(241, 180, 52, 0.25);
  border-bottom: 1px solid rgba(241, 180, 52, 0.25);
}

.values-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 40px;
  max-width: var(--content-wide);
  margin: auto;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 600;
}

.value-item i { color: var(--gold); font-size: 1rem; }

/* ===========================================================
   ABOUT / VISION
   =========================================================== */
#about { background: var(--surface); }

.vision-statement {
  margin: 0 auto 28px;
  padding: 28px 32px;
  max-width: 800px;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  text-align: left;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-strong);
}

.vision-lead {
  font-weight: bold;
  color: var(--ink-strong);
  margin-bottom: 20px;
}

.vision-mission {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 780px;
  margin: 0 auto 44px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.stat-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }

.stat-num {
  display: block;
  font-size: 2.3rem;
  font-weight: bold;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-strong);
  margin-bottom: 10px;
}

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

/* ===========================================================
   CARDS  (reference: 1px solid #ddd, radius 8, hover gold)
   =========================================================== */
.card {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--surface);
  text-align: left;
}
.card:hover { border-color: var(--gold); }

/* --- Commitments --- */
#commitments { background: var(--surface-alt); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.commitment-card h3 {
  font-size: 1.02rem;
  color: var(--ink-strong);
  margin-bottom: 8px;
}

.commitment-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.card-num {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

/* --- Registered supports --- */
#services { background: var(--surface); }

.supports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.support-card h3 {
  font-size: 1rem;
  color: var(--ink-strong);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.support-card h3 i { color: var(--gold); font-size: 0.95rem; margin-top: 4px; }

.support-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* --- Registered modules --- */
#modules {
  background: var(--dark);
  color: var(--light);
}

#modules .section-label { color: var(--gold); }

#modules .section-title {
  color: var(--gold);
  margin-bottom: 40px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.support-card h3 {
  font-size: 1rem;
  color: var(--ink-strong);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.support-card h3 i { color: var(--gold); font-size: 0.95rem; margin-top: 4px; }

.support-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ===========================================================
   WHY US
   =========================================================== */
#why-us { background: var(--surface-alt); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  text-align: left;
}

.why-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.why-item:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }

.why-num {
  font-size: 1.9rem;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.why-item h3 { font-size: 1.05rem; color: var(--ink-strong); margin-bottom: 10px; }

.why-item p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ===========================================================
   COMPLAINTS & FEEDBACK
   =========================================================== */
#complaints { background: var(--surface); }

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: left;
  margin-bottom: 48px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition);
}
.contact-detail:hover { border-color: var(--gold); }

.contact-detail i {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  color: var(--gold-dark);
  font-size: 0.95rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-detail a { color: var(--ink-strong); font-weight: 600; word-break: break-word; }
.contact-detail a:hover { color: var(--gold-dark); }
.contact-detail span { color: var(--muted); font-size: 0.95rem; }

/* --- Form (reference: centred, max-width 500, gap 15) --- */
.contact-form-wrap {
  max-width: 620px;
  margin: auto;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group { text-align: left; }

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: bold;
  color: var(--ink-strong);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--field);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #9a9a9a; }

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%235c5c5c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-status.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 20px 0;
  text-align: left;
}

.footer-top {
  display: grid;
  grid-template-columns: .5fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand { margin-bottom: 16px; }
/*.footer-brand .brand-logo { height: 56px; }*/

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.footer-col h3,
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 9px; }

.footer-col a,
.footer-col span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
  word-break: break-word;
}

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

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p { margin: 0; }

/* ===========================================================
   SCROLL REVEAL
   Only animate when JS is available, so content is never
   hidden by a failed script.
   =========================================================== */
.fade-up { opacity: 1; transform: none; }

html.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .fade-up.visible { opacity: 1; transform: none; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .fade-up { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .training-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand p { max-width: none; }
}

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

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    background: var(--dark);
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links li { margin-left: 0; }
  .nav-links li a { font-size: 1.15rem; }

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

@media (max-width: 640px) {
  .brand-logo { height: 56px; }

  #hero { padding: 60px 20px 70px; }

  section#about,
  section#commitments,
  section#services,
  section#modules,
  section#why-us,
  section#complaints { padding: 56px 18px; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .contact-form-wrap { padding: 26px 20px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .values-grid { gap: 14px 24px; }
}
