/* ============================================================
   Hyrule Holdings, LLC — Timeline Design System
   Colors: Deep Indigo #1a1a4e | Accent Teal #0d8a8a | Cream #faf6ed
   Font: Inter (Google Fonts)
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a4e;
  background: #faf6ed;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: #0d8a8a;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover, a:focus {
  color: #066f6f;
  text-decoration: underline;
}

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

ul, ol {
  padding-left: 1.5rem;
}

/* ---------- BREADCRUMB DOT INDICATOR ---------- */
.breadcrumb-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e0dccf;
  z-index: 1000;
}
.breadcrumb-bar .progress-line {
  height: 100%;
  width: 0%;
  background: #0d8a8a;
  transition: width 0.1s linear;
}
.breadcrumb-dots {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 1001;
}
.breadcrumb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4cfbf;
  transition: background 0.4s ease, transform 0.3s ease;
  cursor: pointer;
}
.breadcrumb-dot.active {
  background: #0d8a8a;
  transform: scale(1.4);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0d8a8a;
  color: #faf6ed;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px #066666;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #066f6f;
}

/* ---------- TIMELINE LAYOUT ---------- */
.timeline {
  position: relative;
  max-width: 960px;
  margin: 60px auto 80px;
  padding: 0 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, #0d8a8a, #1a1a4e);
  transform: translateX(-50%);
}

/* ---------- TIMELINE CARDS ---------- */
.timeline-card {
  position: relative;
  width: calc(50% - 30px);
  padding: 0 0 60px;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-card.visible {
  opacity: 1;
}
.timeline-card.left {
  float: left;
  clear: left;
  transform: translateX(-40px);
}
.timeline-card.right {
  float: right;
  clear: right;
  transform: translateX(40px);
}
.timeline-card.left.visible,
.timeline-card.right.visible {
  transform: translateX(0);
}
.timeline-card::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  background: #0d8a8a;
  border: 3px solid #faf6ed;
  border-radius: 50%;
  z-index: 2;
}
.timeline-card.left::after {
  right: -38px;
}
.timeline-card.right::after {
  left: -38px;
}

.card-body {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px #c8c4b6;
  border: 1px solid #e8e3d6;
}
.card-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a4e;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.card-body h2 .teal {
  color: #0d8a8a;
}
.card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d8a8a;
  margin-bottom: 8px;
}
.card-body p {
  margin-bottom: 12px;
  color: #333;
}
.card-body p:last-child {
  margin-bottom: 0;
}
.card-body .date-badge {
  display: inline-block;
  background: #1a1a4e;
  color: #faf6ed;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ---------- CONTACT CARD ---------- */
.contact-card {
  background: #1a1a4e;
  color: #faf6ed;
  border-radius: 12px;
  padding: 40px 32px;
}
.contact-card h2 {
  color: #faf6ed;
}
.contact-card h2 .teal {
  color: #0d8a8a;
}
.contact-card p {
  color: #d4cfbf;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}
.contact-details li {
  padding: 8px 0;
  border-bottom: 1px solid #5a4e3a;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.contact-details li:last-child {
  border-bottom: none;
}
.contact-details .label {
  font-weight: 600;
  color: #0d8a8a;
  min-width: 70px;
}
.contact-details .value {
  color: #faf6ed;
}
.contact-details a {
  color: #0d8a8a;
}
.contact-details a:hover {
  color: #1dc4c4;
}

/* ---------- STATIC PAGES (privacy, terms, about standalone) ---------- */
.static-page {
  max-width: 800px;
  margin: 50px auto 80px;
  padding: 0 20px;
}
.static-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a4e;
  margin-bottom: 8px;
}
.static-page .last-updated {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 32px;
}
.static-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0d8a8a;
  margin: 28px 0 10px;
}
.static-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a4e;
  margin: 20px 0 8px;
}
.static-page p,
.static-page li {
  color: #333;
  line-height: 1.8;
  margin-bottom: 10px;
}
.static-page ul, .static-page ol {
  margin-bottom: 14px;
}
.static-page .section {
  margin-bottom: 10px;
}
.static-page a {
  color: #0d8a8a;
}

/* ---------- SERVICES PAGE ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px #c8c4b6;
  border: 1px solid #e8e3d6;
}
.service-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d8a8a;
  margin-bottom: 8px;
}
.service-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- SVG FAVICON LINK ---------- */
/* Set in HTML head */

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .timeline::before {
    left: 24px;
  }
  .timeline-card {
    width: calc(100% - 50px);
    float: none;
    clear: both;
    margin-left: 50px !important;
    padding-bottom: 40px;
  }
  .timeline-card.left,
  .timeline-card.right {
    transform: translateX(0);
    float: none;
  }
  .timeline-card.left::after,
  .timeline-card.right::after {
    left: -42px;
    right: auto;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb-dots {
    gap: 6px;
  }
  .breadcrumb-dot {
    width: 6px;
    height: 6px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .timeline {
    margin: 40px auto 60px;
    padding: 0 12px;
  }
  .card-body {
    padding: 24px 18px;
  }
  .card-body h2 {
    font-size: 1.25rem;
  }
  .contact-card {
    padding: 28px 20px;
  }
  .static-page h1 {
    font-size: 1.6rem;
  }
}
