@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;900&display=swap');

/* CSS Variables */
:root {
  --color-primary: #4D96A9;
  --color-primary-hover: #71C0D4;
  --color-secondary: #855FB1;
  --color-secondary-hover: #B18BDD;
  --color-text-dark: #28283D;
  --color-text-gray: #87879D;
  --color-text-light: #4D96A9;
  --color-background: #FAFAFA;
  --color-white: #FFFFFF;
  
  --font-family: 'Red Hat Display', sans-serif;
  --font-weight-medium: 500;
  --font-weight-black: 900;
  
  --container-width: 1110px;
  --section-padding: 80px;
  --border-radius: 8px;
  --border-radius-button: 29px;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-gray);
  background-color: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* Responsive Helpers */
.desktop-only {
  display: block;
}

.tablet-only {
  display: none;
}

/* Header */
.header {
  padding: 48px 0;
  text-align: center;
}

.logo {
  margin: 0 auto;
}

/* Hero Section */
.hero {
  display: flex;
  padding: 64px 80px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  margin-bottom: 110px;
}

.hero-images {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
  justify-content: center;
  width: 100%;
  min-height: 300px;
}

.hero-image-left,
.hero-image-right {
  position: absolute;
  top: 50px;
  width: auto;
  z-index: 0;
}

.hero-image-left {
  right: 65%;
}

.hero-image-right {
  left: 65%;
}

.hero-image-left .hero-img,
.hero-image-right .hero-img {
  width: auto;
  height: auto;
  max-width: none;
}

.hero-content {
  flex: 0 0 540px;
  text-align: center;
  padding: 50px 0;
  position: relative;
  z-index: 1;
  background-color: transparent;
}

.hero-image-tablet {
  text-align: center;
  margin-bottom: 48px;
}

.hero-title {
  font-size: 64px;
  font-weight: var(--font-weight-black);
  color: var(--color-text-dark);
  line-height: 1;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 18px;
  line-height: 1.44;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--border-radius-button);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: var(--font-weight-black);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
}

/* Section Divider */
.section-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 80px 0;
}

.divider-line {
  width: 1px;
  height: 84px;
  background-color: #87879D;
  opacity: 0.25;
}

.divider-number {
  width: 56px;
  height: 56px;
  border: 1px solid #87879D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  color: var(--color-text-gray);
  font-size: 16px;
  font-weight: var(--font-weight-black);
  margin-top: 0;
}

/* Gallery Section */
.gallery {
  margin-bottom: 80px;
}

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

.gallery-item img {
  width: 100%;
  border-radius: var(--border-radius);
}

/* Features Section */
.features {
  text-align: center;
  margin-bottom: 72px;
}

.features-overline {
  font-size: 16px;
  font-weight: var(--font-weight-black);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.features-title {
  font-size: 40px;
  font-weight: var(--font-weight-black);
  color: var(--color-text-dark);
  line-height: 1.1;
  margin-bottom: 32px;
  max-width: 445px;
  margin-left: auto;
  margin-right: auto;
}

.features-description {
  font-size: 18px;
  line-height: 1.44;
  max-width: 540px;
  margin: 0 auto;
}

/* Footer CTA */
.footer-cta {
  position: relative;
  background-image: url('./assets/desktop/image-footer.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 116px 0;
  text-align: center;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  opacity: 0.9;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-title {
  font-size: 40px;
  font-weight: var(--font-weight-black);
  color: var(--color-white);
  line-height: 1.1;
  flex: 1;
  text-align: left;
  max-width: 350px;
}

.footer-description {
  font-size: 18px;
  line-height: 1.44;
  color: var(--color-white);
  flex: 1;
  text-align: left;
  max-width: 350px;
}

.footer-content .btn {
  flex-shrink: 0;
  background-color: var(--color-secondary);
}

.footer-content .btn:hover {
  background-color: var(--color-secondary-hover);
}

/* Tablet Styles */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .tablet-only {
    display: block;
  }
  
  .hero-images {
    display: none;
  }
  
  .hero-content {
    flex: none;
    padding: 0;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .features-title {
    font-size: 36px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-title,
  .footer-description {
    text-align: center;
    max-width: 573px;
  }
  
  .footer-cta {
    background-image: url('./assets/tablet/image-footer.jpg');
  }
}

/* Mobile Styles */
@media (max-width: 375px) {
  :root {
    --section-padding: 64px;
  }
  
  .container {
    padding: 0 24px;
  }
  
  .hero {
    display: flex;
    padding: 64px 32px 32px 32px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    margin-bottom: 64px;
  }
  
  .hero-images {
    display: none;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    flex: none;
    padding: 0;
    text-align: center;
  }
  
  .hero-title,
  .hero-description,
  .hero-buttons {
    display: block;
  }
  
  .hero-image-tablet {
    margin-bottom: 48px;
  }
  
  .hero-title {
    font-size: 40px;
    line-height: 1.1;
  }
  
  .hero-description {
    font-size: 16px;
    margin-bottom: 32px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .btn {
    width: 193px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .features-title {
    font-size: 32px;
  }
  
  .features-description {
    font-size: 16px;
  }
  
  .section-divider {
    margin: 64px 0;
  }
  
  .footer-title {
    font-size: 32px;
  }
  
  .footer-description {
    font-size: 16px;
  }
  
  .footer-cta {
    background-image: url('./assets/mobile/image-footer.jpg');
    padding: 92px 0;
  }
}