/* Import Google Fonts for typography */
/* We rely on a single font family to maintain consistency across pages. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset and base styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  /* Use a neutral light background to contrast with dark text. */
  background-color: #f7f7f7;
  color: #222;
  line-height: 1.6;
}

/* Navigation bar */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #dcdcdc;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo uses the same font family but heavier weight for differentiation. */
.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: #111;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

/* Logo image */
.logo-img {
  height: 36px;
  width: 36px;
  margin-right: 0.5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Make navigation links uppercase and remove blue highlights. */
.nav-links a {
  margin-right: 1.5rem;
  text-decoration: none;
  color: #333 !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.nav-links a:last-child {
  margin-right: 0;
}

/* On hover, links darken slightly instead of turning blue. */
.nav-links a:hover {
  color: #000 !important;
}

/* "Subscribe" button styling */
.btn-book {
  background-color: #000;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.btn-book:hover {
  background-color: #222;
}

/* Hero section */
.hero {
  display: flex;
  flex-wrap: wrap;
  min-height: 70vh;
  background-color: #f7f7f7;
}

.hero-left {
  flex: 1;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Heading uses heavier Inter weight to stand out without switching fonts. */
.hero-left h1 {
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111;
  text-transform: uppercase;
}

/*.hero-left p emphasises readability with dark grey text. */
.hero-left p {
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
  color: #555;
}

/* Primary button styling */
.btn-primary {
  display: inline-block;
  background-color: #000;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #222;
}

/* Right side of hero uses our monochrome office image and slowly zooms for depth. */
.hero-right {
  flex: 1;
  min-height: 400px;
  background-image: url('hero-bg.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: zoom 20s ease-in-out infinite alternate;
}

@keyframes zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* Generic section and container */
.section {
  padding: 3rem 1rem;
}

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

/* Card styling */
.card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: #111;
  text-transform: uppercase;
}

.card p {
  margin-bottom: 1rem;
  color: #555;
}

/* Transform all primary headings to uppercase for consistency */
h1, h2, h3 {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Form inputs */
input[type='number'],
input[type='email'],
input[type='password'],
input[type='text'],
select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  border: 1px solid #cccccc;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  font-size: 1rem;
  color: #222;
}

input:focus,
select:focus {
  outline: none;
  border-color: #888;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Generic button */
.btn,
button {
  display: inline-block;
  background-color: #000;
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.btn:hover,
button:hover {
  background-color: #222;
}

/* Blog posts */
.blog-post {
  margin-bottom: 2rem;
}

.blog-post h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: #111;
  text-transform: uppercase;
}

.blog-post p {
  color: #555;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: #ffffff;
  border-top: 1px solid #dcdcdc;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

/* Global anchor styling: remove default blue and underline. */
a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

/* Search bar styling for blog filter */
.search-bar {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  margin: 1rem 0;
  font-size: 1rem;
}

/* Smooth transitions for hiding and showing blog posts when filtering */
.blog-post {
  transition: opacity 0.2s ease;
}

/* Spreadsheet table */
table.spreadsheet {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table.spreadsheet th,
table.spreadsheet td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  text-align: left;
}

table.spreadsheet th {
  background-color: #f0f0f0;
  font-weight: 600;
  color: #333;
}

.add-row {
  margin-top: 1rem;
}

/* Quiz styles */
.quiz-container {
  margin-top: 1.5rem;
}

/* Each choice is displayed as a block with spacing */
.quiz-choice {
  display: block;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.quiz-choice input[type='radio'] {
  margin-right: 0.5rem;
}

.quiz-result {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Chat styles */
.chat-window {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  height: 300px;
  overflow-y: auto;
  background-color: #ffffff;
  margin-bottom: 1rem;
}

.chat-message {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  max-width: 80%;
  line-height: 1.4;
}

.user-msg {
  background-color: #e5e5e5;
  align-self: flex-end;
  margin-left: auto;
}

.bot-msg {
  background-color: #f0f0f0;
  align-self: flex-start;
  margin-right: auto;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
}

.chat-form input[type='text'] {
  flex: 1;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 0.6rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }
  .nav-links a {
    margin-right: 1rem;
    margin-top: 0.5rem;
  }
  .nav-container {
    padding: 1rem;
  }
  .hero-left h1 {
    font-size: 2.4rem;
  }
}