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

:root {
  --red: #c12224;
  --red-dark: #a01d1f;
  --light-bg: #f6f9f8;
  --text: #111111;
  --muted: #555555;
  --white: #ffffff;
  --border: rgba(0,0,0,0.12);
  --font: Arial, Helvetica, sans-serif;
  --nav-height: 80px;
}

html { scroll-behavior: smooth; }

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

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

ul, ol { list-style: none; }

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

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

.container--narrow {
  max-width: 800px;
}

/* ========== Sections ========== */
.section {
  padding: 90px 0;
}

.section--light { background-color: var(--light-bg); }
.section--white { background-color: var(--white); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

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

.btn--primary {
  background-color: var(--red);
  color: var(--white);
}

.btn--primary:hover { background-color: var(--red-dark); }

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
}

.navbar__logo img { height: 40px; width: auto; }

.navbar__links {
  display: flex;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.navbar__links a:hover { color: var(--red); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

/* ========== Hero ========== */
.hero {
  margin-top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.40), rgba(0,0,0,0.78));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  color: var(--white);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero__desc {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.7;
}

/* ========== European Engineering (split) ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.split__text-side {
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 60px;
}

.split__card {
  background: var(--red);
  border-radius: 16px;
  padding: 48px;
  color: var(--white);
}

.split__card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.split__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.45);
  margin: 1.25rem 0;
}

.split__card p {
  font-size: 0.95rem;
  color: rgba(246,249,248,0.92);
  line-height: 1.75;
  margin-top: 0.75rem;
}

.split__image {
  background-size: cover;
  background-position: center;
}

/* ========== Offerings ========== */
.offerings {
  max-width: 780px;
  margin: 0 auto;
}

.offering {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.offering:last-child { border-bottom: none; }

.offering h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.offering ul {
  list-style: disc;
  padding-left: 1.4rem;
}

.offering li {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* ========== Tech Numbers ========== */
.tech-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.tech-text p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.tech-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ========== Prose (Energy section) ========== */
.prose {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

.prose h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.6rem;
}

.prose p { margin-bottom: 1rem; }

.prose ul, .prose ol {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.prose ol { list-style: decimal; }

.prose li { margin-bottom: 0.4rem; }

/* ========== Projects ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--light-bg);
  border-radius: 16px;
  overflow: hidden;
}

.project-card__image {
  width: 100%;
  padding-bottom: 115%;
  background-size: cover;
  background-position: center;
}

.project-card__body {
  padding: 20px;
}

.project-card__year {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.project-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ========== Sustainability ========== */
.sustainability-list {
  max-width: 780px;
  margin: 0 auto;
}

.sustainability-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.sustainability-item:last-child { border-bottom: none; }

.sustainability-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.sustainability-item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ========== Contact ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}

.contact-info__desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: opacity 0.2s;
}

.social-links a:hover { opacity: 0.75; }

/* ========== Contact Form ========== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #000;
  border-radius: 13px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group select {
  appearance: auto;
}

.form-group textarea {
  resize: vertical;
  min-height: 108px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-note {
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.25rem;
}

/* ========== Footer ========== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 36px 40px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer__links { display: flex; gap: 24px; }

.footer__links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--red); }

.footer__scroll-top {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.footer__scroll-top:hover { color: var(--red); }

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .navbar { padding: 0 20px; }

  .navbar__toggle { display: flex; }

  .navbar__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  }

  .navbar__links.is-open { display: flex; }

  .navbar__links a {
    display: block;
    padding: 13px 24px;
  }

  .split { grid-template-columns: 1fr; }
  .split__text-side { padding: 40px 24px; }
  .split__image { height: 300px; order: -1; }

  .tech-layout { grid-template-columns: 1fr; gap: 40px; }

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

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .footer__inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer__links { justify-content: center; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .section-desc { margin-bottom: 2rem; }
  .split__card { padding: 32px 24px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer { padding: 28px 20px; }
}

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