/* ===========================
   STONEBROOK MONUMENTS
   Stylesheet
   =========================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2C3E50;
  --primary-dark: #1a252f;
  --accent: #B8860B;
  --accent-light: #d4a017;
  --light-bg: #FAF8F5;
  --white: #FFFFFF;
  --text: #333333;
  --text-muted: #6B7280;
  --border: #E5E1DC;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 6px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Crop out AI watermark from bottom-right of generated images */
.about-img {
  scale: 1.08;
  object-position: center top;
}
.about-image {
  overflow: hidden;
  border-radius: var(--radius);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184,134,11,0.35);
}

.btn-full { width: 100%; text-align: center; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}
.logo-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent-light) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../images/hero.jpg') center top/110% auto no-repeat;
  margin-top: 72px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,62,80,0.82) 0%, rgba(26,37,47,0.88) 50%, rgba(52,73,94,0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 300;
}

/* Decorative line above hero title */
.hero-content h1::before {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 24px;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 96px 0;
}
.section:nth-child(even) {
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}

.about-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
}
.about-text strong {
  color: var(--primary);
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card.featured {
  border-color: var(--accent);
  position: relative;
}
.service-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 12px;
}
.service-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-list {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.service-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ---------- WHY US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-item {
  text-align: center;
  padding: 28px 20px;
}
.why-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}
.why-item h4 {
  margin-bottom: 8px;
}
.why-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item.gallery-wide {
  grid-column: span 2;
}

.gallery-img-wrap {
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  object-position: center top;
  transition: transform var(--transition);
}
.gallery-img-wrap span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-img-wrap:hover img {
  transform: scale(1.14);
}
.gallery-img-wrap:hover span {
  opacity: 1;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.testimonial-card blockquote p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-icon svg {
  width: 100%;
  height: 100%;
}
.contact-item h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}
.contact-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--light-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}
.form-group textarea {
  resize: vertical;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo .logo-name { color: var(--white); }
.footer-logo .logo-icon { color: var(--accent); }

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ---------- ANIMATIONS (fade in on scroll) ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.gallery-wide { grid-column: span 1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero { min-height: 70vh; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 300px; margin: 0 auto; }
  .about-stats { flex-wrap: wrap; gap: 20px; }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { margin-top: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 1.6rem; }
}
