/* Hanacorp - Mechanical Contractors */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --primary: #0077b6;
  --primary-light: #00a8e8;
  --primary-dark: #005f8a;
  --dark: #1a1a2e;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #f5f7fa;
  --border-gray: #e0e0e0;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  background: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  color: var(--medium-gray);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--primary);
  padding: 0.5rem 0;
}

.header-top .container {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.header-top a {
  color: var(--white);
  font-size: 0.85rem;
}

.header-top a:hover {
  color: var(--light-gray);
}

nav {
  padding: 1rem 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--dark-gray);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,119,182,0.8) 0%, rgba(26,26,46,0.9) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
  color: var(--white);
  padding: 4rem 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border-radius: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-light);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== INTRO SECTION ===== */
.intro-section {
  padding: 5rem 0;
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-content h2 {
  margin-bottom: 1.5rem;
}

.intro-content p {
  font-size: 1.1rem;
}

.intro-image img,
.intro-image video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 5rem 0;
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h4 {
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-card-image {
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 1.5rem;
}

.service-card-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  gap: 0.75rem;
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 4rem 0;
  background: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== MARKETS SECTION ===== */
.markets-section {
  padding: 5rem 0;
  background: var(--white);
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.market-card {
  position: relative;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
}

.market-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.market-card:hover img {
  transform: scale(1.1);
}

.market-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
}

.market-card:hover .market-card-overlay {
  background: linear-gradient(to top, rgba(0,119,182,0.9) 0%, rgba(0,119,182,0.5) 100%);
}

.market-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.market-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== FEATURED SECTION ===== */
.featured-section {
  padding: 5rem 0;
  background: var(--dark);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featured-content {
  color: var(--white);
}

.featured-content h4 {
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.featured-content h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.featured-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.featured-image img,
.featured-image video {
  width: 100%;
  border-radius: 8px;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
  padding: 4rem 0;
  background: var(--light-gray);
  border-top: 1px solid var(--border-gray);
}

.partners-header {
  text-align: center;
  margin-bottom: 2rem;
}

.partners-header h4 {
  color: var(--medium-gray);
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.partners-grid img {
  height: 50px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition);
}

.partners-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 6rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  padding: 5rem 0;
}

.content-section:nth-child(even) {
  background: var(--light-gray);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-grid.reverse .content-text {
  order: -1;
}

.content-image img,
.content-image video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.content-text h4 {
  margin-bottom: 1rem;
}

.content-text h2 {
  margin-bottom: 1.5rem;
}

.content-text ul {
  list-style: none;
  margin-top: 1.5rem;
}

.content-text ul li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--medium-gray);
  border-bottom: 1px solid var(--border-gray);
}

.content-text ul li:last-child {
  border-bottom: none;
}

.content-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* ===== ABOUT PAGE ===== */
.timeline-section {
  padding: 5rem 0;
  background: var(--light-gray);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-gray);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 100px;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-section h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-section ul a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255,255,255,0.6);
  font-size: 1.25rem;
}

.footer-social a:hover {
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .markets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .featured-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .mobile-menu {
    display: block;
    z-index: 1001;
  }

  .hero {
    min-height: 70vh;
  }

  .services-grid,
  .markets-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-grid.reverse .content-text {
    order: 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
