/* 
   R-Assessoria-Adminis Redesign Style
   Design System & Styling Rules
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
  /* Colors */
  --color-primary: #101c36;      /* Deep Navy Blue */
  --color-secondary: #1e293b;    /* Slate Blue */
  --color-accent: #0284c7;       /* Bright Cyan Blue */
  --color-accent-hover: #0369a1; /* Darker Cyan Blue */
  --color-bg-light: #f8fafc;     /* Soft Light Grey */
  --color-bg-white: #ffffff;     /* Pure White */
  --color-text-main: #334155;    /* Slate Charcoal */
  --color-text-light: #64748b;   /* Slate Muted */
  --color-border: #e2e8f0;       /* Border Grey */
  
  /* Fonts */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout constraints */
  --header-height: 80px;
  --max-width: 1200px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}

section {
  padding: 100px 20px;
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 60px auto;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg-white);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--color-primary);
}.logo-icon {
  width: auto;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  background-color: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.3rem;
  margin-right: 12px;
  border: 2px solid var(--color-accent);
}
.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
}

.nav-link:hover {
  color: var(--color-accent);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 95vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(16, 28, 54, 0.85), rgba(16, 28, 54, 0.95)), url('../images/8a3e6d_653707d69ccc45c28d7b492446b093fc~mv2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: var(--color-bg-white);
  padding-top: var(--header-height);
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.hero-tag {
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: inline-block;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--color-bg-white);
  line-height: 1.15;
  margin-bottom: 25px;
  font-weight: 800;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* About Section */
.about {
  background-color: var(--color-bg-white);
}

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

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  object-fit: cover;
  height: 480px;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--color-accent);
  border-radius: 16px;
  z-index: -1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-main);
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

/* Services Section */
.services {
  background-color: var(--color-bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--color-bg-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--color-accent);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--color-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 900;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio {
  background-color: var(--color-bg-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background-color: var(--color-bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.portfolio-img-wrapper {
  overflow: hidden;
  height: 250px;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-img-wrapper img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 25px;
}

.portfolio-info h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.portfolio-info p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Clients Section */
.clients {
  background-color: var(--color-bg-light);
  padding: 80px 20px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.client-logo-wrapper {
  background-color: var(--color-bg-white);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: 140px;
  transition: var(--transition);
}

.client-logo-wrapper:hover {
  transform: scale(1.05);
  border-color: var(--color-accent);
}

.client-logo-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Contact Section */
.contact {
  background-color: var(--color-bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-detail-item {
  margin-bottom: 30px;
}

.contact-detail-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-item p {
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.contact-form-panel {
  background-color: var(--color-bg-light);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-secondary);
  background-color: var(--color-bg-white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

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

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 20px 30px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  color: var(--color-bg-white);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
}

.footer-social-icon img {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image img {
    height: 380px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }
  
  .header {
    height: 70px;
  }
  
  .hero {
    height: auto;
    padding: 120px 20px 80px 20px;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-bg-white);
    flex-direction: column;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--color-border);
    gap: 20px;
    align-items: center;
  }
  
  .nav.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* Mobile menu animation trigger */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Scroll Reveal Effects */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered delay for lists (like cards, grid items) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Interactive Buttons */
@keyframes btnPulse {
  0% { transform: translateY(-2px) scale(1); box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2); }
  100% { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4); }
}

.btn-primary:hover {
  animation: btnPulse 1s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(16, 28, 54, 0.2);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}
