/* ==========================================================================
   CILENTO REAL ESTATE - REUSABLE COMPONENTS
   Buttons, forms, cards, dividers, and other shared UI components
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  background: transparent;
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.btn:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-submit {
  background: var(--accent-gold);
  width: fit-content;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  background: var(--accent-gold-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--tertiary-dark);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Checkbox Styling */
.checkbox-group {
  margin-bottom: 2rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
}

input[type="checkbox"]:checked + .checkmark {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
}

.privacy-link {
  color: var(--accent-gold);
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   DIVIDERS
   ========================================================================== */

.divider {
  width: 80px;
  height: 2px;
  background: var(--accent-gold);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}


/* ==========================================================================
   SECTION HEADERS (used across multiple pages)
   ========================================================================== */

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   HERO SHARED STYLES (for secondary pages)
   ========================================================================== */

.page-hero,
.contact-hero,
.work-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-bottom: -100px;
  background-size: cover;
  background-position: center;
}

.page-hero {
  
  width: 100%;
  height: 100%;
   background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(https://pub-7161d024d86c4d04b3a2c7f8d3fce4ca.r2.dev/images/valu.jpeg) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 2rem;
}


.hero-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 2rem;
}


.hero-content {
  z-index: 2;
  max-width: 850px;
  color: white;
}

.hero-content h1,
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.hero-content blockquote p,
.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  /* Hero */
  .page-hero,
  .contact-hero,
  .work-hero,
  .segnala-hero {
    min-height: auto;
    padding-top: 140px;
    margin-bottom: -30px;
  }

  .hero-content h1,
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-content blockquote p,
  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  /* Section Headers */
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1,
  .hero-title {
    font-size: 2rem;
  }
}
