/*-----------------------------------*\
  #proposta.css — Lab3 Proposta Module
\*-----------------------------------*/

main { margin: 15px 12px; margin-bottom: 75px; min-width: 259px; }
article { display: none; }
article.active { display: block; animation: fade 0.5s ease backwards; }

/* SIDEBAR */
.sidebar { margin-bottom: 15px; max-height: 112px; overflow: hidden; transition: max-height 0.5s ease-in-out; }
.sidebar.active { max-height: 500px; }
.sidebar-info { position: relative; display: flex; justify-content: flex-start; align-items: center; gap: 15px; }
.avatar-box { border-radius: 20px; overflow: hidden; }
.avatar-box img { width: 80px; }

.info_more-btn {
  position: absolute; top: -15px; right: -15px; border-radius: 0 15px; font-size: 13px;
  color: var(--orange-yellow-crayola); background: var(--border-gradient-onyx);
  padding: 10px; box-shadow: var(--shadow-1); transition: var(--transition-1); z-index: 1;
}
.info_more-btn::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit;
  background: var(--bg-gradient-jet); transition: var(--transition-1); z-index: -1;
}
.info_more-btn:hover, .info_more-btn:focus { background: var(--bg-gradient-yellow-1); }
.info_more-btn:hover::before, .info_more-btn:focus::before { background: var(--bg-gradient-yellow-2); }
.info_more-btn span { display: none; }
.info_more-btn ion-icon { transition: transform 0.3s ease; }
.sidebar.active .info_more-btn ion-icon { transform: rotate(180deg); }
.sidebar-info_more { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.sidebar.active .sidebar-info_more { opacity: 1; visibility: visible; }

.contacts-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-title { color: var(--light-gray-70); font-size: var(--fs-8); text-transform: uppercase; margin-bottom: 2px; }
.contact-link { color: var(--white-2); font-size: var(--fs-7); font-style: normal; transition: color var(--transition-1); }
.contact-link:hover { color: var(--orange-yellow-crayola); }


/* NAVBAR */
.navbar {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: hsla(240, 1%, 17%, 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--jet); border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-2); z-index: 5;
}
.navbar-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding: 0 10px; gap: 3px; }
.navbar-link { color: var(--light-gray); font-size: 11px; padding: 20px 7px; transition: color var(--transition-1); }
.navbar-link.active { color: var(--orange-yellow-crayola); }
.navbar-link:hover, .navbar-link:focus { color: var(--light-gray-70); }

/* CLIENT SECTION */
.proposta-client {
  text-align: center; margin-bottom: 30px; padding: 20px;
  border-bottom: 1px solid var(--jet);
}
.client-label { color: var(--light-gray-70); font-size: var(--fs-8); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.client-name {
  background: var(--text-gradient-yellow); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  font-size: var(--fs-1);
}

/* PRICING CARD */
.proposta-pricing { margin-bottom: 35px; }
.pricing-card {
  position: relative; background: var(--border-gradient-onyx); padding: 30px 20px;
  border-radius: 16px; text-align: center; box-shadow: var(--shadow-2); z-index: 1;
  overflow: hidden;
}
.pricing-card::before {
  content: ""; position: absolute; inset: 1px;
  background: var(--bg-gradient-yellow-2); border-radius: inherit; z-index: -1;
}
.pricing-header { margin-bottom: 20px; }
.pricing-label {
  color: var(--orange-yellow-crayola); font-size: var(--fs-7); font-weight: var(--fw-600);
  text-transform: uppercase; letter-spacing: 2px;
}
.pricing-body { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; }
.pricing-de, .pricing-por { display: block; font-size: var(--fs-8); color: var(--light-gray-70); margin-bottom: 4px; }
.pricing-old {
  font-size: var(--fs-2); font-weight: var(--fw-400); color: var(--light-gray-70);
  text-decoration: line-through; opacity: 0.5;
}
.pricing-arrow { color: var(--orange-yellow-crayola); font-size: 20px; }
.pricing-new {
  font-size: 44px; font-weight: var(--fw-600); color: var(--white-1);
  background: var(--text-gradient-yellow); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.pricing-final { margin-top: 4px; }
.pricing-savings {
  display: inline-flex; align-items: center; gap: 6px;
  background: hsla(120, 60%, 50%, 0.1); border: 1px solid hsla(120, 60%, 50%, 0.2);
  color: hsl(120, 60%, 65%); font-size: var(--fs-7); padding: 8px 16px;
  border-radius: 20px; margin-bottom: 12px;
}
.pricing-savings ion-icon { font-size: 16px; }
.pricing-installments { color: var(--light-gray); font-size: var(--fs-7); }

/* INCLUSIONS */
.proposta-inclusions { margin-bottom: 35px; }
.section-title { margin-bottom: 20px; }
.inclusions-list { display: flex; flex-direction: column; gap: 12px; }
.inclusion-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
  position: relative; background: var(--border-gradient-onyx); border-radius: 12px;
  box-shadow: var(--shadow-1); z-index: 1;
}
.inclusion-item::before {
  content: ""; position: absolute; inset: 1px;
  background: var(--bg-gradient-jet); border-radius: inherit; z-index: -1;
}
.inclusion-check {
  min-width: 24px; height: 24px; border-radius: 50%;
  background: hsla(120, 60%, 50%, 0.15); color: hsl(120, 60%, 65%);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.inclusion-text { color: var(--white-2); font-size: var(--fs-6); line-height: 1.5; flex: 1; }

/* DIFFERENTIALS */
.proposta-differentials { margin-bottom: 35px; }
.differentials-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.differential-card {
  position: relative; background: var(--border-gradient-onyx); padding: 22px 18px;
  border-radius: 14px; box-shadow: var(--shadow-1); z-index: 1;
}
.differential-card::before {
  content: ""; position: absolute; inset: 1px;
  background: var(--bg-gradient-jet); border-radius: inherit; z-index: -1;
}
.differential-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: hsla(45, 100%, 72%, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-yellow-crayola); font-size: 20px; margin-bottom: 12px;
}
.differential-title { color: var(--white-2); font-size: var(--fs-6); font-weight: var(--fw-500); margin-bottom: 6px; }
.differential-desc { color: var(--light-gray); font-size: var(--fs-7); line-height: 1.5; }

/* OBSERVATIONS */
.proposta-obs { margin-bottom: 35px; }
.obs-content { color: var(--light-gray); font-size: var(--fs-6); line-height: 1.7; }

/* CTA */
.proposta-cta { margin-bottom: 25px; }
.cta-card {
  position: relative; background: var(--border-gradient-onyx); padding: 35px 20px;
  border-radius: 16px; text-align: center; box-shadow: var(--shadow-2); z-index: 1;
}
.cta-card::before {
  content: ""; position: absolute; inset: 1px;
  background: var(--bg-gradient-yellow-2); border-radius: inherit; z-index: -1;
}
.cta-title { margin-bottom: 10px; }
.cta-text { color: var(--light-gray); font-size: var(--fs-6); margin-bottom: 22px; line-height: 1.5; }
.cta-btn { display: inline-flex !important; width: auto; padding: 14px 30px; margin: 0 auto; font-size: var(--fs-5); }

/* VALIDITY */
.proposta-validity { text-align: center; margin-bottom: 20px; }
.validity-text {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--light-gray-70); font-size: var(--fs-7);
}
.validity-text ion-icon { color: var(--orange-yellow-crayola); font-size: 16px; }

/* CONTATO */
.contato-intro { margin-bottom: 30px; }
.contato-card {
  position: relative; background: var(--border-gradient-onyx); padding: 30px 20px;
  border-radius: 14px; text-align: center; box-shadow: var(--shadow-2); z-index: 1;
}
.contato-card::before {
  content: ""; position: absolute; inset: 1px;
  background: var(--bg-gradient-jet); border-radius: inherit; z-index: -1;
}
.contato-icon-box {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
  background: hsla(45, 100%, 72%, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-yellow-crayola); font-size: 26px;
}
.contato-card h3 { margin-bottom: 12px; line-height: 1.4; }
.contato-card p { color: var(--light-gray); font-size: var(--fs-6); line-height: 1.6; }

/* FORM */
.form-title { margin-bottom: 20px; }
.input-wrapper { display: grid; grid-template-columns: 1fr; gap: 25px; margin-bottom: 25px; }
.form-input {
  color: var(--white-2); font-size: var(--fs-6); font-weight: var(--fw-400);
  padding: 13px 20px; border: 1px solid var(--jet); border-radius: 14px; outline: none;
  transition: border-color var(--transition-1);
}
.form-input::placeholder { font-weight: var(--fw-500); }
.form-input:focus { border-color: var(--orange-yellow-crayola); }
textarea.form-input { min-height: 100px; height: 120px; max-height: 200px; resize: vertical; margin-bottom: 25px; }
textarea.form-input::-webkit-resizer { display: none; }
.form-btn {
  position: relative; width: 100%; background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola); display: flex; justify-content: center; align-items: center;
  gap: 10px; padding: 13px 20px; border-radius: 14px; font-size: var(--fs-6);
  text-transform: capitalize; box-shadow: var(--shadow-3); z-index: 1; transition: var(--transition-1);
}
.form-btn::before {
  content: ""; position: absolute; inset: 1px; background: var(--bg-gradient-jet);
  border-radius: inherit; z-index: -1; transition: var(--transition-1);
}
.form-btn ion-icon { font-size: 18px; }
.form-btn:hover, .form-btn:focus { background: var(--bg-gradient-yellow-1); }
.form-btn:hover::before, .form-btn:focus::before { background: var(--bg-gradient-yellow-2); }
.form-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.form-btn:disabled:hover { background: var(--border-gradient-onyx); }
.form-btn:disabled:hover::before { background: var(--bg-gradient-jet); }

/* RESPONSIVE 580px */
@media (min-width: 580px) {
  main { margin: 0 auto; padding: 30px 15px; margin-bottom: 100px; max-width: 560px; }
  .sidebar { max-height: 180px; padding: 30px; }
  .sidebar.active { max-height: 600px; }
  .avatar-box img { width: 120px; }
  .info_more-btn { top: -30px; right: -30px; padding: 10px 15px; }
  .info_more-btn span { display: inline; }
  .navbar { border-radius: 20px 20px 0 0; }
  .navbar-link { font-size: var(--fs-7); }
  article { padding: 30px; }
  .article-title::after { width: 40px; }
  .input-wrapper { grid-template-columns: 1fr 1fr; }
  .differentials-grid { grid-template-columns: 1fr 1fr; }
  .pricing-new { font-size: 42px; }
  .form-btn { font-size: var(--fs-5); padding: 16px 20px; }
}

/* RESPONSIVE 768px */
@media (min-width: 768px) {
  main { max-width: 740px; }
  .contacts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* RESPONSIVE 1024px */
@media (min-width: 1024px) {
  main { display: flex; justify-content: center; align-items: flex-start; gap: 25px; max-width: 1200px; margin-bottom: 60px; }
  .sidebar { position: sticky; top: 60px; max-height: max-content; min-width: 280px; max-width: 300px; margin-bottom: 0; }
  .sidebar.active { max-height: max-content; }
  .sidebar-info_more { opacity: 1; visibility: visible; }
  .info_more-btn { display: none; }
  .main-content { flex: 1; min-width: 0; }
  .navbar { position: absolute; bottom: auto; top: 0; left: auto; right: 0; width: max-content; border-radius: 0 20px; padding: 0 20px; }
  .navbar-link { font-size: var(--fs-6); padding: 20px 10px; }
  .navbar-list { gap: 20px; }
  .contacts-list { grid-template-columns: 1fr; }
  .pricing-new { font-size: 48px; }
}

/* RESPONSIVE 1250px */
@media (min-width: 1250px) {
  body::-webkit-scrollbar { width: 20px; }
  body::-webkit-scrollbar-track { background: var(--smoky-black); }
  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--smoky-black); background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, 0.11), inset -1px -1px 0 hsla(0, 0%, 100%, 0.11);
  }
  body::-webkit-scrollbar-thumb:hover { background: hsla(0, 0%, 100%, 0.15); }
  body::-webkit-scrollbar-button { height: 60px; }
}
