/* ===== Color tokens ===== */
:root {
  --dark:   #1e1e1e;
  --iron:   #555555;
  --light:  #f4f4f4;
  --teal:   #00f5d4;
  --accent-teal: #00bfae;
  --bg-section: #eaf6f6;
  --primary-font: 'Inter', Arial, sans-serif;
  --heading-font: 'Cinzel Decorative', serif;
}

/* ===== Global reset ===== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--primary-font);
  color: var(--iron);
  background: var(--light);
  line-height: 1.6;
}

/* ===== Header / Nav ===== */
header {
  width: 100%;
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--light);
  font-family: var(--heading-font);
  font-size: 1.25rem;
  text-decoration: none;
}

.logo img { height: 40px; width: auto; }
.logo span { color: #fff; font-weight: 700; font-size: 1.25rem; }

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
  padding: 0.25rem 0.5rem;
}

nav a:hover,
nav .cta {
  color: var(--teal);
}

nav .cta {
  border: 1px solid var(--teal);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
}

/* ===== Hero ===== */
.hero {
  background: url('https://via.placeholder.com/1600x800?text=Runic+Background') center/cover, var(--dark);
  color: var(--light);
  text-align: center;
  padding: 6rem 1rem 3rem 1rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-carousel-container {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.hero-carousel-slide {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 16/9;
  min-height: 400px;
  background: #222;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: none;
}

.hero-carousel-slide.active {
  display: block;
}

.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

#hero-prev { left: 20px; }
#hero-next { right: 20px; }

.hero-content {
  margin-top: 2.5rem;
  text-align: center;
  max-width: 700px;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-family: var(--heading-font);
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.hero p {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--dark);
  padding: .85rem 2.2rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.15rem;
  transition: background 0.2s;
  border: none;
}

.btn-primary:hover { background: #02d0b4; }

/* ===== Sections ===== */
section {
  padding: 4rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-section);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--heading-font);
  color: var(--dark);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  letter-spacing: 1px;
}

/* ===== Services Cards ===== */
.card-grid, .service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.25rem;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.card h3 {
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
  font-family: var(--heading-font);
  font-size: 1.3rem;
}

.card p {
  color: var(--iron);
  font-size: 1rem;
}

.service-icon {
  display: block;
  margin: 0 auto 1rem;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ===== About Section ===== */
.about {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--iron);
  line-height: 1.7;
}

/* ===== Footer ===== */
footer {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
  margin-top: 2rem;
  letter-spacing: 0.5px;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 900px) {
  .hero-carousel-container { max-width: 100%; }
  section { padding: 2.5rem 1rem; }
}

@media (max-width: 600px) {
  .nav-container { flex-direction: column; gap: 1rem; }
  nav ul { gap: 1rem; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.4rem; }
  .card-grid, .service-list { grid-template-columns: 1fr; }
}