/* base.css - shared GoNakedNZ page styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background-color: #e8f6f6;
  background-image: url('/assets/img/background.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: #0f4b50;
}

main {
  flex: 1;
}

/* Header + hero/banner sit together in one rounded card */
.site-card {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 75, 80, 0.15);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.1s ease, filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(1px);
}

.btn-dark {
  background-color: #0f3d43;
  color: #ffffff;
}

.btn-light {
  background-color: #afdce9;
  color: #0f4b50;
}

/* Subpage banner (sits under the header inside .site-card) */
.banner {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  padding: 60px 40px 70px 170px;
  background:
    linear-gradient(90deg, rgba(15, 75, 80, 0.55), rgba(15, 75, 80, 0) 70%),
    url('/assets/img/herofg.jpg') center 65% / cover no-repeat;
  color: #ffffff;
}

.banner h1 {
  font-size: 2.4rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 40, 50, 0.55);
}

.banner p {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 40, 50, 0.6);
}

@media (max-width: 900px) {
  .banner {
    padding-left: 40px;
  }
}

@media (max-width: 700px) {
  .site-card {
    width: 100%;
  }

  .banner {
    min-height: 0;
    padding: 48px 20px 64px;
  }

  .banner h1 {
    font-size: 1.8rem;
  }
}

/* Long-form document pages (terms, privacy, legal) */
.doc {
  position: relative;
  width: 76%;
  max-width: 860px;
  margin: -44px auto 0;
  padding: 44px 56px 40px;
  background-color: #ffffff;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(15, 75, 80, 0.12);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #23474b;
}

.doc h2,
.doc h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: #0f4b50;
}

.doc h2 {
  margin-top: 36px;
  font-size: 1.25rem;
  scroll-margin-top: 20px;
}

.doc h3 {
  margin-top: 20px;
  font-size: 1.02rem;
}

.doc p,
.doc ul,
.doc ol {
  margin-top: 12px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc a {
  color: #1a7f86;
  font-weight: 600;
}

.doc-updated {
  font-size: 0.85rem;
  color: #5a7a7d;
}

.doc-summary {
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  background-color: #f0f9fb;
  border-left: 5px solid #1a7f86;
  color: #0f4b50;
}

.doc-summary.warn {
  background-color: #fff6ea;
  border-left-color: #f5a945;
  color: #4a3a22;
}

.doc-summary p:first-child {
  margin-top: 0;
}

.doc-toc {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid #d8eef3;
}

.doc-toc strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #1a7f86;
}

.doc-toc ol {
  margin-top: 8px;
  columns: 2;
  column-gap: 32px;
}

.doc-toc li {
  break-inside: avoid;
}

.doc-toc li + li {
  margin-top: 2px;
}

.doc-related {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #e3f4f8;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .doc {
    width: 90%;
    padding: 36px 32px 32px;
  }
}

@media (max-width: 700px) {
  .doc {
    width: calc(100% - 24px);
    padding: 28px 20px 24px;
  }

  .doc-toc ol {
    columns: 1;
  }
}

/* Forms (contact, and future share / join forms) */
.form {
  margin-top: 24px;
}

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

.form-field {
  margin-top: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f4b50;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #cfe9ef;
  border-radius: 12px;
  background-color: #ffffff;
  font: inherit;
  color: #23474b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #1a7f86;
  box-shadow: 0 0 0 3px rgba(26, 127, 134, 0.15);
}

.form-field [aria-invalid="true"] {
  border-color: #c0392b;
}

.form-hint {
  margin-top: 6px !important;
  font-size: 0.82rem;
  color: #5a7a7d;
}

.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.human-check {
  padding: 16px 18px;
  border: 2px solid #d8eef3;
  border-radius: 14px;
  background-color: #f0f9fb;
}

.human-check label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.human-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: #1a7f86;
  color: #ffffff;
  font-size: 0.85rem;
}

.human-check input {
  max-width: 200px;
}

.form-errors {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 5px solid #c0392b;
  background-color: #fdecea;
  color: #7a1f16;
}

.form-errors ul {
  margin-top: 6px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.form-actions .btn {
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  padding: 12px 28px;
}

.form-actions .btn-dark:hover {
  background-color: #1a7f86;
  filter: none;
}

.form-success {
  margin-top: 8px;
  padding: 28px 30px;
  border-radius: 18px;
  background-color: #f1faf4;
  border-left: 5px solid #4fae7b;
  color: #1f4a33;
}

.form-success h2 {
  margin-top: 0;
  color: #1f4a33;
}

@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
  }
}
