/* ========================================
   FastHiring Marketing Site - Global Styles
   Brand colors from Flutter constants.dart
   ======================================== */

/* --- CSS Variables --- */
:root {
  --orange: #f16806;
  --orange-hover: #d95d05;
  --orange-light: #fff4ec;
  --orange-dark: #f6c9a2;
  --bg-grey: #efedeb;
  --light-grey: #f3f4f5;
  --control-grey: #616161;
  --text-dark: #424242;
  --white: #ffffff;
  --black: #1a1a1a;
  --border: #e0ddd9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Archivo", sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  font-size: 1.065rem;
  color: var(--control-grey);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--grey {
  background: var(--bg-grey);
}

.section--light-orange {
  background: var(--orange-light);
}

.section--white {
  background: var(--white);
}

.text-center {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--control-grey);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--white);
  color: var(--text-dark);
  border: 2px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Primary button inside orange CTA - invert to white */
.cta .btn--primary {
  background: var(--white);
  color: var(--orange);
}

.cta .btn--primary:hover {
  background: var(--bg-grey);
  color: var(--orange-hover);
}

/* --- CTA Section --- */
.cta {
  background: linear-gradient(135deg, var(--orange) 0%, #e85d00 100%);
  padding: 96px 0;
}

.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto 36px;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--black);
}

.nav__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--control-grey);
  transition: color 0.2s;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--orange);
}

.nav__link--active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__login {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 10px 20px;
  transition: color 0.2s;
}

.nav__login:hover {
  color: var(--orange);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.nav__mobile-menu {
  display: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 0;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--orange);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer__bottom-links a:hover {
  color: var(--white);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 52px;
  height: 52px;
  background: var(--orange-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.card__text {
  font-size: 0.95rem;
  color: var(--control-grey);
  line-height: 1.65;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* Mobile menu */
  .nav__mobile-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav__mobile-menu.active {
    display: flex;
  }

  .nav__mobile-menu .nav__link {
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--light-grey);
    display: block;
  }

  .nav__mobile-menu .nav__link:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
  }

  .nav__mobile-menu .nav__login {
    display: block;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
  }

  .nav__mobile-menu .btn {
    width: 100%;
    margin-top: 8px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .btn--large {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* --- Spacer (push content below fixed nav) --- */
.nav-spacer {
  height: var(--nav-height);
}
