/* ==================================================
   MAKE-ROOF PREMIUM THEME (DARK & GOLD)
   ================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
  --bg-color: #070707;
  --surface-color: #121212;
  --surface-hover: #1a1a1a;
  --border-color: #222222;
  
  --gold-primary: #f3c28d;
  --gold-hover: #dfaf7a;
  --gold-glow: rgba(243, 194, 141, 0.2);
  
  --text-primary: #ffffff;
  --text-secondary: #999999;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Typography Utilities */
.text-gold { color: var(--gold-primary) !important; }
.bg-gold { background-color: var(--gold-primary) !important; }
.border-gold { border-color: var(--gold-primary) !important; }

.section-padding { padding: 120px 0; }
.tracking-wide { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.2em; }

/* Buttons */
.btn-gold {
  background-color: var(--gold-primary);
  color: #000;
  font-weight: 600;
  font-family: var(--font-heading);
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.btn-gold:hover {
  background-color: var(--gold-hover);
  color: #000;
  box-shadow: 0 0 15px var(--gold-glow);
}
.btn-outline-gold {
  background-color: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 12px 30px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.btn-outline-gold:hover {
  background-color: var(--gold-glow);
  color: var(--gold-primary);
}

/* Navbar */
.navbar-custom {
  background-color: rgba(7, 7, 7, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}
.navbar-custom .nav-link {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.navbar-custom .nav-link:hover {
  color: var(--gold-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../images/chon/01.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 700;
}
.hero-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 300;
}
.hero-features .icon {
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 10px;
}
.hero-features p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-heading);
  font-weight: 400;
}
.hero-ui-mockup img {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  border: 1px solid var(--border-color);
  transform: perspective(1000px) rotateY(-5deg) translateY(20px);
}

/* Before / After Section (Slider) */
.image-comparison {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}
.images-container {
  width: 100%;
}
.images-container::before {
  content: "";
  display: block;
  padding-top: 37.5%;
}
.pointer-events-none {
  pointer-events: none !important;
}
.slider-animating {
  transition: clip-path 1.2s cubic-bezier(0.7, 0, 0.2, 1), left 1.2s cubic-bezier(0.7, 0, 0.2, 1) !important;
}
.ba-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Material Selectors */
.selector-thumb {
  height: 50px;
  width: auto;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  padding: 2px;
}
.selector-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}
.selector-thumb.active {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: transparent;
}

/* Core Features */
.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.feature-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-5px);
  background-color: var(--surface-hover);
}
.feature-icon {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 20px;
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Stats Banner */
.stats-banner {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 0;
  background-color: var(--surface-color);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 10px;
}
.stat-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: var(--font-heading);
}

/* Media & Gallery */
.video-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.play-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.5rem;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(7,7,7,0.5);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: all 0.3s;
}
.play-btn:hover {
  background-color: var(--gold-primary);
  color: #000;
}
.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}
.gallery-img:hover {
  border-color: var(--gold-primary);
}

/* Workflow */
.workflow-step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
  background-color: var(--bg-color);
  z-index: 2;
  position: relative;
}
.workflow-line {
  position: absolute;
  top: 15px;
  left: 12.5%;
  width: 75%;
  border-top: 1px dashed var(--gold-primary);
  background: none;
  z-index: 1;
}

/* Pricing Card */
.pricing-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
}
.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  background-color: #050505;
}
.footer-title {
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* Pricing Card Hover Effects */
.pricing-card-wrapper {
  transition: transform 0.3s ease;
}
.pricing-card-wrapper:hover {
  transform: scale(1.05) !important;
  z-index: 10;
}
.pricing-card {
  transition: all 0.3s ease;
}
.pricing-card-wrapper:hover .pricing-card {
  box-shadow: 0 0 40px rgba(229, 169, 61, 0.4) !important;
  border-color: var(--gold-primary) !important;
}

/* Pricing Section Redesign Utilities */
.pricing-header-line {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  letter-spacing: 2px;
}
.pricing-header-line::before,
.pricing-header-line::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--gold-primary);
  margin: 0 15px;
  opacity: 0.5;
}

.pricing-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(229, 169, 61, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
}

.pricing-separator {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 15px 0;
}

.pricing-mini-footer {
  font-size: 0.65rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}
.pricing-mini-footer i {
  color: var(--gold-primary);
  margin-right: 5px;
}

/* Features Grid Dynamic Animation */
.features-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .features-grid-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid-layout {
    grid-template-columns: repeat(6, 1fr);
  }
}

.feature-card-wrapper {
  cursor: pointer;
  z-index: 2;
  will-change: transform;
}

.feature-card-wrapper:hover .feature-card {
  border-color: rgba(229, 169, 61, 0.5) !important;
}

.feature-card-wrapper.active .feature-card {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 20px rgba(229, 169, 61, 0.2);
  background-color: rgba(229, 169, 61, 0.05) !important;
}

@media (min-width: 992px) {
  .features-grid-layout.is-expanded {
    grid-template-columns: 1fr 2.5fr 1fr;
    grid-template-rows: repeat(3, auto);
  }
  
  .features-grid-layout.is-expanded .feature-card-wrapper:nth-child(1) { grid-column: 1; grid-row: 1; }
  .features-grid-layout.is-expanded .feature-card-wrapper:nth-child(2) { grid-column: 1; grid-row: 2; }
  .features-grid-layout.is-expanded .feature-card-wrapper:nth-child(3) { grid-column: 1; grid-row: 3; }
  
  .features-grid-layout.is-expanded .feature-card-wrapper:nth-child(4) { grid-column: 3; grid-row: 1; }
  .features-grid-layout.is-expanded .feature-card-wrapper:nth-child(5) { grid-column: 3; grid-row: 2; }
  .features-grid-layout.is-expanded .feature-card-wrapper:nth-child(6) { grid-column: 3; grid-row: 3; }
}

.feature-viewer {
  display: none;
  opacity: 0;
  border-radius: 1rem;
  background-color: #050505;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 30px rgba(229, 169, 61, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .features-grid-layout.is-expanded .feature-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1 / span 3;
    animation: fadeInViewer 0.6s ease forwards;
    animation-delay: 0.2s;
  }
}

@keyframes fadeInViewer {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.feature-viewer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: var(--gold-primary);
  transition: opacity 0.3s ease;
}
.feature-viewer-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}



/* Custom Input Focus Outline */
.form-control:focus { outline: none; box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.3) !important; }
