@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --font-primary: "Nunito Sans", sans-serif;
  --font-secondary: "Inter", sans-serif;

  --page-margin: clamp(1rem, 5vw, 3rem);
  --content-max-width: 1440px;

  --grid-gutter: 16px;
  --container-max-width: 1440px;
  --content-max-width: 1300px;

  --margin-sm: clamp(1rem, 3vw, 1.5rem);
  --margin-md: clamp(1.5rem, 5vw, 3rem);
  --margin-lg: clamp(2rem, 7vw, 4rem);

  --bp-mobile: 576px;
  --bp-tablet: 768px;
  --bp-desktop: 992px;

  /* Escala tipográfica - Base 16px (1rem) */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-md: 1.125rem; /* 18px */
  --text-lg: 1.25rem; /* 20px */
  --text-xl: 1.5rem; /* 24px */
  --text-2xl: 1.75rem; /* 28px */
  --text-3xl: 2rem; /* 32px */
  --text-4xl: 2.5rem; /* 40px */
  --text-5xl: 3rem; /* 48px */

  /* Line heights */
  --leading-normal: 1.5;

  /* Cores base */
  --color-pink: #ff00f6;
  --color-blue: #5600ff;
  --color-white: #ffffff;
  --color-secondary-light: #fafcff;
  --color-black: #000000;
  --color-gray-light: #899095;
  --color-gray: #717a7c;
  --color-gray-dark: #3d3c3d;

  --gradient-primary: linear-gradient(
    to top,
    #5600ff 0%,
    #ff00f6 51%,
    #da487d 100%
  );
  --gradient-primary-horizontal: linear-gradient(90deg, #5600ff, #ff00f6);
  --gradient-primary-diagonal: linear-gradient(
    to top right,
    #5600ff 0%,
    #ff00f6 51%,
    #da487d 100%
  );
  --gradient-secondary: linear-gradient(#ffffff, #eed8ff);
  --gradient-radial: linear-gradient(90deg, #ffffff, #dde5f8);
}

/* ========== TIPOGRAFIA ========== */
.font-primary {
  font-family: var(--font-primary) !important;
  font-weight: 400 !important; /* Regular */
}
.font-primary-bold {
  font-family: var(--font-primary) !important;
  font-weight: 700 !important; /* Bold */
}
.font-secondary {
  font-family: var(--font-secondary) !important;
  font-weight: 400 !important; /* Regular */
}

.font-secondary-bold {
  font-family: var(--font-secondary) !important;
  font-weight: 700 !important; /* Bold */
}

/* ========== TIPOGRAFIA ========== */

body {
  position: relative;
  width: 100%;
  min-width: 320px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  width: calc(100% - 2 * var(--margin-md));
  max-width: var(--container-max-width);
  margin: 6rem auto 2rem auto;
  padding: 0 var(--grid-gutter);
  box-sizing: border-box;
}

.text-gradient {
  background: var(--gradient-primary-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.card-buttons .gradient-button {
  background: var(--color-white) !important;
  color: var(--color-black) !important;
  border: 1px solid transparent !important;
}

.card-buttons .gradient-button.outline {
  background: transparent !important;
  color: var(--color-white) !important;
  border: 1px solid var(--color-white) !important;
  position: relative;
}

.card-buttons .gradient-button.outline:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img,
video,
iframe,
canvas,
svg {
  max-inline-size: 100%;
  block-size: auto;
}

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEi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I2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
      no-repeat 1rem/1.8rem,
    #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.area {
  width: 100%;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f8f8f8;
  font-size: 14px;
  color: #666;
  min-height: 120px;
  resize: none;
  font-family: inherit;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.area:focus {
  outline: none;
  border-color: #8b5cf6;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.area::placeholder {
  color: #999;
}

.input {
  width: 100%;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f8f8f8;
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: #8b5cf6;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.input::placeholder {
  color: #999;
}

/* Contact.razor */
button.btn.submit-contact {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
  margin: 1rem auto !important;
  white-space: nowrap !important;
}

button.btn.submit-contact:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

button.btn.submit-contact:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
}

button.btn.submit-contact:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

button.btn.submit-contact .button-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease !important;
}

button.btn.submit-contact:hover .button-icon {
  transform: translateX(2px) !important;
}

.hero-title:focus {
  outline: none;
}

/* Responsive adjustments for submit-contact */
@media (max-width: 768px) {
  button.btn.submit-contact {
    font-size: var(--text-sm);
    padding: 0.6rem 1.2rem;
    max-width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  button.btn.submit-contact {
    max-width: 300px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  button.btn.submit-contact {
    font-size: var(--text-base);
    padding: 1rem 2rem;
  }
}

@media (min-width: 1200px) {
  button.btn.submit-contact {
    font-size: var(--text-base);
    padding: 1rem 2rem;
  }
}
