/*
Theme Name: IOT Studio
Theme URI: https://iotstudio.com.br/
Author: IOT Studio
Description: Tema institucional estatico para a IOT Studio, focado em projetos IoT sob medida.
Version: 1.3.1
Text Domain: iotstudio
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
  --color-ink: #11131a;
  --color-ink-soft: #303542;
  --color-muted: #6a7280;
  --color-line: #dfe4ec;
  --color-page: #f6f8fb;
  --color-surface: #ffffff;
  --color-violet: #8f55ff;
  --color-violet-dark: #4c168d;
  --color-cyan: #19b8cf;
  --color-cyan-soft: #dff8fb;
  --shadow-soft: 0 20px 60px rgba(17, 19, 26, 0.12);
  --radius: 8px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-page);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

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

a:hover {
  color: var(--color-violet);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px 28px;
  color: #ffffff;
  background: rgba(14, 13, 22, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header {
  top: 32px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  width: 178px;
}

.site-brand img {
  width: 178px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.site-nav a {
  padding: 8px 2px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #ffffff;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-cta {
  color: #ffffff;
  background: var(--color-violet);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #ffffff;
  background: var(--color-violet);
  box-shadow: 0 14px 34px rgba(143, 85, 255, 0.26);
}

.button--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.button--light {
  color: var(--color-ink);
  background: #ffffff;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 74vh;
  overflow: hidden;
  padding: 86px 24px 58px;
  color: #ffffff;
  background: #16062b;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 7, 20, 0.96) 0%, rgba(20, 8, 39, 0.84) 44%, rgba(21, 7, 44, 0.56) 100%),
    url("assets/images/bg-banner-2.jpg") center / cover no-repeat;
}

.hero.has-hero-video::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 7, 20, 0.94) 0%, rgba(20, 8, 39, 0.76) 46%, rgba(21, 7, 44, 0.48) 100%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: url("assets/images/bg-banner-2.jpg") center / cover no-repeat;
}

.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--content));
  margin: 0 auto;
}

.hero__brand {
  width: 255px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-cyan);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.cta-band h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
}

.hero h1 {
  max-width: 860px;
  font-size: 4.55rem;
}

.hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(100%, 840px);
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.hero__proof span {
  display: block;
  min-height: 72px;
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(12, 9, 22, 0.44);
  font-size: 0.94rem;
}

.section {
  padding: 88px 24px;
}

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

.section--ink {
  color: #ffffff;
  background: var(--color-ink);
}

.container {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-title {
  color: var(--color-ink);
  font-size: 2.65rem;
}

.section--ink .section-title,
.section--ink .section-text,
.section--ink .eyebrow {
  color: #ffffff;
}

.section-text {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.intro-copy {
  max-width: 560px;
}

.intro-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-list li {
  padding: 18px 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.intro-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-ink);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.timeline-step,
.assurance-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.service-card {
  min-height: 232px;
  padding: 24px;
}

.service-card__index,
.timeline-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 26px;
  color: var(--color-violet-dark);
  background: var(--color-cyan-soft);
  border-radius: 50%;
  font-weight: 800;
}

.service-card h3,
.timeline-step h3,
.assurance-card h3 {
  margin: 0 0 10px;
  color: var(--color-ink);
  font-size: 1.1rem;
  line-height: 1.25;
}

.service-card p,
.timeline-step p,
.assurance-card p {
  margin: 0;
  color: var(--color-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 54px;
  align-items: center;
}

.feature-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-image img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.capability-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--color-muted);
}

.capability-list li::before {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  content: "";
  border-radius: 50%;
  background: var(--color-violet);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline-step {
  min-height: 245px;
  padding: 24px;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.assurance-card {
  padding: 24px;
}

.cta-band {
  padding: 64px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, #18111f 0%, #291543 52%, #112d36 100%);
}

.cta-band h2 {
  max-width: 760px;
  font-size: 2.5rem;
}

.cta-band p {
  max-width: 670px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .button {
  margin-top: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-details a {
  color: #ffffff;
  font-weight: 700;
}

.contact-form {
  padding: 28px;
  color: var(--color-ink);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--color-ink);
  background: #f9fbfd;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.field textarea {
  min-height: 126px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.button:focus,
.header-cta:focus,
.site-nav a:focus {
  outline: 3px solid rgba(25, 184, 207, 0.34);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.form-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 700;
}

.notice--success {
  color: #075b39;
  background: #def7ea;
}

.notice--error {
  color: #7d1c22;
  background: #fde5e7;
}

.site-footer {
  padding: 46px 24px;
  color: rgba(255, 255, 255, 0.72);
  background: #0c0d12;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  width: min(100%, var(--content));
  margin: 0 auto;
}

.footer-logo {
  width: 150px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-links a,
.footer-contact {
  color: #ffffff;
}

.page-shell {
  width: min(100% - 48px, 860px);
  margin: 70px auto;
  padding: 52px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.blog-hero,
.post-hero {
  padding: 86px 24px 58px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(11, 7, 20, 0.96) 0%, rgba(20, 8, 39, 0.84) 52%, rgba(21, 7, 44, 0.62) 100%),
    url("assets/images/bg-banner-2.jpg") center / cover no-repeat;
}

.blog-hero h1,
.post-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.08;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.post-meta a {
  color: #ffffff;
  font-weight: 700;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 88px;
}

.post-main,
.sidebar-panel,
.post-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
}

.post-main {
  overflow: hidden;
}

.post-featured {
  margin: 0;
}

.post-featured img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

.entry-content {
  padding: 38px;
  color: var(--color-ink);
  font-size: 1.08rem;
  line-height: 1.82;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 34px 0 14px;
  color: var(--color-ink);
  line-height: 1.22;
}

.entry-content h2 {
  font-size: 1.85rem;
}

.entry-content h3 {
  font-size: 1.42rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 22px;
}

.entry-content a {
  color: var(--color-violet-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content img {
  height: auto;
  margin: 28px 0;
  border-radius: var(--radius);
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  color: var(--color-ink-soft);
  background: var(--color-cyan-soft);
  border-left: 4px solid var(--color-cyan);
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px 38px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags a {
  padding: 7px 10px;
  color: var(--color-ink-soft);
  background: var(--color-page);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.post-sidebar {
  position: sticky;
  top: 104px;
}

.sidebar-panel {
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.sidebar-panel h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.sidebar-panel p {
  margin: 0 0 22px;
  color: var(--color-muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  overflow: hidden;
}

.post-card__media {
  display: block;
  background: var(--color-ink);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card__body {
  padding: 22px;
}

.post-card__body time {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.post-card__body h2 {
  margin: 10px 0 10px;
  font-size: 1.28rem;
  line-height: 1.22;
}

.post-card__body p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

.post-card__link {
  color: var(--color-violet-dark);
  font-weight: 800;
}

.pagination-nav {
  margin-top: 34px;
}

.pagination-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-nav a,
.pagination-nav span {
  min-width: 40px;
  padding: 8px 12px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.32), 0 12px 26px rgba(17, 19, 26, 0.18);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #ffffff;
  background: #1ebe5d;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 42px rgba(37, 211, 102, 0.38), 0 14px 30px rgba(17, 19, 26, 0.2);
}

.whatsapp-float svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  padding: 8px 11px;
  color: #ffffff;
  background: #11131a;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(17, 19, 26, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.whatsapp-float:hover .whatsapp-float__tooltip,
.whatsapp-float:focus .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 5.15rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav {
    display: none;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .intro-grid,
  .feature-grid,
  .contact-grid,
  .post-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .site-brand,
  .site-brand img {
    width: 142px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 76vh;
    padding: 64px 18px 46px;
  }

  .hero__brand {
    width: 205px;
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__proof,
  .service-grid,
  .timeline,
  .assurance-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 18px;
  }

  .section-title,
  .cta-band h2,
  .blog-hero h1,
  .post-hero h1 {
    font-size: 2.05rem;
  }

  .feature-image img {
    height: 300px;
  }

  .cta-band,
  .contact-form,
  .page-shell {
    padding: 24px;
  }

  .form-actions,
  .footer-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

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

  .post-sidebar {
    position: static;
  }

  .entry-content,
  .post-footer {
    padding: 24px;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
  }

  .whatsapp-float__tooltip {
    display: none;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
