html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: #fff;
  color: #212529;
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* === ASL Visual Identity === */

/* Straight lines only — no rounded corners */
*,
.btn,
.card,
.form-control,
.form-select,
.input-group-text,
.badge,
.alert,
.list-group-item,
.modal-content,
.dropdown-menu,
.popover,
.tooltip-inner {
  border-radius: 0 !important;
}

/* Brand colors */
.text-asl { color: #1B4332 !important; }
.bg-asl { background-color: #1B4332 !important; }
.border-asl { border-color: #1B4332 !important; }

/* Navbar logo */
.navbar-brand-logo {
  height: 2rem;
  width: auto;
  display: block;
}

/* Action card icon box */
.asl-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #edf2ef;
  color: #1B4332;
  flex-shrink: 0;
}

/* Subtle card hover for action cards */
.asl-action-card {
  transition: border-color 0.15s ease;
}

.asl-action-card:hover {
  border-color: #1B4332 !important;
}

/* Skip to main content (WCAG 2.4.1) */
.skip-to-main {
  position: absolute;
  top: -4rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: #1B4332;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.1s ease;
}

.skip-to-main:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* High-contrast focus indicator (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid #1B4332 !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* No shadows — straight-line design language */
.card,
.dropdown-menu,
.modal-content,
.popover,
.toast {
  box-shadow: none !important;
}

/* Primary button — hover and active use deeper dark green */
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
  background-color: #081C15 !important;
  border-color: #081C15 !important;
  color: #fff;
}

.btn-primary:focus-visible {
  background-color: #081C15;
  border-color: #081C15;
  box-shadow: none;
}

/* Dropdown active item — use brand dark green instead of Bootstrap blue */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #1B4332;
  color: #fff;
}

/* Navbar links — white on dark-green background, light grey on hover/focus (~5.7:1, WCAG AA) */
.navbar-dark .nav-link,
.navbar-dark .nav-link.dropdown-toggle {
  color: #ffffff !important;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus,
.navbar-dark .nav-link.show,
.navbar-dark .nav-link.active {
  color: rgba(255, 255, 255, 0.60) !important;
}

/* Navbar btn-link (language switcher) — same white / light-grey treatment */
.navbar-dark .btn-link {
  color: #ffffff;
}

.navbar-dark .btn-link:hover,
.navbar-dark .btn-link:focus {
  color: rgba(255, 255, 255, 0.60);
}

/* Footer link inherits brand colour (legacy minimal footer) */
.footer a {
  color: #1B4332;
}

/* === Site Footer === */
.asl-footer {
  background-color: #ffffff;
  border-top: 2px solid #1B4332;
}

.asl-footer-logo {
  height: 2.75rem;
  width: auto;
}

.asl-footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1B4332;
  margin-bottom: 0;
}

.asl-footer-link,
.asl-footer-link:visited {
  color: #1B4332;
  text-decoration: none;
}

.asl-footer-link:hover,
.asl-footer-link:focus {
  color: #081C15;
  text-decoration: underline;
}

.asl-footer-divider {
  border-top: 1px solid #dee2e6 !important;
  opacity: 1;
}
/* Remove default Bootstrap focus shadow */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: none;
}

/* Navbar brand — white on dark-green background (~12:1 contrast, WCAG AA) */
.navbar-brand {
  color: #fff !important;
  font-weight: 700;
}

/* === Cookie Consent Banner (GDPR / ePrivacy) === */

/* Fixed bottom banner — sits above page content until consent is given */
.asl-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 2px solid #1B4332 !important;
  z-index: 1040;
}

/* Cookie preference toggle switches — adequate touch target (WCAG 2.5.5) */
.asl-cookie-toggle {
  min-width: 3rem;
}

.asl-cookie-toggle .form-check-input {
  width: 2.75rem;
  height: 1.375rem;
  cursor: pointer;
  margin-top: 0;
}

.asl-cookie-toggle .form-check-input:focus-visible {
  outline: 2px solid #1B4332 !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* === Home page — Hero === */
.asl-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.asl-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.asl-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 28, 21, 0.88) 0%,
    rgba(8, 28, 21, 0.72) 55%,
    rgba(8, 28, 21, 0.28) 100%
  );
}

.asl-hero-content {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .asl-hero {
    min-height: 520px;
  }
}

/* === Home page — How it works steps === */
.asl-step-number {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1B4332;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* === Home page — Promise / value proposition cards === */
.asl-promise-card {
  border-left: 3px solid #1B4332;
  transition: border-color 0.15s ease;
}

.asl-promise-card:hover {
  border-left-color: #081C15;
}

.asl-promise-icon {
  font-size: 1.5rem;
  color: #1B4332;
  line-height: 1;
}

/* Divider between tab panels in How-it-works */
.asl-tab-panel-divider {
  border-top: 1px solid #dee2e6;
}

/* === Farm profile — image drop zone === */
.asl-drop-zone {
  border: 2px dashed #1B4332;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.asl-drop-zone:hover,
.asl-drop-zone:focus-visible {
  background-color: #f0f7f4;
  outline: 2px solid #1B4332;
  outline-offset: 2px;
}

.asl-drop-zone.asl-drop-active {
  background-color: #e8f4ef;
  border-color: #081C15;
}

/* === CMS / Support Article rendered body === */
.page-content-body p {
  margin-bottom: 0.75rem;
}

.page-content-body p:last-child {
  margin-bottom: 0;
}

.page-content-body ul,
.page-content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-content-body blockquote {
  border-left: 3px solid #1B4332;
  padding-left: 1rem;
  margin-bottom: 0.75rem;
  color: #495057;
}

.page-content-body a {
  color: #1B4332;
  text-decoration: underline;
}

.page-content-body h2,
.page-content-body h3,
.page-content-body h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
