/* ============================================
   River Trans Logis S.A.S. - Main Stylesheet
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary-navy: #0b2545;
  --gold-accent: #c5a059;
  --gold-variant: #f2990f;
  --white: #ffffff;
  --light-gray-text: #d1d5db;
  --body-gray: #6b7280;
  --light-gray-bg: #e5e7eb;
  --light-blue-gray: #b2bfcc;
  --max-width: 1440px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(11, 37, 69, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(11, 37, 69, 0.14);
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--body-gray); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Schibsted Grotesk', sans-serif; color: var(--primary-navy); line-height: 1.2; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.gold-label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-accent); margin-bottom: 12px; }
.section-heading { font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.section-subtitle { font-size: 17px; color: var(--body-gray); max-width: 640px; line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: all var(--transition); font-family: 'Inter', sans-serif; }
.btn-gold { background: var(--gold-accent); color: var(--primary-navy); }
.btn-gold:hover { background: #b8923e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-navy); }
.btn-outline-gold { background: transparent; color: var(--gold-accent); border: 2px solid var(--gold-accent); }
.btn-outline-gold:hover { background: var(--gold-accent); color: var(--primary-navy); }
.gold-link { color: var(--gold-accent); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.gold-link:hover { gap: 10px; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--light-gray-bg); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.header-logo img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--body-gray); position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--gold-accent); transition: width var(--transition); }
.nav-links a:hover { color: var(--primary-navy); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary-navy); font-weight: 700; }
.nav-links a.active::after { width: 100%; }
.header-cta .btn { padding: 10px 24px; font-size: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--primary-navy); border-radius: 2px; transition: var(--transition); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-navy); color: var(--light-gray-text); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-col h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-logo img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-col p { font-size: 14px; line-height: 1.7; color: var(--light-blue-gray); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--light-blue-gray); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-accent); }
.social-icons { display: flex; gap: 12px; margin-top: 16px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-accent); display: flex; align-items: center; justify-content: center; color: var(--primary-navy); font-size: 13px; font-weight: 700; transition: all var(--transition); }
.social-icon:hover { background: #b8923e; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--light-blue-gray); }

/* ---------- Hero Sections ---------- */
.hero { position: relative; background: var(--primary-navy); overflow: hidden; padding: 100px 0; }
.hero--home { min-height: 600px; display: flex; align-items: center; padding: 120px 0; }
.hero--home::before { content: ''; position: absolute; inset: 0; background: url('images/hero-bg.png') center/cover no-repeat; opacity: 0.3; }
.hero--home::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,37,69,0.92) 0%, rgba(11,37,69,0.7) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero-badge { display: inline-block; background: rgba(197,160,89,0.15); color: var(--gold-accent); font-size: 13px; font-weight: 600; padding: 8px 20px; border-radius: 30px; margin-bottom: 24px; letter-spacing: 1px; }
.hero h1 { color: var(--white); font-size: 52px; font-weight: 800; max-width: 700px; margin-bottom: 20px; line-height: 1.15; }
.hero p { color: var(--light-blue-gray); font-size: 17px; max-width: 560px; margin-bottom: 32px; line-height: 1.7; }
.hero--page { text-align: center; padding: 80px 0 60px; background: linear-gradient(135deg, var(--primary-navy) 0%, #13375e 100%); }
.hero--page h1 { margin: 0 auto 16px; }
.hero--page p { margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero--page .hero-buttons { justify-content: center; }

/* ---------- Home: Featured / Corporate Split ---------- */
.featured-section {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  min-height: 520px;
}
.featured-right {
  background: var(--primary-navy) url('images/camion6.png') center right / cover no-repeat;
  min-height: 520px;
}

/* ---------- Home: Corporate Section ---------- */
.corporate-section { background: var(--primary-navy); padding: 100px 0; }
.corporate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.corporate-content h2 { color: var(--white); font-size: 38px; font-weight: 800; margin-bottom: 20px; }
.corporate-content p { color: var(--light-blue-gray); font-size: 16px; line-height: 1.8; margin-bottom: 32px; }
.corporate-images { display: flex; flex-direction: column; gap: 16px; }
.corporate-images img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }

/* ---------- Home: Services Cards ---------- */
.services-section { padding: 100px 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: all var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.service-card-img { width: 100%; height: 220px; object-fit: cover; }
.service-card-body { padding: 28px; }
.service-card-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.service-card-body p { font-size: 15px; color: var(--body-gray); margin-bottom: 20px; line-height: 1.7; }

/* ---------- Home: Corporate Group ---------- */
.group-section { background: var(--primary-navy); padding: 80px 0; }
.carousel-wrapper { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.logo-card { background: var(--white); border-radius: var(--radius-md); padding: 24px 32px; display: flex; align-items: center; justify-content: center; min-width: 200px; height: 100px; box-shadow: var(--shadow-card); transition: transform var(--transition); }
.logo-card:hover { transform: scale(1.05); }
.logo-card img { max-height: 50px; max-width: 140px; object-fit: contain; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; }
.carousel-dot.active { background: var(--gold-accent); }

/* ---------- Home: Why Choose Us ---------- */
.why-section { padding: 100px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--primary-navy); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; transition: transform var(--transition); }
.why-card:hover { transform: translateY(-4px); }
.why-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(197,160,89,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 22px; }
.why-card h3 { color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.why-card p { color: var(--light-blue-gray); font-size: 14px; line-height: 1.7; }

/* ---------- About Page ---------- */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-wrapper { position: relative; }
.about-image-wrapper img { border-radius: var(--radius-lg); width: 100%; }
.experience-badge { position: absolute; bottom: 24px; left: 24px; background: var(--gold-accent); color: var(--primary-navy); padding: 16px 24px; border-radius: var(--radius-md); font-weight: 800; font-size: 15px; font-family: 'Schibsted Grotesk', sans-serif; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.about-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.about-content > p { font-size: 16px; line-height: 1.8; margin-bottom: 32px; }
.about-features { display: flex; flex-direction: column; gap: 16px; }
.about-feature { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--primary-navy); font-size: 15px; }
.about-feature-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(197,160,89,0.15); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }

/* ---------- Stats Section ---------- */
.stats-section { background: var(--primary-navy); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item h3 { color: var(--gold-accent); font-size: 44px; font-weight: 800; margin-bottom: 8px; }
.stat-item p { color: var(--light-blue-gray); font-size: 14px; }

/* ---------- Values Section ---------- */
.values-section { padding: 100px 0; }
.values-section .section-header { text-align: center; margin-bottom: 60px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { background: var(--white); border: 1px solid var(--light-gray-bg); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: all var(--transition); }
.value-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.value-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(197,160,89,0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 22px; }
.value-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--body-gray); line-height: 1.7; }

/* ---------- CTA Banner ---------- */
.cta-banner { background: var(--primary-navy); padding: 60px 0; text-align: center; }
.cta-banner h2 { color: var(--white); font-size: 32px; font-weight: 800; margin-bottom: 28px; }

/* ---------- Services Page Grid ---------- */
.services-page-grid { padding: 80px 0; }
.services-6-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-page-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: all var(--transition); }
.service-page-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.service-page-card .card-img { width: 100%; height: 200px; object-fit: cover; background: var(--light-gray-bg); }
.service-page-card .card-body { padding: 28px; }
.service-page-card .card-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-page-card .card-body p { font-size: 14px; color: var(--body-gray); line-height: 1.7; }

/* ---------- Specialized Services ---------- */
.specialized-section { background: var(--primary-navy); padding: 80px 0; }
.specialized-section .section-header { text-align: center; margin-bottom: 48px; }
.specialized-section h2 { color: var(--white); }
.specialized-section .section-subtitle { color: var(--light-blue-gray); margin: 0 auto; }
.specialized-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.specialized-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 36px; transition: all var(--transition); }
.specialized-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.specialized-card .card-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(197,160,89,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 20px; }
.specialized-card h3 { color: var(--white); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.specialized-card p { color: var(--light-blue-gray); font-size: 14px; line-height: 1.7; }

/* ---------- Coverage Page ---------- */
.map-section { padding: 80px 0; text-align: center; }
.map-section h2 { margin-bottom: 40px; }
.map-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin: 0 auto; max-width: 900px; }
.map-wrapper { width: 100%; height: 450px; overflow: hidden; border-radius: 16px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); background: #e9eef3; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }
.numbers-section { padding: 60px 0; background: var(--light-gray-bg); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.number-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px 24px; text-align: center; box-shadow: var(--shadow-card); }
.number-card h3 { font-size: 40px; font-weight: 800; color: var(--gold-accent); margin-bottom: 8px; }
.number-card p { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--primary-navy); }
.network-section { padding: 80px 0; }
.network-section .section-header { text-align: center; margin-bottom: 48px; }
.network-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.network-card { background: var(--white); border: 1px solid var(--light-gray-bg); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: all var(--transition); }
.network-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.network-card .card-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(197,160,89,0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 22px; }
.network-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.network-card p { font-size: 14px; color: var(--body-gray); line-height: 1.7; }

/* ---------- Contact Page ---------- */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-card { background: var(--primary-navy); border-radius: var(--radius-lg); padding: 48px 40px; color: var(--white); }
.contact-info-card h3 { color: var(--white); font-size: 24px; font-weight: 700; margin-bottom: 32px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.contact-detail-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(197,160,89,0.15); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.contact-detail-text p { font-size: 13px; color: var(--light-blue-gray); margin-bottom: 4px; }
.contact-detail-text a, .contact-detail-text span { font-size: 15px; color: var(--white); font-weight: 500; }
.contact-detail-text a:hover { color: var(--gold-accent); }
.contact-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px; box-shadow: var(--shadow-card); }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--primary-navy); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--light-gray-bg); border-radius: var(--radius-sm); font-size: 15px; font-family: 'Inter', sans-serif; color: var(--primary-navy); background: var(--white); transition: border-color var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold-accent); box-shadow: 0 0 0 3px rgba(197,160,89,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit-note { text-align: center; margin-top: 12px; font-size: 13px; color: var(--body-gray); }

/* ---------- Consentimientos (checkboxes legales) ---------- */
.consent-group { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.consent-item { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 400; font-size: 13px; line-height: 1.6; color: var(--body-gray); }
.consent-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--gold-accent); }
.consent-item a { color: var(--gold-accent); font-weight: 600; text-decoration: underline; }

/* ---------- Quote Page ---------- */
.quote-section { padding: 80px 0; background: var(--light-gray-bg); }
.quote-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px; max-width: 900px; margin: 0 auto; box-shadow: var(--shadow-card); }
.service-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.service-tag { padding: 8px 18px; border-radius: 30px; border: 1px solid var(--light-gray-bg); font-size: 13px; font-weight: 500; color: var(--body-gray); cursor: pointer; transition: all var(--transition); background: var(--white); }
.service-tag:hover, .service-tag.active { background: var(--gold-accent); color: var(--primary-navy); border-color: var(--gold-accent); font-weight: 600; }
.specialized-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.spec-tab { padding: 10px 22px; border-radius: var(--radius-sm); border: 1px solid var(--light-gray-bg); font-size: 13px; font-weight: 500; color: var(--body-gray); cursor: pointer; transition: all var(--transition); background: var(--white); }
.spec-tab:hover, .spec-tab.active { background: var(--primary-navy); color: var(--white); border-color: var(--primary-navy); }

/* ---------- Terms Page ---------- */
.terms-section { padding: 80px 0; }
.terms-content { max-width: 860px; margin: 0 auto; }
.accordion-item { border: 1px solid var(--light-gray-bg); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; transition: box-shadow var(--transition); }
.accordion-item:hover { box-shadow: var(--shadow-card); }
.accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; background: var(--white); transition: background var(--transition); }
.accordion-header:hover { background: #f9fafb; }
.accordion-header h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.accordion-number { width: 32px; height: 32px; border-radius: 50%; background: rgba(197,160,89,0.12); color: var(--gold-accent); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.accordion-toggle { font-size: 20px; color: var(--body-gray); transition: transform var(--transition); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-body-inner { padding: 0 24px 24px 68px; font-size: 15px; color: var(--body-gray); line-height: 1.8; }
.accordion-item.open .accordion-body { max-height: 600px; }
.accordion-item.open .accordion-toggle { transform: rotate(45deg); }

/* ---------- Animations ---------- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero h1 { font-size: 40px; }
  .section-heading { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .services-grid, .services-6-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .numbers-grid, .network-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .corporate-grid { grid-template-columns: 1fr; gap: 40px; }
  .specialized-grid, .contact-grid { grid-template-columns: 1fr; }
  .featured-section { grid-template-columns: 1fr; }
  .featured-right { min-height: 400px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--light-gray-bg); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero h1 { font-size: 32px; }
  .hero--home { padding: 80px 0; min-height: auto; }
  .section-heading { font-size: 28px; }
  .services-grid, .services-6-grid, .why-grid, .stats-grid, .numbers-grid, .network-grid, .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .quote-card { padding: 28px 20px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .map-wrapper { height: 350px; border-radius: 12px; }
  .featured-right { min-height: 300px; }
}