/* ZYPSOM - Premium Gypsum & Ceiling Solutions */
:root {
  --white: #ffffff;
  --off-white: #f8f7f5;
  --concrete: #ebe8e3;
  --charcoal: #2c2c2c;
  --dark: #1a1a1a;
  --gold: #b8860b;
  --gold-light: #d4a84b;
  --gold-dark: #8b6914;
  --gray: #6b6b6b;
  --light-gray: #e5e5e5;
  --success: #2d6a4f;
  --error: #9b2226;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --nav-height: 80px;
  --nav-height-scrolled: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle { color: var(--gray); font-size: 1.1rem; max-width: 600px; margin-bottom: 40px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.bg-white { background: var(--white); }
.bg-concrete { background: var(--concrete); }
.bg-dark { background: var(--dark); color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); text-align: center;
}
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--dark); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  height: var(--nav-height); transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled { height: var(--nav-height-scrolled); box-shadow: var(--shadow); border-bottom-color: var(--light-gray); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; }
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--charcoal); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--charcoal); transition: var(--transition); }
.mobile-actions { display: none; gap: 12px; }
.mobile-actions a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold); color: white; font-size: 1.1rem; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(26,26,26,0.75) 0%, rgba(44,44,44,0.6) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23333" width="1200" height="800"/><text x="50%" y="50%" fill="%23555" font-size="40" text-anchor="middle" dy=".3em">Premium Ceiling</text></svg>') center/cover;
  color: var(--white); padding-top: var(--nav-height); position: relative;
}
.hero-content { max-width: 700px; animation: fadeUp 0.8s ease; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.03em; }
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { height: 200px; background: var(--concrete); overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 0.9rem; background: linear-gradient(135deg, #e8e4de, #d4d0c8); }
.card-body { padding: 24px; }
.card-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.card-text { color: var(--gray); font-size: 0.95rem; margin-bottom: 16px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-price { font-weight: 700; color: var(--gold); }
.card-stock { font-size: 0.8rem; padding: 4px 10px; border-radius: 20px; background: #e8f5e9; color: var(--success); }
.card-stock.out { background: #fce8e8; color: var(--error); }
.card-actions { display: flex; gap: 10px; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-control {
  width: 100%; padding: 12px 16px; border: 1px solid var(--light-gray);
  border-radius: var(--radius); background: var(--white); transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,0.15); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; }

/* Calculator */
.calculator-box {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-lg); max-width: 700px; margin: 0 auto;
}
.calc-result {
  background: var(--concrete); border-radius: var(--radius); padding: 24px; margin-top: 24px;
}
.calc-result .total { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.calc-note { font-size: 0.85rem; color: var(--gray); margin-top: 12px; font-style: italic; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.stat-item p { color: var(--gray); font-size: 0.95rem; }

/* Footer */
.footer { background: var(--dark); color: #ccc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
.footer a:hover { color: var(--gold); }
.footer ul li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid #333; padding: 20px 0; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.9rem;
}
.footer-bottom a { color: var(--gold); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: var(--transition);
  color: white; font-size: 1.8rem;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Flash messages */
.flash-messages { position: fixed; top: calc(var(--nav-height) + 10px); right: 20px; z-index: 1100; max-width: 400px; }
.flash {
  padding: 14px 20px; border-radius: var(--radius); margin-bottom: 10px;
  box-shadow: var(--shadow); animation: fadeUp 0.3s ease; display: flex; justify-content: space-between; align-items: center;
}
.flash-success { background: #d8f3dc; color: var(--success); }
.flash-error { background: #fce8e8; color: var(--error); }
.flash-warning { background: #fff3cd; color: #856404; }

/* Page header */
.page-header {
  background: var(--dark); color: white; padding: 140px 0 60px; text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }

/* Filters */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 18px; border-radius: 30px; border: 1px solid var(--light-gray);
  background: white; cursor: pointer; font-size: 0.9rem; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--gold); color: white; border-color: var(--gold); }

/* Product detail */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { background: var(--concrete); border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; }
.product-info h1 { font-size: 2rem; margin-bottom: 12px; }
.specs-list { margin: 20px 0; }
.specs-list li { padding: 8px 0; border-bottom: 1px solid var(--light-gray); }

/* Admin */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--dark); color: #ccc; padding: 24px 0;
  position: fixed; height: 100vh; overflow-y: auto;
}
.admin-sidebar .logo { padding: 0 24px 24px; color: white; }
.admin-sidebar a {
  display: block; padding: 12px 24px; color: #aaa; transition: var(--transition);
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(184,134,11,0.15); color: var(--gold); }
.admin-main { margin-left: 260px; flex: 1; background: var(--off-white); }
.admin-header { background: white; padding: 16px 32px; border-bottom: 1px solid var(--light-gray); display: flex; justify-content: space-between; align-items: center; }
.admin-content { padding: 32px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-bottom: 32px; }
.admin-stat-card { background: white; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-stat-card h3 { font-size: 2rem; color: var(--gold); }
.admin-table { width: 100%; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--light-gray); }
.admin-table th { background: var(--concrete); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-new { background: #e3f2fd; color: #1565c0; }
.badge-contacted { background: #fff3e0; color: #e65100; }
.badge-completed { background: #e8f5e9; color: #2e7d32; }

/* Responsive */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: white; flex-direction: column; padding: 24px; gap: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .mobile-actions { display: flex; }
  .nav-cta { display: none; }
  .hero { min-height: 80vh; text-align: center; }
  .hero-btns { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .section { padding: 50px 0; }
  .hero h1 { font-size: 1.9rem; }
  .btn { padding: 12px 20px; }
}
