/* ============================================
   GALLER BAU — Style
   Dark green theme inspired by Galler Bau logo
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  --bg-primary: #1a2418;
  --bg-secondary: #1e2d1a;
  --bg-deep: #0f160e;
  --accent: #4A8C3F;
  --accent-hover: #3D7534;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #8a9a7e;
  --card-bg: #1e2b1c;
  --card-border: #2e3d2a;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --nav-height: 100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise grain overlay for texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 400; /* Bebas Neue only has one weight */
  line-height: 1.1;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  font-weight: 300;
}

/* --- Section Shared --- */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Angled section divider */
.section--angled::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background-color: rgba(15, 22, 14, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__logo-img {
  height: 80px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav__hamburger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(15, 22, 14, 0.4) 0%, rgba(26, 36, 24, 0.85) 70%, var(--bg-primary) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&q=80');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero__title {
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 3px;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 140, 63, 0.3);
}

/* Decorative accent line */
.hero__accent {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}

.hero__accent span {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__accent::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* --- Services --- */
.services {
  background-color: var(--bg-secondary);
}

.services__header {
  text-align: center;
  margin-bottom: 4rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Scroll animation */
  opacity: 0;
  transform: translateY(30px);
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 140, 63, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(74, 140, 63, 0.05);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.service-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* --- About --- */
.about {
  background-color: var(--bg-primary);
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about__content {
  flex: 1;
}

.about__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
}

.about__text + .about__text {
  margin-top: 1rem;
}

.about__stats {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__stat {
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Contact --- */
.contact {
  background-color: var(--bg-secondary);
}

.contact__inner {
  max-width: 600px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact__info-icon {
  width: 44px;
  height: 44px;
  background: rgba(74, 140, 63, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__info-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__info-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__info-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
}


/* --- Footer --- */
.footer {
  background: var(--bg-deep);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

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

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__inner {
    flex-direction: column;
  }

  .about__stats {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-deep);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav__links--open {
    right: 0;
  }

  .nav__logo-img {
    height: 45px;
  }

  .nav__hamburger {
    display: flex;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }


  .section {
    padding: 4rem 1.5rem;
  }

  .hero__title {
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .about__stats {
    flex-direction: column;
    width: 100%;
  }

  .about__stat {
    width: 100%;
  }
}
