/* =========================================================
   The Crafted Legacy
   Brand CSS System
   Built to layer on top of Bootstrap 5
   ========================================================= */

/* =========================
   1. Root Variables
   ========================= */
:root {
  /* Brand Colors */
  --tcl-navy: #1A3F64;
  --tcl-blue-soft: #CFE6F3;
  --tcl-cream: #FAF7F2;
  --tcl-beige: #F4EFEA;
  --tcl-taupe: #B7A58E;
  --tcl-charcoal: #2F2A26;
  --tcl-white-soft: #FFFDFC;
  --tcl-brass: #C2A878;

  /* Typography */
  --tcl-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --tcl-font-body: 'Inter', Arial, Helvetica, sans-serif;

  /* Radius */
  --tcl-radius-sm: 12px;
  --tcl-radius-md: 20px;
  --tcl-radius-lg: 24px;
  --tcl-radius-pill: 999px;

  /* Shadows */
  --tcl-shadow-soft: 0 10px 30px rgba(26, 63, 100, 0.06);
  --tcl-shadow-hover: 0 14px 36px rgba(26, 63, 100, 0.10);

  /* Borders */
  --tcl-border-soft: 1px solid rgba(26, 63, 100, 0.08);
  --tcl-border-warm: 1px solid rgba(183, 165, 142, 0.35);

  /* Layout */
  --tcl-container: 1200px;
  --tcl-container-wide: 1320px;
  --tcl-container-narrow: 760px;

  /* Section spacing */
  --tcl-section-space: 96px;
  --tcl-section-space-lg: 120px;
  --tcl-section-space-sm: 56px;

  /* Transitions */
  --tcl-transition: all 0.28s ease;
}

/* =========================
   2. Base / Reset Adjustments
   ========================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tcl-font-body);
  background-color: var(--tcl-cream);
  color: var(--tcl-charcoal);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tcl-navy);
  text-decoration: none;
  transition: var(--tcl-transition);
}

a:hover,
a:focus {
  color: var(--tcl-navy);
}

::selection {
  background: var(--tcl-blue-soft);
  color: var(--tcl-charcoal);
}

/* =========================
   3. Containers
   ========================= */
.tcl-container {
  width: min(100% - 2rem, var(--tcl-container));
  margin-inline: auto;
}

.tcl-container-wide {
  width: min(100% - 2rem, var(--tcl-container-wide));
  margin-inline: auto;
}

.tcl-container-narrow {
  width: min(100% - 2rem, var(--tcl-container-narrow));
  margin-inline: auto;
}

/* =========================
   4. Typography
   ========================= */
.tcl-display,
.tcl-h1,
.tcl-h2,
.tcl-h3,
.tcl-h4,
.tcl-section-title {
  font-family: var(--tcl-font-display);
  color: var(--tcl-navy);
  margin: 0 0 1rem;
  font-weight: 600;
}

.tcl-h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tcl-h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.tcl-h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.2;
}

.tcl-h4 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.25;
}

.tcl-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(47, 42, 38, 0.88);
}

.tcl-body-lg {
  font-size: 1.0625rem;
}

.tcl-body-sm {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.tcl-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tcl-taupe);
}

.tcl-muted {
  color: rgba(47, 42, 38, 0.70);
}

.tcl-text-navy {
  color: var(--tcl-navy) !important;
}

.tcl-text-charcoal {
  color: var(--tcl-charcoal) !important;
}

.tcl-text-taupe {
  color: var(--tcl-taupe) !important;
}

/* =========================
   5. Background Utilities
   ========================= */
.tcl-bg-cream {
  background-color: var(--tcl-cream) !important;
}

.tcl-bg-beige {
  background-color: var(--tcl-beige) !important;
}

.tcl-bg-white {
  background-color: var(--tcl-white-soft) !important;
}

.tcl-bg-navy {
  background-color: var(--tcl-navy) !important;
  color: var(--tcl-cream);
}

.tcl-bg-soft-blue {
  background-color: rgba(207, 230, 243, 0.35) !important;
}

/* =========================
   6. Section Spacing
   ========================= */
.tcl-section {
  padding: var(--tcl-section-space) 0;
}

.tcl-section-lg {
  padding: var(--tcl-section-space-lg) 0;
}

.tcl-section-sm {
  padding: var(--tcl-section-space-sm) 0;
}

/* =========================
   7. Dividers / Decorative Lines
   ========================= */
.tcl-divider {
  width: 72px;
  height: 1px;
  background-color: rgba(183, 165, 142, 0.75);
  margin: 1.25rem 0 1.5rem;
}

.tcl-divider-centered {
  margin-inline: auto;
}

.tcl-rule {
  border: 0;
  border-top: var(--tcl-border-warm);
  opacity: 1;
  margin: 0;
}

/* =========================
   8. Buttons
   ========================= */
.tcl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 26px;
  border-radius: var(--tcl-radius-pill);
  font-family: var(--tcl-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  border: 1px solid transparent;
  transition: var(--tcl-transition);
  cursor: pointer;
}

.tcl-btn:hover,
.tcl-btn:focus {
  transform: translateY(-1px);
}

.tcl-btn-primary {
  background-color: var(--tcl-navy);
  color: var(--tcl-cream);
  box-shadow: var(--tcl-shadow-soft);
}

.tcl-btn-primary:hover,
.tcl-btn-primary:focus {
  background-color: #153350;
  color: var(--tcl-cream);
  box-shadow: var(--tcl-shadow-hover);
}

.tcl-btn-secondary {
  background-color: transparent;
  border-color: var(--tcl-navy);
  color: var(--tcl-navy);
}

.tcl-btn-secondary:hover,
.tcl-btn-secondary:focus {
  background-color: var(--tcl-navy);
  color: var(--tcl-cream);
}

.tcl-btn-soft {
  background-color: rgba(207, 230, 243, 0.45);
  color: var(--tcl-navy);
  border-color: transparent;
}

.tcl-btn-soft:hover,
.tcl-btn-soft:focus {
  background-color: rgba(207, 230, 243, 0.75);
  color: var(--tcl-navy);
}

.tcl-btn-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tcl-navy);
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
}

.tcl-btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0.45);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.tcl-btn-link:hover::after,
.tcl-btn-link:focus::after {
  transform: scaleX(1);
}

/* =========================
   9. Navbar
   ========================= */
.tcl-navbar {
  background-color: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 63, 100, 0.06);
  padding: 1rem 0;
  transition: var(--tcl-transition);
}

.tcl-navbar .navbar-brand {
  font-family: var(--tcl-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tcl-navy);
  letter-spacing: -0.01em;
}

.tcl-navbar .navbar-nav .nav-link {
  font-family: var(--tcl-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tcl-navy);
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
}

.tcl-navbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 1px;
  background-color: var(--tcl-taupe);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.tcl-navbar .navbar-nav .nav-link:hover::after,
.tcl-navbar .navbar-nav .nav-link:focus::after,
.tcl-navbar .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.tcl-navbar .navbar-toggler {
  border: none;
  box-shadow: none;
}

/* =========================
   10. Hero
   ========================= */
.tcl-hero {
  padding: 140px 0 110px;
  background-color: var(--tcl-cream);
  position: relative;
  overflow: hidden;
}

.tcl-hero-content {
  max-width: 640px;
}

.tcl-hero-title {
  font-family: var(--tcl-font-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--tcl-navy);
  margin-bottom: 1.25rem;
}

.tcl-hero-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(47, 42, 38, 0.86);
  max-width: 560px;
}

.tcl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.tcl-hero-media {
  position: relative;
}

.tcl-hero-frame {
  background: var(--tcl-white-soft);
  border-radius: var(--tcl-radius-lg);
  padding: 1rem;
  box-shadow: var(--tcl-shadow-soft);
  border: var(--tcl-border-soft);
}

.tcl-hero-accent {
  position: absolute;
  inset: auto -30px -30px auto;
  width: 180px;
  height: 180px;
  background: rgba(207, 230, 243, 0.45);
  border-radius: 50%;
  z-index: 0;
}

/* =========================
   11. Cards
   ========================= */
.tcl-card {
  background-color: var(--tcl-white-soft);
  border: var(--tcl-border-soft);
  border-radius: var(--tcl-radius-md);
  box-shadow: var(--tcl-shadow-soft);
  padding: 2rem;
  height: 100%;
  transition: var(--tcl-transition);
}

.tcl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tcl-shadow-hover);
}

.tcl-card-title {
  font-family: var(--tcl-font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--tcl-navy);
  margin-bottom: 0.75rem;
}

.tcl-card-text {
  color: rgba(47, 42, 38, 0.82);
}

.tcl-card-sm {
  padding: 1.5rem;
}

.tcl-card-bordered {
  box-shadow: none;
  border: var(--tcl-border-warm);
}

/* =========================
   12. Project / Portfolio Cards
   ========================= */
.tcl-project-card {
  background-color: var(--tcl-white-soft);
  border-radius: var(--tcl-radius-lg);
  overflow: hidden;
  border: var(--tcl-border-soft);
  box-shadow: var(--tcl-shadow-soft);
  transition: var(--tcl-transition);
}

.tcl-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tcl-shadow-hover);
}

.tcl-project-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.tcl-project-body {
  padding: 1.5rem;
}

.tcl-project-title {
  font-family: var(--tcl-font-display);
  font-size: 1.4rem;
  color: var(--tcl-navy);
  margin-bottom: 0.5rem;
}

.tcl-project-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tcl-taupe);
  margin-bottom: 0.75rem;
}

/* =========================
   13. Forms
   ========================= */
.tcl-form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tcl-navy);
}

.tcl-input,
.tcl-textarea,
.tcl-select {
  width: 100%;
  background-color: var(--tcl-white-soft);
  border: 1px solid rgba(47, 42, 38, 0.14);
  border-radius: var(--tcl-radius-sm);
  padding: 14px 16px;
  color: var(--tcl-charcoal);
  font-size: 1rem;
  line-height: 1.5;
  transition: var(--tcl-transition);
  box-shadow: none;
}

.tcl-input::placeholder,
.tcl-textarea::placeholder {
  color: rgba(47, 42, 38, 0.46);
}

.tcl-input:focus,
.tcl-textarea:focus,
.tcl-select:focus {
  outline: none;
  border-color: var(--tcl-navy);
  box-shadow: 0 0 0 4px rgba(207, 230, 243, 0.55);
}

.tcl-textarea {
  min-height: 160px;
  resize: vertical;
}

.tcl-form-group {
  margin-bottom: 1.25rem;
}

/* =========================
   14. Image Treatments
   ========================= */
.tcl-image-frame {
  background: var(--tcl-white-soft);
  border: var(--tcl-border-soft);
  border-radius: var(--tcl-radius-lg);
  padding: 0.75rem;
  box-shadow: var(--tcl-shadow-soft);
}

.tcl-image-rounded {
  border-radius: var(--tcl-radius-lg);
  overflow: hidden;
}

.tcl-image-soft {
  border-radius: var(--tcl-radius-md);
  box-shadow: var(--tcl-shadow-soft);
}

.tcl-image-hover {
  overflow: hidden;
  border-radius: var(--tcl-radius-lg);
}

.tcl-image-hover img {
  transition: transform 0.45s ease;
}

.tcl-image-hover:hover img {
  transform: scale(1.03);
}

/* =========================
   15. Badges / Tags
   ========================= */
.tcl-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--tcl-radius-pill);
  background-color: rgba(207, 230, 243, 0.35);
  color: var(--tcl-navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tcl-badge-outline {
  background-color: transparent;
  border: var(--tcl-border-warm);
  color: var(--tcl-taupe);
}

/* =========================
   16. Lists
   ========================= */
.tcl-list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tcl-list-clean li + li {
  margin-top: 0.85rem;
}

.tcl-list-check li {
  position: relative;
  padding-left: 1.5rem;
}

.tcl-list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tcl-taupe);
}

/* =========================
   17. Footer
   ========================= */
.tcl-footer {
  background-color: var(--tcl-navy);
  color: rgba(250, 247, 242, 0.82);
  padding: 72px 0 36px;
}

.tcl-footer-title {
  font-family: var(--tcl-font-display);
  color: var(--tcl-cream);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tcl-footer a {
  color: rgba(250, 247, 242, 0.82);
}

.tcl-footer a:hover,
.tcl-footer a:focus {
  color: var(--tcl-cream);
}

.tcl-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  font-size: 0.9rem;
}

/* =========================
   18. Utility Classes
   ========================= */
.tcl-shadow-soft {
  box-shadow: var(--tcl-shadow-soft) !important;
}

.tcl-shadow-hover {
  box-shadow: var(--tcl-shadow-hover) !important;
}

.tcl-radius-sm {
  border-radius: var(--tcl-radius-sm) !important;
}

.tcl-radius-md {
  border-radius: var(--tcl-radius-md) !important;
}

.tcl-radius-lg {
  border-radius: var(--tcl-radius-lg) !important;
}

.tcl-border-soft {
  border: var(--tcl-border-soft) !important;
}

.tcl-border-warm {
  border: var(--tcl-border-warm) !important;
}

.tcl-max-text {
  max-width: 42rem;
}

.tcl-max-copy {
  max-width: 36rem;
}

.tcl-center {
  text-align: center;
}

.tcl-relative {
  position: relative;
}

.tcl-overflow-hidden {
  overflow: hidden;
}

/* =========================
   19. Responsive
   ========================= */
@media (max-width: 991.98px) {
  .tcl-section {
    padding: 72px 0;
  }

  .tcl-section-lg {
    padding: 88px 0;
  }

  .tcl-hero {
    padding: 120px 0 88px;
  }

  .tcl-navbar .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }

  .tcl-navbar .navbar-nav .nav-link::after {
    left: 0;
    right: auto;
    width: 40px;
    bottom: 0.2rem;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15.5px;
  }

  .tcl-section,
  .tcl-section-sm {
    padding: 56px 0;
  }

  .tcl-section-lg {
    padding: 72px 0;
  }

  .tcl-hero {
    padding: 108px 0 72px;
  }

  .tcl-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tcl-btn {
    width: 100%;
  }

  .tcl-card,
  .tcl-project-body {
    padding: 1.25rem;
  }
}