/* ============================================================
   FS ISOLAMENTOS — PREMIUM STYLESHEET
   Color Palette:
     --navy:       #0f1c2e  (primary dark)
     --navy-mid:   #162540  (slightly lighter navy)
     --navy-light: #1e3a5f  (hover/card bg)
     --gold:       #c9a84c  (accent)
     --gold-light: #d9bc72  (gold hover)
     --gold-dark:  #a8872e  (gold pressed)
     --warm-white: #f8f6f1  (background)
     --off-white:  #ede9e0  (subtle bg)
     --text-dark:  #1a2a3a  (body text)
     --text-muted: #6b7a8d  (secondary text)
     --border:     #d4ceC4  (subtle borders)
   ============================================================ */

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

:root {
  --navy:          #0f1c2e;
  --navy-mid:      #162540;
  --navy-light:    #1e3a5f;
  --gold:          #c9a84c;
  --gold-light:    #d9bc72;
  --gold-dark:     #a8872e;
  --warm-white:    #f8f6f1;
  --off-white:     #ede9e0;
  --text-dark:     #1a2a3a;
  --text-muted:    #6b7a8d;
  --border:        #d4cec4;
  --white:         #ffffff;
  --success:       #2e7d4f;
  --error:         #b94040;

  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --shadow-sm:     0 2px 8px rgba(15, 28, 46, 0.08);
  --shadow-md:     0 8px 32px rgba(15, 28, 46, 0.12);
  --shadow-lg:     0 20px 60px rgba(15, 28, 46, 0.18);
  --shadow-gold:   0 4px 24px rgba(201, 168, 76, 0.3);

  --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1240px;
  --container-pad: clamp(1rem, 5vw, 2.5rem);

  --header-h:      76px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
}

/* ---- UTILITY CLASSES -------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.07);
}

.section-tag--gold {
  color: var(--gold-light);
  border-color: rgba(217, 188, 114, 0.4);
  background: rgba(201, 168, 76, 0.12);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-heading em {
  font-style: italic;
  color: var(--gold-dark);
}

.section-heading--light {
  color: var(--warm-white);
}

.section-heading--light em {
  color: var(--gold-light);
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .section-subheading {
  margin-inline: auto;
}

/* ---- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after { opacity: 1; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.45);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}


/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(15, 28, 46, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(15, 28, 46, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo-link {
  text-decoration: none;
  flex-shrink: 0;
}

.logo-placeholder {
  display: flex;
  align-items: center;
}

/*
  TO REPLACE LOGO PLACEHOLDER:
  Remove .logo-placeholder and insert:
    <img src="images/logo.png" alt="FS Isolamentos" class="logo-img" width="160" height="48" />
  Then add to CSS:
    .logo-img { height: 44px; width: auto; }
*/
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-accent {
  color: var(--gold);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-right: 1.5rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  padding: 0.6rem 1.3rem;
  font-size: 0.88rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(255,255,255,0.08);
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: var(--white);
  padding: 0.5rem 1rem;
  transition: color var(--transition);
  display: block;
}

.mobile-nav-link:hover {
  color: var(--gold);
}

.mobile-cta {
  margin-top: 1rem;
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white) !important;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 600;
}


/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* Hero background gradient — replace with background-image: url('images/hero-bg.jpg') */
  background: linear-gradient(160deg, #0a1520 0%, #0f1c2e 35%, #162540 65%, #1a1f2e 100%);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* When using a real hero photo, this overlay ensures text readability:
     background: linear-gradient(to bottom, rgba(10,20,32,0.72) 0%, rgba(10,20,32,0.55) 100%);
  */
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.06);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subheadline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  padding: 0 2.5rem;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-number sup {
  font-size: 0.55em;
  vertical-align: super;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  transition: opacity var(--transition);
  z-index: 2;
}

.hero-scroll-hint:hover { opacity: 1; }

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
  animation: scrollLine 2s ease-in-out infinite;
}

.scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}
@keyframes scrollDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}


/* ============================================================
   SOBRE NÓS
============================================================ */
.sobre {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--warm-white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

/* Sobre image / placeholder */
.sobre-visual {
  position: relative;
}

.sobre-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #162540 0%, #0f1c2e 60%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/*
  TO REPLACE SOBRE IMAGE:
  Replace .sobre-img-placeholder with:
    <img src="images/sobre-nos.jpg" alt="Equipa FS Isolamentos" class="sobre-img" loading="lazy" />
  Add CSS: .sobre-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); }
*/
.sobre-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(30,58,95,0.6) 0%, transparent 50%);
}

.placeholder-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.sobre-exp-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-gold);
  border: 4px solid var(--warm-white);
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.exp-text {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Sobre content */
.sobre-lead {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.sobre-body {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.sobre-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}

.value-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.value-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ============================================================
   SERVIÇOS
============================================================ */
.servicos {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--off-white);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.servico-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.servico-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  opacity: 0;
  transition: opacity var(--transition);
}

.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.servico-card:hover::before {
  opacity: 1;
}

.servico-card--highlight {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-color: transparent;
}

.servico-card--highlight .servico-title,
.servico-card--highlight .servico-desc {
  color: var(--white);
}

.servico-card--highlight .servico-desc {
  color: rgba(255,255,255,0.7);
}

.servico-card--highlight .servico-icon {
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--gold);
}

.servico-card--highlight .servico-link {
  color: var(--gold-light);
}

.servico-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--gold-dark);
  transition: all var(--transition);
}

.servico-card:hover .servico-icon {
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.35);
}

.servico-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.servico-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.servico-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition), color var(--transition);
}

.servico-link:hover {
  color: var(--gold);
  gap: 0.55rem;
}


/* ============================================================
   GALERIA
============================================================ */
.galeria {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--warm-white);
}

.galeria-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Masonry-style grid */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

/*
  TO REPLACE GALLERY PLACEHOLDERS:
  1. For each .gallery-item, remove the inline style="background: ..."
  2. Add an <img> tag inside: <img src="images/gallery/foto-01.jpg" alt="..." loading="lazy" class="gallery-img" />
  3. CSS for real images:
     .gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  4. Optionally keep the .gallery-content overlay for hover effect
*/

.gallery-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(15, 28, 46, 0.25);
  transition: background var(--transition);
}

.gallery-item:hover .gallery-content {
  background: rgba(15, 28, 46, 0.55);
}

.gallery-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.gallery-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(15, 28, 46, 0.5);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-tag {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.hidden {
  display: none;
}


/* ============================================================
   PORQUÊ NÓS
============================================================ */
.porque-nos {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.pq-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(201,168,76,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(30, 58, 95, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.pq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.pq-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition);
}

.pq-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.25);
}

.pq-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.pq-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
}

.pq-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.pq-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
}

/* Testimonial */
.pq-testimonial {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.testimonial-quote {
  padding: 2.5rem 3rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 2.5rem;
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
}

.testimonial-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial-quote cite {
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
}


/* ============================================================
   FORMULÁRIO DE ORÇAMENTO
============================================================ */
.orcamento {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--warm-white);
}

.orcamento-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* Left info panel */
.orcamento-info .section-heading {
  margin-bottom: 1rem;
}

.orcamento-info > p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.orcamento-promises {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.orcamento-promises li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
}

.orcamento-promises svg {
  flex-shrink: 0;
  color: var(--success);
}

.orcamento-contact-quick {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.quick-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.quick-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-right: 1.5rem;
  transition: color var(--transition);
}

.quick-contact-link:hover {
  color: var(--gold-dark);
}

.quick-contact-whatsapp { color: #25d366; }
.quick-contact-whatsapp:hover { color: #128c4a; }

/* Form */
.orcamento-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.orcamento-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.required {
  color: var(--error);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--warm-white);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  background: var(--white);
}

.form-input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(185, 64, 64, 0.1);
}

.form-input.is-valid {
  border-color: var(--success);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  min-height: 1em;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Select */
.select-wrapper {
  position: relative;
}

.form-select {
  cursor: pointer;
  padding-right: 2.5rem;
}

.select-arrow {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

/* File upload */
.file-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
  overflow: hidden;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--warm-white);
  transition: all var(--transition);
}

.file-upload-label:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(201, 168, 76, 0.04);
}

/* Checkbox */
.form-consent {
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  margin-top: 1px;
  background: var(--warm-white);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-input:checked + .checkbox-custom {
  background: var(--navy);
  border-color: var(--navy);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.form-link {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* Submit button */
#submit-btn {
  margin-top: 0.25rem;
  position: relative;
  overflow: hidden;
}

#submit-btn.loading {
  pointer-events: none;
  opacity: 0.75;
}

/* Success message */
.form-success-msg {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(46, 125, 79, 0.08);
  border: 1px solid rgba(46, 125, 79, 0.25);
  border-radius: var(--radius-sm);
  color: var(--success);
  margin-top: 0.5rem;
}

.form-success-msg svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-success-msg strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.form-success-msg p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}


/* ============================================================
   CONTACTOS
============================================================ */
.contactos {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--off-white);
}

.contactos-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:first-child { border-top: 1px solid var(--border); }

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(15, 28, 46, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.contact-icon--whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--transition);
}

.contact-value:hover { color: var(--gold-dark); }

.contact-value--whatsapp {
  color: #25d366;
  font-weight: 600;
}

.contact-value--whatsapp:hover { color: #128c4a; }

.social-links {
  padding-top: 1.5rem;
}

.social-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-icon:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* Map placeholder */
.map-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #ddd8cf 0%, #e8e3d8 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

/*
  TO REPLACE MAP PLACEHOLDER:
  Remove .map-placeholder content and insert the iframe:
    <iframe src="https://www.google.com/maps/embed?pb=..." width="100%" height="100%"
      style="border:0; display:block;" allowfullscreen loading="lazy"
      referrerpolicy="no-referrer-when-downgrade" title="Localização FS Isolamentos">
    </iframe>
  Remove min-height from .map-placeholder after adding iframe.
*/

.map-placeholder-inner {
  text-align: center;
  color: var(--text-muted);
}

.map-placeholder-inner svg {
  margin-inline: auto;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

.map-placeholder-inner p {
  font-size: 0.9rem;
  font-weight: 500;
}

.map-placeholder-inner small {
  font-size: 0.78rem;
  opacity: 0.7;
}


/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}

.footer-top {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-top-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.logo-placeholder--footer .logo-text {
  font-size: 1.3rem;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-light);
  margin-top: 0.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1.1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-contact-links li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

.footer-contact-links a {
  color: rgba(255,255,255,0.55);
}
.footer-contact-links a:hover { color: var(--gold-light); }
.footer-contact-links svg { flex-shrink: 0; opacity: 0.5; }

.footer-bottom {
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-bottom-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--gold-light); }

.footer-bottom-links span {
  color: rgba(255,255,255,0.2);
}


/* ============================================================
   WHATSAPP FLOAT & BACK TO TOP
============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  z-index: 900;
  transition: all var(--transition);
}

.whatsapp-float:hover {
  background: #128c4a;
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(4px);
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--navy);
  border-right-width: 0;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 5.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  border: 1px solid var(--border);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}


/* ============================================================
   RESPONSIVE
============================================================ */

/* Large tablets / small desktops */
@media (max-width: 1100px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-top-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sobre-visual {
    max-width: 480px;
    margin-inline: auto;
  }

  .orcamento-wrapper {
    grid-template-columns: 1fr;
  }

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

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .hero-stat-divider { display: none; }
  .hero-stat { padding: 0.5rem 1rem; }
  .hero-stats { gap: 0.5rem; }

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

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

  .galeria-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item--large {
    grid-column: span 1;
    grid-row: span 1;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .sobre-exp-badge {
    right: 0;
    bottom: -1rem;
  }

  .testimonial-quote {
    padding: 2rem 1.5rem;
  }

  .testimonial-quote::before {
    font-size: 3.5rem;
    left: 1.5rem;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 4.75rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
