/* -------------------------------
   ADAMAS CAPITAL INC.
   Main Stylesheet
   AGLS v1 — Global Layout Specification
   Based on: BIS.org (layout) + Aenfinite.com (typography)
--------------------------------*/

/* 1. Base Font Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.1px;
  color: #111111;
  background-color: #FFFFFF;
}

/* 2. Layout Max Width for Long-Form Reading */
.main-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

/* 2A. Breadcrumb Navigation */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  font-size: 13px;
  color: #666666;
  background-color: #F8F8F8;
  border-bottom: 1px solid #E8E8E8;
}

.breadcrumb a {
  color: #333333;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: #000000;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #999999;
}

/* 3. Header & Wordmark (BIS-inspired structure, Adamas brand) */
header {
  background-color: #FFFFFF;
}

.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  color: #000000;
  text-align: left;
}

.wordmark a {
  color: #000000;
  text-decoration: none;
}

/* 4. Headings (AGLS v1 Specification) */
h1 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 34px;
  color: #000000;
  margin-top: 0;
  margin-bottom: 1.25rem;
  text-align: left;
}

h2 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 27px;
  color: #000000;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

h3 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 21px;
  color: #000000;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

h4 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #000000;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

/* 5. Paragraph Spacing (AGLS v1: 24px) */
p {
  margin-bottom: 1.5rem;
  text-align: left;
}

/* 5A. List Styling */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  text-align: left;
}

li {
  margin-bottom: 0.75rem;
}

/* 6. Link Styling (Institutional Minimalism) */
a {
  color: #0B132B;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* 7. Navigation (BIS-inspired: full-width bar, horizontal links) */
.nav-bar {
  background-color: #1A1A1A;
  border-bottom: 1px solid #000000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 15px;
  font-weight: 400;
  color: #FFFFFF;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  background-color: #2A2A2A;
  color: #FFFFFF;
}

nav a[aria-current="page"] {
  background-color: #000000;
  font-weight: 500;
}

/* 8. Forms */
.form-container {
  max-width: 650px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

label {
  font-size: 17px;
  font-weight: 500;
  color: #000000;
  text-align: left;
  line-height: 1.5;
}

small {
  font-size: 15px;
  font-weight: 400;
  color: #555555;
  line-height: 1.5;
  display: block;
  margin-top: 0.375rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  padding: 0.875rem;
  border: 1px solid #333333;
  background-color: #FFFFFF;
  color: #111111;
  line-height: 1.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox acknowledgment styling */
.checkbox-group {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
  cursor: pointer;
  margin-bottom: 0;
}

button[type="submit"],
.btn-primary {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 500;
  padding: 1rem 1.75rem;
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  margin-top: 1rem;
  width: 100%;
}

button[type="submit"]:hover,
button[type="submit"]:focus,
.btn-primary:hover,
.btn-primary:focus {
  background-color: #1F1F1F;
  text-decoration: none;
}

/* 9. Footer (MITRE-inspired: minimal, compact, institutional) */
footer {
  margin-top: 10rem;
  padding: 3.5rem 2rem 3.5rem;
  border-top: 1px solid #E0E0E0;
  background-color: #FFFFFF;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  margin-top: 0;
  color: #000000;
}

.footer-brand p {
  font-size: 14px;
  color: #555555;
  margin-bottom: 0;
  font-weight: 400;
}

.footer-section {
  margin-bottom: 1.75rem;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.875rem;
  margin-top: 0;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 14px;
}

.footer-links a {
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #000000;
  text-decoration: underline;
}

.footer-separator {
  color: #CCCCCC;
  user-select: none;
}

.footer-copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #F0F0F0;
  font-size: 12px;
  color: #666666;
}

.footer-copyright p {
  margin-bottom: 0.5rem;
  font-size: 12px;
  line-height: 1.5;
}

/* 10. Lists (AGLS v1: Clean, 12px spacing) */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  text-align: left;
}

li {
  margin-bottom: 0.75rem;
}

/* 11. Prohibition Reinforcements */
strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* 12. Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #000000;
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}

/* 13. Mobile Adjustments */
@media (max-width: 968px) {
  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .header-top {
    padding: 1rem 1.5rem;
    position: relative;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  .breadcrumb {
    padding: 0.75rem 1.5rem;
    font-size: 12px;
  }

  .wordmark {
    margin-bottom: 0;
  }

  .main-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 23px;
    margin-top: 2.5rem;
  }

  h3 {
    font-size: 19px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  nav a {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #2A2A2A;
  }

  .footer-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .footer-brand {
    margin-bottom: 1.5rem;
  }

  .footer-section {
    margin-bottom: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .footer-separator {
    display: none;
  }

  .form-container {
    padding: 0 0;
  }

  button[type="submit"],
  .btn-primary {
    padding: 0.875rem 1.25rem;
  }
}

/* 14. Hamburger Menu (Mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 0.5rem;
  color: #000000;
  line-height: 1;
  z-index: 1000;
}

.menu-toggle.active {
  /* No animation per spec */
}

@media (max-width: 968px) {
  .menu-toggle {
    display: block;
  }

  .nav-bar {
    position: relative;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: none;
    width: 100%;
  }

  nav ul.active {
    display: flex;
  }
}

/* 15. Form Validation Feedback */
.error-message {
  color: #000000;
  font-size: 14px;
  margin-top: 0.25rem;
}

input.error,
textarea.error,
select.error {
  border-color: #000000;
  border-width: 2px;
}

/* 16. Section Spacing (AGLS v1: 56px rhythm) */
section {
  margin-bottom: 3.5rem;
}

section:first-of-type {
  margin-top: 0;
}

/* 17. Institutional Divider (Removed per AGLS v1 - use natural spacing) */
.divider {
  display: none;
}

/* 18. Home Page Specific Styles */
.hero-section {
  margin-bottom: 4rem;
}

.hero-section h1 {
  margin-bottom: 1rem;
}

.hero-division {
  margin-bottom: 1.5rem;
  font-size: 17px;
}

.hero-tagline {
  margin-bottom: 0;
  font-size: 19px;
  font-weight: 500;
  color: #000000;
}

.intro-section {
  margin-bottom: 4rem;
}

.intro-section p {
  margin-bottom: 2rem;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

.frameworks-section {
  margin-bottom: 4rem;
}

.framework-item {
  margin-bottom: 3rem;
}

.framework-item:last-child {
  margin-bottom: 0;
}

.framework-item h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.framework-item p {
  margin-bottom: 0;
}

.explore-section {
  margin-bottom: 5rem;
}

.explore-links {
  list-style: none;
  padding-left: 0;
}

.explore-links li {
  margin-bottom: 1rem;
}

.explore-links li:last-child {
  margin-bottom: 0;
}

.explore-links a {
  color: #0B132B;
  text-decoration: none;
  font-size: 17px;
  display: inline-block;
}

.explore-links a:hover,
.explore-links a:focus {
  color: #000000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transform: translateX(4px);
}
