/* =========================================
   KOMPENI — Professional Company Profile
   Color Palette: Brown Tones
   ========================================= */

/* ----- Design Tokens ----- */
:root {
  --brown-900: #1a0f0a;
  --brown-800: #2d1f15;
  --brown-700: #3E2723;
  --brown-600: #4E342E;
  --brown-500: #5D4037;
  --brown-400: #6D4C41;
  --brown-300: #8D6E63;
  --brown-200: #A1887F;
  --brown-100: #BCAAA4;
  --brown-50:  #D7CCC8;
  --beige:      #FFF8F0;
  --cream:      #FEF5EC;
  --cream-dark: #F5EBE0;
  --gold:       #C8956C;
  --gold-light: #D4A373;
  --white:      #FFFFFF;
  --text-dark:  #1f1a16;
  --text-body:  #4a423a;
  --text-light: #8c8278;
  --shadow-sm:  0 2px 8px rgba(30, 15, 10, 0.06);
  --shadow-md:  0 8px 30px rgba(30, 15, 10, 0.08);
  --shadow-lg:  0 20px 60px rgba(30, 15, 10, 0.12);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--beige);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ----- Typography ----- */
h1, h2, h3, h4 {
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

.text-accent { color: var(--gold); }

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 149, 108, 0.10);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-tag--light {
  background: rgba(255, 248, 240, 0.12);
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar-scrolled {
  background: rgba(26, 15, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 248, 240, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.logo--light .logo-mark {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.logo-text { letter-spacing: -0.3px; }

/* Nav Links */
.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 248, 240, 0.7);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--brown-900);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(200, 149, 108, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(212, 163, 115, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 10%, rgba(200, 149, 108, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(200, 149, 108, 0.12);
  border: 1px solid rgba(200, 149, 108, 0.2);
  padding: 8px 22px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 248, 240, 0.6);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--brown-900);
  box-shadow: 0 4px 16px rgba(200, 149, 108, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(200, 149, 108, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 248, 240, 0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.btn-full { width: 100%; }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 248, 240, 0.08);
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 248, 240, 0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid rgba(139, 115, 85, 0.08);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.about-icon {
  width: 48px; height: 48px;
  background: rgba(200, 149, 108, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}

.about-icon svg {
  width: 24px; height: 24px;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== SERVICES ===== */
.services {
  background: var(--cream);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  border: 1px solid rgba(139, 115, 85, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrapper {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(200, 149, 108, 0.1), rgba(200, 149, 108, 0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}

.service-icon-wrapper svg {
  width: 26px; height: 26px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  transition: var(--transition);
}

.service-card:hover .service-link {
  color: var(--gold-light);
}

/* ===== PORTFOLIO ===== */
.portfolio {
  background: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(139, 115, 85, 0.08);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.portfolio-thumb-bg {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.portfolio-info {
  padding: 24px;
}

.portfolio-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 149, 108, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.portfolio-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--brown-800);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(200, 149, 108, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(200, 149, 108, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.contact .container { position: relative; z-index: 1; }

.contact .section-tag { color: var(--gold-light); }

.contact h2 { color: var(--white); }
.contact .section-desc { color: rgba(255, 248, 240, 0.5); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-text h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.contact-text > p {
  font-size: 1.05rem;
  color: rgba(255, 248, 240, 0.6);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cd-icon {
  width: 44px; height: 44px;
  background: rgba(200, 149, 108, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.cd-icon svg {
  width: 20px; height: 20px;
}

.contact-detail strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 248, 240, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-detail p {
  font-size: 0.98rem;
  color: var(--white);
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 248, 240, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(8px);
}

.form-row {
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 248, 240, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transition: var(--transition);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 248, 240, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.12);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brown-900);
  border-top: 1px solid rgba(255, 248, 240, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  padding: 60px 0 40px;
}

.footer-brand p {
  color: rgba(255, 248, 240, 0.45);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 340px;
  line-height: 1.7;
}

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

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
}

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

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 248, 240, 0.5);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 248, 240, 0.05);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 248, 240, 0.3);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.8rem; }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2 { font-size: 2rem; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.7rem; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 73px; left: 0; width: 100%;
    background: rgba(26, 15, 10, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    transform: translateY(-120%);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 248, 240, 0.06);
  }
  .nav-menu.nav-open { transform: translateY(0); }
  .nav-links { flex-direction: column; gap: 20px; text-align: center; }
  .nav-link { font-size: 1rem; }

  /* Hero */
  .hero { padding: 100px 0 60px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }

  /* Grids */
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 24px; }

  /* Footer */
  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-top { padding: 40px 0 24px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-stat-num { font-size: 1.8rem; }
}
