/*
 * Styles for the React Holdings single‑page website.
 *
 * This stylesheet takes inspiration from the React Fueling site while keeping
 * the layout clean and minimal. The colour palette uses dark blues
 * complemented by a warm accent colour for buttons and interactive
 * elements. Containers help center content on wide screens while still
 * expanding to full width on smaller devices.
 */

/* Variables for colours and sizing */
:root {
  --primary-color: #0B2545;
  --secondary-color: #1D4E89;
  --accent-color: #F28705;
  --light-bg: #F8F9FA;
  --text-color: #333;
  --white: #FFFFFF;
  --max-width: 1000px;
  --transition-fast: 0.2s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav .logo img {
  /* Set the logo height to half of the oversized version (120 px) to strike a balance
     between prominence and header height */
  height: 120px;
  filter: brightness(0) invert(1);
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}
nav a:hover {
  color: var(--accent-color);
}
/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color);
    padding: 1rem 0;
  }
  nav ul.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  nav ul li {
    text-align: center;
    margin-bottom: 1rem;
  }
}

/* Hero section */
.hero {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
}
.hero p {
  margin: 0;
  font-size: 1.2rem;
}

/* Sections */
.section {
  padding: 3rem 1rem;
}
.section.light {
  background-color: var(--light-bg);
}
.section h2 {
  margin-top: 0;
  color: var(--primary-color);
  text-align: center;
}
.section p {
  max-width: var(--max-width);
  margin: 0.5rem auto;
}

/* Container to center content */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Subsidiaries grid */
.subsidiaries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.subsidiary {
  text-align: center;
  background-color: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow var(--transition-fast);
}
.subsidiary:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.subsidiary img {
  height: 80px;
  width: auto;
  margin-bottom: 0.75rem;
}
.subsidiary h3 {
  margin: 0.5rem 0;
  color: var(--secondary-color);
  font-size: 1.2rem;
}
.subsidiary p {
  font-size: 0.9rem;
  color: #555;
}

/* Domains list */
.domains-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem auto;
  max-width: var(--max-width);
}
.domains-list li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}
.domains-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.contact-form button {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.contact-form button:hover {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem 1rem;
}
footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 2rem;
}
footer .footer-info p {
  margin: 0.3rem 0;
}
footer .footer-info a {
  color: var(--white);
  text-decoration: none;
}
footer .footer-info a:hover {
  text-decoration: underline;
}
footer .footer-logo img {
  height: 80px;
  filter: brightness(0) invert(1);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .subsidiary {
    padding: 1rem;
  }
  .subsidiary h3 {
    font-size: 1.1rem;
  }
  .contact-form {
    width: 100%;
  }
}