/* =============================================
   TRUE QUALITY MASONRY SERVICES
   Main Stylesheet — Mobile-First Responsive
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --gold: #c9a227;
  --gold-light: #e0b84a;
  --gold-dark: #a07c18;
  --dark: #1a1824;
  --dark-mid: #252235;
  --dark-card: #2e2a40;
  --white: #ffffff;
  --grey: #b0aec0;
  --grey-light: #f4f4f6;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;
  --transition: 0.35s ease;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --radius: 6px;
}

/* ---------- 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);
  background: var(--dark);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--grey); font-size: 1rem; }

/* ---------- Utility ---------- */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }

.gold { color: var(--gold); }
.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  color: var(--white);
  margin-bottom: 16px;
}

.section-title span { color: var(--gold); }

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

.divider-left {
  margin: 0 0 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(26,24,36,0.85) 0%, transparent 100%);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 24, 36, 0.97);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo .logo-badge {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--dark);
  flex-shrink: 0;
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo .logo-text span:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.nav-logo .logo-text span:last-child {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

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

.nav-cta {
  padding: 10px 22px !important;
  background: var(--gold);
  color: var(--dark) !important;
  border-radius: var(--radius);
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--gold-light);
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(26, 24, 36, 0.98);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 80px 20px 40px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  color: var(--white);
  letter-spacing: 1px;
  transition: color var(--transition);
}

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

.mobile-nav .btn {
  margin-top: 12px;
  font-size: 1rem;
}

/* ---------- PAGE HERO BANNER (inner pages) ---------- */
.page-hero {
  height: 340px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,24,36,0.7), rgba(26,24,36,0.85));
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--grey);
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--grey); }

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--gold);
  padding: 14px 0;
}

.trust-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
}

.trust-item svg { width: 18px; height: 18px; }

/* ---------- CARDS ---------- */
.card {
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(201,162,39,0.08);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201,162,39,0.25);
}

/* ---------- SERVICE CARDS ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.service-card .card-img {
  height: 220px;
  overflow: hidden;
}

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

.service-card:hover .card-img img { transform: scale(1.07); }

.service-card .card-body {
  padding: 24px;
}

.service-card .card-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,162,39,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-card .card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
}

.service-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.6;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: gap var(--transition);
}

.service-card .card-link:hover { gap: 10px; }

/* ---------- GALLERY GRID ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}

.gallery-item.tall { grid-row: span 2; }

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201,162,39,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-overlay svg {
  width: 40px;
  height: 40px;
  fill: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color var(--transition);
}

.lightbox-close:hover { color: var(--gold); }

/* ---------- STATS ---------- */
.stats-section {
  background: var(--dark-mid);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- WHY CHOOSE US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.why-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(201,162,39,0.1);
  transition: border-color var(--transition), transform var(--transition);
}

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

.why-icon {
  width: 64px;
  height: 64px;
  background: rgba(201,162,39,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background var(--transition);
}

.why-card:hover .why-icon { background: rgba(201,162,39,0.2); }

.why-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--gold);
}

.why-card h4 {
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--grey);
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--dark-mid) 0%, #1a1230 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p { margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- CONTACT FORM ---------- */
.contact-section {
  background: var(--dark);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail-icon {
  width: 46px;
  height: 46px;
  background: rgba(201,162,39,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
}

.contact-detail-text span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-detail-text a,
.contact-detail-text p {
  color: var(--white);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid rgba(201,162,39,0.1);
}

.contact-form h3 {
  margin-bottom: 28px;
  color: var(--white);
}

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

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201,162,39,0.05);
}

.form-group select option {
  background: var(--dark-mid);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; }

/* ---------- FOOTER ---------- */
.footer {
  background: #0f0d1a;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo-badge-lg {
  width: 58px;
  height: 58px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 24px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--grey);
  font-size: 0.9rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--gold);
  font-size: 1rem;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--grey);
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  flex-shrink: 0;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--grey);
}

.footer-bottom span { color: var(--gold); }

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 800;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top svg { width: 20px; height: 20px; fill: var(--dark); }

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-up { animation: fadeInUp 0.7s ease forwards; }
.animate-left { animation: fadeInLeft 0.7s ease forwards; }

/* ---------- RESPONSIVE BREAKPOINTS ---------- */

/* Large tablets */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.tall { grid-row: span 1; }
}

/* Tablets */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .page-hero { height: 260px; background-attachment: scroll; }

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

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

  .contact-form { padding: 28px 20px; }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .trust-bar .container {
    gap: 16px;
  }

  .trust-item {
    font-size: 0.75rem;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn { width: 100%; justify-content: center; }

  .scroll-top {
    bottom: 18px;
    right: 18px;
  }

  .navbar .container { padding: 0 16px; }

  .trust-bar .container {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 16px;
  }
}

/* Very small */
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .trust-bar .container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn { padding: 12px 20px; font-size: 0.82rem; }
}

/* Large desktop (1400px+) */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  h2 { font-size: clamp(1.8rem, 3vw, 3.4rem); }
  .section-padding { padding: 100px 0; }
}

/* Very large desktop (1800px+) */
@media (min-width: 1800px) {
  .container { max-width: 1600px; }
  p { font-size: 1.05rem; }
  .nav-links { gap: 48px; }
}
