/* ==========================================================================
   Koetter Farm — Phase 1 Stylesheet
   Themed to match TheKoetterGroup.com corporate styling
   ========================================================================== */

/* --- Fonts (self-hosted, no Google CDN) --- */
@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  /* Koetter Group corporate palette */
  --charcoal: #32373c;
  --dark-text: #2c2c2c;
  --mid-text: #555;
  --light-text: #777;
  --koetter-orange: #d4882a;
  --koetter-green: #3a6f3a;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --red: #c0392b;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--white);
}

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

a {
  color: var(--charcoal);
  text-decoration: underline;
}

a:hover {
  color: var(--koetter-orange);
}

h1, h2, h3, h4 {
  font-family: 'Lato', 'Segoe UI', Tahoma, sans-serif;
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.3;
}

/* --- Skip to Content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}

/* --- Header & Navigation --- */
.site-header {
  background: var(--white);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--koetter-orange);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.site-logo {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  color: var(--charcoal);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--koetter-orange);
  background: var(--light-gray);
  text-decoration: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--charcoal);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero picture,
.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(50, 55, 60, 0.55), rgba(50, 55, 60, 0.65));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px 20px;
}

.hero-content .subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.9;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- Section Shared Styles --- */
.section {
  padding: 64px 20px;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  margin-bottom: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--koetter-orange);
  margin: 0 auto 36px;
  border: none;
}

.section--cream {
  background: var(--light-gray);
}

.section--white {
  background: var(--white);
}

/* --- About / Activities --- */
.about-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--mid-text);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 24px;
}

.activities-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 28px;
}

.activities-list li {
  background: var(--white);
  border: 2px solid var(--charcoal);
  border-radius: 4px;
  padding: 14px 32px;
  font-weight: 700;
  color: var(--charcoal);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, color 0.2s;
}

.activities-list li:hover {
  border-color: var(--koetter-orange);
  color: var(--koetter-orange);
}

/* --- Rules & Guidelines --- */
.rules-intro {
  text-align: center;
  font-size: 17px;
  color: var(--mid-text);
  font-style: italic;
  margin-bottom: 36px;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-card {
  background: var(--white);
  border-radius: 4px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--koetter-orange);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.rule-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--koetter-orange);
  min-width: 32px;
  flex-shrink: 0;
}

.rule-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark-text);
}

.rule-text p {
  margin-bottom: 8px;
}

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

/* --- Warning / Liability Disclaimer --- */
.warning-box {
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 4px;
  padding: 24px;
  margin-top: 32px;
}

.warning-box .warning-label {
  color: var(--red);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.warning-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid-text);
}

/* --- Forms --- */
.form-description {
  text-align: center;
  color: var(--mid-text);
  margin-bottom: 32px;
  font-size: 15px;
}

.site-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--dark-text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--koetter-orange);
  box-shadow: 0 0 0 2px rgba(212, 136, 42, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--red);
}

.form-group .error-msg {
  color: var(--red);
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.form-group input.invalid + .error-msg,
.form-group textarea.invalid + .error-msg {
  display: block;
}

/* Honeypot - hidden from real users, bots fill it out */
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.required {
  color: var(--red);
}

/* Checkbox */
.form-group--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.form-group--checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--koetter-orange);
}

/* Submit button */
.form-submit {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: var(--white);
  background: var(--charcoal);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.form-submit:hover {
  background: var(--koetter-orange);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status messages */
.form-status {
  text-align: center;
  padding: 0;
  margin-bottom: 16px;
  font-size: 14px;
  border-radius: 4px;
  display: none;
}

.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 12px 16px;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  display: block;
  background: #fbe9e7;
  color: var(--red);
  padding: 12px 16px;
  border: 1px solid #ef9a9a;
}

/* Confirmation screen */
.form-confirmation {
  text-align: center;
  padding: 48px 24px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.form-confirmation-icon {
  width: 64px;
  height: 64px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  font-size: 32px;
  line-height: 64px;
  margin: 0 auto 20px;
}

.form-confirmation h3 {
  font-size: 24px;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.form-confirmation p {
  font-size: 16px;
  color: var(--mid-text);
  line-height: 1.6;
  margin-bottom: 28px;
}

.form-submit--secondary {
  background: var(--white);
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
  width: auto;
  display: inline-block;
}

.form-submit--secondary:hover {
  background: var(--charcoal);
  color: var(--white);
}

.form-fallback {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: 4px;
  color: var(--mid-text);
  font-size: 15px;
}

.form-fallback a {
  font-weight: 700;
  color: var(--koetter-orange);
}

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h3 {
  color: var(--koetter-orange);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--koetter-orange);
  text-decoration: underline;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  max-width: 960px;
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--koetter-orange);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content .subtitle {
    font-size: 14px;
  }

  .hero {
    min-height: 350px;
  }

  .section {
    padding: 40px 16px;
  }

  .section-title {
    font-size: 22px;
  }

  .activities-list {
    flex-direction: column;
    align-items: center;
  }

  .rule-card {
    padding: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 12px;
  }
}

/* --- Print Stylesheet --- */
@media print {
  .site-header,
  .hero,
  .hamburger,
  .site-form,
  .form-description,
  .form-status,
  .form-fallback,
  #access-request,
  #fish-report,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
    line-height: 1.5;
  }

  .section {
    padding: 12pt 0;
    background: #fff !important;
  }

  .rule-card {
    box-shadow: none;
    border: 1px solid #ccc;
    border-left: 4px solid #333;
    page-break-inside: avoid;
  }

  .warning-box {
    page-break-inside: avoid;
  }

  h2 {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #555;
  }

  .print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 20pt;
  }
}

.print-header {
  display: none;
}

/* --- 404 Error Page --- */
.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.error-page-inner {
  text-align: center;
}

.error-code {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-action {
  margin-top: 24px;
}

.error-link {
  background: var(--charcoal);
  color: #fff;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s;
}

.error-link:hover {
  background: var(--koetter-orange);
  color: #fff;
}

.footer-bottom--flat {
  margin-top: 0;
  border-top: none;
}
