@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
  --primary-color: #2c3e50; /* Dark greyish blue */
  --secondary-color: #e74c3c; /* Red accent for buttons */
  --bg-color: #F4F7F6;
  --text-main: #333333;
  --text-muted: #666666;
  --white: #ffffff;
  --footer-bg: #1a252f;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --border-light: 1px solid rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease-in-out;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  padding-top: 80px; /* Space for fixed header */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800; /* Black/Bold */
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  opacity: 0.7;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav a {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-color);
}

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

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: 150px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(44, 62, 80, 0.7); /* Dark overlay */
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 4px; /* Material 1.0 rounded corners */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #c0392b;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--white);
  opacity: 1;
}

/* Generic Section */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.section-dark {
  background-color: var(--primary-color);
  color: var(--white);
}

.section-dark h2, .section-dark h3 {
  color: var(--white);
}

/* Background Image Section */
.bg-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.bg-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.bg-section .container {
  position: relative;
  z-index: 1;
}

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

/* Cards / Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 4px;
  border: var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  top: 0;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  top: -4px; /* Slight Z-axis offset */
}

.card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: #a0aab5;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #a0aab5;
}

.footer-col ul a:hover {
  color: var(--white);
}

/* Newsletter Subscription */
.subscribe-form {
  display: flex;
  margin-top: 15px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
}

.subscribe-form button {
  padding: 10px 20px;
  border: none;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
}

.subscribe-form button:hover {
  background-color: #c0392b;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-3, .grid-2, .footer-grid {
    grid-template-columns: 1fr;
  }
  .main-nav ul {
    display: none; /* In a real app, implement hamburger menu */
  }
  .hero h1 {
    font-size: 36px;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--footer-bg);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  font-family: 'Open Sans', sans-serif;
}
.cookie-content p {
  margin: 0;
  font-size: 14px;
}
.cookie-buttons {
  display: flex;
  gap: 10px;
}
.cookie-buttons .btn {
  padding: 8px 16px;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}
.btn-accept {
  background-color: var(--secondary-color);
  color: #fff;
}
.btn-accept:hover {
  background-color: #c0392b;
}
.btn-reject {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn-reject:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Lead Popup Overlay */
.lead-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.lead-popup {
  background-color: var(--white);
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  max-width: 450px;
  width: 90%;
  position: relative;
  text-align: center;
}
.lead-popup h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.lead-popup p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 25px;
}
.lead-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: var(--transition);
}
.lead-popup-close:hover {
  color: var(--secondary-color);
}
.lead-popup .form-group {
  margin-bottom: 15px;
  text-align: left;
}
.lead-popup input, .lead-popup select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  transition: var(--transition);
}
.lead-popup input:focus, .lead-popup select:focus {
  outline: none;
  border-color: var(--primary-color);
}
.lead-popup .btn-submit {
  width: 100%;
  padding: 12px;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  font-size: 16px;
  transition: var(--transition);
}
.lead-popup .btn-submit:hover {
  background-color: #c0392b;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
