/**
 * Engineering Computing Services - Shared Styles
 * Rutgers School of Engineering
 * WCAG 2.2 Level AAA Compliant
 */

/* ===== CSS Variables ===== */
:root {
  /* Colors - AAA compliant with Rutgers branding */
  --rutgers-red: #a00028;        /* Darkened Rutgers red (8.3:1 on white - AAA compliant) */
  --rutgers-dark: #0a0a0a;       /* Near black for maximum contrast */
  --accent: #005898;             /* Link blue (7.4:1 on white - AAA compliant) */
  --accent-light: #e6f0f7;       /* Light accent for backgrounds */
  --background: #f6f7fb;
  --text: #1a1a1a;               /* Dark text for enhanced contrast */
  --text-muted: #4a4a4a;         /* Muted text (8.9:1 on white - AAA compliant) */
  --focus-color: #0044cc;        /* High contrast focus color */
  --focus-outline-width: 3px;    /* Visible focus indicator */
  
  /* Visual Presentation */
  --line-height: 1.8;            /* Comfortable reading line height */
  --paragraph-spacing: 2em;      /* Space between paragraphs */
  --letter-spacing: 0.01em;      /* Slight letter spacing for readability */
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  /* AAA: No justified text - use left alignment */
  text-align: left;
}

p {
  margin-bottom: 1.5em;
}

/* AAA: Ensure text can be resized to 200% without loss of functionality */
html {
  font-size: 100%; /* Base 16px, allows user scaling */
}

h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, serif;
  margin: 0 0 .6em;
  line-height: 1.3;
}

a {
  color: var(--accent);
  /* AAA 2.4.9: Links should be distinguishable - underline by default */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== AAA: Reduced Motion (2.3.3) ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rutgers-red);
  color: #fff;
  padding: 1rem 2rem;
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

.skip-link:focus {
  top: 0;
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
}

.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;
}

/* AAA 2.4.13: Focus Appearance - Enhanced focus indicators
   - Minimum 2px thick outline
   - Contrast ratio of at least 3:1 against adjacent colors
   - Fully visible, not obscured */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 3px;
  /* Ensure focus is never obscured */
  position: relative;
  z-index: 1;
}

/* AAA: Double-ring focus indicator for better visibility */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 68, 204, 0.2);
}

/* Remove focus ring for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* AAA 2.4.11/2.4.12: Focus Not Obscured - ensure focus is fully visible */
*:focus {
  scroll-margin: 1rem;
}

/* ===== Layout ===== */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  color: inherit;
}

.brand img {
  height: 60px;
  width: auto;
  display: block;
}

.brand-copy {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 300;
  font-size: 2rem;
  color: var(--rutgers-dark);
  letter-spacing: .01em;
}

.header-help {
  text-align: right;
  font-family: "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--rutgers-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
}

/* ===== Navigation ===== */
.nav-bar {
  background: #000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  position: relative;
}

.primary-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
}

.primary-nav li {
  position: relative;
}

.mobile-nav-header {
  display: none;
}

.primary-nav li a {
  color: #fff;
  padding: 1rem 1.5rem;
  min-height: 44px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.primary-nav li a:hover,
.primary-nav li a:focus {
  background: var(--rutgers-red);
  text-decoration: none;
}

/* AAA: Enhanced focus indicator on dark background */
.primary-nav li a:focus-visible {
  outline: var(--focus-outline-width) solid #fff;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 1px #fff;
}

.primary-nav li:first-child a,
.primary-nav .is-active > a {
  background: transparent;
}

.primary-nav li.menu-item-has-children > a::after {
  content: "▼";
  font-size: 0.65em;
  margin-left: 0.5rem;
  opacity: 0.9;
}

/* Dropdown menus */
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
}

.primary-nav li:hover .sub-menu,
.primary-nav li:focus-within .sub-menu {
  display: block;
}

.primary-nav .sub-menu li {
  display: block;
  margin: 0;
}

.primary-nav .sub-menu a {
  /* AAA: #1a1a1a on white = 17.4:1 contrast */
  color: var(--text);
  padding: 0.85rem 1.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: var(--line-height);
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  border-bottom: 1px solid #e5e5e5;
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav .sub-menu a {
    transition: none;
  }
}

.primary-nav .sub-menu li:last-child a {
  border-bottom: none;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus {
  background: #f0f0f0;
  color: var(--rutgers-red);
  text-decoration: none;
}

/* AAA: Enhanced focus indicator */
.primary-nav .sub-menu a:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: -3px;
  background: #f0f0f0;
}

.primary-nav .sub-menu .is-active > a {
  background: #f0f0f0;
  color: var(--rutgers-red);
  font-weight: 600;
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger to X animation */
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-visible {
  opacity: 1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 4px;
  /* AAA 2.5.5: Target Size - minimum 44x44px */
  min-height: 44px;
  min-width: 44px;
  padding: .85rem 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  /* AAA: Remove underline on buttons */
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

.btn-primary {
  background: var(--rutgers-red);
  color: #fff;
  box-shadow: 0 8px 25px rgba(128, 0, 32, .3);
  border-color: var(--rutgers-red);
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  background: #800020; /* Darker on hover - AAA compliant */
}

.btn-primary:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 3px;
}

/* AAA: High contrast mode support */
@media (forced-colors: active) {
  .btn {
    border: 2px solid currentColor;
  }
}

/* ===== Page Content (Subpages) ===== */
.page-content {
  padding: 3.5rem 0;
  background: #fff;
}

/* AAA 2.4.8: Location - Breadcrumb Navigation */
.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-weight: bold;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.page-header {
  border-bottom: 2px solid var(--rutgers-red);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--rutgers-dark);
  margin-bottom: 0.5rem;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-size: 1.8rem;
  color: var(--rutgers-red);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.content-section p {
  margin-bottom: 1.5em; /* AAA: Paragraph spacing */
  line-height: var(--line-height);
}

/* AAA: Space between paragraphs is at least 1.5x line spacing */
.content-section p + p {
  margin-top: var(--paragraph-spacing);
}

.content-section ul,
.content-section ol {
  margin: 1.5em 0;
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.75em;
  line-height: var(--line-height);
}

/* AAA: List item spacing */
.content-section li + li {
  margin-top: 0.5em;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ===== Notice/Alert Boxes ===== */
.notice {
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 5px solid;
}

/* AAA: Enhanced contrast colors (7:1+ ratio) */
.notice-info {
  background: #e6f0f7;
  border-color: #003d73;
  color: #002850; /* 12.5:1 contrast on #e6f0f7 - AAA compliant */
}

.notice-warning {
  background: #fef3d0;
  border-color: #8a6d00;
  color: #5c4900; /* 7.9:1 contrast on #fef3d0 - AAA compliant */
}

.notice-info strong,
.notice-warning strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05em;
}

.notice p {
  margin: 0;
  line-height: var(--line-height);
}

.notice p + p {
  margin-top: 0.75em;
}

.notice a {
  color: inherit;
  font-weight: 600;
}

/* ===== Homepage-specific ===== */
.hero {
  color: #fff;
  padding: 4rem 0;
}

.hero-content {
  max-width: 640px;
}

.hero h2 {
  font-size: 2.6rem;
  margin-bottom: .5rem;
}

.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.quick-help {
  background: #fff;
  padding: 2.5rem 0 1rem;
}

.quick-help h3 {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .9rem;
  /* AAA: #4a4a4a on white = 8.9:1 contrast */
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.cta-card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.cta-card h4 {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.1rem;
}

.cta-card p {
  font-size: .95rem;
  /* AAA: #4a4a4a on white = 8.9:1 contrast */
  color: var(--text-muted);
  line-height: var(--line-height);
}

.cta-card .btn {
  align-self: flex-start;
}

.section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-bottom: .5rem;
}

.section-header span {
  /* AAA: #4a4a4a on white = 8.9:1 contrast */
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e5e5e5;
  box-shadow: 0 15px 25px rgba(0, 0, 0, .07);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid #f4f4f4;
}

.team-card h4 {
  margin-bottom: .25rem;
  font-size: 1rem;
}

.team-card p {
  margin: .15rem 0;
  font-size: .85rem;
  /* AAA: #4a4a4a on white = 8.9:1 contrast */
  color: var(--text-muted);
}

/* ===== Lab Pages ===== */
.lab-summary {
  background: #fff;
  border: 3px solid var(--rutgers-red);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 8px 8px 14px rgba(0, 0, 0, 0.1);
}

.lab-summary h1 {
  color: var(--rutgers-red);
  margin-bottom: 1rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table thead {
  background: var(--rutgers-red);
  color: #fff;
}

table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e5e5;
}

table tbody tr:hover {
  background: #f9f9f9;
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* Iframes */
iframe {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.content-section h3 {
  font-size: 1.4rem;
  color: var(--rutgers-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ===== Footer ===== */
footer {
  background: #1a1a1a;
  /* AAA: #e8e8e8 on #1a1a1a = 14.2:1 contrast */
  color: #e8e8e8;
  text-align: center;
  padding: 2rem 0;
  font-size: .9rem;
  font-family: "Open Sans", Arial, sans-serif;
}

footer a {
  /* AAA: #9ed4ff on #1a1a1a = 11.0:1 contrast */
  color: #9ed4ff;
  text-decoration: underline;
}

footer a:hover {
  color: #fff;
}

footer a:focus-visible {
  outline: var(--focus-outline-width) solid #9ed4ff;
  outline-offset: 3px;
}

footer p {
  margin: .5rem 0;
  line-height: var(--line-height);
}

footer .copyright {
  /* AAA: #ffe680 on #1a1a1a = 13.8:1 contrast */
  color: #ffe680;
  font-weight: 600;
  margin-top: 1rem;
}

/* ===== Responsive - Tablet ===== */
@media (max-width: 1024px) {
  .cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay.is-visible {
    pointer-events: auto;
  }

  .nav-inner {
    justify-content: flex-end;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: #1a1a1a;
    flex-direction: column;
    padding: 5rem 0 2rem;
    margin: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .primary-nav.is-open {
    right: 0;
  }

  .primary-nav li {
    width: 100%;
    border-bottom: 1px solid #333;
  }

  .primary-nav li a {
    width: 100%;
    padding: 1rem 1.5rem;
    justify-content: space-between;
  }

  .primary-nav li.menu-item-has-children > a::after {
    content: "▶";
    transition: transform 0.3s ease;
  }

  .primary-nav li.menu-item-has-children.is-expanded > a::after {
    transform: rotate(90deg);
  }

  .primary-nav .sub-menu {
    position: static;
    display: none;
    width: 100%;
    background: #111;
    box-shadow: none;
    min-width: unset;
  }

  .primary-nav li.menu-item-has-children.is-expanded .sub-menu {
    display: block;
  }

  .primary-nav .sub-menu a {
    padding-left: 2.5rem;
    color: #e0e0e0;
    border-bottom-color: #222;
  }

  .primary-nav .sub-menu a:hover,
  .primary-nav .sub-menu a:focus {
    background: #222;
    color: #fff;
  }

  /* Disable hover on mobile - use click instead */
  .primary-nav li:hover .sub-menu {
    display: none;
  }

  .primary-nav li.menu-item-has-children.is-expanded:hover .sub-menu {
    display: block;
  }

  /* Mobile nav header */
  .mobile-nav-header {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: #000;
    border-bottom: 1px solid #333 !important;
    justify-content: flex-start;
    align-items: center;
  }

  .mobile-nav-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
  }
}

/* ===== Responsive - Small Mobile ===== */
@media (max-width: 640px) {
  .header-top {
    flex-direction: column;
    text-align: center;
  }

  .brand-divider {
    display: none;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h2 {
    font-size: 2rem;
  }

  .brand-copy {
    font-size: 1.5rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
  }

  table {
    font-size: 0.85rem;
  }

  table th,
  table td {
    padding: 0.5rem;
  }
}

/* ===== Forms (AAA Compliant) ===== */
.form-item {
  margin-bottom: 1.5rem;
}

.form-item label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-item .form-required {
  color: var(--rutgers-red);
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  /* AAA 2.5.5: Minimum target size */
  min-height: 44px;
  font-size: 1rem;
  line-height: var(--line-height);
  color: var(--text);
  background: #fff;
  border: 2px solid #666;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .form-control {
    transition: none;
  }
}

.form-control:focus {
  border-color: var(--focus-color);
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
}

.form-control::placeholder {
  /* AAA: Placeholder text needs 7:1 contrast - #545454 on white = 7.6:1 */
  color: #545454;
}

/* AAA 3.3.5: Help text */
.form-help {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: var(--line-height);
}

/* Error identification */
.form-error {
  color: var(--rutgers-red);
  font-weight: 600;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-error::before {
  content: "⚠";
  font-size: 1.1em;
}

.form-control.is-invalid {
  border-color: var(--rutgers-red);
  border-width: 3px;
}

/* Fieldset and Legend for grouped inputs */
fieldset {
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

legend {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 0.5rem;
  color: var(--text);
}

/* Select dropdown */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Textarea */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Submit button confirmation for AAA 3.3.6 */
.form-submit-area {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

/* ===== Abbreviations (AAA 3.1.4) ===== */
abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
  border-bottom: none;
}

/* ===== Print Styles ===== */
@media print {
  .skip-link,
  .nav-bar,
  .menu-toggle,
  .nav-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .hero,
  .services-grid,
  .staff-grid {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }
}

