/* AETRF Website - Main Stylesheet */

/* ===== CSS Variables & Theme ===== */
:root {
  /* Colors - Cream & Clay palette */
  --bg: #f3efe7;
  --surface: #fbf9f4;
  --surface-2: #f1ece2;
  --ink: #1c2b3a;
  --muted: #5c6b78;
  --primary: #1a3a5c;
  --primary-ink: #ffffff;
  --accent: #d4763a;
  --accent-ink: #ffffff;
  --secondary: #3d7ea6;
  --line: #e2dccf;

  /* Visual Style - Soft */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -24px rgba(28, 43, 58, 0.45);
  --shadow-sm: 0 6px 18px -12px rgba(28, 43, 58, 0.4);

  /* Layout */
  --maxw: 1180px;

  /* Typography */
  --font-head: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Mulish", system-ui, sans-serif;
}

/* ===== Reset & Base Styles ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 800;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ===== Layout ===== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 96px 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}

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

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  box-shadow: 0 12px 26px -12px var(--accent);
}

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

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 17px;
}

/* ===== Generic Components ===== */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: .04em;
  background: var(--surface-2);
  color: var(--secondary);
  border: 1px solid var(--line);
}

/* ===== Placeholder Imagery ===== */
.ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, transparent) 0 12px, transparent 12px 24px),
    var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--surface);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ===== Animations ===== */
.fade-in {
  animation: fade .5s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Forms ===== */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

label.fld {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--ink);
}

/* ===== Navigation ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

nav.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--primary);
}

nav .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav .nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  transition: background 0.2s ease, color 0.2s ease;
}

nav .nav-links a:hover {
  background: var(--surface-2);
}

nav .nav-links a.active {
  background: var(--surface);
  color: var(--primary);
}

nav .burger {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}

nav .burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 860px) {
  nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    gap: 0;
  }

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

  nav .nav-links li {
    width: 100%;
  }

  nav .nav-links a {
    display: block;
    padding: 16px 28px;
    border-radius: 0;
  }

  nav .burger {
    display: block;
  }
}

/* ===== Footer ===== */
footer {
  background: var(--primary);
  color: var(--primary-ink);
  padding: 72px 0 32px;
  margin-top: auto;
}

footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
  text-align: center;
  justify-items: center;
}

footer .logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

footer h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.6;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

footer ul a:hover {
  opacity: 1;
}

footer .copyright {
  width: 100%;
  display: block;
  text-align: center;
  white-space: nowrap;
  opacity: 0.5;
  font-size: 13px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 760px) {
  footer .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }

  .wrap {
    padding: 0 20px;
  }
}
