/* ==========================================================================
   MATCON BRASIL - Site em Construção
   Aesthetic: Ultra-Minimalist, Corporate, Premium Tech (Apple, Stripe, Linear)
   Palette: Dark Navy #0F2347 | Orange #F15A29 | Gray #F5F7FA | Dark #2F3545
   ========================================================================== */

/* 1. Google Fonts Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* 2. Custom CSS Variables */
:root {
  --color-primary-navy: #0F2347;
  --color-navy-light: #183569;
  --color-accent-orange: #F15A29;
  --color-orange-hover: #d84819;
  --color-orange-light: rgba(241, 90, 41, 0.08);
  --color-bg-white: #FFFFFF;
  --color-bg-gray: #F5F7FA;
  --color-text-dark: #2F3545;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;
  
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --transition-fast: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-sm: 0 2px 8px rgba(15, 35, 71, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 35, 71, 0.08);
  --shadow-orange: 0 10px 25px rgba(241, 90, 41, 0.25);
}

/* 3. Global CSS Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 4. Subtle Background Geometry */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 90, 41, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15vw;
  left: -10vw;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 35, 71, 0.025) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* 5. Main Screen Container (100vh Layout on Desktop) */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  height: 100vh;
  margin: 0 auto;
  padding: 1.75rem 2rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  animation: fadeIn 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 6. Header Section */
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}

.brand-logo {
  display: inline-block;
  height: 78px;
  transition: transform var(--transition-normal);
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent-orange);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: var(--color-accent-orange);
  opacity: 0.4;
  animation: pulse 2s infinite;
}

/* 7. Main Hero Content Grid (2 Columns) */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
  flex: 1;
  padding: 1rem 0;
  min-height: 0; /* flex overflow containment */
}

/* 8. Left Column Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--color-orange-light);
  border: 1px solid rgba(241, 90, 41, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 800;
  color: var(--color-primary-navy);
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.025rem;
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.025rem;
  font-weight: 600;
  color: var(--color-primary-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.hero-tagline::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: var(--color-accent-orange);
  border-radius: 1px;
}

/* 9. Action Buttons */
.button-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent-orange);
  color: var(--color-bg-white);
  border: 1px solid var(--color-accent-orange);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(241, 90, 41, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--color-primary-navy);
  color: var(--color-bg-white);
  border: 1px solid var(--color-primary-navy);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--color-navy-light);
  border-color: var(--color-navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

/* 10. Right Column Illustration */
.hero-illustration-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 680px;
  width: 100%;
  position: relative;
}

.hero-illustration {
  width: 100%;
  height: 100%;
  max-height: 660px;
  object-fit: contain;
  animation: floatIllustration 5s ease-in-out infinite;
}

/* 11. Contact Section (Bottom Horizontal Layout) */
.contact-section {
  width: 100%;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin-top: auto;
}

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

.contact-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.contact-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.contact-cards-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  justify-content: flex-end;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 1.15rem;
  background-color: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
}

.contact-card:hover {
  background-color: var(--color-bg-white);
  border-color: var(--color-accent-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-orange-light);
  color: var(--color-accent-orange);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.08);
  background-color: var(--color-accent-orange);
  color: var(--color-bg-white);
}

.contact-card-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
}

.contact-card-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-card-phone {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  line-height: 1.2;
}

/* 12. Footer Section */
.footer {
  width: 100%;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
  text-align: center;
}

.footer-text {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* 13. Animations & Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes floatIllustration {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* 14. Responsive Layout Breakpoints */

/* Laptops / Smaller Desktops (height or width constrained) */
@media (max-height: 720px) and (min-width: 1024px) {
  .page-wrapper {
    padding-top: 1.25rem;
    padding-bottom: 0.85rem;
  }
  .brand-logo {
    height: 70px;
  }
  .hero-title {
    font-size: 2.1rem;
    margin-bottom: 0.85rem;
  }
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  .hero-tagline {
    margin-bottom: 1.25rem;
  }
  .hero-illustration {
    max-height: 380px;
  }
}

/* Tablets & Mobile Devices (< 1024px) */
@media (max-width: 1023px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }

  .page-wrapper {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 0;
  }

  .hero-content {
    align-items: flex-start;
  }

  .hero-illustration-wrapper {
    max-height: 380px;
    order: 2; /* Illustration below text as requested */
  }

  .contact-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .contact-cards-group {
    width: 100%;
    justify-content: space-between;
  }
}

/* Mobile Devices (< 640px) */
@media (max-width: 639px) {
  .page-wrapper {
    padding: 1.25rem 1.15rem;
  }

  .brand-logo {
    height: 78px;
  }

  .header-status-pill {
    padding: 4px 10px;
    font-size: 0.675rem;
  }

  .hero-title {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }

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

  .button-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%; /* 100% width on mobile as requested */
    padding: 0.9rem 1.25rem;
  }

  .hero-illustration-wrapper {
    max-height: 300px;
  }

  .contact-cards-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .contact-card {
    width: 100%; /* Stacked contact cards on mobile */
  }
}
