/* Dark theme CSS for Nathan Spinder site - all pages share this file */

/* Theme colors (default to dark mode) */
:root {
  --bg: #0b0b0c;
  --card: #141414;
  --text: #e8e8e8;
  --muted: #a3a3a3;
  --accent: #4e9af2;
  --shadow: 0 8px 24px rgba(0,0,0,.6);
}

/* Fallbacks and base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Page container and header/nav */
.container { width: min(1100px, 92%); margin: 0 auto; }

header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; position: sticky; top: 0; background: #0b0b0c; z-index: 10; border-bottom: 1px solid #222; }
.brand { display: flex; align-items: center; gap: 12px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
nav a { padding: 6px 10px; border-radius: 6px; color: #e5e7eb; }
nav a.active { background: #1f1f1f; color: #fff; border-bottom: 2px solid var(--accent); }
nav a:hover { background: #232424; }

/* Sections and content */
section { padding: 40px 0; }

/* Hero section */
.hero {
  display: grid;
  grid-template-columns: 1fr auto; /* text takes remaining space, image auto width */
  align-items: start;
  gap: 28px;
  padding: 40px 0;
}

.hero .hero-text {
  max-width: 800px; /* prevent text from stretching too wide */
}

.profile {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0b0b0c;
  box-shadow: var(--shadow);
}

/* Card styling for content blocks */
.card { background: var(--card); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }

/* Multi-column layouts for content sections */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Headings and lists */
h3 { margin: 0 0 6px; font-size: 1.15rem; }
ul { margin: 0; padding-left: 1.1em; }
li { margin: 6px 0; }

/* Section title style */
.section-title { font-size: 1.4rem; margin-bottom: 10px; }

/* AML Overview styling */
.aml-overview { padding: 40px 0; }
.aml-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.aml-card { background: #111; border-radius: 12px; padding: 22px; border: 1px solid #2a2a2a; color: #e6e6e6; }
.aml-card .aml-thumb {
  font-size: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #1f1f1f;
}

/* Expanded text inside AML cards */
.aml-card p { color: #d0d5e1; line-height: 1.55; }
.aml-card details { color: #cbd5e1; }

/* Sticky footer */
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Footer */
footer { text-align: center; padding: 24px 0; color: var(--muted); }

/* AML overview header */
.aml-overview-head { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 6px; }

/* Responsive adjustments */
@media (max-width: 1100px) { .aml-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .profile { display: block; margin: 0 auto; }
  .grid { grid-template-columns: 1fr; }
  .aml-grid { grid-template-columns: 1fr; }
}

/* AML images */
.logo { width: 110px; height: auto; border-radius: 6px; object-fit: contain; display: inline-block; }

/* Gallery section */
.image-gallery {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 50px 0;
}

.gallery-img {
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.gallery-img:hover { transform: scale(1.03); }

/* ==============================
   Responsive Design (Mobile)
   ============================== */
body { font-size: 1rem; line-height: 1.6; padding: 0; margin: 0; }

header {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}

header .brand { display: flex; align-items: center; gap: 10px; }
header .logo { width: 45px; height: auto; border-radius: 4px; }

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav ul li a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text);
}

nav ul li a.active {
  background: var(--accent);
  color: #fff;
}

.hero { flex-wrap: wrap; gap: 20px; }

.hero h1 { font-size: 2rem; }

.hero .profile { width: 240px; height: auto; border-radius: 10px; }

.grid, .aml-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card { background: var(--card); padding: 20px; border-radius: 10px; box-shadow: var(--shadow); }

.image-gallery { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gallery-img { width: 100%; max-width: 500px; border-radius: 10px; height: auto; }

form input, form textarea, form button {
  width: 100%;
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: var(--text);
}

form button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

form button:hover { opacity: 0.9; }

footer { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 40px; padding: 20px 0; }

@media (max-width: 768px) {
  header { align-items: center; text-align: center; }
  nav ul { justify-content: center; }
  .hero { flex-direction: column; text-align: center; }
  .hero .profile { width: 180px; margin-top: 10px; }
  .grid, .aml-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  nav ul li a { font-size: 0.9rem; padding: 4px 8px; }
}
