/* ============================================
   Autorola Group Website - Brand Stylesheet
   Font: IBM Plex Sans (Google Fonts)
   Colors: Group Red #D10000, Burgundy #92003A
   Design brief: Light, bright, airy. No bold.
   Use Medium for emphasis, Light for headings.
   No all-caps in full words. Less is more.
   ============================================ */

:root {
  /* Primary */
  --group-red: #D10000;
  --burgundy: #92003A;
  /* Business Units */
  --marketplace-orange: #FF5A00;
  --solutions-blue: #00389B;
  --alpine-blue: #0061E5;
  --indicata-blue: #228CFF;
  --icy-blue: #00C8FF;
  /* Neutrals */
  --dark-grey: #646464;
  --medium-grey: #959595;
  --light-grey: #D2D2D2;
  --off-white: #f7f7f5;
  --beige: #E6DFCD;
  --white: #FFFFFF;
  --black: #111111;
  /* Gradients */
  --gradient-group: linear-gradient(135deg, var(--group-red), var(--burgundy));
  --gradient-marketplace: linear-gradient(135deg, var(--marketplace-orange), var(--group-red));
  --gradient-solutions: linear-gradient(135deg, var(--solutions-blue), var(--alpine-blue));
  --gradient-indicata: linear-gradient(135deg, var(--indicata-blue), var(--icy-blue));
  /* Spacing — generous whitespace per brief */
  --section-padding: 96px 0;
  --container-width: 1200px;
  --header-height: 80px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-weight: 300;
  color: var(--black);
  line-height: 1.6;
  background: var(--white);
}

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

a {
  color: var(--group-red);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--burgundy);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.2;
  color: var(--black);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

p {
  color: var(--dark-grey);
  margin-bottom: 1rem;
  font-weight: 300;
}

/* Accent word in headings — per brief: pick a relevant word, make it red */
.accent { color: var(--group-red); }

/* FontAwesome Light icon styling — inline SVGs render with currentColor or need filter */
.fa-icon,
.fa-icon-lg {
  display: inline-block;
  vertical-align: middle;
  /* Red tint via CSS filter to match Autorola Group Red #D10000 */
  filter: invert(10%) sepia(95%) saturate(6000%) hue-rotate(360deg) brightness(85%) contrast(115%);
}

.fa-icon {
  width: 40px;
  height: 40px;
}

.fa-icon-lg {
  width: 48px;
  height: 48px;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 28px 16px;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: var(--group-red);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-top: 3px solid var(--group-red);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  list-style: none;
  padding: 8px 0;
}

.main-nav > ul > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 24px;
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 400;
  transition: all 0.15s;
}

.dropdown li a:hover {
  background: #f8f8f8;
  color: var(--group-red);
  padding-left: 28px;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 300;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-small {
  min-height: 350px;
}

.hero-small h1 {
  font-size: 2.75rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--group-red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--burgundy);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--group-red);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--group-red);
  color: var(--group-red);
}

.btn-outline-dark:hover {
  background: var(--group-red);
  color: var(--white);
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
}

.section-grey {
  background: var(--off-white);
}

.section-gradient {
  background: var(--gradient-group);
}

.section-gradient h2,
.section-gradient h3,
.section-gradient p {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.card h3 {
  font-weight: 400;
  margin-bottom: 0.5rem;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--group-red);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: var(--dark-grey);
}

/* ===== SWEETSPOT ===== */
.sweetspot-image {
  max-width: 400px;
  margin: 0 auto 2rem;
}

.sweetspot-image img {
  width: 100%;
  height: auto;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-grey);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--group-red);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--group-red);
}

.timeline-item:nth-child(odd)::before {
  right: -8px;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--group-red);
  margin-bottom: 0.25rem;
}

/* ===== QUOTE ===== */
.quote-block {
  border-left: 4px solid var(--group-red);
  padding: 24px 32px;
  margin: 2rem 0;
  background: #fafafa;
  border-radius: 0 8px 8px 0;
}

.quote-block p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.quote-block cite {
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500;
  color: var(--group-red);
}

/* ===== AWARDS ===== */
.award-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-grey);
}

.award-year {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--group-red);
  min-width: 60px;
}

/* ===== ESG ===== */
.esg-pillar {
  padding: 32px;
  border-radius: 8px;
  border-top: 4px solid var(--group-red);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.esg-pillar h3 {
  font-weight: 400;
  color: var(--group-red);
}

/* ===== CONTACT ===== */
.contact-card {
  padding: 32px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
}

.contact-card h3 {
  font-weight: 400;
  color: var(--group-red);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem;
}

/* ===== TBD PLACEHOLDER ===== */
.tbd-section {
  padding: 120px 0;
  text-align: center;
  background: #f7f7f7;
}

.tbd-badge {
  display: inline-block;
  padding: 12px 40px;
  background: var(--light-grey);
  color: var(--dark-grey);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.tbd-section p {
  font-size: 1rem;
  color: var(--medium-grey);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--white);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-logo img {
  height: 32px;
  margin-bottom: 16px;
}

.footer-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ===== NEWS / KNOWLEDGE HUB ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.news-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 3px;
  background: rgba(209,0,0,0.08);
  color: var(--group-red);
}

.news-tag.tag-esg { background: rgba(76,175,80,0.1); color: #2E7D32; }
.news-tag.tag-tech { background: rgba(0,56,155,0.1); color: var(--solutions-blue); }
.news-tag.tag-market { background: rgba(34,140,255,0.1); color: var(--indicata-blue); }

.news-date {
  font-size: 0.8rem;
  color: var(--medium-grey);
}

.news-card-body h3 {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.news-card-body h3 a {
  color: var(--black);
}

.news-card-body h3 a:hover {
  color: var(--group-red);
}

.news-card-body p {
  font-size: 0.9rem;
  flex: 1;
}

.news-card-body .read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--group-red);
  margin-top: auto;
  padding-top: 12px;
}

.news-card-body .read-more:hover {
  color: var(--burgundy);
}

/* Featured news (full width) */
.news-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 48px;
}

.news-featured-img {
  min-height: 360px;
  background-size: cover;
  background-position: center;
}

.news-featured-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured-body h2 {
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.news-featured-body h2 a {
  color: var(--black);
}

.news-featured-body h2 a:hover {
  color: var(--group-red);
}

/* Article page */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-grey);
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 2.5rem 0 1rem;
  color: var(--black);
}

.article-body h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
  color: var(--black);
}

.article-body p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.article-body ul {
  padding-left: 20px;
  margin-bottom: 1.25rem;
  color: var(--dark-grey);
}

.article-body ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body .highlight-box {
  background: #f7f7f7;
  border-left: 4px solid var(--group-red);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.article-body .highlight-box p {
  margin-bottom: 0.5rem;
  color: var(--black);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--group-red);
  margin-bottom: 2rem;
}

.article-back:hover {
  color: var(--burgundy);
}

.article-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-grey);
  text-align: center;
}

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-img { min-height: 220px; }
  .news-featured-body { padding: 28px 24px; }
  .article-header h1 { font-size: 1.75rem; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px 0;
    --header-height: 64px;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero { min-height: 450px; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Mobile nav */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav > ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-nav > ul > li > a {
    padding: 16px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--light-grey);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .dropdown.mobile-open {
    display: block;
  }

  .hamburger {
    display: block;
  }

  /* Timeline mobile */
  .timeline::before {
    left: 8px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 36px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 0;
    right: auto;
  }
}
