/* =====================================================
   RÉFÉXO — GLOBAL STYLES
   ===================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* ===================== VARIABLES ===================== */
:root {
  --primary:        #0077B6;
  --primary-dark:   #005F92;
  --primary-light:  #E8F4FC;
  --dark:           #1A1F24;
  --dark2:          #343A40;
  --neutral:        #ADB5BD;
  --light:          #FFFFFF;
  --bg:             #F8FAFB;
  --border:         #E9ECF0;
  --text:           #3D4550;
  --text-light:     #6B7280;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 8px 28px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.12);
  --shadow-blue: 0 8px 32px rgba(0,119,182,.22);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;
}

/* ===================== RESET / BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Serif Display', serif;
  color: var(--dark);
  line-height: 1.12;
  letter-spacing: -.01em;
}

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

/* ===================== NAVBAR ===================== */
.navbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar-brand img { height: 44px; width: auto; }

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  color: var(--dark2) !important;
  letter-spacing: .02em;
  padding: .45rem .75rem !important;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  position: relative;
}
.nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.nav-link.active-page {
  color: var(--primary) !important;
  font-weight: 700;
}
.nav-link.active-page::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--light) !important;
  border-radius: var(--radius-sm) !important;
  padding: .45rem 1.2rem !important;
  font-weight: 600 !important;
  transition: background .2s, transform .15s, box-shadow .2s !important;
  box-shadow: var(--shadow-blue);
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 28px rgba(0,119,182,.35) !important;
}
.nav-cta.active-page::after { display: none; }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e2d3d 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,119,182,.18) 0%, transparent 70%);
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.page-hero h1 {
  color: var(--light);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
}
.page-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 560px;
}

/* ===================== BUTTONS ===================== */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: var(--light);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: .78rem 1.9rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .18s, box-shadow .2s;
  box-shadow: var(--shadow-blue);
  letter-spacing: .01em;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,119,182,.38);
  color: var(--light);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  padding: .76rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all .2s;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--light);
  transform: translateY(-2px);
}

.btn-light-custom {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  color: var(--light);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  padding: .76rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: all .2s;
}
.btn-light-custom:hover {
  background: rgba(255,255,255,.25);
  color: var(--light);
}

/* ===================== SECTION LABELS ===================== */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
}
.section-divider {
  width: 42px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: .6rem auto 1rem;
}
.section-divider.left { margin-left: 0; }

/* ===================== CARDS ===================== */
.card-clean {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  height: 100%;
}
.card-clean:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(0,119,182,.2);
}

/* ===================== ICON BOXES ===================== */
.icon-box {
  width: 58px; height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: background .25s, color .25s;
}
.card-clean:hover .icon-box {
  background: var(--primary);
  color: var(--light);
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ===================== FOOTER ===================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 3.5rem 0 2rem;
}
.footer-logo img { height: 40px; width: auto; }
.footer-brand { font-size: .85rem; opacity: .5; margin-top: .5rem; }
.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .9rem;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: .45rem; }
footer ul li a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: color .2s;
}
footer ul li a:hover { color: var(--primary); }
.footer-divider {
  border-color: rgba(255,255,255,.1);
  margin: 2.5rem 0 1.5rem;
}
.footer-bottom {
  font-size: .8rem;
  opacity: .4;
}
.footer-note {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  margin-top: .3rem;
}
.footer-social a {
  color: rgba(255,255,255,.45);
  font-size: 1.15rem;
  transition: color .2s, transform .2s;
  display: inline-block;
}
.footer-social a:hover { color: var(--primary); transform: translateY(-2px); }

/* ===================== CTA STRIP ===================== */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-strip h2 {
  color: var(--light);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: .8rem;
}
.cta-strip p { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: 'DM Serif Display', serif;
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-size: 5rem;
  color: var(--primary-light);
  line-height: 1;
  z-index: 0;
}
.testimonial-card .content { position: relative; z-index: 1; }
.stars { color: #F59E0B; font-size: .9rem; margin-bottom: .8rem; }
.testimonial-card p { font-size: .93rem; color: var(--text); line-height: 1.65; }
.testimonial-author { margin-top: 1.2rem; display: flex; align-items: center; gap: .8rem; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.author-name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.author-loc { font-size: .78rem; color: var(--text-light); }

/* ===================== BREADCRUMB ===================== */
.page-breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
}
.page-breadcrumb .breadcrumb {
  margin: 0;
  font-size: .82rem;
}
.page-breadcrumb .breadcrumb-item a { color: var(--primary); }
.page-breadcrumb .breadcrumb-item.active { color: var(--text-light); }

/* ===================== FORM ===================== */
.form-label { font-weight: 600; font-size: .88rem; color: var(--dark2); margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .72rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  color: var(--dark);
  transition: border-color .2s, box-shadow .2s;
  background: var(--light);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,.12);
  outline: none;
}
.form-control::placeholder { color: var(--neutral); }

/* ===================== FAQ ACCORDION ===================== */
.accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: .75rem;
  overflow: hidden;
}
.accordion-button {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark) !important;
  background: var(--light) !important;
  padding: 1.2rem 1.5rem;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  color: var(--primary) !important;
  background: var(--primary-light) !important;
}
.accordion-button::after { filter: none; }
.accordion-body {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===================== GALLERY ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
}
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  transition: background .25s;
}
.gallery-item:hover .gallery-placeholder { background: var(--primary-light); }
.gallery-placeholder i { font-size: 2.5rem; color: var(--neutral); }
.gallery-placeholder span { font-size: .8rem; color: var(--neutral); font-weight: 500; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  display: flex; align-items: flex-end;
  padding: 1.2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--primary);
  color: var(--light);
  font-size: .72rem; font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 50px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .page-hero { padding: 3.5rem 0 3rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
