/* websites.css — versão corrigida e responsiva
   Substitua o conteúdo atual por este arquivo (apenas CSS).
*/

/* ---------- Root variables ---------- */
:root {
  /* Colors */
  --primary-color: hsl(189 100% 30%);
  --accent: #4caf50;
  --secondary-color: #ff9800;
  --dark-color: #121212;
  --font-color: #111;
  --muted: #6b7280;
  --background-color: #f5f5f5;

  /* Light/dark palettes (kept for compatibility) */
  --color2-d: hsl(225 100% 25%);
  --color3-d: hsl(225 100% 35%);
  --color1-l: hsl(189 100% 90%);
  --color2-l: hsla(189 100% 50% / 0.897);
  --color3-l: hsl(189 100% 40%);
  --color5-l: hsl(189 100% 20%);

  /* Spacing scale */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 28px;
  --space-xl: 48px;

  --gap: 1.25rem;
  --gap-2: 2rem;
  --gap-3: 3rem;
  --gap-4: 4rem;

  --border-radius: 12px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-title: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

/* ---------- Fonts (kept via import since only CSS is changed) ---------- */
/* If you later move font links to <head> it's better for performance */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&family=Lato:wght@300;400;700&display=swap");

/* ---------- Global reset & base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-body);
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--background-color);
  color: var(--font-color);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout container ---------- */
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  height: 80px;
  width: 100%;
  position: sticky;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.08);
  padding: 0 2rem;
  background: transparent;
  backdrop-filter: blur(10px);
  z-index: 100;
}

.navbar-container {
  width: 100%;
  max-width: 1600px;
  display: flex;
  padding: 0 2rem;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Menu */
.navbar-container .navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
}

.navbar-container .navbar-menu li a:not(.cta-link) {
  text-decoration: none;
  color: var(--font-color);
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: clamp(0.95rem, 1.2vw + 0.4rem, 1.125rem);
  letter-spacing: 0.2px;
  position: relative;
}

.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background: var(--font-color);
  transition: all 0.3s ease-in-out;
}

/* CTA link in nav */
.navbar-menu > li > .cta-link {
  text-decoration: none;
  color: var(--background-color);
  font-weight: 700;
  background-color: var(--primary-color);
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  letter-spacing: 1px;
  display: inline-block;
}

/* active indicator */
.active-link::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 3px;
  width: 50px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--color2-l);
}

/* Mobile navbar behaviour */
@media (max-width: 800px) {
  .navbar {
    backdrop-filter: none;
  }
  .navbar-container .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 0;
    right: 0;
    gap: 1.7rem;
    width: 260px;
    height: 100vh;
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(10px);
    box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
    overflow-y: auto;
  }
  .navbar-toggle {
    display: block;
    z-index: 101;
  }

  .navbar-container .navbar-menu.active {
    display: flex;
  }

  .navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .navbar-container {
    padding: 0 1rem;
  }
  .navbar .logo {
    font-size: 1.5rem;
  }
  .navbar-container .navbar-menu li a {
    font-size: 1rem;
  }
  main {
    padding: 0 1rem;
  }
}

/* Focus styles for accessibility */
.navbar-container .navbar-menu a:focus,
.navbar-toggle:focus {
  outline: 3px solid rgba(76, 175, 80, 0.18);
  outline-offset: 4px;
}

/* ---------- Container utility ---------- */
.container {
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 40%);
  gap: var(--gap, 1.25rem);
  margin-top: var(--gap-2);
  align-items: center;
  padding: var(--gap-2);
  border-radius: 24px;
  background: #e0e0e0;
  box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
  overflow: visible;
}

.hero-left {
  max-width: 62ch;
  word-break: break-word;
}

.hero-title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.02;
  margin: 0 0 0.6rem;
  color: var(--font-color);
  font-weight: 800;
  font-family: var(--font-title);
}

.hero-sub {
  color: var(--muted);
  margin: 0 0 1rem;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.btn-primary,
.btn-outline {
  padding: 0.6rem 1rem;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--background-color);
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.1);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(124, 92, 255, 0.12);
  outline: none;
}

.btn-outline {
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(2, 8, 23, 0.03);
  transform: translateY(-2px);
}

/* features list */
.hero-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-weight: 400;
}

/* visual area */
.hero-visual {
  width: 100%;
  display: block;
}
.hero-visual img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(8, 10, 18, 0.06);
  display: block;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 2rem 0;
}

.services h2 {
  text-align: center;
  margin-bottom: var(--gap-4);
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--font-color);
}

.services .lead {
  color: var(--muted);
  margin: 0 0 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service {
  background: #fff;
  padding: 1.1rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  color: #111;
  transition: transform 0.18s ease;
}

.service:hover,
.service:focus-within {
  transform: translateY(-6px);
}

/* ---------- WHY ---------- */
.why {
  padding: 2rem 0;
}
.why-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.why-card {
  flex: 1 1 220px;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
  font-weight: 400;
}
.why-card strong {
  display: block;
  margin-bottom: 0.45rem;
}

/* ---------- PORTFOLIO ---------- */
.portfolio {
  padding: 2rem 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.why #why-title {
  margin-bottom: var(--gap-2);
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--font-color);
}
.portfolio #portfolio-title {
  text-align: center;
  margin-bottom: var(--gap-2);
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--font-color);
}
.portfolio .lead {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  margin: 0 0 2rem;
}
.process #process-title {
  text-align: center;
  margin-bottom: var(--gap-4);
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--font-color);
}
.proj {
  display: block;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.proj img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.proj-meta {
  padding: 1rem;
}

.proj:hover,
.proj:focus {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.09);
}

/* ---------- PROCESS ---------- */
.process {
  padding: 2rem 0;
}
.process-steps {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.process-steps li {
  background: #fff;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
  font-weight: 500;
}

/* ---------- CTA ---------- */
.cta {
  padding: 2.25rem 0;
  background: linear-gradient(
    180deg,
    rgba(122, 92, 255, 0.06),
    rgba(122, 92, 255, 0.02)
  );
  border-radius: 12px;
  margin: 1rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}
.cta .lead {
  margin: 0;
  color: #082033;
}
.cta-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* On small screens stack CTA actions */
@media (max-width: 720px) {
  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 2rem 0;
  margin-top: 2rem;
  background: transparent;
}

.footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h2,
.footer h3 {
  font-family: var(--font-title);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.footer p,
.footer ul,
.footer a {
  font-weight: 300;
  line-height: 1.7;
  color: #ddd;
}
.footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--primary-color);
}

.footer-brand p {
  max-width: 25rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-social .social-icons {
  display: flex;
  gap: 0.8rem;
}
.footer-social a {
  background-color: #222;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social a img {
  height: 24px;
}
.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 1.5rem;
  }
  .footer h2,
  .footer h3,
  .footer-brand p {
    text-align: start;
  }
  .footer-social {
    text-align: center;
  }
  .footer-social .social-icons {
    justify-content: center;
  }
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr minmax(220px, 40%);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hero-visual {
    order: 2;
    width: 100%;
  }
  .hero-left {
    order: 1;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    gap: 0.6rem;
  }
  .main-nav .nav-list {
    display: none;
  }
}

/* Focus outline fallback */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Small diagnostic helper (remove in production if desired)
   This ensures hero image won't cause horizontal overflow due to rounding
*/
img {
  max-width: 100%;
  display: block;
}

/* End of file */
