
/* === TOKENS / DESIGN SYSTEM === */
:root {
  --color-brand: #1f242c;
  --color-accent: #e19b3b;
  --color-bg: #f5f5f5; 
  --color-white: #ffffff;
  --color-text: #494b4e; 
  --color-title: #0d0d0d;
  --color-brand-rgb: 31, 36, 44; 
  --color-accent-rgb: 225, 155, 59; 
  --radius-card: 16px;
  --shadow-sm: 0 6px 24px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --bg-radial-brand: radial-gradient(
    circle at center,
    #2e343d 0%,
    var(--color-brand) 100%
  );
}

/* === BASE / RESET === */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Lato", sans-serif;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  color: var(--color-title);
}

section {
  scroll-margin-top: 96px;
}

/* === UTILITÁRIOS === */
.text-accent {
  color: var(--color-accent);
}

.bg-brand {
  background-color: var(--color-brand);
  color: var(--color-accent);
}

.hover-white:hover,
.hover-white:focus {
  color: var(--color-white) !important;
}

/* === BOTÕES BASE === */
.base-button {
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 1rem;
  border: 1px solid var(--color-accent);
}
.base-button:hover {
  background-color: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* === NAVBAR (GLASS) === */
.nav-glass {
  background-color: var(--color-brand);
}

.nav-fixed-lg {
  position: sticky;
  top: 0;
  z-index: 1030;
}

@media (min-width: 992px) {
  .nav-fixed-lg {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
  }
  .nav-glass {
    background: rgba(var(--color-brand-rgb), 0.85) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}

.navbar-toggler {
  border: 0;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(225,155,59,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar .nav-link {
  color: var(--color-white);
  opacity: 0.9;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  opacity: 1;
  color: var(--color-accent);
}

/* === HERO === */
#hero {
  padding-bottom: 0;
}

.hero {
  display: flex;
  justify-content: center;
  gap: 4rem;
  background: var(--bg-radial-brand);
}

.hero-photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 300px;
  height: 400px;
  background-image: url("../assets/images/sobre/noberto_feitosa.webp");
  background-size: cover;
  background-position: top;
}

.hero-text {
  max-width: 500px;
  gap: 2rem;
}

.hero-button {
  color: var(--color-bg);
  border: 1px solid var(--color-bg);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border 0.25s ease;
}

.hero-button:hover {
  background-color: var(--color-accent);
  color: var(--color-brand);
  border: 1px solid var(--color-brand);
}

@media (max-width: 575.98px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 3rem 1.5rem;
    gap: 1rem;
  }
  .hero-button {
    width: fit-content;
    margin: auto;
  }
  .hero-photo {
    width: 250px;
    height: 300px;
  }
  #hero h2 {
    font-size: 2rem;
  }
}
@media (min-width: 768px) {
  #hero {
    flex-direction: row;
    gap: 2rem;
    padding-top: 1rem;
  }
  .hero-text {
    max-width: 500px;
    text-align: left;
    gap: 1rem;
  }
  .hero-button {
    width: fit-content;
    margin: unset;
  }
}
@media (min-width: 992px) {
  #hero {
    padding-top: 84px;
    gap: 3rem;
  }
}
@media (min-width: 1200px) {
  .hero-photo {
    width: 500px;
    height: 600px;
  }
  .hero-text {
    max-width: 500px;
    text-align: left;
  }
  #hero h2 {
    font-size: 3rem;
  }
}

/* === SOBRE === */
.sobre-photo-container {
  display: flex;
  justify-content: center;
  align-items: center;

  width: min(80vw, 490px);
  aspect-ratio: 1 / 1; 
  border: 4px solid var(--color-accent);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.sobre-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#refs-grid .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 576px) {
  #refs-grid .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  #refs-grid .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

#refs-grid .ref-card {
  background: var(--color-white);
  border: 1px solid rgba(var(--color-brand-rgb), 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
#refs-grid .ref-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
#refs-grid .ref-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 0.4s ease;
}
#refs-grid .ref-card:hover .ref-media img {
  transform: scale(1.03);
}
#refs-grid .ref-caption {
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-top: 3px solid var(--color-accent);
}

/* === PROPÓSITO === */
.proposito-section {
  background: var(--bg-radial-brand);
  position: relative;
  overflow: hidden;
}
.proposito-section .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--color-accent-rgb), 0.5);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(2px);
}

/* ===DEPOIMENTOS === */
.testimonials {
  background: var(--color-bg);
}

.t-card {
  background: var(--color-white);
  border: 1px solid rgba(var(--color-brand-rgb), 0.08);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.t-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.08);
}
.t-quote {
  position: absolute;
  top: 0.6rem;
  left: 0.9rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(var(--color-accent-rgb), 0.35);
  font-family: Georgia, "Times New Roman", serif;
  user-select: none;
}
.t-text {
  margin: 1.6rem 0 0.9rem;
  color: var(--color-title);
}
.t-sign {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border-top: 3px solid rgba(var(--color-accent-rgb), 0.55);
  padding-top: 0.75rem;
}
.t-sign .t-meta {
  color: var(--color-text);
  font-size: 0.9rem;
}

#depoCarousel .carousel-indicators {
  bottom: -56px;
}
#depoCarousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;              
  background-color: rgba(var(--color-brand-rgb), .25);
  border: 0;                      
  margin: 0 4px;                  
}
#depoCarousel .carousel-indicators .active {
  background-color: var(--color-accent);
}

#depoCarousel .carousel-inner {
 min-height: clamp(200px, 300px, 350px);
}

#depoCarousel .carousel-control-prev,
#depoCarousel .carousel-control-next {
  width: 3rem;
}
#depoCarousel .carousel-control-prev-icon,
#depoCarousel .carousel-control-next-icon {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

@media (prefers-reduced-motion: reduce) {
  #depoCarousel .carousel-item {
    transition: none !important;
  }
}

/* === CONTATO === */
.contato-cta {
  background: var(--bg-radial-brand);
}

/* === FOOTER === */
.site-footer {
  background: var(--color-brand);
}
.site-footer .nav-link {
  opacity: 0.9;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.site-footer .nav-link:hover {
  color: var(--color-accent);
  opacity: 1;
}
.site-footer .social-link {
  font-size: 1.25rem;
  color: var(--color-white);
  opacity: 0.9;
  transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.site-footer .social-link:hover {
  color: var(--color-accent);
  opacity: 1;
  transform: translateY(-1px);
}

/* === BACK TO TOP === */
.btn-back-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1050;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  background: var(--color-brand);
  color: var(--color-white);
  font-size: 1.25rem;

  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}
.btn-back-to-top:hover {
  background: var(--color-white);
  color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}
