/* ==========================================================================
   Earth Granite — site styles
   ========================================================================== */

:root {
  --eg-dark: #1f2229;
  --eg-charcoal: #2c2f36;
  --eg-gold: #b08d57;
  --eg-gold-dark: #96703f;
  --eg-light: #f7f6f4;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #3a3a3a;
}

h1, h2, h3, h4, h5, h6,
.navbar-nav .nav-link {
  font-family: 'Raleway', sans-serif;
}

a {
  text-decoration: none;
  color: var(--eg-gold-dark);
}
a:hover { color: var(--eg-gold); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--eg-dark);
  color: #cfcfcf;
  font-size: .85rem;
  padding: .5rem 0;
}
.topbar-links a { color: #cfcfcf; }
.topbar-links a:hover { color: var(--eg-gold); }
.topbar-links li { margin-right: 1.5rem; }
.topbar i { color: var(--eg-gold); margin-right: .35rem; }

/* ---------- Navbar ---------- */
.main-nav {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: .5rem 0;
}
.main-nav .nav-link {
  font-size: .85rem;
  letter-spacing: .05em;
  color: var(--eg-charcoal);
  padding: .75rem 1rem !important;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--eg-gold-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(20,20,22,.55), rgba(20,20,22,.55)), url('../images/products/Black-Pearl.jpg') center/cover no-repeat;
  padding: 7rem 0 8rem;
}
.hero h1 {
  font-weight: 800;
  font-size: 2.75rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.hero p.lead { font-size: 1.15rem; color: #ececec; }
.hero .btn-gold {
  background: var(--eg-gold);
  border-color: var(--eg-gold);
  color: #fff;
  font-weight: 600;
}
.hero .btn-gold:hover { background: var(--eg-gold-dark); border-color: var(--eg-gold-dark); }

/* generic page banner for inner pages */
.page-banner {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(20,20,22,.65), rgba(20,20,22,.65)), url('../images/gallery/granite_pattern.jpg') center/cover no-repeat;
  padding: 4rem 0;
  text-align: center;
}
.page-banner h1 { font-weight: 800; margin-bottom: .25rem; }
.page-banner .breadcrumb-eg a { color: #e7d7ba; }
.page-banner .breadcrumb-eg span { color: #fff; }

/* ---------- Section heading ---------- */
.section-heading { margin-bottom: 2.5rem; }
.section-heading .eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--eg-gold-dark);
  font-weight: 700;
  font-size: .85rem;
}
.section-heading h2 { font-weight: 800; margin-top: .25rem; }
.section-heading .divider {
  width: 60px;
  height: 3px;
  background: var(--eg-gold);
  margin: 1rem auto 0;
}
.section-heading.text-start .divider { margin: 1rem 0 0; }

/* ---------- Cards ---------- */
.stone-card {
  border: none;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.stone-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
}
.stone-card .stone-img-wrap { overflow: hidden; height: 220px; }
.stone-card .stone-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.stone-card:hover .stone-img-wrap img { transform: scale(1.08); }
.stone-card .card-body { padding: 1rem 1.1rem; }
.stone-card .card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0; }

.feature-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(176,141,87,.12);
  color: var(--eg-gold-dark);
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative;
  border-radius: .5rem;
  overflow: hidden;
  cursor: pointer;
  height: 260px;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(31,34,41,0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  transition: background .3s ease;
  opacity: 0;
}
.gallery-item:hover .gallery-overlay {
  background: rgba(31,34,41,.45);
  opacity: 1;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border-radius: .5rem;
  padding: 1.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  height: 100%;
}
.testimonial-card .bi-quote { color: var(--eg-gold); font-size: 1.75rem; }
.testimonial-card footer { font-size: .85rem; color: #888; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--eg-charcoal), var(--eg-dark));
}

/* ---------- Footer ---------- */
.site-footer { background: var(--eg-dark); }
.footer-logo { filter: brightness(0) invert(1); }
.footer-links li { margin-bottom: .5rem; color: #cfcfcf; font-size: .92rem; }
.footer-links a { color: #cfcfcf; }
.footer-links a:hover { color: var(--eg-gold); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  width: 44px; height: 44px;
  background: var(--eg-gold);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background .3s ease;
  z-index: 1030;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--eg-gold-dark); color: #fff; }

/* ---------- Contact page ---------- */
.contact-info-card {
  background: #fff;
  border-radius: .5rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  text-align: center;
  height: 100%;
}
.map-wrap iframe { width: 100%; height: 400px; border: 0; border-radius: .5rem; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 767.98px) {
  .page-banner { padding: 2.75rem 0; }
  .stone-card .stone-img-wrap { height: 180px; }
  .gallery-item { height: 200px; }
}
@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p.lead { font-size: 1rem; }
}
