/* ============================================================
   Palm Detail – Premium Wallpaper Installation
   style.css
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-white:      #ffffff;
  --color-light-gray: #f8f9fa;
  --color-mid-gray:   #e9ecef;
  --color-charcoal:   #212529;
  --color-navy:       #001d3d;
  --color-navy-light: #003566;
  --color-accent:     #003566;
  --color-gold:       #d4af37;
  --color-text:       #333333;
  --color-text-muted: #6c757d;
  --color-error:      #dc3545;

  --font-heading: 'Playfair Display', serif;
  --font-body:    'Montserrat', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.05);
  --shadow-md:  0 8px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.12);

  --transition: .4s ease;
  --max-width:  1200px;
}

/* ---------- Reset & Base ---------- */
*, *::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(--color-text);
  background: var(--color-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 { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-navy);
  margin-bottom: 15px;
  font-weight: 700;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}
.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--color-white);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}
.navbar.scrolled .logo { color: var(--color-navy); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}
.navbar.scrolled .nav-links a { color: var(--color-charcoal); }
.nav-links a:hover { color: var(--color-gold) !important; }

.nav-cta {
  background: var(--color-gold);
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
}

.mobile-toggle { display: none; font-size: 1.5rem; color: var(--color-white); }
.navbar.scrolled .mobile-toggle { color: var(--color-navy); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.hero-content { max-width: 800px; }
.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.9;
}
.hero-btns { display: flex; gap: 20px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-content h2 { margin-bottom: 20px; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}
.about-feature i { color: var(--color-gold); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--color-light-gray); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  font-size: 3rem;
  color: var(--color-navy);
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 15px; font-family: var(--font-heading); }
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}
.why-card {
  padding: 30px;
  border: 1px solid var(--color-mid-gray);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.why-card:hover { border-color: var(--color-navy); background: var(--color-navy); color: var(--color-white); }
.why-card i { font-size: 2rem; color: var(--color-gold); margin-bottom: 15px; display: block; }
.why-card h4 { margin-bottom: 10px; }
.why-card p { font-size: 0.9rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  columns: 3;
  column-gap: 20px;
}
.gallery-item {
  margin-bottom: 20px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,29,61,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--color-white); font-size: 2rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute;
  top: 30px; right: 30px;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--color-light-gray); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.review-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.stars { color: #ffc107; margin-bottom: 15px; }
.review-text { font-style: italic; margin-bottom: 20px; color: var(--color-text); }
.customer-name { font-weight: 700; color: var(--color-navy); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-mid-gray);
  padding: 20px 0;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.1rem;
  text-align: left;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--color-text-muted);
  margin-top: 10px;
}
.faq-item.active .faq-answer { max-height: 200px; }
.faq-icon { transition: var(--transition); }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}
.contact-info h3 { margin-bottom: 20px; font-family: var(--font-heading); }
.info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.info-item i { color: var(--color-gold); font-size: 1.2rem; }
.info-item h5 { font-weight: 700; margin-bottom: 5px; }

.map-container {
  margin-top: 30px;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

.contact-form-wrap {
  background: var(--color-white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-mid-gray);
  border-radius: var(--radius-sm);
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-navy); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}
.form-success i { font-size: 4rem; color: #28a745; margin-bottom: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 { margin-bottom: 25px; font-family: var(--font-heading); color: var(--color-gold); }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-btns { flex-direction: column; }
  .gallery-grid { columns: 2; }
  .section-padding { padding: 60px 0; }
  .contact-form-wrap { padding: 30px; }
}

@media (max-width: 576px) {
  .gallery-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
