@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;1,9..40,400&display=swap');

:root {
  --bg: #f5f8fc;
  --fg: #152235;
  --card: #ffffff;
  --card-fg: #152235;
  --primary: #1a7ab5;
  --primary-fg: #ffffff;
  --primary-hover: #155f8f;
  --primary-light: rgba(26, 122, 181, 0.1);
  --heading: #155f8f;     /* main titles: same blue as the "Peça Orçamento" button */
  --subheading: #1a7ab5;  /* card/step titles: lighter blue */
  --muted: #5e7a8f;
  --border: #d6e3ef;
  --input-border: #c0d4e4;
  --ring: rgba(26, 122, 181, 0.4);
  --radius: 0.75rem;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; background: var(--bg); color: var(--fg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 2rem; font-weight: 600; font-size: 1rem; border-radius: 9999px; border: none; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn-primary { background-color: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background-color: var(--primary-hover); box-shadow: var(--shadow-md); }
.btn-primary-always { background-color: var(--primary-hover); color: var(--primary-fg); box-shadow: var(--shadow-md); }
.btn-primary-always:hover { background-color: var(--primary); }
.btn-outline { background-color: transparent; color: var(--fg); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(245,248,252,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; }
.navbar-logo { height: 2.25rem; width: auto; }
.navbar-links { display: none; align-items: center; gap: 2rem; }
.navbar-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.navbar-links a:hover { color: var(--fg); }
.navbar-cta { display: none; }
.navbar-toggle { display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--fg); padding: 0.25rem; }
.navbar-toggle svg { width: 1.5rem; height: 1.5rem; }
.mobile-menu { display: none; flex-direction: column; gap: 1rem; padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.mobile-menu a:hover { color: var(--fg); }
@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .navbar-cta { display: block; }
  .navbar-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* HERO */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; padding-top: 5rem; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(245,248,252,0.96) 0%, rgba(245,248,252,0.82) 50%, rgba(245,248,252,0.35) 100%); }
.hero-content { max-width: 580px; }
.hero-label { display: inline-block; margin-bottom: 1rem; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); }
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--heading); text-wrap: balance; }
.hero-desc { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted); max-width: 440px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--fg); }
.hero-stat span { font-size: 0.85rem; color: var(--muted); }
.hero-stat-divider { width: 1px; height: 2rem; background: var(--border); }

/* SECTIONS */
.section { padding: 6rem 0; scroll-margin-top: 5rem; }
.section-alt { background: var(--card); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); }
.section-title { margin-top: 0.75rem; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; color: var(--heading); text-wrap: balance; }
.section-desc { margin-top: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; color: var(--muted); line-height: 1.6; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); background: var(--bg); transition: box-shadow 0.3s; }
.service-card:hover { box-shadow: var(--shadow-lg); }
.service-card-img { position: relative; height: 13rem; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 1.5rem; }
.service-icon-wrap { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--primary-light); margin-bottom: 1rem; }
.service-icon-wrap svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.service-card-body h3 { font-size: 1.125rem; font-weight: 700; color: var(--subheading); }
.service-card-body p { margin-top: 0.5rem; color: var(--muted); line-height: 1.6; }

/* HOW IT WORKS */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; position: relative; }
.step-icon-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--primary-light); margin-bottom: 1.5rem; }
.step-icon-wrap svg { width: 2rem; height: 2rem; color: var(--primary); }
.step-badge { position: absolute; top: -0.25rem; right: -0.25rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--primary); color: var(--primary-fg); font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 1.125rem; font-weight: 700; color: var(--subheading); }
.step p { margin-top: 0.5rem; color: var(--muted); line-height: 1.6; }
@media (min-width: 768px) { .step:not(:last-child)::after { content: ''; position: absolute; top: 2.5rem; right: 0; width: 50%; height: 1px; background: var(--border); transform: translateX(50%); } }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { display: flex; flex-direction: column; padding: 2rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--bg); }
.testimonial-stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.testimonial-stars svg { width: 1rem; height: 1rem; color: var(--primary); fill: var(--primary); }
.testimonial-quote { flex: 1; color: var(--muted); line-height: 1.7; }
.testimonial-author { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.testimonial-author strong { display: block; font-weight: 600; color: var(--fg); }
.testimonial-author span { font-size: 0.85rem; color: var(--muted); }

/* CONTACT */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.9rem; font-weight: 500; color: var(--fg); }
.form-group input, .form-group select, .form-group textarea { padding: 0.75rem 1rem; border: 1px solid var(--input-border); border-radius: 0.75rem; background: var(--bg); color: var(--fg); transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.form-group textarea { resize: none; min-height: 120px; }
.form-submit { margin-top: 1rem; }
.req { color: var(--primary); font-weight: 700; }

/* CONTACT INFO (own section after the forms) */
.contact-info { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) { .contact-info { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--bg); }
.contact-card h3 { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); font-size: 1.125rem; font-weight: 700; color: var(--subheading); }
.contact-address { font-style: normal; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }
@media (min-width: 900px) { .contact-address { min-height: 4.8em; } } /* 3 lines, so phones line up across the cards */
.contact-person { display: flex; flex-direction: column; padding-top: 1rem; border-top: 1px solid var(--border); }
.contact-role { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.contact-name { margin-bottom: 0.5rem; font-weight: 600; color: var(--fg); }
.contact-list { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--fg); overflow-wrap: break-word; min-width: 0; }
.contact-card svg { flex-shrink: 0; color: var(--primary); }
.contact-list a { transition: color 0.2s; }
.contact-list a:hover { color: var(--primary); }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* RECRUITMENT PAGE */
.recruit-hero { padding: 8rem 0 4rem; text-align: center; }
.recruit-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--heading); text-wrap: balance; }
.recruit-hero p { margin-top: 1rem; font-size: 1.125rem; color: var(--muted); max-width: 540px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.recruit-form { width: 100%; padding: 2.5rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-md); }
.recruit-form h2 { font-size: 1.5rem; font-weight: 700; color: var(--heading); margin-bottom: 0.5rem; }
.recruit-form > p { color: var(--muted); margin-bottom: 2rem; font-size: 0.95rem; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); background: var(--bg); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--heading); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { margin-top: 3rem; padding: 2rem 0; border-top: 1px solid var(--border); text-align: center; font-size: 0.85rem; color: var(--muted); }
