/* ============================================
   José Quintino, Lda — Folha de Estilos
   ============================================ */

:root {
  --navy: #26348C;
  --navy-dark: #1A2560;
  --red: #E31E24;
  --ink: #1A1A1A;
  --text: #333331;
  --text-muted: #6B6B67;
  --border: #E4E3DD;
  --bg: #FFFFFF;
  --bg-alt: #F6F5F2;
  --radius: 6px;
  --max-width: 1180px;
  --font-heading: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }

p { color: var(--text); text-align: justify; text-justify: inter-word; }

.hero-inner p,
.section-header p,
.cta-banner p {
  text-align: center;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover { background: #fff; color: var(--ink); }

.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-white:hover { background: var(--bg-alt); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-link img { height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-switch {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
}
.lang-switch a { color: var(--text-muted); }
.lang-switch a.active { color: var(--ink); }
.lang-switch span { color: var(--border); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #8a8a86 0%, #6f6f6c 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 0 24px;
}
.hero-inner h1 {
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
  white-space: nowrap;
  font-size: clamp(20px, 4.4vw, 42px);
}
.hero-inner p { color: rgba(255,255,255,0.95); font-size: 18px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-small {
  min-height: 280px;
}
.hero-small h1 { font-size: clamp(26px, 3.5vw, 34px); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 44px; }

/* ===== Stats strip ===== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  text-align: center;
  padding: 28px 16px;
  border-left: 1px solid var(--border);
}
.stat-item:first-child { border-left: none; }
.stat-number { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--ink); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 700px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.card {
  background: #fff;
  padding: 32px;
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.card-link { font-size: 14px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 700px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ===== Photo placeholder ===== */
.photo-placeholder {
  background: linear-gradient(180deg, #cfcfc9 0%, #b8b8b1 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 40px;
  min-height: 260px;
}

.photo-real {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ===== Two column ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Timeline / process steps ===== */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-number {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step-content h3 { font-size: 16px; margin-bottom: 4px; }
.step-content p { font-size: 14px; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 14px;
  color: var(--text-muted);
}
.faq-answer-inner { padding-bottom: 20px; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-icon { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ===== Portfolio ===== */
.portfolio-note {
  background: var(--bg-alt);
  border-left: 3px solid var(--navy);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 40px;
  border-radius: 0 6px 6px 0;
}
.portfolio-category { margin-bottom: 44px; }
.portfolio-category h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.portfolio-list { list-style: none; }
.portfolio-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.portfolio-list li:last-child { border-bottom: none; }
.portfolio-list .obra-desc { color: var(--text); }
.portfolio-list .obra-year { color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }

/* ===== Certifications ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cert-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}
.cert-card .card-icon { margin: 0 auto 16px; }
.cert-card h3 { font-size: 16px; margin-bottom: 8px; }
.cert-card p { font-size: 13px; color: var(--text-muted); }
@media (max-width: 800px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* ===== Forms ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
}
textarea { resize: vertical; min-height: 110px; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ===== Contact info blocks ===== */
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 18px;
}
.contact-info-item h4 { font-size: 14px; margin-bottom: 2px; }
.contact-info-item p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
  border-radius: 12px;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 26px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col img { height: 36px; margin-bottom: 12px; }
.footer-col p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--text); display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--navy); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.nowrap-heading { white-space: nowrap; font-size: clamp(18px, 2.8vw, 30px); }
.nowrap-sub { white-space: nowrap; font-size: clamp(12px, 1.6vw, 16px); }

@media (max-width: 640px) {
  .nowrap-heading { white-space: normal; font-size: clamp(22px, 6vw, 28px); }
  .nowrap-sub { white-space: normal; font-size: 15px; }
}
