/*
* Modern CSS Design System
*
* This file implements a modern design system for the website, focusing on a
* clean, professional, and user-friendly aesthetic. It includes a cohesive
* color palette, a readable typography scale, and consistent spacing and
* layout rules.
*
* The design system is built using CSS custom properties (variables) for easy
* theme customization and maintenance.
*/

/* ==========================================================================
   1. CSS Custom Properties (Variables)
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-color: #007bff; /* A professional and versatile blue */
  --secondary-color: #6c757d; /* A neutral gray for secondary text and elements */
  --accent-color: #28a745; /* A vibrant green for calls to action and highlights */
  --background-color: #f8f9fa; /* A light gray for the body background */
  --surface-color: #ffffff; /* White for cards, modals, and other surfaces */
  --text-color: #212529; /* A dark gray for primary text */
  --border-color: #dee2e6; /* A light gray for borders and dividers */

  /* Typography */
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --font-size-base: 1rem;
  --font-weight-base: 400;
  --line-height-base: 1.5;
  --h1-font-size: calc(1.375rem + 1.5vw);
  --h2-font-size: calc(1.325rem + 0.9vw);
  --h3-font-size: calc(1.275rem + 0.3vw);
  --h4-font-size: 1.5rem;
  --h5-font-size: 1.25rem;
  --h6-font-size: 1rem;

  /* Spacing */
  --spacing-unit: 1rem;
  --spacing-xs: calc(var(--spacing-unit) * 0.25);
  --spacing-sm: calc(var(--spacing-unit) * 0.5);
  --spacing-md: var(--spacing-unit);
  --spacing-lg: calc(var(--spacing-unit) * 1.5);
  --spacing-xl: calc(var(--spacing-unit) * 3);

  /* Borders and Shadows */
  --border-width: 1px;
  --border-radius: 0.25rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ==========================================================================
   2. Global Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-sans-serif);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: var(--h1-font-size);
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: darken(var(--primary-color), 10%);
  text-decoration: underline;
}

/* ==========================================================================
   4. Layout & Spacing
   ========================================================================== */

.container {
  width: 100%;
  padding-right: var(--spacing-md);
  padding-left: var(--spacing-md);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ==========================================================================
   5. Interactive Elements (Buttons, Forms)
   ========================================================================== */

.btn {
  display: inline-block;
  font-weight: 400;
  color: var(--text-color);
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: var(--border-width) solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  border-radius: var(--border-radius);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--surface-color);
  background-clip: padding-box;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: var(--text-color);
  background-color: var(--surface-color);
  border-color: lighten(var(--primary-color), 25%);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  width: 64px;
  height: 64px;
}

.brand__name {
font-weight: 500;
  font-size: 18px;
}

.brand__tag {
  font-size: 12px;
  color: var(--muted);
}

.mainnav {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 16px;
  letter-spacing: .2px;
}

.mainnav__link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: .2s;
}

.mainnav__link:hover {
  color: var(--primary);
  background: #f3f4f6;
}

.hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .10));
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  margin-top: 50px;
}

.hero__title {
  flex: 1;
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.05;
}

.hero__subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  margin-top: 0px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero__title {
    font-size: clamp(26px, 4.5vw, 44px);
  }

  .hero__subtitle {
    font-size: 14px;
  }
}