/*
 * CAIAC brand styles for pillar page templates
 *
 * This stylesheet defines design variables and component styles that
 * mirror the visual identity of the CAIAC landing page. Use this
 * single file across all templates to ensure consistent spacing,
 * typography and colour usage. The palette is derived from the
 * original site: green for primary actions, yellow for highlights,
 * neutral greys for backgrounds and dark grey for copy. A
 * responsive layout is provided via flexible containers and
 * media queries.
 */

:root {
  /* Primary brand colours */
  --green: #00b45a;
  --yellow: #ffdc6e;
  --white: #ffffff;
  --gray-dark: #333333;
  --gray-light: #f7f7f7;
  /* Typography */
  --font-family: 'Montserrat', sans-serif;
}

/* Global resets */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Navigation bar */
.navbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  position: sticky;
  top: 0;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar .logo img {
  height: 30px;
}

.navbar .logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.navbar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.navbar nav ul li a {
  color: var(--gray-dark);
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
  color: var(--green);
}

.navbar .languages {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.navbar .languages a {
  font-weight: 600;
  color: var(--gray-dark);
}

.navbar .languages a:hover {
  color: var(--green);
}

/* Language selector replacement */
.language-select-wrapper select {
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--gray-dark);
  cursor: pointer;
  padding: 5px 10px;
}

.language-select-wrapper select:focus {
  outline: none;
}

/* Hero / Banner section with background image */
.banner {
  position: relative;
  min-height: 350px;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

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

.banner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--white);
}

.banner h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
}

/* Generic content container */
.content {
  padding: 10px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.content h1 {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 20px;
}

.content h2 {
  font-size: 1.5rem;
  color: var(--green);
  margin-top: 40px;
  margin-bottom: 15px;
}

.content p {
  margin-bottom: 10px;
}

/* One image alongside text */
.text-image {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin: 10px 0;
}

.text-image img {
  flex: 1 1 40%;
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.text-image .text {
  flex: 1 1 55%;
}

/* Two stacked images alongside text */
.text-two-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
  align-items: flex-start;
}

.text-two-images .images {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-two-images .images img {
  width: 100%;
  border-radius: 8px;
}

.text-two-images .text {
  flex: 1 1 55%;
}

/* Blockquote styling */
blockquote {
  border-left: 4px solid var(--yellow);
  padding-left: 16px;
  font-style: italic;
  margin: 20px 0;
  color: #555;
}

/* Cases / Cards section */
.cases {
  padding: 60px 20px;
  background: var(--white);
}

.cases h2 {
  text-align: center;
  color: var(--green);
  margin-bottom: 40px;
  font-size: 2rem;
}

.case-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.case {
  flex: 1 1 280px;
  max-width: 350px;
  background: var(--gray-light);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.case img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.case h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--gray-dark);
}

.case p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 15px;
}

.case a {
  color: var(--green);
  font-weight: 600;
}

.case a:hover {
  text-decoration: underline;
}

/* Contact form section */
.contact-section {
  padding: 60px 20px;
  background: var(--gray-light);
}

.contact-section h2 {
  text-align: center;
  color: var(--green);
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact-section p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form select {
  appearance: none;
}

.contact-form button {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 20px auto 0;
  padding: 12px 20px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #009146;
}

/* Footer */
.footer {
  background: var(--gray-dark);
  color: var(--white);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: var(--yellow);
  margin: 0 10px;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .text-image, .text-two-images {
    flex-direction: column;
  }
  .text-image img,
  .text-two-images .images {
    flex: 1 1 100%;
    max-width: none;
  }
  .text-image .text,
  .text-two-images .text {
    flex: 1 1 100%;
  }
  .banner {
    padding: 80px 20px;
  }
}