/* === KLM CONSTRUCTION INC — Main Stylesheet === */

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

:root {
  --navy: #0a1628;
  --navy-light: #132038;
  --gold: #c8963e;
  --gold-light: #e0b860;
  --white: #f5f2eb;
  --gray: #8b95a5;
  --dark-bg: #060d18;
  --card-bg: #111d30;
  --accent-blue: #3b70b8;
  --success: #2e8b57;
  --danger: #c0392b;
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--dark-bg);
  color: var(--white);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding: 0 24px;
  transition: background 0.3s;
}

.navbar.scrolled { background: rgba(10, 22, 40, 0.97); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: 1px;
  color: var(--gold); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}

.nav-logo span { color: var(--white); font-weight: 400; font-size: 0.8rem; letter-spacing: 2px; }

.nav-links { display: flex; list-style: none; gap: 36px; }

.nav-links a {
  color: var(--white); font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: all 0.25s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold); border-bottom-color: var(--gold);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}

.hamburger span {
  display: block; width: 26px; height: 3px;
  background: var(--gold); border-radius: 2px; transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Hero Section --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--navy) 50%, var(--navy-light) 100%);
  position: relative; overflow: hidden;
  padding-top: 68px;
}

.hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute; bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59, 112, 184, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative; z-index: 2; max-width: 700px;
}

.hero-badge {
  display: inline-block; background: rgba(200, 150, 62, 0.15);
  color: var(--gold-light); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  padding: 8px 18px; border-radius: 50px; margin-bottom: 24px;
  border: 1px solid rgba(200, 150, 62, 0.25);
}

.hero h1 {
  font-size: 3.2rem; line-height: 1.15; margin-bottom: 20px;
}

.hero h1 .gold { color: var(--gold); }

.hero p {
  font-size: 1.15rem; color: var(--gray); max-width: 550px; margin-bottom: 36px;
}

.btn {
  display: inline-block; padding: 14px 34px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 1px; cursor: pointer; border: none;
  transition: all 0.3s; text-align: center;
}

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200, 150, 62, 0.3); }

.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* --- Section Styles --- */
.section { padding: 100px 0; }

.section-dark { background: var(--navy); }
.section-darker { background: var(--dark-bg); }

.section-header { text-align: center; margin-bottom: 60px; }

.section-label {
  display: inline-block; color: var(--gold);
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px;
}

.section-header h2 { font-size: 2.4rem; color: var(--white); margin-bottom: 16px; }

.section-header p { color: var(--gray); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* --- Services Grid --- */
.services-grid, .grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}

.service-card {
  background: var(--card-bg); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 36px 28px;
  transition: all 0.35s; position: relative; overflow: hidden;
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}

.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); border-color: rgba(200,150,62,0.3); }

.service-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(200, 150, 62, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; font-size: 1.6rem; color: var(--gold);
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--white); }

.service-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.65; }

/* --- About Section --- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.about-text h2 { font-size: 2.2rem; margin-bottom: 20px; }

.about-text p { color: var(--gray); margin-bottom: 16px; }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }

.stat-item { text-align: center; padding: 20px; background: var(--card-bg); border-radius: var(--radius); }

.stat-number { font-size: 2rem; font-weight: 800; color: var(--gold); display: block; }

.stat-label { color: var(--gray); font-size: 0.85rem; margin-top: 6px; }

.about-image {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius); min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,150,62,0.15);
}

.about-image-inner {
  text-align: center; padding: 40px;
}

.about-image-inner .big-letter {
  font-size: 8rem; font-weight: 900; color: var(--gold); line-height: 1;
  opacity: 0.6;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: 1px solid rgba(200,150,62,0.2);
  border-radius: var(--radius); padding: 56px 48px;
  text-align: center; position: relative; overflow: hidden;
}

.cta-banner h2 { font-size: 2rem; margin-bottom: 16px; }

.cta-banner p { color: var(--gray); max-width: 550px; margin: 0 auto 28px; }

/* --- Footer --- */
.footer {
  background: var(--navy); border-top: 2px solid var(--gold);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 { font-size: 1.3rem; color: var(--gold); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }

.footer-brand p { color: var(--gray); font-size: 0.9rem; }

.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a { color: var(--gray); font-size: 0.9rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; text-align: center;
  color: var(--gray); font-size: 0.85rem;
}

/* --- Contact Form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.contact-info h2 { font-size: 2.2rem; margin-bottom: 16px; }

.contact-info > p { color: var(--gray); margin-bottom: 28px; }

.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }

.contact-detail .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(200, 150, 62, 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem; color: var(--gold);
}

.contact-detail h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 2px; }

.contact-detail span { color: var(--gray); font-size: 0.9rem; }

.contact-form { background: var(--card-bg); padding: 36px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.05); }

.form-group { margin-bottom: 20px; }

.form-group label { display: block; color: var(--white); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); color: var(--white);
  font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group .error-msg {
  color: var(--danger); font-size: 0.8rem; margin-top: 4px; display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--danger);
}

.form-group.error .error-msg { display: block; }

.form-success {
  display: none; text-align: center; padding: 40px 20px;
  color: var(--success); font-weight: 600; font-size: 1.1rem;
}

/* --- Policy Pages --- */
.policy-hero {
  padding-top: 120px; padding-bottom: 60px;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--navy) 100%);
  text-align: center;
  border-bottom: 1px solid rgba(200,150,62,0.15);
}

.policy-hero h1 { font-size: 2.6rem; color: var(--gold); margin-bottom: 10px; }

.policy-hero .update-date { color: var(--gray); font-size: 0.9rem; }

.policy-content { padding: 60px 0; max-width: 800px; margin: 0 auto; }

.policy-content h2 {
  font-size: 1.4rem; color: var(--gold-light); margin: 36px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(200,150,62,0.2);
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content p { color: var(--gray); margin-bottom: 14px; line-height: 1.75; }

.policy-content ul { color: var(--gray); margin-bottom: 14px; padding-left: 24px; }

.policy-content li { margin-bottom: 8px; line-height: 1.65; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.7s ease-out; }

.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s ease-out; }

.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right { opacity: 0; transform: translateX(40px); transition: all 0.7s ease-out; }

.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--navy); flex-direction: column;
    gap: 0; max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 2px solid var(--gold);
  }

  .nav-links.open { max-height: 400px; }

  .nav-links a {
    padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.05);
    display: block;
  }

  .hero h1 { font-size: 2.2rem; }
  .section-header h2 { font-size: 1.8rem; }
  .services-grid, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .cta-banner { padding: 36px 24px; }
  .policy-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .about-stats { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
