:root {
  --prugio-green: #004a3d;
  --prugio-gold: #c5a363;
  --bg-light: #f4f7f6;
  --text-dark: #2c3e50;
  --text-muted: #7f8c8d;
  --accent-color: #00897b;
  --glass: rgba(255, 255, 255, 0.95);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  background-color: #fff;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: 0.3s;
  background: transparent;
}

header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px 50px;
}

/* Removed scrolled overrides to let child colors show through */

header.scrolled nav a {
  color: var(--text-dark);
}

header.scrolled nav a:hover {
  color: var(--prugio-green);
}

.logo {
  font-weight: 900;
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -1px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.brand-name {
  color: var(--prugio-green);
  transition: 0.3s;
}

.sub-logo {
  color: var(--prugio-gold);
  font-size: 1.2rem;
  font-weight: 700;
  transition: 0.3s;
}

.menu-toggle {
  cursor: pointer;
  font-size: 1.5rem;
  color: #fff;
  transition: 0.3s;
}

header.scrolled .menu-toggle {
  color: var(--prugio-green);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

nav a:hover {
  color: var(--prugio-gold);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

#hero-main-title {
  color: var(--prugio-gold);
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease-out;
  line-height: 1.2;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.btn-primary {
  padding: 15px 40px;
  background-color: var(--prugio-gold);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

.btn-primary:hover {
  background-color: #b08e50;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Info Section */
.section {
  padding: 100px max(40px, calc((100% - 1100px) / 2));
}

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

.section-title h2 {
  font-size: 2.5rem;
  color: var(--prugio-green);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 20px;
  color: var(--prugio-green);
}

/* Price Table */
.price-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

th {
  background: var(--prugio-green);
  color: #fff;
  padding: 20px;
  text-align: left;
}

td {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

tr:last-child td {
  border-bottom: none;
}

.price-tag {
  font-weight: 700;
  color: var(--prugio-green);
  font-size: 1.2rem;
}

.highlight-row {
  background-color: #fdfae3;
  font-weight: 600;
}

table tr th:last-child, table tr td:last-child {
  border-left: 1px solid rgba(0,0,0,0.05);
}

.tab-content table {
  margin-top: 10px;
  font-size: 0.85rem;
}

.tab-content th {
  padding: 12px 10px;
  background-color: #f1f3f5;
  color: var(--text-dark);
}

.tab-content td {
  padding: 10px;
}

/* Floor Plan Tabs */
.tab-container {
  margin-top: 40px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 25px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
  color: var(--text-muted);
}

.tab-btn.active {
  background: var(--prugio-green);
  color: #fff;
  border-color: var(--prugio-green);
  box-shadow: 0 5px 15px rgba(0,74,61,0.2);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.estimate-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* Adjusted for better balance */
  gap: 30px;
  background: #fff;
  padding: 40px;
  border-radius: 25px;
  box-shadow: var(--shadow-md);
  align-items: center; /* Vertical center */
}

.plan-details {
  text-align: left; /* Aligned left for side-by-side mode */
  min-width: 0;
}

.plan-visuals {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-image {
  background: #fff;
  padding: 0;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  overflow: hidden;
  height: 280px; /* Reduced for stacked view */
  position: relative;
}

.plan-image.view-3d {
  background: #fdfdfd;
}

.visual-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 5px 12px;
  font-size: 0.75rem;
  border-radius: 5px;
  z-index: 2;
}

.plan-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Show full image */
  position: absolute;
  top: 0;
  left: 0;
}

/* Specific crop for screenshots with headers/footers */
.plan-image.cropped img {
  transform: scale(1.0); /* Revert zoom to show full structure */
  transform-origin: center center;
}


.plan-details .badge {
  display: inline-block;
  margin: 0 auto 15px auto;
}

.plan-details h4 {
  font-size: 1.8rem;
  color: var(--prugio-green);
  margin: 0 auto 25px auto;
  border-bottom: 2px solid var(--prugio-gold);
  display: inline-block;
  padding-bottom: 5px;
  text-align: center;
}

.mat-count-list {
  list-style: none;
}

.mat-count-list li {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px dashed #eee;
}

.mat-count-list li:last-child {
  border-bottom: none;
}

.mat-count-list .area {
  font-weight: 500;
  color: var(--text-dark);
}

.mat-count-list .count {
  color: var(--prugio-green);
  font-weight: 700;
}

/* Size Comparison Card */
.size-comparison {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  margin-top: 50px;
  border: 1px solid var(--prugio-gold);
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--prugio-gold);
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Product Lineup Styling */
.texture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.texture-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  border: 1px solid #eee;
  text-align: center;
  position: relative;
}

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

.texture-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f5f5f5;
}

.texture-info-small {
  padding: 15px;
}

.texture-info-small h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.texture-info-small p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.best-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #3498db;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 5px;
  z-index: 2;
}

.bottom-type-section {
  margin-top: 80px;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 25px;
}

.bottom-type-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.bottom-type-item {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.bottom-type-item img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 15px;
}

/* Footer */
footer {
  background: var(--prugio-green);
  color: rgba(255,255,255,0.7);
  padding: 50px 10%;
  text-align: center;
}

.footer-logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  header {
    padding: 12px 15px;
    background: transparent;
    backdrop-filter: blur(15px);
  }
  
  header.scrolled {
    padding: 10px 15px;
    background: var(--glass);
  }

  .menu-toggle {
    display: block !important;
  }

  .logo {
    font-size: 1.15rem;
    gap: 5px;
    flex-wrap: wrap;
  }
  
  .sub-logo {
    font-size: 0.75rem;
    display: block;
    width: 100%;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 30px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 999;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  nav.active {
    display: block;
    animation: fadeInDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.1rem;
    padding: 10px;
    display: block;
  }

  .hero {
    height: 85vh; /* Responsive height */
    padding: 0 25px;
  }

  .hero h1 {
    font-size: 1.8rem; /* Adjusted for Paju Prugio title */
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .section {
    padding: 50px 15px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }

  .card {
    padding: 30px 20px;
    text-align: center; /* Center content in cards on mobile */
  }

  .card img {
    margin: 0 auto;
  }

  .estimate-grid {
    padding: 20px 15px;
    gap: 25px;
  }

  .plan-image {
    height: 180px;
  }

  .plan-details {
    padding: 0 5px;
    text-align: center;
  }

  .plan-details h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .mat-count-list li {
    padding: 12px 5px;
    font-size: 0.9rem;
  }

  .price-container {
    margin: 0 -5px;
    border-radius: 10px;
  }

  table {
    font-size: 0.75rem;
  }

  th, td {
    padding: 10px 5px;
  }

  .tabs {
    gap: 8px;
    margin-bottom: 30px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    flex: 1 1 30%; /* Balanced 3-rows on mobile */
    min-width: 80px;
  }

  .texture-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for lineup */
    gap: 15px;
  }

  /* Centering Calculator components */
  .calculator-container {
    padding: 20px 15px !important;
    text-align: center;
  }

  .size-selector-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
  }

  .calc-result {
    padding: 20px 15px !important;
  }

  .bottom-type-grid {
    gap: 20px;
  }
  
  .bottom-type-item img {
    width: 80px;
    height: 80px;
  }

  footer {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
  
  .btn-primary {
    padding: 12px 25px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  .size-comparison {
    padding: 20px 10px;
  }

  #apt-policy-desc {
    font-size: 0.95rem !important;
    text-align: center;
  }

  .visual-label {
    padding: 3px 8px;
    font-size: 0.65rem;
  }
}
/* Pricing Tables Premium Tone & Manner (Screenshot Sync) */
.pc-only-pricing { display: block; }
.mobile-price-cards { display: none; }

.price-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08); /* PC screenshot shadow */
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .pc-only-pricing { display: none; }
  .mobile-price-table-container {
    display: block !important;
  }
  .mobile-price-cards {
    display: none;
  }
  
  .price-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
  }
  
  .card-header {
    background: #004433; /* Dark Prugio Green */
    color: #fff;
    padding: 10px 5px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  
  .card-body {
    padding: 12px 10px;
    background: #fff;
  }
  
  .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    margin-bottom: 8px;
    color: #666;
  }
  
  .price-row:last-child { margin-bottom: 0; }
  
  .price-row strong {
    font-size: 0.9rem;
    color: #333;
    font-weight: 700;
  }
  
  /* Scheduled Price highlighting (Red in screenshot) */
  .price-row.highlight {
    color: #e74c3c;
    border-top: 1px solid #f8f8f8;
    padding-top: 8px;
    margin-top: 4px;
  }
  
  .price-row.highlight strong {
    color: #e74c3c;
    font-size: 1.05rem;
    font-weight: 800;
  }

  .price-container table { font-size: 0.7rem; }
  .price-container th, .price-container td { padding: 12px 2px; }
  .price-container th { background: #004433 !important; color: #fff !important; font-weight: 700; }
}
