/* ==========================================
   Jardins Íntegra - Landing Page Styles
   Color Palette: Branco (#FFFFFF) & Vermelho (#DC143C)
   ========================================== */

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

:root {
    /* Colors */
    --primary-white: #FFFFFF;
    --primary-red: #DC143C;
    --red-dark: #B22222;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --background-light: #F5F5F5;
    --border-light: #E0E0E0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #1f2937 0%, #334155 50%, #3f4d5b 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-medium);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 44px; /* Touch target size */
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--primary-white);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-primary:hover {
    background-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

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

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

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-white);
    box-shadow: 0 2px 10px var(--shadow-light);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar {
    padding: var(--spacing-md) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-red);
    background-color: rgba(220, 20, 60, 0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    position: relative;
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hero Section */
.hero {
    padding: 120px 0 var(--spacing-3xl);
    background-color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: calc(var(--font-size-5xl) + 1rem);
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.05;
    text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

.hero-subtitle {
    font-size: calc(var(--font-size-2xl) + 0.25rem);
    color: rgba(255,255,255,0.95);
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.82);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.logo-image {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: var(--spacing-3xl) 0;
    background-color: var(--primary-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background-color: var(--primary-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--primary-red);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--primary-red);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

.service-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    filter: invert(13%) sepia(81%) saturate(6424%) hue-rotate(342deg) brightness(92%) contrast(102%);
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
}

.service-description {
    color: #000;
    font-weight: 700;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: var(--spacing-3xl) 0;
    background-color: var(--primary-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info h3 {
    font-size: var(--font-size-2xl);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    color: var(--text-medium);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-red);
    flex-shrink: 0;
}

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

.contact-item div strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item div span {
    color: var(--text-medium);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

/* Contact Form */
.contact-form {
    background-color: var(--background-light);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    background-color: var(--primary-white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--primary-red);
}

.form-input.success,
.form-textarea.success {
    border-color: #28a745;
}

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

.error-message {
    display: block;
    color: var(--primary-red);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
    min-height: 16px;
}

.form-status {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    text-align: center;
    display: none;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--primary-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
}

.footer-subtitle {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--primary-white);
    text-decoration: none;
    transition: color var(--transition-fast);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--primary-white);
    opacity: 1;
}

/* Ensure footer copyright text is pure white */
.footer-bottom p {
    color: var(--primary-white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: var(--font-size-sm);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-white);
    border-top: 2px solid transparent;
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.3);
}

/* Print Styles */
@media print {
    .header,
    .hero-buttons,
    .contact-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Utility Text Colors */
.text-red { color: var(--primary-red); }

/* Quote Section */
.quote-section {
    padding: 3.5rem 0;
    background-color: var(--primary-white);
    color: inherit;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.quote-section::before {
    content: none;
}

.aristotle-quote {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.25rem 1.75rem;
    position: relative;
    z-index: 1;
    background-color: var(--primary-red);
    color: var(--primary-white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.aristotle-quote::before,
.aristotle-quote::after {
    content: '"';
    position: absolute;
    font-size: 6rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.aristotle-quote::before {
    top: -1.5rem;
    left: -1rem;
}

.aristotle-quote::after {
    bottom: -2rem;
    right: -0.5rem;
}

.quote-text {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    text-align: center;
    color: var(--primary-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.quote-author {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.95;
    color: var(--primary-white);
}

.quote-author b {
    color: #000;
    font-weight: 700;
}

@media (max-width: 768px) {
    .quote-section { padding: 3rem 0; }
    .quote-text { font-size: 1.25rem; padding: 0 1rem; }
}
/* Section title spacing */
.clients-section .section-title {
  margin-top: 20px;
}
/* Give clients section sufficient height for vertical centering */
.clients-section {
  min-height: 220px;
}
.clients-section {
  background-color: var(--background-light) !important;
  overflow: hidden !important;
}
.clients-marquee {
  overflow: hidden;
  position: relative;
}
.clients-track {
  display: inline-flex;
  width: max-content;
  gap: 20px;
  animation: clients-scroll 60s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }

/* Center clients marquee within section */
.clients-section .clients-marquee {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Ensure lists are inline rows within track */
.clients-list {
  display: inline-flex;
  gap: 20px;
  list-style: none;
  padding: var(--spacing-md) 0;
  margin: 0;
}

/* Visual style for pills */
.clients-list li {
  display: block;
  white-space: nowrap;
  margin: 20px 0;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--primary-red);
  color: var(--primary-white);
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px var(--shadow-light);
}

/* Accessibility: disable animation for users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

/* Keyframes: full width loop from 0 to -50% when duplicated */
@keyframes clients-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}