/*
 * Basic stylesheet for Flip Forge Pro static site.
 *
 * This CSS does not rely on Tailwind. It defines a simple design
 * inspired by the original React/Tailwind implementation. Colours are
 * defined as custom properties at the root so they can be easily
 * adjusted. Fonts are loaded from Google Fonts in each page.
 */

:root {
  /* Colour palette based off of the original Tailwind config.
   * The primary colour is a deep blue used for buttons and links,
   * secondary colours are muted grays for backgrounds and text. */
  --colour-primary: #1e3a8a;
  --colour-primary-light: #3b82f6;
  --colour-background: #f8fafc;
  --colour-card: #ffffff;
  --colour-border: #e2e8f0;
  --colour-text: #1f2937;
  --colour-text-muted: #4b5563;
  --colour-accent: #fbbf24;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--colour-text);
  background-color: var(--colour-background);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--colour-border);
  backdrop-filter: saturate(180%) blur(8px);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

header img.logo {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

nav li {
  margin: 0;
}

nav a {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

nav a:hover {
  background-color: var(--colour-primary-light);
  color: #fff;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--colour-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--colour-primary-light);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
section {
  padding: 4rem 1rem;
}

section.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--colour-text-muted);
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

/* Card layout for three-column sections */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--colour-card);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--colour-text-muted);
  font-size: 0.95rem;
}

/* Form styles */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

form label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

form input,
form select,
form textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  font-size: 1rem;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

form .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

form .checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* Footer */
footer {
  background-color: var(--colour-card);
  border-top: 1px solid var(--colour-border);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--colour-text-muted);
}