/* ==========================================
   ALFAVIGOR - SYSTEM STYLES & DESIGN TOKENS
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette based on AlfaVigor Design */
  --primary-yellow: #FFC107;
  --primary-yellow-dark: #F59E0B;
  --primary-yellow-light: #FFFBEB;
  --primary-yellow-accent: #FEF3C7;
  --navy-dark: #0B132B;
  --navy-blue: #0F2B5B;
  --navy-card: #151C33;
  --slate-dark: #1E293B;
  --slate-body: #475569;
  --slate-light: #64748B;
  --bg-light: #FAFAFC;
  --white: #FFFFFF;
  --border-light: #E2E8F0;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-yellow: 0 6px 20px rgba(255, 193, 7, 0.25);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--slate-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Header Utility */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-dark);
  line-height: 1.25;
}

.section-title.yellow {
  color: var(--primary-yellow-dark);
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--slate-light);
  margin-top: 6px;
}

/* ==========================================
   HEADER & NAVBAR
   ========================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-dark);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-yellow-dark);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-yellow-dark);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  color: var(--slate-dark);
}

/* ==========================================
   PAGE HERO (Sobre Nós, Serviços, Contactos)
   ========================================== */
.page-hero {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-blue));
  color: var(--white);
  text-align: center;
  padding: 20px 0;
}

/* ==========================================
   HERO SECTION (Sem margem topo, sem arredondamento)
   ========================================== */
.hero-section {
  padding: 0;
  margin: 0;
  background: none;
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
}

.hero-banner-container {
  position: relative;
  width: 100%;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  background: url('../assets/hero-solar.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(255, 193, 7, 0.22) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.hero-content-inside {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 48px 20px;
  max-width: 750px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================
   ÁREAS DE ATUAÇÃO SECTION
   ========================================== */
.atuacao-section {
  padding: 50px 0;
  background-color: var(--white);
  text-align: center;
}

.atuacao-header {
  max-width: 680px;
  margin: 0 auto 36px;
}

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

.service-card {
  background: var(--white);
  border: 1px solid #F1F5F9;
  border-top: 3px solid var(--primary-yellow);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #FDE047;
  border-top-color: var(--primary-yellow-dark);
}

.service-icon-box {
  width: 42px;
  height: 42px;
  background-color: var(--primary-yellow-light);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--primary-yellow-dark);
}

.service-icon-box svg {
  width: 22px;
  height: 22px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-yellow-dark);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--slate-light);
  line-height: 1.5;
}

/* ==========================================
   SOBRE NÓS SECTION
   ========================================== */
.sobre-section {
  padding: 50px 0;
  background-color: var(--bg-light);
}

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

.sobre-image-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sobre-image-container img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.sobre-content-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sobre-text {
  font-size: 0.95rem;
  color: var(--slate-body);
  line-height: 1.6;
}

.sobre-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.sobre-bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-dark);
}

.sobre-bullet-arrow {
  color: #F97316;
  font-weight: 900;
  font-size: 1.1rem;
}

/* ==========================================
   PORQUE ESCOLHER A ALFAVIGOR
   ========================================== */
.why-section {
  padding: 50px 0;
  background: linear-gradient(135deg, #FFC107 0%, #F59E0B 100%);
  color: var(--white);
  text-align: center;
}

.why-header {
  max-width: 680px;
  margin: 0 auto 36px;
}

.why-header .section-title {
  color: var(--white);
}

.why-header .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

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

.why-card {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: left;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.why-icon-box {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--white);
}

.why-icon-box svg {
  width: 20px;
  height: 20px;
}

.why-card-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.why-card-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

/* ==========================================
   CTA BANNER SECTION
   ========================================== */
.cta-section {
  padding: 45px 0;
  background-color: var(--white);
}

.cta-box {
  background-color: var(--primary-yellow-accent);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-yellow-dark);
  margin-bottom: 8px;
}

.cta-subtitle {
  font-size: 0.95rem;
  color: var(--slate-light);
  margin-bottom: 20px;
}

.btn-cta {
  display: inline-block;
  background-color: var(--primary-yellow-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-yellow);
  transition: var(--transition);
}

.btn-cta:hover {
  background-color: #D97706;
  transform: translateY(-2px);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
  padding: 50px 0;
  background-color: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.faq-left-side {
  position: sticky;
  top: 84px;
}

.badge-yellow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-yellow-dark);
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  cursor: pointer;
  padding: 10px 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--slate-dark);
  transition: var(--transition);
}

.accordion-header:hover {
  color: var(--primary-yellow-dark);
}

.accordion-icon {
  width: 18px;
  height: 18px;
  color: var(--slate-dark);
  transition: transform 0.25s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary-yellow-dark);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  font-size: 0.9rem;
  color: var(--slate-light);
  line-height: 1.5;
}

.accordion-item.open .accordion-content {
  max-height: 250px;
  padding-top: 6px;
}

/* ==========================================
   COUNTDOWN PROMO BANNER
   ========================================== */
.countdown-section {
  padding: 30px 0;
  background-color: var(--white);
  display: flex;
  justify-content: center;
}

.countdown-bar {
  background-color: var(--primary-yellow-dark);
  border-radius: var(--radius-md);
  padding: 10px 28px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.countdown-timer-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-box {
  background-color: var(--white);
  color: var(--slate-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.time-colon {
  color: var(--white);
  font-weight: 900;
  font-size: 1.2rem;
}

.countdown-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

/* ==========================================
   FALE CONNOSCO SECTION
   ========================================== */
.contact-section {
  padding: 50px 0;
  background-color: var(--white);
}

.contact-card-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-form-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-light);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #FAFAFC;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-yellow-dark);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.18);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  background-color: var(--primary-yellow);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
}

.btn-submit:hover {
  background-color: var(--primary-yellow-dark);
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-agent-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon-box {
  width: 38px;
  height: 38px;
  background-color: var(--primary-yellow-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-yellow-dark);
}

.contact-icon-box svg {
  width: 18px;
  height: 18px;
}

.contact-detail-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-dark);
}

.contact-detail-value {
  font-size: 0.88rem;
  color: var(--slate-light);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
  background: linear-gradient(180deg, #151728 0%, #0F121E 100%);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 12px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-yellow);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--slate-dark);
  font-size: 0.9rem;
}

.btn-newsletter {
  background-color: var(--primary-yellow);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-newsletter:hover {
  background-color: var(--primary-yellow-dark);
}

.social-icons-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  background-color: var(--primary-yellow);
  color: var(--navy-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--white);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   FLOATING ACTION BUTTONS
   ========================================== */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.floating-btn {
  width: 38px;
  height: 38px;
  background-color: var(--primary-yellow);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.floating-btn:hover {
  background-color: var(--primary-yellow-dark);
  transform: scale(1.06);
}

.floating-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {

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

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

  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .services-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .sobre-grid,
  .faq-grid,
  .contact-card-wrapper {
    grid-template-columns: 1fr;
  }

  .faq-left-side {
    position: static;
  }

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

  .countdown-bar {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
}