/* CSS Variables */
:root {
  --cl-color-primary-8: #5a7ee0;
  --cl-color-primary-9: #3358d4;
  --cl-color-primary-10: #213dad;
  --cl-color-neutral-3: #ecf0f8;
  --cl-color-neutral-8: #b4b6bf;
  --cl-color-neutral-10: #80838d;
  --cl-color-neutral-12: #1c2024;
  --cl-color-white: #FFFFFF;
  --cl-color-black: #000000;
  --cl-footer-bg: #21221d;
}

/* Font utility classes */
.font-geist-mono {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.font-merri-weather {
  font-family: 'Merriweather', serif;
}

.font-normal {
  font-weight: 400;
}

.font-semibold {
  font-weight: 600;
}

.cl-classicalu-footer,
.cl-classicalu-footer *,
.cl-footer-background,
.cl-footer-background * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Footer Background Image Section */
.cl-footer-background {
  position: relative;
  width: 100%;
  height: 280px;
  margin-top: -30px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .cl-footer-background { height: 360px; }
}

@media (min-width: 768px) {
  .cl-footer-background { height: 480px; }
}

@media (min-width: 1024px) {
  .cl-footer-background { height: 602px; }
}

.cl-footer-background::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: calc(60% + 30px);
  background: linear-gradient(to bottom, white 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.cl-footer-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.cl-footer-background::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
          to bottom,
          rgba(57, 66, 20, 0) 0%,
          rgba(46, 51, 24, 0.46) 40%,
          rgba(42, 46, 26, 0.63) 65%,
          rgba(36, 38, 28, 0.86) 82%,
          #21221D 100%
  );
}

/* Footer Styles */
.cl-classicalu-footer {
  width: 100%;
  background: var(--cl-footer-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

/* Newsletter Section */
.cl-footer-newsletter {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 32px 16px;
}

@media (min-width: 640px) {
  .cl-footer-newsletter { padding: 32px 0; }
}

.cl-newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.cl-newsletter-title {
  font-size: 24px;
  color: var(--cl-color-white);
  line-height: 36px;
}

.cl-newsletter-subtitle {
  font-size: 18px;
  color: var(--cl-color-white);
  line-height: 24px;
}

.cl-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 480px;
}

@media (min-width: 640px) {
  .cl-newsletter-form {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
}

.cl-newsletter-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  background: var(--cl-color-black);
  color: var(--cl-color-white);
  border: 1px solid var(--cl-color-neutral-10);
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  transition: border-color 200ms;
}

.cl-newsletter-input:focus {
  border-color: var(--cl-color-primary-8);
}

.cl-newsletter-input::placeholder {
  color: var(--cl-color-neutral-8);
}

.cl-newsletter-button {
  height: 40px;
  padding: 0 16px;
  background: var(--cl-color-primary-9);
  color: white;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 200ms;
  width: 100%;
}

@media (min-width: 640px) {
  .cl-newsletter-button { width: auto; }
}

.cl-newsletter-button:hover {
  background: var(--cl-color-primary-10);
}

/* Separator */
.cl-footer-separator {
  width: 100%;
  height: 1px;
  background: var(--cl-color-neutral-10);
}

/* Footer Content */
.cl-footer-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 72px;
}

@media (min-width: 768px) {
  .cl-footer-content { padding: 32px; }
}

.cl-footer-content-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1244px;
}

@media (min-width: 768px) {
  .cl-footer-content-inner {
    flex-direction: row;
    align-items: center;
  }
}

.cl-footer-logo {
  align-self: center;
}

@media (min-width: 768px) {
  .cl-footer-logo {
    align-self: flex-start;
  }
}

.cl-footer-logo {
  position: relative;
  height: 100px;
  width: 90px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .cl-footer-logo {
    height: 140px;
    width: 126px;
  }
}

@media (min-width: 768px) {
  .cl-footer-logo {
    height: 160px;
    width: 143px;
  }
}

@media (min-width: 1024px) {
  .cl-footer-logo {
    height: 180px;
    width: 161px;
  }
}

.cl-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cl-footer-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 788px;
  gap: 40px;
}

@media (min-width: 768px) {
  .cl-footer-links {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
}

.cl-footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (min-width: 768px) {
  .cl-footer-link-group {
    width: 168px;
  }
}

.cl-footer-link-group.cl-contact {
  width: 100%;
}

@media (min-width: 768px) {
  .cl-footer-link-group.cl-contact {
    width: 212px;
  }
}

.cl-footer-link-title {
  font-size: 18px;
  color: var(--cl-color-white);
  line-height: 24px;
}

.cl-footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cl-footer-link {
  font-size: 14px;
  line-height: 24px;
  color: var(--cl-color-white) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 200ms;
}

.cl-footer-link:hover {
  color: var(--cl-color-neutral-3) !important;
}

.cl-footer-link-item {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.cl-footer-link-item img {
  width: 16px;
  height: 16px;
}

/* Social Media Section */
.cl-footer-social {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

@media (min-width: 640px) {
  .cl-footer-social { padding: 24px 8px; }
}

.cl-footer-social-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1244px;
}

@media (min-width: 768px) {
  .cl-footer-social-inner { flex-direction: row; }
}

.cl-social-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cl-social-icon {
  width: 32px;
  height: 32px;
}

.cl-footer-copyright {
  font-size: 14px;
  line-height: 24px;
  color: var(--cl-color-white);
  text-align: center;
}

@media (min-width: 768px) {
  .cl-footer-copyright {
    text-align: right;
  }
}

.cl-footer-copyright a {
  color: var(--cl-color-white) !important;
  text-decoration: underline !important;
  transition: color 200ms;
}

.cl-footer-copyright a:hover {
  color: var(--cl-color-neutral-3) !important;
}

.cl-footer-copyright span {
  text-decoration: underline;
  cursor: pointer;
  transition: color 200ms;
}

.cl-footer-copyright span:hover {
  color: var(--cl-color-neutral-3);
}
