/* ==========================================================================
   Valorelle Contabilidade — style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   Requirements: 7.1, 7.2
   -------------------------------------------------------------------------- */

:root {
  /* Color Palette */
  --color-primary:    #1B2B5E; /* azul marinho */
  --color-gold:       #C9A227; /* dourado */
  --color-brown:      #5C3D1E; /* marrom */
  --color-bg:         #F5F0E8; /* creme */
  --color-white:      #FFFFFF; /* branco */
  --color-text:       #1A1A1A; /* quase-preto */
  --color-text-muted: #5A5A5A; /* cinza médio */

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   2. CSS Reset
   Requirements: 1.3, 1.4
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

/* Prevent horizontal overflow at any viewport width (including 320px) */
html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   3. Utility Classes
   Requirements: 1.3, 1.4
   -------------------------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-padding {
  padding-block: 5rem;
}

/* Primary Button — gold background, white text */
.btn-primary {
  display: inline-block;
  background-color: var(--color-gold);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(0.88);
}

/* Secondary Button — outlined in gold, gold text; fills on hover */
.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--color-gold);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: 2px solid var(--color-gold);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--color-gold);
  color: var(--color-white);
}


/* ==========================================================================
   4. Scroll Behavior
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   4a. Section Fade-In Animation
   Requirements: 1.4
   ========================================================================== */

/* All sections start hidden (except hero which is above the fold) */
section:not(.section--hero) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When the IntersectionObserver adds .is-visible, animate in */
section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero is always visible — override the hidden initial state */
.section--hero {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   5. Shared Section Styles
   Requirements: 1.4
   ========================================================================== */

.section {
  padding-block: 5rem;
}

.section__heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section__heading--center {
  text-align: center;
}

.section__heading--light {
  color: var(--color-white);
}

/* ==========================================================================
   6. Shared Button Styles
   Requirements: 1.4
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  line-height: 1.2;
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-white);
  padding: 0.875rem 2rem;
}

.btn--gold:hover,
.btn--gold:focus-visible {
  filter: brightness(0.88);
  outline: none;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  padding: 0.875rem 2rem;
  border: 2px solid var(--color-white);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--color-white);
  color: var(--color-primary);
  outline: none;
}

.btn--full {
  width: 100%;
}

.btn--whatsapp {
  background-color: #25D366;
  color: var(--color-white);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin-top: 2rem;
  transition: filter 0.2s ease;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  filter: brightness(0.9);
  outline: none;
}

/* ==========================================================================
   7. Header / Navegação
   Requirements: 1.1, 6.1
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--color-primary);
  padding: 1rem 0;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

/* Navigation */
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-white);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-gold);
  outline: none;
}

/* Header CTA */
.header__cta {
  flex-shrink: 0;
  padding: 0.6rem 1.5rem;
  font-size: 0.9375rem;
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Compensate for fixed header */
body {
  padding-top: 80px;
}

/* ==========================================================================
   8. Hero Section
   Requirements: 1.1, 1.4
   ========================================================================== */

.section--hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  padding-block: 6rem 4rem;
  /* Override default .section padding for hero */
  padding-block: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 43, 94, 0.95) 0%,
    rgba(27, 43, 94, 0.85) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 5rem;
}

.hero__logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.hero__subtext {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   9. Seção Sobre
   Requirements: 1.2
   ========================================================================== */

.section--sobre {
  background-color: var(--color-bg);
}

.sobre__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sobre__body {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.sobre__body:last-of-type {
  margin-bottom: 0;
}

.sobre__stats {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.sobre__stat {
  text-align: center;
}

.sobre__stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-gold);
  display: block;
  line-height: 1.1;
}

.sobre__stat-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  display: block;
}

.sobre__image-wrapper {
  overflow: hidden;
  border-radius: 8px;
}

.sobre__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(27, 43, 94, 0.12);
  object-fit: cover;
}

/* ==========================================================================
   10. Seção Serviços
   Requirements: 2.1, 2.2, 2.3
   ========================================================================== */

.section--servicos {
  background-color: var(--color-white);
}

.servicos__grupo {
  margin-bottom: 3.5rem;
}

.servicos__grupo:last-child {
  margin-bottom: 0;
}

.servicos__grupo-titulo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gold);
}

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

/* PF grid — single centered card */
.servicos__grid--pf {
  grid-template-columns: repeat(1, 1fr);
  max-width: 400px;
}

.card-servico {
  background-color: var(--color-white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card-servico:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
  transform: translateY(-2px);
}

.card-servico__icone {
  display: block;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
}

.card-servico__icone i {
  font-size: inherit;
  color: inherit;
}

.card-servico__titulo {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-servico__descricao {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ==========================================================================
   11. Seção Diferenciais
   Requirements: 1.2, 1.4
   ========================================================================== */

.section--diferenciais {
  background-color: var(--color-primary);
}

.diferenciais__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.diferencial {
  text-align: center;
  color: var(--color-white);
}

.diferencial__icone {
  font-size: 3rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.diferencial__icone i {
  font-size: inherit;
  color: inherit;
}

.diferencial__titulo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.diferencial__descricao {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ==========================================================================
   12. Seção Contato
   Requirements: 4.1, 4.4
   ========================================================================== */

.section--contato {
  background-color: var(--color-bg);
}

.contato__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contato__intro {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1rem;
}

.contato__lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.contato__item-icone {
  color: var(--color-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.contato__item-icone i {
  font-size: inherit;
  color: inherit;
}

.contato__link {
  color: var(--color-primary);
  text-decoration: none;
  transition: text-decoration 0.15s ease;
}

.contato__link:hover,
.contato__link:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Form Wrapper */
.contato__form-wrapper {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(27, 43, 94, 0.08);
}

/* Form Elements */
.form__group {
  margin-bottom: 1.5rem;
}

.form__group:last-of-type {
  margin-bottom: 0;
}

.form__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form__required {
  color: var(--color-gold);
  margin-left: 0.15rem;
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form__input::placeholder {
  color: #aaa;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 43, 94, 0.1);
}

.form__input.is-invalid {
  border-color: #dc3545;
}

.form__input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A5A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__error {
  display: block;
  color: #dc3545;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  min-height: 1.2em;
}

.form__hint {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.form__feedback {
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form__feedback--success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form__feedback--error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Submit button spacing */
.form .btn--gold.btn--full {
  margin-top: 0.5rem;
}

/* ==========================================================================
   13. Footer
   Requirements: 1.4
   ========================================================================== */

.footer {
  background-color: var(--color-primary);
  padding-block: 3rem;
}

.footer__container {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer__logo-link {
  display: inline-flex;
}

.footer__logo {
  max-height: 44px;
  width: auto;
  display: block;
  filter: brightness(10);
}

.footer__location {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__location i {
  color: var(--color-gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  margin-top: 1rem;
  line-height: 1.5;
}

.footer__nav-heading {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer__nav-list {
  list-style: none;
}

.footer__nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9375rem;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.footer__nav-link:hover,
.footer__nav-link:focus-visible {
  color: var(--color-white);
  outline: none;
}

.footer__social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__social-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer__social-link i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  color: var(--color-gold);
  outline: none;
}

/* ==========================================================================
   14. WhatsApp Floating Button
   Requirements: 5.1, 5.2
   ========================================================================== */

@keyframes pulse {
  0%   { transform: scale(1); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
  50%  { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }
  100% { transform: scale(1); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  animation: pulse 2s ease-in-out infinite;
  transition: filter 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  filter: brightness(0.9);
  outline: none;
  animation-play-state: paused;
}

.whatsapp-float i {
  font-size: inherit;
  color: inherit;
}

/* ==========================================================================
   15. Responsive — Tablet  (640px – 1023px)
   Cards 2-col, Sobre/Contato single-col, nav visible, no hamburger.
   Requirements: 1.3
   ========================================================================== */

@media (min-width: 640px) and (max-width: 1023px) {

  /* Serviços — 2 columns */
  .servicos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Diferenciais — 2 columns */
  .diferenciais__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sobre — single column (image stacks above text) */
  .sobre__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sobre__image-wrapper {
    order: -1;
  }

  /* Contato — single column */
  .contato__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer__container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

}

/* ==========================================================================
   16. Responsive — Mobile  (max 639px)
   1-column layout, hamburger menu, adjusted spacing.
   Requirements: 1.3
   ========================================================================== */

@media (max-width: 639px) {

  /* Body offset — shorter header on mobile */
  body {
    padding-top: 72px;
  }

  /* ---------- Header / Nav ---------- */

  /* CTA button hidden on mobile */
  .header__cta {
    display: none;
  }

  /* Hamburger button visible on mobile */
  .hamburger {
    display: flex;
  }

  /* Nav drawer — hidden by default, slides in when .is-open is toggled */
  .nav {
    position: fixed;
    top: 72px; /* matches reduced header height on mobile */
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 998;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.75rem 0;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__item:last-child .nav__link {
    border-bottom: none;
  }

  /* ---------- Section headings ---------- */
  .section__heading {
    font-size: 1.875rem;
  }

  /* ---------- Hero ---------- */
  .hero__heading {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero__subtext {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* ---------- Sobre ---------- */
  .sobre__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sobre__image-wrapper {
    order: -1;
  }

  .sobre__stats {
    gap: 1rem;
    justify-content: space-between;
  }

  .sobre__stat-number {
    font-size: 2rem;
  }

  /* ---------- Serviços — 1 column ---------- */
  .servicos__grid {
    grid-template-columns: 1fr;
  }

  .servicos__grid--pf {
    max-width: 100%;
  }

  /* ---------- Diferenciais — 1 column ---------- */
  .diferenciais__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* ---------- Contato ---------- */
  .contato__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contato__form-wrapper {
    padding: 1.5rem 1rem;
  }

  /* ---------- Footer ---------- */
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* ---------- Buttons ---------- */
  .btn--gold,
  .btn--outline,
  .btn--whatsapp {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  /* ---------- WhatsApp float ---------- */
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

}

/* ==========================================================================
   17. Responsive — Small mobile (max 359px / 320px minimum)
   Extra overflow guards to ensure nothing breaks at 320px.
   Requirements: 1.3
   ========================================================================== */

@media (max-width: 359px) {

  /* Prevent any element from overflowing the viewport */
  .container {
    padding-inline: 1rem;
  }

  /* Hero — tighter spacing */
  .hero__content {
    padding-block: 3.5rem;
  }

  .hero__logo {
    max-width: 180px;
  }

  .hero__actions {
    max-width: 100%;
  }

  /* Cards — ensure they don't overflow */
  .card-servico {
    padding: 1.25rem;
  }

  /* Stats — stack vertically so numbers don't overflow */
  .sobre__stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Form — tighter padding */
  .contato__form-wrapper {
    padding: 1.25rem 0.875rem;
  }

  /* Section padding reduction */
  .section {
    padding-block: 3.5rem;
  }

  /* Footer tighter */
  .footer {
    padding-block: 2rem;
  }

}
