/*
Theme Name: BGE Service OÜ
Author: BGE Service OÜ
Description: Bilingual (EST/ENG) light theme for BGE Service OÜ — Electrical Installation, Shipbuilding HVAC & Piping, and TIG/MIG Welding.
Version: 1.0
*/

:root {
  --primary: #0f2942;
  --accent: #d97706;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #475569;
  --border: #e2e8f0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: var(--surface);
  color: var(--primary);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(15, 41, 66, 0.04);
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
}

.lang-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.hero,
.page-banner {
  background-size: cover;
  background-position: center;
  color: var(--primary);
  padding: 4.5rem 5%;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-banner {
  padding: 3.25rem 5%;
}

.hero h1 {
  font-size: 2.35rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.page-banner h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.hero p,
.page-banner p {
  max-width: 700px;
  margin: 0 auto 1.75rem;
  font-size: 1.12rem;
  color: var(--muted);
  font-weight: 500;
}

.page-banner p {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.92;
}

main {
  flex: 1;
  padding: 3rem 5%;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
}

h2 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 41, 66, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.feature-img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 41, 66, 0.06);
}

.info-list {
  list-style: none;
  margin-top: 0.75rem;
}

.info-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.info-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.info-list a:hover {
  color: var(--accent);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  background: var(--surface);
}

.notice-success {
  background: #dcfce7;
  color: #166534;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 600;
}

footer {
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  padding: 1.75rem 5%;
  font-size: 0.9rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
