/* Ancala Distribution LLC — site stylesheet
   Palette and type chosen for WCAG AA contrast on a light, neutral background. */

:root {
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-text: #1c1f26;
  --color-text-muted: #40484f;
  --color-border: #dcd9d1;
  --color-navy: #1b3a5c;
  --color-navy-dark: #122842;
  --color-on-navy: #ffffff;
  --color-footer-bg: #16283f;
  --color-footer-text: #f2f1ee;
  --color-footer-muted: #c7cdd6;
  --color-danger: #7a1f1f;
  --font-sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 17px;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: var(--color-navy-dark);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin-top: 0;
  color: var(--color-text);
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header / nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--color-navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.nav-toggle-icon::before {
  content: "";
  top: -7px;
}

.nav-toggle-icon::after {
  content: "";
  top: 5px;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: var(--color-navy);
  border-bottom-color: var(--color-navy);
}

.primary-nav a[aria-current="page"] {
  color: var(--color-navy);
  border-bottom-color: var(--color-navy);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .primary-nav {
    display: none;
    width: 100%;
  }

  .primary-nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0 0.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
  }

  .primary-nav a {
    display: block;
    padding: 0.6rem 0.1rem;
  }
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section-intro {
  max-width: 680px;
  margin-bottom: 2rem;
}

.text-muted {
  color: var(--color-text-muted);
}

/* Card grid */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

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

/* Photo placeholder */
.photo-placeholder {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

/* Brand logo grid */
.brand-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 860px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.brand-slot {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid var(--color-navy);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-on-navy);
}

.btn-primary:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-on-navy);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-on-navy);
}

/* CTA band */
.cta-band {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--color-navy);
  border-radius: 50%;
}

/* Notice box */
.notice {
  background: #f1efe9;
  border-left: 4px solid var(--color-navy);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

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

/* Forms */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 560px;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #9a968c;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
}

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

.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.form-consent input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-consent label {
  font-weight: 400;
}

.required-mark {
  color: var(--color-danger);
}

/* Contact detail list */
.contact-detail dt {
  font-weight: 700;
  margin-top: 1rem;
}

.contact-detail dd {
  margin: 0.15rem 0 0;
}

.placeholder-note {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Legal content */
.legal-content h2 {
  margin-top: 2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ol,
.legal-content ul {
  padding-left: 1.4rem;
}

.updated-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
}

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

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

.footer-legal {
  margin-bottom: 0.75rem;
}

.footer-trademark {
  color: var(--color-footer-muted);
  font-size: 0.9rem;
  max-width: 720px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.footer-copy {
  color: var(--color-footer-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}
