/* ======================================================================
   Granite Men LLC — High-Fidelity Design Restoration
   Colors: Navy #020817, Gold #EAB308, Gray #222222
   ====================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222222;
  line-height: 1.6;
  font-size: 1rem;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #4a4a4a;
}

ul,
ol {
  list-style: none;
}

/* --- Typography --- */
h1 {
  font-size: 2.25rem;
  /* 4xl equivalent */
  font-weight: 800;
  color: #020817;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.75rem;
    /* 6xl equivalent */
  }
}

h2 {
  font-size: 1.875rem;
  /* 3xl equivalent */
  font-weight: 700;
  color: #020817;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  /* py-20 */
}

@media (min-width: 768px) {
  .section {
    padding: 128px 0;
    /* py-32 */
  }
}

.section-alt {
  background: #F9FAFB;
}

/* --- Header / Nav --- */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 8px 0;
  transition: all 0.3s;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -1px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

.nav-links a:hover {
  color: #000;
}

.btn-nav {
  background: #020817;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  height: 40px;
  display: flex !important;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #020817;
  color: #fff;
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-white {
  background: #fff;
  color: #1a1a1a;
}

.btn-white:hover {
  background: #f8f8f8;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Hero --- */
.hero {
  color: #fff;
  padding: 100px 0;
  position: relative;
  text-align: center;
}

.hero-visual {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/hero_bg.png');
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Trust Bar --- */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 30px 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: center;
}

.trust-item {
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.trust-item span {
  color: #1a1a1a;
  display: block;
  font-size: 2rem;
  margin-bottom: 4px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: #fff;
  border-radius: 4px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-bottom: 15px;
}

.card h3 a {
  color: #1a1a1a;
}

/* --- Service Cards with Backgrounds --- */
.service-card {
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  border: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(2, 8, 23, 0.2) 0%, rgba(2, 8, 23, 0.85) 100%);
  z-index: 1;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  background: linear-gradient(to bottom, rgba(2, 8, 23, 0.3) 0%, rgba(2, 8, 23, 0.95) 100%);
}

.service-card-content {
  position: relative;
  z-index: 2;
}

.service-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.service-card h3 a {
  color: #fff !important;
}

.service-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 0;
}

.project-card img {
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card h3 {
  margin-bottom: 5px;
}

.project-card span {
  display: block;
  margin-bottom: 8px;
}

/* --- Reviews --- */
.review-card {
  background: #fff;
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-top: 4px solid #1a1a1a;
}

.review-stars {
  color: #1a1a1a;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.review-author {
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 15px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* --- FAQ --- */
/* (Keeping accordion logic, just updating colors) */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 24px 0;
}

.faq-item h3::after {
  color: #1a1a1a;
}

.faq-answer p {
  color: #555;
}

/* --- CTA Banner --- */
.cta-banner {
  background: #020817;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-banner p {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 32px;
}

.cta-banner a {
  color: #fff;
  text-decoration: underline;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0;
  font-size: .875rem;
  color: #666;
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 8px;
  color: #999;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: #020817;
}

/* --- Area Grid --- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.area-grid a {
  display: block;
  padding: 12px 16px;
  background: #F8F9FA;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  transition: background .2s, color .2s;
}

.area-grid a:hover {
  background: #020817;
  color: #fff;
}

/* --- Services List on City Pages --- */
.service-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.service-check::before {
  content: "✓";
  color: #EAB308;
  font-weight: 700;
}

/* --- Footer --- */
.site-footer {
  background: #020817;
  color: #ccc;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-grid a {
  color: #ccc;
  display: block;
  padding: 4px 0;
  font-size: .9rem;
}

.footer-grid a:hover {
  color: #020817;
}

.footer-grid address {
  font-style: normal;
  line-height: 1.8;
  font-size: .9rem;
}

.footer-grid address a {
  display: inline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  margin-top: 40px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item h3 {
  padding: 20px 24px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  color: #020817;
  transition: background 0.2s;
}

.faq-item h3:hover {
  background: #f9fafb;
}

.faq-item h3::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: #EAB308;
  transition: transform 0.3s ease;
}

.faq-item.open h3::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fff;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 24px;
  border-top: 1px solid #f3f4f6;
}

.faq-answer p {
  margin-top: 16px;
  color: #4b5563;
  line-height: 1.6;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #020817;
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, .15);
}

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

/* --- Image Placeholder --- */
.img-placeholder {
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: .875rem;
  border-radius: 8px;
  min-height: 200px;
}

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Process Steps --- */
.process-steps {
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #020817;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
  background: #020817;
  color: #fff;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: #F8F9FA;
}

.check {
  color: #EAB308;
  font-weight: 700;
}

.cross {
  color: #999;
}

/* --- Blog --- */
.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card .card-meta {
  font-size: .85rem;
  color: #666;
  margin-bottom: 8px;
}

.blog-card h3 {
  margin-bottom: 8px;
}

.article-header {
  margin-bottom: 32px;
}

.article-meta {
  color: #666;
  font-size: .9rem;
  margin-bottom: 16px;
}

.key-takeaway {
  background: #FFF3E0;
  border-left: 4px solid #020817;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}

.toc {
  background: #F8F9FA;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.toc h3 {
  margin-bottom: 12px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.toc li {
  padding: 4px 0;
}

.toc a {
  color: #020817;
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 40px 0;
  }

  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    gap: 16px;
    z-index: 150;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
  }

  .two-col,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .trust-items {
    gap: 20px;
  }

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

/* --- Lead Sections --- */
.lead {
  font-size: 1.25rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* --- Proof Blocks --- */
.proof-section {
  background: #fdfdfd;
  padding: 60px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.proof-block {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.proof-block:hover {
  transform: translateY(-5px);
}

.proof-image {
  position: relative;
  height: 220px;
}

.proof-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #020817;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proof-details {
  padding: 20px;
}

.proof-item {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #eee;
  padding-bottom: 4px;
}

.proof-item strong {
  color: #020817;
}

/* --- Responsive Utilities --- */
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
/* --- Project Carousel --- */
.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.carousel-track-wrap {
  position: relative;
  margin: 0 -24px;
  padding: 0 24px;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding: 20px 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 320px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.carousel-card:hover img {
  transform: scale(1.05);
}

.carousel-card-body {
  padding: 20px;
}

.carousel-card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #666;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.carousel-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #020817;
  margin: 0;
  line-height: 1.4;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.2s;
  font-size: 1.25rem;
}

.carousel-nav:hover {
  background: #020817;
  color: #fff;
  border-color: #020817;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

@media (max-width: 1024px) {
  .carousel-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .carousel-card {
    flex: 0 0 85%;
  }
  .carousel-nav {
    display: none; /* Swipe on mobile */
  }
}
