/* ==========================================================================
   Superior Custom — Modern Luxury CSS stylesheet
   100% Static HTML5 / CSS3 - Zero Dependencies - Cloudflare Pages Ready
   ========================================================================== */

:root {
  --bg-dark: #0a0e14;
  --bg-surface: #121820;
  --bg-alt: #070a0e;
  --bg-card: #171f2a;

  --gold-primary: #dfb85e;
  --gold-light: #f5d886;
  --gold-dark: #b58d30;
  --gold-gradient: linear-gradient(135deg, #ffffff 0%, #f5d886 40%, #dfb85e 70%, #b58d30 100%);

  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-gold: rgba(223, 184, 94, 0.25);
  --border-gold-subtle: rgba(223, 184, 94, 0.12);
  --glass-bg: rgba(18, 24, 32, 0.75);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.bg-alt {
  background-color: var(--bg-surface);
}

/* Section Header Structure */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--gold-primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* Sticky Header Navigation */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold-subtle);
  transition: var(--transition);
}

.navbar-header.scrolled {
  background: rgba(10, 14, 20, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  padding: 4px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-light);
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, #dfb85e, #b58d30);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(223, 184, 94, 0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(223, 184, 94, 0.5);
}

.btn-primary-sm {
  padding: 10px 22px;
  background: linear-gradient(135deg, #dfb85e, #b58d30);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
}

.btn-outline-sm {
  padding: 10px 20px;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-sm:hover {
  background: rgba(223, 184, 94, 0.1);
  border-color: var(--gold-primary);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(223, 184, 94, 0.15);
  color: var(--gold-light);
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-gold);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  z-index: 999;
}

.mobile-drawer.active {
  max-height: 400px;
  padding: 24px;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-primary-full {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10,14,20,0.7) 0%, rgba(10,14,20,0.95) 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(223, 184, 94, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-primary);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 36px;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}

.about-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(223, 184, 94, 0.1);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--gold-light);
}

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

.service-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(223, 184, 94, 0.2);
  margin-bottom: 12px;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-box {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--gold-light);
}

/* Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--bg-dark);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
}

.step-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(223, 184, 94, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Portfolio Gallery */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
}

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

.portfolio-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold-subtle);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
}

.portfolio-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-dark);
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img-wrap img {
  transform: scale(1.06);
}

.portfolio-info {
  padding: 20px;
}

.portfolio-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.portfolio-info h4 {
  font-size: 1.1rem;
  margin-top: 4px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

.contact-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(223, 184, 94, 0.1);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.info-val {
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 600;
}

.contact-form-container {
  background: var(--bg-dark);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

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

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(223, 184, 94, 0.2);
}

.success-message {
  text-align: center;
  padding: 30px;
}

.success-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #000;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* Modal Overlay */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.privacy-body h4 {
  color: var(--gold-light);
  margin-top: 16px;
  margin-bottom: 4px;
}

.privacy-body p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-gold-subtle);
  padding: 80px 0 30px;
}

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

.footer-col h4 {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-grid, .process-timeline, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .header-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .about-grid, .services-grid, .features-grid, .process-timeline, .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
