/* Reset and Base Styles */

html, body {
  margin: 0;
}

* {
  box-sizing: border-box;
}

p {
  margin: 0;
}

:root {
  --color-primary: #e73830;
  --color-secondary: #51ae9c;
  --color-base: #434343;
  --color-background: #ffffff;
  --color-tertiary: #f3f6fb;
  --color-senary: #2f2f2f;
  --spacing-small: clamp(1.125rem, 0.989rem + 0.68vw, 1.5rem);
  --spacing-medium: clamp(1.5rem, 1.318rem + 0.91vw, 2rem);
  --spacing-large: clamp(2.125rem, 1.807rem + 1.59vw, 3rem);
  --spacing-x-large: clamp(2.625rem, 2.125rem + 2.5vw, 4rem);
  --spacing-xx-large: clamp(3.688rem, 2.847rem + 4.2vw, 6rem);
  --font-family: Figtree, sans-serif;
  --font-size-base: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.236), 1.13rem);
  --font-size-large: clamp(1.44rem, 1.44rem + ((1vw - 0.2rem) * 1.018), 2rem);
  --font-size-x-large: clamp(1.73rem, 1.73rem + ((1vw - 0.2rem) * 1.691), 2.66rem);
  --font-size-xx-large: clamp(2.07rem, 2.07rem + ((1vw - 0.2rem) * 2.691), 3.55rem);
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("../fonts/Inter-Variable.html") format("woff2");
}

@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url("../fonts/Figtree-Variable.html") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("../fonts/Outfit-Variable.html") format("woff2");
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-base);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

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

section a:not(.button) {
  color: var(--color-primary);
}

section a:not(.button):hover {
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
}

a.button:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-base);
  font-family: var(--font-family);
  font-weight: 500;
  margin-top: 0;
}

h1 {
  font-size: var(--font-size-xx-large);
  line-height: 1.2;
}

h2 {
  font-size: var(--font-size-x-large);
  line-height: 1.3;
}

h3 {
  font-size: var(--font-size-large);
  line-height: 1.4;
}

h4 {
  font-size: var(--font-size-large);
  line-height: 1.5;
}

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

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--spacing-xx-large) 0;
}

.section-tertiary {
  background-color: var(--color-tertiary);
}

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

/* Header */
header {
  padding: var(--spacing-small) 0;
}

header img {
  width: 157px;
  height: 44px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-xx-large);
}

.hero-content {
  flex: 1 1 60%;
  min-width: 300px;
}

.hero-image {
  flex: 1 1 40%;
  min-width: 300px;
}

.hero-image img {
  width: 100%;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-buttons > div {
  flex: 1;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 9px 20px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 5px;
  text-align: center;
  font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.682), 20px);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.5;
}

.full-width {
  width: 100%;
}

.button-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.button:hover {
  opacity: 0.9;
  text-decoration: none;
}

.button-outline:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-medium);
  margin-top: var(--spacing-large);
}

.feature-card {
  background-color: var(--color-background);
  padding: var(--spacing-large);
  border-radius: 10px;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xx-large);
  align-items: center;
}

/* Footer */
footer {
  background-color: var(--color-senary);
  color: #fff;
  padding: var(--spacing-small) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-medium);
  margin-bottom: var(--spacing-small);
}

footer a {
  color: #fff;
}

footer img {
  width: 141px;
  height: 58px;
}

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

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

.text-primary {
  color: var(--color-primary);
}

.mt-small {
  margin-top: var(--spacing-small);
}

.mt-medium {
  margin-top: var(--spacing-medium);
}

.mt-large {
  margin-top: var(--spacing-large);
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-buttons {
    flex-direction: column;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }
  
  .hero-content,
  .hero-image {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}
