/* Rock Art Research & Art History — Custom Styles */
/* ditomorales.com — Scholarly editorial theme */
/* Palette: teal-slate (#2A7B7B primary), charcoal, off-white, warm accent */

:root {
  --primary: #2A7B7B;
  --primary-dark: #1d5757;
  --primary-light: #3a9b9b;
  --primary-pale: #e8f4f4;
  --accent: #c0602a;
  --accent-light: #e07840;
  --charcoal: #1e2530;
  --slate: #3a4556;
  --gray-100: #f7f8f9;
  --gray-200: #eaedf0;
  --gray-400: #9aa3ae;
  --gray-700: #4a5568;
  --text: #1e2530;
  --text-light: #5a6472;
  --white: #ffffff;
  --border: #d8dde3;
  --shadow-sm: 0 1px 4px rgba(30, 37, 48, 0.08);
  --shadow-md: 0 4px 16px rgba(30, 37, 48, 0.12);
  --shadow-lg: 0 8px 32px rgba(30, 37, 48, 0.16);
  --radius: 6px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin-bottom: 1rem; margin-top: 2.5rem; color: var(--primary-dark); }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; margin-top: 1.75rem; }

p { margin-bottom: 1.25rem; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 700; color: var(--charcoal); }
em { font-style: italic; }

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

/* Navbar */
.site-navbar {
  background: var(--charcoal);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-navbar .navbar-brand {
  color: var(--white) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-navbar .navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.site-navbar .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.1rem 0.9rem !important;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--white) !important;
  border-bottom-color: var(--primary-light);
}

.site-navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.3rem 0.6rem;
}

.site-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 37, 48, 0.85) 0%, rgba(42, 123, 123, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.5rem;
}

.hero-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

.hero-content .hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-family: 'Lora', Georgia, serif;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Page Header (non-hero) */
.page-header {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--primary-dark) 100%);
  padding: 3.5rem 0 2.5rem;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header .page-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 700px;
}

/* Main content area */
.site-main {
  padding: 3rem 0;
}

/* Content image */
.content-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  width: 100%;
  object-fit: cover;
}

.content-img-wide {
  max-height: 420px;
  object-fit: cover;
}

/* Cards */
.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}

.topic-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.3rem;
}

.topic-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  color: var(--charcoal);
}

.topic-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--primary);
  background: var(--primary-pale);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

/* Section divider */
.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Alert / notice */
.site-notice {
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

/* Contact form */
.contact-form .form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--gray-100);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 123, 123, 0.15);
  outline: none;
  background: var(--white);
}

.contact-form .form-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.35rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  text-transform: uppercase;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

/* Featured panel */
.feature-panel {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--gray-200);
  padding: 0.6rem 0;
  font-size: 0.82rem;
}

.breadcrumb-bar .breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
}

.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--gray-700); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-400); }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.88rem;
  margin-top: 4rem;
}

.site-footer h5 {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary-light);
}

.footer-links li { margin-bottom: 0.35rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-brand-name {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.teal-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* 404 page */
.not-found-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.not-found-number {
  font-size: 8rem;
  font-weight: 800;
  color: var(--primary-pale);
  line-height: 1;
  margin-bottom: 0;
  font-family: 'Montserrat', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section { min-height: 350px; }
  .hero-content { padding: 2.5rem 0 2rem; }
  .site-footer { padding: 2.5rem 0 1rem; }
  .site-main { padding: 2rem 0; }
}
