/* ==========================================================================
   AGT Finishing Carpenter Custom Design System & CSS Stylesheet
   ========================================================================== */

/* Color & Styling Tokens */
:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Premium Woodcraft Palette */
  --gold: #d4a373;
  --gold-light: #e6ccb2;
  --gold-dark: #b07d50;
  --dark-black: #0c0c0c;
  --dark-slate: #121212;
  --dark-card: #181818;
  --dark-card-hover: #222222;
  --border-gold: rgba(212, 163, 115, 0.18);
  --border-white: rgba(255, 255, 255, 0.08);

  /* Functional Colors */
  --text-light: #f8f9fa;
  --text-dim: #b8c0c8;
  --text-dark: #1e252b;
  --danger: #ef4444;
  --success: #10b981;
  --white: #ffffff;

  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px rgba(212, 163, 115, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for fixed header */
  font-size: 16px;
}

body {
  background-color: var(--dark-slate);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--dark-black);
}
::-webkit-scrollbar-thumb {
  background: #2b2b2b;
  border-radius: 5px;
  border: 2px solid var(--dark-black);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Helper Components */
.divider {
  height: 1px;
  background: var(--border-white);
  margin: 20px 0;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--dark-black);
  border: 1px solid var(--gold);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.6s;
  z-index: -1;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid var(--border-white);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary-outline {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-secondary-outline:hover {
  background-color: var(--gold);
  color: var(--dark-black);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--white);
  border: none;
}
.btn-danger:hover {
  background-color: #dc2626;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-text {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  transition: var(--transition-fast);
}
.btn-text:hover {
  color: var(--gold-light);
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 163, 115, 0.1);
  border-radius: 50%;
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 15px auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.6s linear infinite;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-white);
  z-index: 1000;
  transition: var(--transition-normal);
}

#main-header.scrolled {
  height: 70px;
  background-color: rgba(12, 12, 12, 0.95);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.logo-accent {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 163, 115, 0.2);
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
}

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

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

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

#admin-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Mobile Menu Toggle Button */
#mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

#mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition-normal);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  background: url('/uploads/wainscoting.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(12, 12, 12, 0.92) 35%, rgba(20, 20, 20, 0.7) 100%);
  z-index: -1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 38px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Scroll indicator mouse */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: pulse 2s infinite;
}

.mouse-icon {
  width: 22px;
  height: 35px;
  border: 2px solid var(--border-gold);
  border-radius: 12px;
  position: relative;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Metrics Section
   ========================================================================== */
.metrics-section {
  background-color: var(--dark-black);
  border-bottom: 1px solid var(--border-white);
  padding: 40px 0;
  position: relative;
  z-index: 10;
  margin-top: -60px; /* pull up over the hero wave */
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  max-width: 1190px;
  margin-left: auto;
  margin-right: auto;
}

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

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.metric-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 14px;
  text-shadow: var(--shadow-glow);
}

.metric-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.metric-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 250px;
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
section {
  padding: 100px 0;
}

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

.section-tagline {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

.section-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  background-color: var(--dark-slate);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--dark-card);
  border: 1px solid var(--border-white);
  border-radius: 8px;
  padding: 35px;
  transition: var(--transition-normal);
  display: flex;
  gap: 24px;
}

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

.service-img-placeholder {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background-color: rgba(212, 163, 115, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(212, 163, 115, 0.2);
  transition: var(--transition-fast);
}

.service-card:hover .service-img-placeholder {
  background-color: var(--gold);
  color: var(--dark-black);
}

.service-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.service-body p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Portfolio / Gallery Section
   ========================================================================== */
.portfolio-section {
  background-color: var(--dark-black);
}

.filter-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-white);
  color: var(--text-dim);
  padding: 10px 22px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--gold);
  color: var(--dark-black);
  border-color: var(--gold);
}

/* Gallery Grid & Card Design */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 240px;
  grid-gap: 24px;
  min-height: 300px;
}

.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-dim);
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-white);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background-color: var(--dark-card);
  animation: fadeIn 0.6s ease forwards;
}

/* Masonry spans */
.gallery-item.span-wide {
  grid-column: span 2;
}
.gallery-item.span-tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.95) 0%, rgba(12, 12, 12, 0.4) 50%, rgba(12, 12, 12, 0) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition-normal);
  z-index: 2;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-tag {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.gallery-item-title {
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-item-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  background-color: var(--dark-slate);
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-dim);
  margin-bottom: 20px;
}

.about-bullets {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bullet-item {
  display: flex;
  gap: 16px;
}

.bullet-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  font-size: 0.9rem;
}

.bullet-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.bullet-item p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
}

/* Design Details Card */
.about-experience-card {
  background: linear-gradient(135deg, var(--dark-card) 0%, rgba(20,20,20,0.8) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.about-experience-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background-color: rgba(212, 163, 115, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.experience-years .num {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.experience-years .text {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--white);
}

.guarantee-badge {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid var(--border-white);
}

.guarantee-badge i {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.guarantee-badge h4 {
  font-size: 1rem;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
  background-color: var(--dark-black);
  border-top: 1px solid var(--border-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--dark-card);
  border: 1px solid var(--border-white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card .stars {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.client-info {
  display: flex;
  flex-direction: column;
}

.client-info strong {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 1rem;
}

.client-info span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  background-color: var(--dark-slate);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: stretch;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 20px;
}

.contact-info-panel h2 {
  font-size: 2.2rem;
  margin: 12px 0 20px 0;
}

.contact-info-panel p {
  color: var(--text-dim);
  margin-bottom: 40px;
}

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

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

.info-item .icon {
  width: 50px;
  height: 50px;
  background-color: rgba(212, 163, 115, 0.08);
  border: 1px solid rgba(212, 163, 115, 0.2);
  color: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-item span {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
}

.info-item strong {
  font-size: 1.15rem;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 40px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.social-links a:hover {
  background-color: var(--gold);
  color: var(--dark-black);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* Contact Form UI */
.contact-form-panel {
  background-color: var(--dark-card);
  border: 1px solid var(--border-white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

input, select, textarea {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-white);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: var(--transition-fast);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px var(--gold);
}

select option {
  background-color: var(--dark-card);
  color: var(--white);
}

.form-status {
  margin-top: 20px;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}
.form-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}
.form-status.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--dark-black);
  border-top: 1px solid var(--border-white);
  padding: 40px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom .tagline {
  color: var(--gold);
  font-family: var(--font-title);
  font-weight: 600;
}

/* ==========================================================================
   Admin Drawer (Slide-out Panel)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: var(--dark-card);
  border-left: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: var(--transition-normal);
}

.drawer-overlay.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.drawer-header h3 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--white);
}

.drawer-section {
  animation: fadeIn 0.4s ease;
}

.error-msg {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 10px;
}

.admin-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-white);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Drag and Drop Zone */
.drop-zone {
  border: 2px dashed var(--border-gold);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background-color: rgba(212, 163, 115, 0.02);
  transition: var(--transition-fast);
}

.drop-zone:hover, .drop-zone.active {
  background-color: rgba(212, 163, 115, 0.05);
  border-color: var(--gold);
}

.drop-zone i {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.drop-zone p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.drop-zone p span {
  color: var(--gold);
  text-decoration: underline;
}

#image-preview-container {
  position: relative;
  margin-top: 15px;
  border: 1px solid var(--border-white);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#image-preview {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

#remove-preview-btn {
  background-color: rgba(239, 68, 68, 0.85);
  color: var(--white);
  border: none;
  padding: 10px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 600;
  transition: var(--transition-fast);
}

#remove-preview-btn:hover {
  background-color: var(--danger);
}

.status-msg {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
}
.status-msg.success { color: var(--success); }
.status-msg.error { color: var(--danger); }

/* Upload Progress Bar */
.upload-progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.progress-bar {
  flex-grow: 1;
  height: 6px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--gold);
  border-radius: 10px;
  transition: width 0.1s linear;
}

#progress-percent {
  font-size: 0.8rem;
  font-weight: 600;
  width: 32px;
}

/* ==========================================================================
   Lightbox Overlay & Details
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 8, 8, 0.96);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  transition: var(--transition-normal);
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 35px;
  background: none;
  border: none;
  font-size: 2.8rem;
  color: var(--white);
  cursor: pointer;
  z-index: 3100;
  opacity: 0.6;
  transition: var(--transition-fast);
}
.lightbox-close:hover {
  opacity: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-white);
  color: var(--white);
  font-size: 1.8rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3100;
  transition: var(--transition-fast);
}
.lightbox-arrow:hover {
  background-color: var(--gold);
  color: var(--dark-black);
  border-color: var(--gold);
}
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-content {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  width: 100%;
  max-width: 1100px;
  max-height: 80vh;
  background-color: var(--dark-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.lightbox-overlay.open .lightbox-content {
  transform: scale(1);
}

.lightbox-img-wrapper {
  background-color: var(--dark-black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 80vh;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border-white);
}

.lightbox-details .tag {
  align-self: flex-start;
  font-family: var(--font-title);
  background-color: rgba(212, 163, 115, 0.08);
  border: 1px solid rgba(212, 163, 115, 0.2);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.lightbox-details h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.lightbox-details p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.7;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-experience-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }
  .lightbox-details {
    padding: 30px;
    border-left: none;
    border-top: 1px solid var(--border-white);
  }
  .lightbox-img-wrapper {
    max-height: 50vh;
  }

  /* Touch-screen optimized gallery details */
  .gallery-item-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(12, 12, 12, 0.95) 0%, rgba(12, 12, 12, 0.25) 75%, rgba(12, 12, 12, 0) 100%);
  }
  .gallery-item-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

@media (max-width: 768px) {
  #mobile-menu-toggle {
    display: flex;
    z-index: 1100;
  }
  
  #mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  #mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  #nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--dark-black);
    border-left: 1px solid var(--border-gold);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    transform: translateX(100%);
    transition: var(--transition-normal);
    z-index: 1050;
  }
  
  #nav-menu.open {
    transform: translateX(0);
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .metrics-section {
    margin-top: -30px;
    padding: 25px 15px;
  }
  
  .hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    line-height: 1.2;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .lightbox-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    grid-auto-rows: 200px;
  }
  .gallery-item.span-wide {
    grid-column: span 1;
  }
  .gallery-item.span-tall {
    grid-row: span 1;
  }

  /* App-style horizontal scrolling for filters on mobile */
  .filter-controls {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 15px 12px 15px;
    margin-left: -24px;
    margin-right: -24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .filter-controls::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .filter-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .drawer-content {
    padding: 24px;
  }
  .contact-form-panel {
    padding: 24px;
  }
  .testimonial-card {
    padding: 24px;
  }
  section {
    padding: 60px 0;
  }
  .hero-section {
    padding-top: 100px;
  }
}

/* Leads / Customer Requests style in Admin drawer */
.lead-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-white);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 15px;
  position: relative;
  transition: var(--transition-fast);
}

.lead-card:hover {
  border-color: var(--border-gold);
  background-color: rgba(255, 255, 255, 0.04);
}

.lead-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.lead-header h5 {
  font-size: 1.05rem;
  color: var(--white);
  margin: 0;
}

.lead-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.lead-meta {
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--gold-light);
}

.lead-meta i {
  color: var(--gold);
  margin-right: 6px;
  width: 14px;
  text-align: center;
}

.lead-message {
  font-size: 0.85rem;
  color: var(--text-dim);
  background-color: rgba(0, 0, 0, 0.15);
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 8px;
  border-left: 2px solid var(--gold);
  word-break: break-word;
}

.delete-lead-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.delete-lead-btn:hover {
  color: var(--danger);
}

.leads-loading {
  text-align: center;
  padding: 20px 0;
  color: var(--text-dim);
}

