/* 
  Madri Toldos - Design System 
  Professional Corporate Redesign (Based on References)
*/

:root {
  /* Colors - Reference Based (Navy, Red, White) */
  --navy: #1C2B45;
  --red: #D9232A;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --dark-gray: #333333;
  --border-color: #E0E0E0;
  
  /* UI Tokens */
  --bg-primary: var(--white);
  --bg-secondary: var(--light-gray);
  --accent: var(--red);
  --text-main: var(--navy);
  --text-body: #4F4F4F;
  --text-light: #828282;
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Top Bar --- */
.top-bar {
  background-color: var(--navy);
  color: white;
  padding: 10px 5%;
  font-size: 0.8rem;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.top-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}

/* --- Header --- */
header {
  background: white;
  padding: 20px 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -1px;
  line-height: 1;
}

.logo span {
  font-weight: 400;
  color: var(--red);
  font-size: 0.7rem;
  letter-spacing: 4px;
  display: block;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--red);
}

.btn-cta {
  background: var(--red);
  color: white !important;
  padding: 12px 25px;
  transition: background 0.3s;
}

.btn-cta:hover {
  background: #bd1d23;
}

/* --- Hero Section (Centered / Split) --- */
#hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(28, 43, 69, 0.4), rgba(28, 43, 69, 0.4)), 
              url('assets/hero.png');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5%;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: white;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-primary {
  background: var(--red);
  color: white;
  padding: 20px 40px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #bd1d23;
}

/* --- Authority Section --- */
.authority-bar {
  background: var(--light-gray);
  padding: 50px 0;
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 5px;
}

.stat-item p {
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* --- Solutions Section --- */
#solucoes {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 50px;
  height: 4px;
  background: var(--red);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.solution-card {
  background: white;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.solution-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-img {
  height: 250px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.solution-card:hover .card-img img {
  transform: scale(1.1);
}

.card-body {
  padding: 30px;
}

.card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.card-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
footer {
  background: var(--navy);
  color: white;
  padding: 80px 5% 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo .logo { color: white; margin-bottom: 20px; }
.footer-logo p { opacity: 0.7; font-size: 0.9rem; }

.footer-col h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1rem;
  border-left: 3px solid var(--red);
  padding-left: 15px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .top-bar { display: none; }
}

@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--border-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item.large {
  grid-column: span 2;
  height: 620px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.large {
    grid-column: span 1;
    height: 300px;
  }
}

/* --- Contact Form & Layout --- */
.contact-wrapper {
  display: flex;
  gap: 80px;
  margin-top: 50px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1.5;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: white;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--navy);
}

.form-group input, .form-group textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  padding: 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--red);
}

@media (max-width: 1024px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  .contact-form {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}
