/*
Theme Name: Alvemed
Theme URI: https://alvemed.com.br
Author: Alvemed
Author URI: https://alvemed.com.br
Description: Tema profissional para Alvemed - Equipamentos Hospitalares com Tecnologia e Confiança. Atendendo São Bernardo do Campo e todo o estado de São Paulo.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alvemed
Tags: one-page, medical, equipment, portuguese, landing-page
*/

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  color: #2c3e50;
  line-height: 1.6;
  background: #fff;
}

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

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

ul {
  list-style: none;
}

/* ===========================
   VARIABLES
=========================== */
:root {
  --blue-dark:   #1a3a5c;
  --blue-mid:    #1d6fa4;
  --blue-light:  #d6eaf8;
  --green:       #27ae60;
  --green-dark:  #1e8449;
  --green-light: #2ecc71;
  --gray-bg:     #f4f6f8;
  --gray-border: #dce3ea;
  --text-dark:   #1a2c3d;
  --text-mid:    #4a6278;
  --text-light:  #7f8c8d;
  --white:       #ffffff;
  --shadow:      0 4px 18px rgba(0,0,0,0.10);
  --radius:      6px;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-dark);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }

p {
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===========================
   LAYOUT HELPERS
=========================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  font-size: 1.7rem;
  color: var(--blue-dark);
  padding: 0 20px;
  position: relative;
}

.section-title h2::before,
.section-title h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: var(--blue-dark);
}

.section-title h2::before { right: 100%; }
.section-title h2::after  { left: 100%;  }

/* ===========================
   HEADER / NAV
=========================== */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--blue-dark);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav ul li a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color .2s;
}

.main-nav ul li a:hover {
  color: var(--blue-mid);
}

.nav-separator {
  color: var(--gray-border);
  font-size: 1.2rem;
}

.btn-cta-nav {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  transition: background .2s !important;
}

.btn-cta-nav:hover {
  background: var(--green-dark) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ===========================
   HERO SECTION
=========================== */
#hero {
  background: linear-gradient(120deg, #dbe9f5 0%, #eaf4fb 60%, #f0f8fe 100%);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  min-height: 480px;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.hero-content h1 strong {
  color: var(--blue-mid);
}

.hero-content .hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 28px;
}

/* Features row */
.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.hero-feature-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.hero-feature-icon img,
.hero-feature-icon svg {
  width: 26px;
  height: 26px;
}

/* Quote Form Card */
.hero-form-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px 28px 28px;
}

.hero-form-card h3 {
  color: var(--blue-dark);
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
}

.hero-form-card .form-field {
  margin-bottom: 14px;
}

.hero-form-card input,
.hero-form-card select {
  width: 100%;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color .2s;
  background: #fff;
}

.hero-form-card input::placeholder {
  color: var(--text-light);
}

.hero-form-card input:focus,
.hero-form-card select:focus {
  border-color: var(--blue-mid);
}

.hero-form-card select {
  appearance: none;
  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='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.btn-submit {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 13px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: 4px;
}

.btn-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ===========================
   TRUST / TESTIMONIALS
=========================== */
#testimonials {
  padding: 64px 0;
  background: var(--white);
}

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

.testimonial-card {
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform .2s, box-shadow .2s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.testimonial-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.testimonial-card .card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #dbeffe 0%, #bdd8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card .card-image-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.4;
}

.card-body {
  padding: 18px 20px 22px;
}

.card-body h3 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===========================
   CTA BANNER
=========================== */
#cta-banner {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  padding: 50px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
}

#cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  margin-bottom: 24px;
  position: relative;
}

.btn-cta-banner {
  display: inline-block;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 48px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
  position: relative;
}

.btn-cta-banner:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  color: var(--white);
}

/* ===========================
   FOOTER
=========================== */
#site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  padding: 40px 0 20px;
}

.footer-contacts {
  margin-bottom: 28px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-bg);
}

.footer-contact-item:last-child {
  border-bottom: none;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-mid);
  flex-shrink: 0;
}

.footer-contact-icon svg {
  width: 22px;
  height: 22px;
}

.footer-contact-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-contact-text a {
  color: var(--blue-mid);
  font-weight: 600;
}

.footer-contact-text a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
}

.social-links a:hover { opacity: 0.8; }

.social-links .fb  { background: #1877f2; }
.social-links .ig  { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
.social-links .wa  { background: #25d366; }

.social-links svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer-bottom a {
  color: var(--blue-mid);
}

/* ===========================
   WPCF7 / GRAVITY FORMS RESET
=========================== */
.wpcf7-form-control-wrap,
.wpcf7 .wpcf7-not-valid-tip,
.wpcf7-response-output {
  display: block;
  width: 100%;
}

.wpcf7-spinner { display: none; }

/* ===========================
   WIDGETS / CONTENT AREA
=========================== */
.site-content {
  padding: 60px 0;
}

.entry-content h1, .entry-content h2, .entry-content h3 { margin-bottom: 16px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 24px; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-form-card {
    max-width: 480px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    border-top: 1px solid var(--gray-border);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav-separator { display: none; }

  .nav-toggle { display: flex; }

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

  .section-title h2::before,
  .section-title h2::after {
    display: none;
  }

  .hero-features {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .hero-form-card {
    padding: 22px 18px;
  }

  #cta-banner {
    padding: 38px 16px;
  }

  .btn-cta-banner {
    padding: 13px 28px;
    font-size: 0.95rem;
  }
}
