/* =========================================
   AJR Services NG — Brand System
   Palette: red-maroon + white, institutional
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:           oklch(100% 0 0);
  --surface:      oklch(98% 0.002 20);
  --fg:           oklch(15% 0.01 20);
  --muted:        oklch(52% 0.01 20);
  --border:       oklch(88% 0.004 20);
  --accent:       oklch(32% 0.11 22);
  --accent-hover: oklch(38% 0.12 22);
  --accent-light: oklch(92% 0.03 22);
  --accent-glow:  oklch(32% 0.11 22 / 0.08);
  --success:      oklch(55% 0.15 145);
  --warn:         oklch(65% 0.15 85);
  --danger:       oklch(50% 0.18 30);

  --font-display: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px oklch(0% 0 0 / 0.06);
  --shadow-md: 0 4px 12px oklch(0% 0 0 / 0.08);
  --shadow-lg: 0 8px 24px oklch(0% 0 0 / 0.10);

  --max-width: 1200px;
  --content-padding: clamp(16px, 4vw, 48px);
  --section-gap: clamp(48px, 8vw, 100px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1vw + 0.5rem, 17px);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--content-padding);
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg);
}

h1 { font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 28px); }
h4 { font-size: clamp(17px, 1.5vw, 22px); }

.section-title {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 60px);
}
.section-title h2 {
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title p {
  color: var(--muted);
  font-size: 1.05em;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   Header / Nav
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--accent);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo img { width: 42px; height: 42px; border-radius: var(--radius-sm); }
.logo span small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-list a:hover,
.nav-list a.active {
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}
.nav-list .btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.nav-list .btn-nav:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 820px) {
  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
  }
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list a { width: 100%; padding: 12px 16px; }
  .menu-toggle { display: flex; }
}

/* =========================================
   Hero
   ========================================= */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, oklch(28% 0.10 22) 100%);
  color: #fff;
  padding: clamp(60px, 10vw, 120px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    oklch(100% 0 0 / 0.02) 40px,
    oklch(100% 0 0 / 0.02) 80px
  );
  pointer-events: none;
}
.hero * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  color: #fff;
  margin-bottom: 16px;
}
.hero p {
  font-size: clamp(17px, 1.5vw, 22px);
  color: oklch(90% 0.01 22);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 32px);
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-badges span {
  font-size: 0.85rem;
  color: oklch(80% 0.02 22);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-badges span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.btn-white {
  background: #fff;
  color: var(--accent);
}
.btn-white:hover {
  background: oklch(95% 0 0);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* =========================================
   Section styles
   ========================================= */
.section {
  padding: var(--section-gap) 0;
}
.section-alt {
  background: var(--surface);
}

/* =========================================
   Service cards
   ========================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--accent);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}
.service-card ul {
  margin-top: 12px;
}
.service-card ul li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* =========================================
   About / Content pages
   ========================================= */
.content-page {
  padding: clamp(40px, 6vw, 80px) 0;
}
.content-page .page-hero {
  margin-bottom: clamp(32px, 5vw, 60px);
}
.content-page .page-hero h1 {
  color: var(--accent);
  margin-bottom: 12px;
}
.content-page .page-hero p {
  color: var(--muted);
  font-size: 1.1em;
  max-width: 650px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; }
}
.content-text p {
  margin-bottom: 16px;
  font-size: 1.02em;
}
.content-text ul {
  margin: 16px 0;
}
.content-text ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.95em;
  color: var(--fg);
}
.content-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* =========================================
   Contact / Feedback forms
   ========================================= */
.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 768px) {
  .form-section { grid-template-columns: 1fr; }
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
}
.form-card h3 {
  margin-bottom: 20px;
  color: var(--accent);
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--fg);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: none;
}
.form-status.success { display: block; background: oklch(95% 0.05 145); color: oklch(35% 0.12 145); border: 1px solid oklch(75% 0.10 145); }
.form-status.error { display: block; background: oklch(95% 0.05 30); color: oklch(40% 0.15 30); border: 1px solid oklch(75% 0.10 30); }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-info-item .icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
}
.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.contact-info-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================================
   Testimonials / Trust
   ========================================= */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 24px 0;
}
.trust-bar-item {
  text-align: center;
}
.trust-bar-item .stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
}
.trust-bar-item .label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--fg);
  color: oklch(70% 0.01 20);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: 32px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  color: oklch(65% 0.01 20);
  line-height: 1.8;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid oklch(30% 0.01 20);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: oklch(50% 0.01 20);
}

/* =========================================
   Portal styles
   ========================================= */
.portal-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: var(--content-padding);
}
.portal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}
.portal-card .logo {
  justify-content: center;
  margin-bottom: 24px;
}
.portal-card h2 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}
.dash-sidebar {
  width: 240px;
  background: var(--fg);
  color: oklch(75% 0.01 20);
  padding: 24px 0;
  flex-shrink: 0;
}
.dash-sidebar .logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid oklch(30% 0.01 20);
  margin-bottom: 16px;
  color: #fff;
}
.dash-sidebar .logo img { filter: brightness(0) invert(1); }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: oklch(65% 0.01 20);
  font-size: 0.9rem;
  transition: 0.2s;
}
.dash-nav a:hover,
.dash-nav a.active {
  background: oklch(25% 0.01 20);
  color: #fff;
  text-decoration: none;
}
.dash-nav a.logout { margin-top: 24px; border-top: 1px solid oklch(30% 0.01 20); padding-top: 16px; color: var(--danger); }

.dash-main {
  flex: 1;
  padding: 32px;
  background: var(--surface);
  overflow-x: auto;
}
.dash-main h2 {
  color: var(--accent);
  margin-bottom: 24px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
}
.stat-card .lbl {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.data-table th {
  background: var(--surface);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }

@media (max-width: 820px) {
  .dashboard-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; padding: 12px 0; }
  .dash-sidebar .logo { padding: 0 16px 12px; }
  .dash-nav { display: flex; flex-wrap: wrap; padding: 0 12px; gap: 4px; }
  .dash-nav a { padding: 8px 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }
  .dash-nav a.logout { margin-top: 0; border-top: none; padding-top: 8px; }
  .dash-sidebar .logo img { filter: none; }
  .dash-main { padding: 16px; }
}

/* =========================================
   Utility
   ========================================= */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
