/* ============================================
   Nordic Automate — Style Sheet
   Palette: White, Black, Grey (Scandinavian minimal)
   Font: Manrope (Google Fonts)
   ============================================ */

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

:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --border: #E0E0E0;
  --accent: #2C2C2C;
  --accent-hover: #000000;
  --white: #FFFFFF;
  --footer-bg: #1A1A1A;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 56px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.lang-active {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lang-divider {
  font-size: 0.85rem;
  color: var(--border);
  font-weight: 300;
}

.lang-switch a {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.5;
}

.lang-switch a:hover {
  opacity: 1;
}

.lang-switch a::after {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.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 {
  padding-top: 72px; /* navbar height */
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 540px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--text);
  background: transparent;
}

/* Hero decorative pattern */
.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.04;
  background-image:
    linear-gradient(0deg, var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--bg);
}

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

.service-card {
  padding: 40px 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  border-color: #BDBDBD;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--text);
  stroke-width: 1.5;
  fill: none;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--bg-alt);
}

.about-content {
  max-width: 720px;
}

.about-content p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-content p:first-of-type {
  color: var(--text);
  font-size: 1.1rem;
}

.about-tags {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.about-tag {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ============================================
   TEAM
   ============================================ */
.team {
  background: var(--bg);
}

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

.team-card {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card .team-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-card .team-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--bg-alt);
}

.contact-details-centered {
  max-width: 480px;
}

.contact-details-centered .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-details-centered .contact-cta {
  margin-top: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  stroke-width: 1.5;
  fill: none;
}

.contact-item-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-item-text a {
  transition: opacity 0.2s;
}

.contact-item-text a:hover {
  opacity: 0.6;
}

.contact-cta {
  margin-top: 36px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
}

.footer-socials a:hover {
  opacity: 0.5;
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .section-padding {
    padding: 80px 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-padding {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}
