/* K&F Dynamics — Global Styles */
:root {
  --copper: #B87333;
  --copper-light: #D79A68;
  --copper-dark: #7A4E26;
  --silver: #C0C0C0;
  --charcoal: #1C1C1C;
  --light-grey: #E5E5E5;
  --off-white: #F2F2F2;
  --white: #FFFFFF;
  --gradient-copper: linear-gradient(180deg, #D79A68 0%, #B87333 50%, #7A4E26 100%);
  --section-gap: 80px;
  --card-padding: 24px;
  --max-content: 1200px;
  --max-text: 600px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: 'Spectral', serif; font-weight: 700; line-height: 1.2; }
h3, h4 { font-family: 'Raleway', sans-serif; font-weight: 600; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

a { color: var(--copper); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--copper-light); }
a:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

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

.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-copper);
  color: var(--white);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #e0a878 0%, #c98040 50%, #8a5a30 100%);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 115, 51, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--silver);
  border: 2px solid var(--silver);
}
.btn-secondary:hover {
  color: var(--copper-light);
  border-color: var(--copper-light);
  transform: translateY(-1px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(28, 28, 28, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 115, 51, 0.2);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 72px;
  max-width: var(--max-content);
  margin: 0 auto;
}

.logo {
  font-family: 'Spectral', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 1px;
}
.logo span { color: var(--silver); }

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-list a {
  color: var(--copper);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition);
}
.nav-list a:hover,
.nav-list a.active { color: var(--silver); }

.nav-cta {
  padding: 8px 20px;
  background: var(--gradient-copper);
  color: var(--white) !important;
  border-radius: 4px;
  font-size: 0.85rem !important;
}
.nav-cta:hover { color: var(--white) !important; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--copper);
  transition: all var(--transition);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--charcoal);
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(184,115,51,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(192,192,192,0.05) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p {
  color: var(--silver);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: var(--max-text);
  margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section {
  padding: var(--section-gap) 0;
}
.section-dark {
  background: var(--charcoal);
  color: var(--white);
}
.section-light {
  background: var(--off-white);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  color: #666;
  max-width: var(--max-text);
  margin: 0 auto;
  font-size: 1.05rem;
}
.section-dark .section-header p { color: var(--silver); }

/* Copper divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-copper);
  margin: 16px auto 0;
}

/* Pillar Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.pillar-card {
  text-align: center;
  padding: var(--card-padding) 20px;
}
.pillar-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--copper);
}
.pillar-card h3 { margin-bottom: 12px; }
.pillar-card p { font-size: 0.95rem; color: #555; max-width: 320px; margin: 0 auto; }

/* Sector Tags */
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.sector-tag {
  padding: 10px 20px;
  background: rgba(184, 115, 51, 0.1);
  border: 1px solid rgba(184, 115, 51, 0.3);
  border-radius: 4px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: var(--copper);
  font-weight: 500;
}

/* Service Tiles */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  padding: 32px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--copper);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--copper);
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 16px; }
.service-card ul {
  list-style: none;
  margin-bottom: 20px;
}
.service-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--copper);
}

/* Trust Bar */
.trust-bar {
  text-align: center;
}
.trust-bar p { font-size: 1.05rem; margin-bottom: 24px; }
.trust-logos {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.7;
}
.trust-logos span {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--silver);
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(192, 192, 192, 0.3);
  padding: 12px 20px;
  border-radius: 4px;
}

/* Quote Block */
.quote-block {
  text-align: center;
  padding: 60px 24px;
  position: relative;
}
.quote-block::before {
  content: '';
  width: 60px;
  height: 2px;
  background: var(--copper);
  display: block;
  margin: 0 auto 24px;
}
.quote-block blockquote {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.section-dark .quote-block blockquote { color: var(--silver); }

/* Founders */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}
.founder-card { text-align: center; }
.founder-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 3px solid var(--copper);
  background: var(--light-grey);
}
.founder-card h3 { margin-bottom: 4px; }
.founder-card .title {
  color: var(--copper);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.founder-card p { font-size: 0.95rem; color: #555; max-width: 400px; margin: 0 auto; }

/* Differentiators */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.diff-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-left: 3px solid var(--copper);
}
.diff-item h4 { margin-bottom: 6px; }
.diff-item p { font-size: 0.9rem; color: #555; }

/* Values */
.values-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.value-card {
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 24px;
}
.value-card h4 { color: var(--copper); margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: #555; }

/* Timeline / Process */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-grey);
}
.timeline-step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--gradient-copper);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Spectral', serif;
  font-size: 1.3rem;
  font-weight: 700;
  z-index: 1;
}
.step-content h3 { margin-bottom: 8px; }
.step-content p { font-size: 0.95rem; color: #555; }

/* Industries Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.industry-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}
.industry-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}
.industry-icon {
  width: 40px;
  height: 40px;
  color: var(--copper);
  margin: 0 auto 12px;
}
.industry-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.industry-card p { font-size: 0.9rem; color: #555; }

/* Why KF */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--off-white);
  border-radius: 8px;
  transition: all var(--transition);
}
.why-card:hover {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.why-card h4 { color: var(--copper); margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; color: #555; }

/* Case Studies */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.case-card {
  background: rgba(184, 115, 51, 0.05);
  border: 1px solid rgba(184, 115, 51, 0.15);
  border-radius: 8px;
  padding: 28px;
}
.case-card h4 { margin-bottom: 8px; }
.case-card .stat {
  font-family: 'Spectral', serif;
  font-size: 1.6rem;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 8px;
}
.case-card p { font-size: 0.9rem; color: #555; }

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.blog-card:hover .blog-underline { width: 100%; }
.blog-image {
  height: 200px;
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
}
.blog-body {
  padding: 24px;
  position: relative;
}
.blog-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-body p { font-size: 0.9rem; color: #555; margin-bottom: 16px; }
.blog-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-underline {
  height: 2px;
  width: 0;
  background: var(--silver);
  transition: width 0.4s ease;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info { padding: 32px; background: var(--charcoal); border-radius: 8px; color: var(--white); }
.contact-info h3 { color: var(--copper); margin-bottom: 20px; }
.contact-detail { margin-bottom: 20px; }
.contact-detail .label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--silver);
  margin-bottom: 4px;
}
.contact-detail p { font-size: 0.95rem; }
.contact-detail a { color: var(--copper-light); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success h3 { color: var(--copper); margin-bottom: 12px; }

/* Legal */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
}
.legal-content h2 { font-size: 1.6rem; margin-bottom: 16px; }
.legal-content h3 { margin-top: 32px; margin-bottom: 12px; }
.legal-content p { margin-bottom: 16px; color: #555; }

/* Footer */
.site-footer {
  background: var(--charcoal);
  padding: 48px 0 24px;
  border-top: 2px solid var(--copper-dark);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--silver); font-size: 0.9rem; line-height: 1.6; }
.footer-links h4 {
  color: var(--copper);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--silver); font-size: 0.9rem; }
.footer-links a:hover { color: var(--copper-light); }
.footer-bottom {
  border-top: 1px solid rgba(192, 192, 192, 0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(192, 192, 192, 0.5); font-size: 0.8rem; }
.footer-bottom a { color: rgba(192, 192, 192, 0.5); }

/* Section CTA row */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page header (interior pages) */
.page-header {
  background: var(--charcoal);
  padding: 140px 24px 60px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: var(--silver); font-size: 1.1rem; max-width: var(--max-text); margin: 0 auto; }

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .hero { min-height: 80vh; padding: 100px 20px 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-in { opacity: 1; transform: none; }
}
