/* Clarence Valley Family Services - shared styles */

:root {
  --navy: #1f3a4d;
  --teal: #3d7a6e;
  --teal-light: #eaf3f1;
  --sand: #f7f4ef;
  --text: #2b2b2b;
  --muted: #5c6b6a;
  --border: #dfe6e3;
  --white: #ffffff;
  --accent: #c98a4b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 56px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--white);
  border-radius: 6px;
  padding: 3px 6px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #cdd9dc;
  margin-top: 2px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  padding: 6px 2px;
}

nav.main-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 0 0 14px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  color: #e7f0ee;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn:hover { background: #b3763b; text-decoration: none; }

.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
}

.btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* Sections */
section {
  padding: 56px 0;
}

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

h2 {
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 0 0 10px;
}

h2 + p, h2 + ul { margin-top: 8px; }

.section-intro {
  color: var(--muted);
  max-width: 700px;
  margin: 0 0 28px;
}

section .container > .btn { margin-top: 8px; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}

.card h3 {
  color: var(--navy);
  margin: 0 0 10px;
}

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

.contact-value {
  font-size: 1.25rem;
  font-weight: 700;
  word-break: break-word;
}

/* Info strip */
.info-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.info-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px 28px;
}

.info-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

/* Tables */
table.fees {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

table.fees th, table.fees td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.fees th {
  background: var(--navy);
  color: var(--white);
}

table.fees tr:last-child td { border-bottom: none; }

.note {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #cdd9dc;
  padding: 36px 0;
  font-size: 0.9rem;
  line-height: 1.8;
}

footer.site-footer a { color: var(--white); }

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px 40px;
}

/* Utility */
.list-clean {
  padding-left: 20px;
  margin: 0 0 16px;
}

.list-clean li { margin-bottom: 8px; }

.mt-lg { margin-top: 48px; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .container { padding: 0 18px; }

  section { padding: 40px 0; }

  .site-header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav.main-nav ul {
    justify-content: center;
    gap: 2px 16px;
  }

  .hero { padding: 44px 0; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }

  .hero-actions .btn { width: 100%; max-width: 320px; }

  h2 { font-size: 1.35rem; }

  footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Fees table becomes stacked cards */
  table.fees, table.fees tbody, table.fees tr, table.fees td {
    display: block;
    width: 100%;
  }
  table.fees thead { display: none; }
  table.fees {
    background: transparent;
    border: none;
  }
  table.fees tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 14px;
  }
  table.fees td {
    border-bottom: none;
    padding: 4px 16px;
  }
  table.fees td:first-child {
    font-weight: 700;
    color: var(--navy);
    padding-top: 14px;
    font-size: 1.05rem;
  }
  table.fees td:last-child {
    padding-bottom: 14px;
    color: var(--muted);
    font-size: 0.92rem;
  }
}
