/* =========================================================
   Torchlight Services LLC — Design System & Styles
   ========================================================= */

/* --- Google Fonts loaded via HTML <link> tags for performance --- */

/* --- Design Tokens --- */
:root {
  --navy:        #0B1D3A;
  --navy-light:  #132B50;
  --navy-mid:    #0F2440;
  --slate:       #4A5568;
  --slate-light: #A0AEC0;
  --gold:        #FFB800;
  --gold-dark:   #E0A200;
  --gold-glow:   rgba(255, 184, 0, 0.15);
  --white:       #F7FAFC;
  --white-dim:   #CBD5E0;

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  --radius:      12px;
  --radius-sm:   8px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:      0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 0 24px rgba(255, 184, 0, 0.2);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--slate-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--gold-dark); }

img { max-width: 100%; display: block; }

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--slate-light);
  max-width: 620px;
  line-height: 1.8;
}

.section-subtext--spaced {
  margin-top: 16px;
}

/* Fade-in animation on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 29, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand .logo-icon {
  width: 36px;
  height: 36px;
}

.nav-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-brand .brand-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-dim);
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  width: 100%;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  letter-spacing: 0.5px;
}

.btn-cta:hover {
  background: var(--gold-dark);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.png') center center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 29, 58, 0.6) 0%,
    rgba(11, 29, 58, 0.85) 60%,
    var(--navy) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-content .section-label {
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--slate-light);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  letter-spacing: 0.5px;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--slate-light);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  animation: bounce 2.5s infinite;
}

.scroll-indicator .chevron {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--slate-light);
  border-bottom: 2px solid var(--slate-light);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: 120px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-subtext {
  margin-bottom: 32px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.stat-card:hover {
  border-color: rgba(255, 184, 0, 0.3);
  transform: translateY(-2px);
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--slate-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Decorative accent line */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding: 120px 0;
  background: var(--navy-mid);
  position: relative;
}

.services .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.services .section-subtext {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: rgba(19, 43, 80, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 44px 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.25;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(255, 184, 0, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--gold);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate-light);
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--white-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.5rem;
}

/* =========================================================
   VALUES
   ========================================================= */
.values {
  padding: 120px 0;
  position: relative;
}

.values .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.values .section-subtext {
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius);
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition), transform var(--transition);
}

.value-card:hover {
  border-color: rgba(255, 184, 0, 0.2);
  transform: translateY(-3px);
}

.value-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--gold);
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
}

.value-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--slate-light);
}

/* =========================================================
   CONTACT / FOOTER
   ========================================================= */
.contact {
  padding: 120px 0 80px;
  background: var(--navy-mid);
}

.contact .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.contact .section-subtext {
  margin: 0 auto;
}

.contact-grid {
  display: flex;
  justify-content: center;
}

.contact-info {
  max-width: 540px;
  text-align: center;
}

.contact-details {
  display: inline-block;
  text-align: left;
  list-style: none;
}

.contact-cta {
  margin-top: 32px;
}

.contact-cta .btn-cta {
  padding: 14px 36px;
  font-size: 0.95rem;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--slate-light);
  margin-bottom: 32px;
  line-height: 1.8;
}



.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--white-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-details li:last-child {
  border-bottom: none;
}

.contact-details .detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

/* CTA button hover glow */
.contact-cta .btn-cta:hover,
.hero-buttons .btn-cta:hover {
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.35);
}


/* Skip-nav */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-nav:focus {
  top: 16px;
}

/* Fleur-de-lis divider */
.section-divider {
  text-align: center;
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.5;
  padding: 0;
  line-height: 1;
  letter-spacing: 24px;
  user-select: none;
}


/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0 32px;
  background: var(--navy);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand .footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline span {
  color: var(--gold);
}

.footer-brand p:last-child {
  font-size: 0.85rem;
  color: var(--slate-light);
  max-width: 320px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-light);
  font-size: 1.1rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--gold-glow);
  border-color: rgba(255, 184, 0, 0.3);
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--slate);
}

.footer-bottom a {
  color: var(--gold);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-dark);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}

/* Scroll indicator fade */
.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(11, 29, 58, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
    padding: 0 40px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .services-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links li:last-child {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-details {
    display: block;
    text-align: left;
  }
}
