:root {
  --surface: #ffffff;
  --ink: #111111;
  --muted: #6e6e6e;
  --brand: #c4541c;
  --brand-light: #f2a873;
  --brand-dark: #93360f;
  --line: #e6e6e6;
  --accent-gold: #b89b5e;
  --soft-gray: #f6f6f6;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  background: #ffffff;
  color: var(--ink);
}

a {
  color: var(--brand);
  text-decoration-color: rgba(196, 84, 28, 0.35);
}

a:hover,
a:focus {
  color: var(--brand-dark);
  text-decoration-color: rgba(147, 54, 15, 0.6);
}

.link-dark,
a.link-dark {
  color: var(--ink) !important;
  text-decoration-color: rgba(17, 17, 17, 0.25);
}

.link-dark:hover,
.link-dark:focus {
  color: var(--brand) !important;
  text-decoration-color: rgba(196, 84, 28, 0.4);
}

.link-secondary,
a.link-secondary {
  color: var(--muted) !important;
  text-decoration-color: rgba(110, 110, 110, 0.3);
}

main > section {
  padding: 4rem 0;
}

main > section:nth-of-type(odd) {
  background: var(--surface);
}

main > section:nth-of-type(even) {
  background: var(--soft-gray);
}

.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 70%);
  border-bottom: 1px solid var(--line);
}

h1,
h2,
h3,
.display-6,
.navbar-brand,
.preview-section-title,
.preview-card-title {
  color: var(--ink) !important;
}

p,
li,
small,
.text-secondary {
  color: var(--muted) !important;
}

.text-primary {
  color: var(--brand) !important;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
}

.tracking-wide {
  letter-spacing: 0.25em;
  color: var(--brand);
}

.icon-circle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(17, 17, 17, 0.06));
  border: 1px solid rgba(17, 17, 17, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--brand);
}

.product-shell {
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08), 0 30px 60px rgba(0, 0, 0, 0.08);
}

.product-showcase-card {
  padding: 2rem;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #ffffff, #faf7f4);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  min-height: 32rem;
  display: flex;
  align-items: center;
}

.gradient-placeholder {
  background: linear-gradient(135deg, rgba(196, 84, 28, 0.95), rgba(196, 84, 28, 0.65));
}

.service-carousel-card {
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-content-column {
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#serviceCarousel .carousel-inner,
#productCarousel .carousel-inner {
  overflow: hidden;
}

#serviceCarousel .carousel-item,
#productCarousel .carousel-item {
  min-height: inherit;
}

#productCarousel .carousel-item .row {
  width: 100%;
}

#productCarousel .carousel-item h2 {
  min-height: 4.5rem;
}

#productCarousel .carousel-item ul {
  min-height: 8.5rem;
}

.product-media-frame {
  min-height: 20rem;
}

.product-media-frame > img {
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .product-showcase-card {
    min-height: auto;
  }

  .service-carousel-card {
    min-height: 16rem;
  }

  .product-content-column,
  #productCarousel .carousel-item h2,
  #productCarousel .carousel-item ul,
  .product-media-frame {
    min-height: auto;
  }
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(184, 155, 94, 0), rgba(184, 155, 94, 0.65), rgba(184, 155, 94, 0));
}

.timeline-item {
  position: relative;
  padding: 1rem 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.95rem;
  top: 1.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(196, 84, 28, 0.1);
}

.timeline-year {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--brand);
}

.timeline-content {
  color: var(--muted);
}

.client-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(110deg, #ffffff, #f9f9f9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.news-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1.5rem;
  background: linear-gradient(120deg, #ffffff, #f9f9f9);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
}

.timeline-small {
  max-height: 250px;
  overflow-y: auto;
}

.timeline-roadmap {
  position: relative;
  padding-left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-roadmap::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(184, 155, 94, 0), rgba(184, 155, 94, 0.55), rgba(184, 155, 94, 0));
}

.timeline-card {
  position: relative;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.timeline-dot {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--brand);
  left: -2rem;
  top: 1.5rem;
  box-shadow: 0 0 0 6px rgba(196, 84, 28, 0.12);
}

.timeline-card-year {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.timeline-card-text {
  margin-bottom: 0;
  color: var(--muted);
}

.min-vh-75 {
  min-height: 75vh;
}

.navbar-brand {
  letter-spacing: 0.08em;
  color: var(--brand) !important;
}

.btn-dark {
  border-radius: 999px;
  padding-inline: 2rem;
  border: none;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.12);
  color: #fff;
}

.btn-outline-dark {
  border-radius: 999px;
  padding-inline: 1.5rem;
  border: 1px solid var(--brand);
  color: var(--brand);
  background-color: transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-color: transparent;
  box-shadow: 0 12px 25px rgba(17, 17, 17, 0.15);
}

.btn-link {
  color: var(--brand);
  text-decoration-color: rgba(196, 84, 28, 0.35);
}

.btn-link:hover,
.btn-link:focus {
  color: var(--brand-dark);
  text-decoration-color: rgba(147, 54, 15, 0.5);
}

form .form-control,
form .form-select {
  border-radius: 0.75rem;
  border-color: rgba(17, 17, 17, 0.12);
  color: var(--ink);
}

.content-editor {
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.editor-section {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  background-color: #fff;
}

.editor-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.repeater {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.repeater-item {
  border: 1px dashed rgba(17, 17, 17, 0.15);
  border-radius: 1rem;
  padding: 1rem;
  background-color: #fdfdfd;
}

.prose {
  line-height: 1.8;
  font-size: 1.05rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

#livePreview {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.preview-shell {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.preview-section {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);
}

.preview-hero {
  background: linear-gradient(135deg, #ffffff, #f7f7f7);
  text-align: center;
}

.preview-tagline {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.preview-hero-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.preview-section-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.preview-mini-heading {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--muted);
  text-transform: uppercase;
}

.preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.preview-badges span {
  background: rgba(196, 84, 28, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  color: var(--brand);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.preview-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.preview-card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.preview-card-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.preview-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.preview-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-timeline-year {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-right: 0.5rem;
}

.preview-list {
  padding-left: 1rem;
  margin-bottom: 0;
  color: var(--muted);
}

.preview-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.preview-empty {
  display: inline-block;
  font-size: 0.85rem;
  color: #a0a0a0;
}

.preview-news-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fffaf5;
}

.preview-news-card .preview-card-text {
  color: #fbe2cf;
}

.admin-layout .admin-sidebar {
  position: sticky;
  top: 1.5rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
  min-height: calc(100vh - 5rem);
}

.admin-nav .nav-link {
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
  background: rgba(196, 84, 28, 0.12);
  color: var(--brand);
}

.sidebar-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  background: #f8f8f8;
}

.admin-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.admin-summary-list li strong {
  display: block;
  font-size: 0.95rem;
}

.admin-summary-list li p {
  margin-bottom: 0;
}
