@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

/* Modern Reset and Variables */
:root {
  --primary: #013989; /* ATCO Official Dark Blue */
  --secondary: #20A2D5;
  --accent-yellow: #f1b209;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --bg-gray: #f5f5f5;
  --text-dark: #171717;
  --text-muted: #525252;
  --border-color: #e5e5e5;
  --font-family: 'Exo 2', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 6px rgba(32, 162, 213, 0.2);
}

.btn-primary:hover {
  background-color: #1a8ab8;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(32, 162, 213, 0.3);
}

/* Header */
header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo img {
  height: 60px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav li {
  position: relative;
}

nav a {
  font-weight: 600;
  font-size: 0.95rem; /* slightly increased since uppercase is removed */
  display: block;
  padding: 10px 0;
}

nav a:hover {
  color: var(--primary);
}

/* Dropdown Menu CSS */
nav .has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: middle;
  margin-top: -4px;
  transition: transform 0.3s ease;
}

nav .has-dropdown:hover > a::after {
  transform: rotate(225deg);
  margin-top: 2px;
}

nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: block; /* override flex from nav ul */
  gap: 0;
  padding: 10px 0;
  border-radius: 4px;
}

nav .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav .dropdown li {
  width: 100%;
}

nav .dropdown a {
  padding: 10px 20px;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

nav .dropdown a:hover {
  background-color: var(--bg-gray);
  color: var(--primary);
}

/* Hero Divisions */
.hero-divisions {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .hero-divisions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-divisions {
    grid-template-columns: repeat(4, 1fr);
  }
}

.division-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  min-height: 38em;
  text-decoration: none;
}

/* Background image div — zooms on hover */
.division-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.6s ease;
}

.division-card:hover .division-bg-img {
  transform: scale(1.07);
}

/* Blue overlay */
.division-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(1, 57, 137, 0.8);
  transition: background-color 0.4s ease;
  z-index: 1;
}

.division-card:hover .division-overlay {
  background-color: rgba(1, 57, 137, 0); /* Make image properly visible on hover */
}

/* Normal state: title shown at bottom in white */
.division-title-bar {
  position: relative;
  z-index: 2;
  padding: 30px 40px 40px;
  color: #fff;
  transition: opacity 0.25s ease;
}

.division-title-bar h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.division-card:hover .division-title-bar {
  opacity: 0;
  pointer-events: none;
}

/* Hover state: white panel at the bottom left */
.division-hover-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 75%;
  max-width: calc(100% - 60px); /* Ensure there's space for the arrow outside */
  background: #fff;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.division-card:hover .division-hover-panel {
  opacity: 1;
  transform: translateY(0);
}

.division-hover-inner {
  padding: 35px 35px 35px 35px; /* Removed extra bottom padding since arrow is outside */
}

.division-hover-panel h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #171717;
  line-height: 1.3;
  margin-bottom: 12px;
}

.division-hover-panel p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #525252;
}

/* Yellow arrow — absolutely positioned OUTSIDE at bottom right of the white panel */
.division-arrow {
  position: absolute;
  bottom: 0;
  right: -60px; /* Positioned outside the right edge */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #f1b209;
  color: #fff; /* White arrow */
  font-size: 1.8rem;
  font-weight: 400;
}

/* Sections */
.checker-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

/* About Section */
.about-section {
  position: relative;
  overflow: hidden;
  text-align: left;
}

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

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
  }
}

.about-content {
  position: relative;
  padding: 40px 0;
}

.about-watermark {
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  font-size: 8rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.08);
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.about-content h1 {
  position: relative;
  z-index: 1;
  font-size: 2.8rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
}

.about-content p {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.btn-yellow {
  background-color: var(--accent-yellow);
  color: #000;
  font-weight: 700;
  text-transform: none;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 0; /* Boxy look like the screenshot */
  position: relative;
  z-index: 1;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-yellow:hover {
  background-color: #d99f05;
  color: #000;
}

.about-map {
  text-align: center;
}

.global-presence-title {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-family: Georgia, 'Times New Roman', Times, serif;
  letter-spacing: 1px;
}

.about-map img {
  max-width: 100%;
  height: auto;
}

/* History & Join Us Section */
.image-blocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .image-blocks-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.image-block-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  background-color: var(--bg-gray);
}

.image-block-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

/* Dark transparent bar across the bottom */
.image-block-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(1, 57, 137, 0.6); /* ATCO dark blue with transparency */
  display: flex;
  align-items: center;
}

/* Solid blue box for the title */
.image-block-title {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0073B9; /* Solid lighter blue */
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0 40px;
  min-width: 160px;
}

/* Manufacturing Section */
.manufacturing-section {
  position: relative;
  background-color: var(--bg-white);
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.manufacturing-grid {
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .manufacturing-grid {
    flex-direction: row;
    align-items: stretch;
  }
}

.manufacturing-image {
  flex: 0 0 50%;
}

.manufacturing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
}

.manufacturing-content-wrapper {
  flex: 0 0 50%;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .manufacturing-content-wrapper {
    padding: 80px 8%;
  }
}

.manufacturing-content {
  max-width: 500px;
}

.m-subheading-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.m-subheading-bg {
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  background-color: var(--accent-yellow);
  z-index: 0;
}

.m-subheading-text {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.manufacturing-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #000;
  line-height: 1.2;
  margin-bottom: 30px;
}

.m-see-more {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.m-see-more::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-yellow);
  transition: width 0.3s ease;
}

.m-see-more:hover::after {
  width: 50%; /* Just a nice hover effect */
}

.m-right-blue-block {
  display: none;
}

@media (min-width: 992px) {
  .m-right-blue-block {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 6vw; /* Exact size relative to screen width */
    height: 100%;
    background-color: var(--primary);
  }
}

/* Quote Section */
.quote-section {
  color: white;
  padding: 100px 0; /* Slightly larger padding for better parallax effect */
  background-image: url('../img/cover.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Fixed background on scroll */
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1, 57, 137, 0.85); /* ATCO Blue overlay so text is readable */
  z-index: -1;
}

.quote-section .container {
  position: relative;
  z-index: 2;
}

.quote-icon {
  font-size: 2.5rem; /* Reduced icon size */
  opacity: 0.2;
  margin-bottom: 15px;
}

.quote-text {
  font-size: 0.85rem; /* Significantly reduced font size */
  font-style: normal;
  font-weight: 400;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

@media (min-width: 768px) {
  .quote-text {
    font-size: 1.75rem;
  }
}

.quote-author {
  font-weight: 700;
  font-size: 1rem; /* Reduced */
  margin-bottom: 5px;
}

.quote-title {
  font-size: 0.8rem; /* Reduced */
  opacity: 0.8;
  margin-top: 5px;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-number {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 800;
}

.stats-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.stats-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background-color: #111;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.7;
}
