/* ============================================================
   Reforma Master — styles.css
   Design: White Premium Construction Landing Page
   Palette: White / Off-White / Graphite text / Amber Gold accent
   Fonts: Montserrat (headings) + Inter (body)
   ============================================================ */

/* ===========================
   1. CSS Variables
   =========================== */
:root {
  --accent:          #C07820;
  --accent-hover:    #D48E1A;
  --accent-light:    rgba(192, 120, 32, 0.09);
  --accent-border:   rgba(192, 120, 32, 0.25);

  --white:           #FFFFFF;
  --off-white:       #FAFAF8;
  --light:           #F5F4F1;
  --border:          #EBEBEB;
  --border-light:    #F0F0EE;

  --text-heading:    #1A1A1A;
  --text-body:       #4A4A48;
  --text-muted:      #8A8A86;
  --text-on-dark:    rgba(255, 255, 255, 0.90);
  --text-muted-dk:   rgba(255, 255, 255, 0.50);

  --dark:            #1A1A1A;
  --charcoal:        #2C2C2C;
  --footer-bg:       #141414;

  --font-heading:    'Montserrat', sans-serif;
  --font-body:       'Inter', sans-serif;

  --radius:          8px;
  --radius-lg:       14px;
  --shadow-sm:       0 1px 4px rgba(0,0,0,0.04);
  --shadow:          0 4px 20px rgba(0,0,0,0.06);
  --shadow-md:       0 8px 36px rgba(0,0,0,0.08);
  --shadow-lg:       0 20px 60px rgba(0,0,0,0.10);
  --transition:      0.3s ease;
}

/* ===========================
   2. Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky footer: empurra o rodapé para baixo quando o conteúdo é curto */
body > .footer { margin-top: auto; }

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

/* ===========================
   3. Utility Classes
   =========================== */
.text-accent { color: var(--accent); }

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.375rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

.section-text {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1rem;
}

/* ===========================
   4. Buttons
   =========================== */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  padding: 0.75rem 1.75rem;
  transition: all var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192, 120, 32, 0.30);
}

.btn-outline-hero {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-nav {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 0.875rem;
  border-radius: 10px;
}

/* ===========================
   5. Header / Nav
   =========================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

#header .navbar {
  padding: 1rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

#header.scrolled .navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.6rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.logo {
  height: 50px;
  width: auto;
  transition: height var(--transition);
}
#header.scrolled .logo { height: 42px; }

/* Nav links — white text on hero, dark text on scroll */
.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-body) !important;
  padding: 0.5rem 0.875rem !important;
  transition: color var(--transition);
  position: relative;
}

#header.scrolled .navbar-nav .nav-link {
  color: var(--text-body) !important;
}
#header.scrolled .navbar-nav .nav-link:hover,
#header.scrolled .navbar-nav .nav-link.active {
  color: var(--accent) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.875rem; right: 0.875rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 2px;
}
.navbar-nav .nav-link:hover { color: var(--accent) !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.navbar-toggler { border: none; background: none; padding: 0.5rem; }
.navbar-toggler:focus { box-shadow: none; outline: none; }

.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all 0.3s ease;
}
#header.scrolled .hamburger span { background: var(--text-heading); }

/* ===========================
   6. Hero Section
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(15, 15, 15, 0.70) 55%,
    rgba(20, 20, 20, 0.45) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  padding-top: 90px;
  padding-bottom: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(192, 120, 32, 0.50);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.10;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.0625rem);
  color: var(--text-on-dark);
  line-height: 1.82;
  margin-bottom: 2.5rem;
  max-width: 530px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.5rem;
  display: block;
  animation: heroScrollBounce 2.2s ease-in-out infinite;
  transition: color var(--transition);
}
.hero-scroll a:hover { color: var(--accent); }

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* ===========================
   7. Stats Bar (WHITE)
   =========================== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border-light);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 0.05em;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===========================
   8. About Section (WHITE)
   =========================== */
.section-about {
  padding: 7rem 0;
  background: var(--white);
}

.about-list {
  list-style: none; padding: 0;
  margin: 1.75rem 0;
}
.about-list li {
  display: flex; align-items: center;
  gap: 0.875rem; padding: 0.4rem 0;
  font-size: 0.9375rem;
  color: var(--text-heading);
  font-weight: 500;
}
.about-list li i { font-size: 1rem; flex-shrink: 0; }

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
}

.about-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem; left: -1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.about-badge i { font-size: 2.25rem; flex-shrink: 0; }
.about-badge strong {
  display: block; font-family: var(--font-heading);
  font-weight: 700; font-size: 0.9375rem; color: var(--text-heading);
}
.about-badge span { font-size: 0.8rem; color: var(--text-muted); }

/* ===========================
   9. Services Section (OFF-WHITE)
   =========================== */
.section-services {
  padding: 7rem 0;
  background: var(--off-white);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.875rem;
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.375rem;
  transition: all 0.35s ease;
}
.service-icon i { font-size: 1.375rem; color: var(--accent); transition: all 0.35s ease; }
.service-card:hover .service-icon { background: var(--accent); }
.service-card:hover .service-icon i { color: var(--white); }

.service-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}
.service-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.72; margin: 0; }

/* ===========================
   10. Gallery Section (WHITE)
   =========================== */
.section-gallery {
  padding: 7rem 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 320px);
  gap: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

a.gallery-item {
  text-decoration: none;
  color: inherit;
  display: block;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex; align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-info { transform: translateY(6px); transition: transform 0.4s ease; }
.gallery-item:hover .gallery-info { transform: translateY(0); }

.gallery-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(192, 120, 32, 0.18);
  border: 1px solid rgba(192, 120, 32, 0.4);
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.4rem;
}
.gallery-label {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

/* ===========================
   11. Differentials (OFF-WHITE)
   =========================== */
.section-differentials {
  padding: 7rem 0;
  background: var(--off-white);
}

.diff-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: all 0.35s ease;
  height: 100%;
  border: 1px solid var(--border);
}
.diff-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.diff-icon {
  width: 68px; height: 68px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.375rem;
  transition: all 0.35s ease;
}
.diff-icon i { font-size: 1.375rem; color: var(--accent); transition: all 0.35s ease; }
.diff-item:hover .diff-icon { background: var(--accent); }
.diff-item:hover .diff-icon i { color: var(--white); }

.diff-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}
.diff-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.72; margin: 0; }

/* ===========================
   12. Testimonials (WHITE)
   =========================== */
.section-testimonials {
  padding: 7rem 0;
  background: var(--white);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  height: 100%;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.testimonial-card.featured {
  border-color: var(--accent-border);
  box-shadow: 0 4px 24px rgba(192, 120, 32, 0.08);
}
.testimonial-card.featured:hover {
  box-shadow: 0 12px 40px rgba(192, 120, 32, 0.14);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.82;
  font-style: italic;
  margin-bottom: 1.75rem;
  flex: 1;
}

.testimonial-author {
  display: flex; align-items: center; gap: 0.875rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.testimonial-author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-heading);
}
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ===========================
   13. CTA Final (OFF-WHITE)
   =========================== */
.section-cta {
  padding: 6rem 0;
  background: var(--off-white);
  border-top: 1px solid var(--border-light);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===========================
   14. Footer (DARK — only dark section besides hero)
   =========================== */
.footer { background: var(--footer-bg); }

.footer-top {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  height: 46px; width: auto;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted-dk);
  line-height: 1.82;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-social { display: flex; gap: 0.625rem; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9375rem;
  color: var(--text-muted-dk);
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.8375rem;
  color: var(--text-muted-dk);
  transition: color var(--transition);
  display: inline-flex; align-items: center;
}
.footer-links a::before {
  content: '';
  display: inline-block;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition), margin-right var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-links a:hover::before { width: 10px; margin-right: 6px; }

.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
  display: flex; align-items: flex-start;
  gap: 0.875rem; margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted-dk);
}
.footer-contact i { color: var(--accent); font-size: 0.9375rem; flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: var(--text-muted-dk); transition: color var(--transition); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom { padding: 1.5rem 0; }
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.20);
  margin: 0; text-align: center;
}

/* ===========================
   15. Scroll Animations
   =========================== */
.animate-fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   16. Responsive
   =========================== */

/* Tablet */
@media (max-width: 991.98px) {
  #navMenu {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  #navMenu .nav-link {
    color: var(--text-body) !important;
  }
  #navMenu .nav-link:hover {
    color: var(--accent) !important;
  }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .ms-lg-3 { margin-top: 0.75rem; }

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

  .about-image { height: 380px; }
  .about-badge { left: 0; }

  .hero, .cta-bg { background-attachment: scroll; }
}

/* Mobile */
@media (max-width: 767.98px) {
  .section-about,
  .section-services,
  .section-gallery,
  .section-differentials,
  .section-testimonials { padding: 4.5rem 0; }

  .section-cta { padding: 4rem 0; }
  .footer-top { padding: 3.5rem 0 2.5rem; }

  .hero-content { padding-top: 110px; padding-bottom: 3rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .about-image { height: 280px; }
  .about-badge { position: static; margin-top: 1rem; left: auto; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
    gap: 0.5rem;
  }

  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; }

  .stat-item { padding: 1.5rem 0.5rem; }
  .stat-number { font-size: 2rem; }
}

/* Small mobile */
@media (max-width: 479.98px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 220px);
  }
}
