/* fonts.css - Add this to all pages in <head> */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Base font size for rem calculations */
  --base-font-size: 16px;
  
  /* Font stacks */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 
                 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 
                 'Open Sans', 'Helvetica Neue', sans-serif;
  
  /* Colors */
  --primary-color: #F5A952;
  --text-color: #333;
  --heading-color: #2c3e50;
  --secondary-text: #555;
  --white: #fff;
  --off-white: #FAF9F6;
  --footer-text: #fff;
  --border-color: rgba(255, 255, 255, 0.2);
}

/* General Styles */
body {
  font-family: var(--font-primary);
  font-size: var(--base-font-size);
  line-height: 1.6;
  color: var(--text-color);
  padding: 0;
  margin: 0;
}

/* Responsive Typography Scale */
h1, .interactive-heading {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.2;
  color: var(--heading-color);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.3;
  color: var(--heading-color);
}

h3 {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  line-height: 1.4;
}

p, li, a {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
}

.small-text {
  font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Header Section */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(15px, 3vw, 20px);
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: clamp(70px, 10vw, 100px);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: var(--text-color);
  padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 20px);
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 160px;
  z-index: 1;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.dropdown-content a {
  padding: 12px 16px;
  color: var(--text-color);
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Template Section */
.template-section {
  padding: clamp(40px, 6vw, 60px) clamp(15px, 3vw, 20px);
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Colors */
#roadway-to-safety,
#operating-and-organisation-model-synergy,
#profitability-case-study {
  background-color: var(--white);
}

#digitization,
#workforce-productivity {
  background-color: var(--off-white);
}

/* Interactive Heading */
.interactive-heading {
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
  text-align: center;
  width: 100%;
  margin-bottom: clamp(15px, 3vw, 20px);
}

.interactive-heading::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.interactive-heading:hover {
  color: var(--primary-color);
}

.interactive-heading:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Section Content */
.section-paragraph {
  color: var(--secondary-text);
  line-height: 1.8;
  margin-bottom: clamp(25px, 5vw, 40px);
  text-align: justify;
}

.section-image {
  width: 100%;
  margin: clamp(15px, 3vw, 20px) 0;
  overflow: hidden;
  border-radius: clamp(8px, 1.5vw, 10px);
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.section-image:hover img {
  transform: scale(1.02);
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: var(--footer-text);
  padding: clamp(30px, 5vw, 40px) clamp(15px, 3vw, 20px);
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: clamp(15px, 3vw, 20px);
  margin-bottom: clamp(15px, 3vw, 20px);
}

.footer-section {
  max-width: 300px;
  text-align: left;
}

.footer-section h3 {
  margin-bottom: clamp(10px, 2vw, 15px);
}

.footer-section p {
  margin: clamp(3px, 0.8vw, 5px) 0;
}

.footer-section a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: clamp(10px, 2vw, 15px);
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons img {
  width: clamp(25px, 5vw, 30px);
  height: clamp(25px, 5vw, 30px);
}

.footer-bottom {
  margin-top: clamp(15px, 3vw, 20px);
  border-top: 1px solid var(--border-color);
  padding-top: clamp(10px, 2vw, 15px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 110px;
    left: 0;
    width: 100%;
    background-color: var(--white);
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    text-align: center;
  }

  nav ul li a {
    padding: clamp(12px, 3vw, 15px);
  }

  h1, .interactive-heading {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.1rem;
  }
  
  h3 {
    font-size: 1rem;
  }
  
  p, li, a {
    font-size: 0.7rem;
  }

  .dropdown-content {
    position: static;
  }

  .footer-section {
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --base-font-size: 14px;
  }
  
  h1, .interactive-heading {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.1rem;
  }
  
  h3 {
    font-size: 1rem;
  }
  
  p, li, a {
    font-size: 0.7rem;
  }
  
  .template-section {
    padding: clamp(30px, 5vw, 40px) clamp(10px, 2vw, 15px);
  }
}

@media (min-width: 1600px) {
  :root {
    --base-font-size: 18px;
  }
}