/* 
|------------------------------------------------------
| CUSTOM PROPERTIES 
|------------------------------------------------------
*/

:root {
  /* Colors */
  --color-primary: #DADBF1;
  --color-secondary: #4C5FD5;
  --color-surface: #FFFFFF;
  --color-surface-dark: #000000;
  --color-text-default: #111111;
  --color-text-secondary: #6B7280;

  /* Font Family */
  --font-family: 'Open Sans', sans-serif;

  /* Font Sizes */
  --fs-xs: 0.75rem; /* 12px */
  --fs-sm: 0.875rem; /* 14px */
  --fs-base: 1rem; /* 16px  */
  --fs-lg: 1.125rem; /* 18px */
  --fs-xl: 1.5rem; /* 24px (H4) */
  --fs-2xl: 2rem; /* 32px (H3) */
  --fs-3xl: 3rem; /* 48px (H2) */
  --fs-4xl: 4rem; /* 64px (H1) */

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-base: 1.5;

  /* Font Weights */
  --fw-normal: 400;
  --fw-slight-bold: 500;
  --fw-bold: 700;

  /* Spacing  */
    --spacing-xs: 0.5rem; /* 8px */
    --spacing-sm: 1rem; /* 16px */
    --spacing-md: 2rem; /* 32px */
    --spacing-lg: 3rem; 
}


/* 
|------------------------------------------------------
| BASE RESET & GLOBAL STYLES
|------------------------------------------------------
*/

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

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

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


body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: var(--line-height-base);
  color: var(--color-text-default);
  background-color: var(--color-surface);
}


h1 { font-size: var(--fs-4xl); line-height: var(--line-height-tight); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-3xl); line-height: var(--line-height-tight); font-weight: var(--fw-bold); }
h3 { font-size: var(--fs-xl); line-height: var(--line-height-tight); font-weight: var(--fw-bold); }

a {
  color: var(--color-surface);
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}


/* 
|------------------------------------------------------
| COMPONENTS
|------------------------------------------------------
*/
.global-wrapper {
  max-width: 1500px;
  width: 90%;
  margin: 0 auto;
}

.container {
  max-width: 1000px;
  width: 80%;
  margin: 0 auto;
}

/* 
|------------------------------------------------------
| SECTIONS
|------------------------------------------------------
*/

/* ------------ Header -------------- */

header { background-color: var(--color-surface-dark); }

.header {
  display: flex;
  justify-content: space-between;
  color: var(--color-surface);
  font-size: var(--fs-xl);
  font-weight: var(--fw-slight-bold);
  padding-block: var(--spacing-sm);
}

.header-logo, .header-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.btn-submit {
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  padding: 0.3rem 1.5rem;
  background-color: var(--color-surface-dark);
}

.btn-sign-in {
  background-color: var(--color-secondary);
  padding: 0.4rem 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-sign-in:hover {
  background-color: var(--color-surface);
  color: var(--color-text-default);
}


/* ------------ Hero -------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background-color: var(--color-primary);
  height: 21.5rem;
}

.main-heading { font-weight: 500; }

.search-bar-container {
  display: flex;
  align-items: center;
  padding: 20px 20px;
  background: var(--color-surface);
  border-radius: 5px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1),
               0 4px 6px -2px rgba(0, 0, 0, 0.05);
  width: 60%;
  border: 1px solid var(--color-text-secondary);
  position: relative;
}

.search-bar-container:hover {
  border: 1px solid var(--color-secondary);
}

.search-input {
  width: 100%;
  outline: none;
  border: none;
  background: transparent;
  font-size: var(--fs-xl);
}

.search-btn {
  border: none;
  background: transparent;
  position: absolute;
  right: 15px;
}

/* ------------ Features -------------- */
.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  margin-block: 10rem;
}

.category-container { 
  display: grid; 
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.category-container div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.category-container div  p {
  font-size: var(--fs-xl);
  line-height: var(--line-height-tight);
}

.category-container div  a {
  color: var(--color-secondary);
  font-size: var(--fs-xl);
  margin-bottom: 2rem;
}

.category-container div  a:hover {
  text-decoration: underline;
}

.icon img {
  width: 100%;
}

 
/* ------------ Footer -------------- */
footer {
  padding: 0 2rem 6rem 2rem;
  background: var(--color-surface-dark);
  color: var(--color-surface);
}

.footer-container {
  display: flex;
  gap: 4rem;
  margin-inline: 3rem;
  padding: 0 0 7rem 0; 
  position: relative;
}

.footer-nav-title {
  margin: 3rem 0 1rem 0;
}
/* 
.about {
  display: flex;
  flex-direction: column;
} */

.contact {
  margin-top: 2rem;
}

.legal {
  position: absolute;
  right: 0;
  bottom: 0;
}

.logo {
  margin-bottom: 1rem;
}

.legal-content {
  font-size: var(--fs-lg);
}