/* Button Base Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--secondary);
  color: var(--text-on-secondary);
}

.btn--primary:hover {
  background-color: var(--secondary-dark);
  color: var(--text-on-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 168, 48, 0.25);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  background-color: transparent;
  border-color: white;
  color: white;
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

.btn--pill {
  border-radius: var(--radius-pill);
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-label {
  display: inline-block;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 30px;
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.badge--completed {
  background-color: #E2F0D9;
  color: var(--success);
}

.badge--ready {
  background-color: #E8F0FE;
  color: var(--primary);
}

.badge--ongoing {
  background-color: #FFF2CC;
  color: #B25E00;
}

/* Project Cards */
.project-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(30, 58, 110, 0.12);
  border-color: rgba(240, 168, 48, 0.4);
}

.project-card__img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-card__img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(15, 32, 64, 0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-card__img img {
  transform: scale(1.08);
}

.project-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
}

.badge--completed {
  background-color: rgba(42, 125, 79, 0.9);
  color: white;
}

.badge--ongoing {
  background-color: rgba(240, 168, 48, 0.95);
  color: var(--primary);
}

.project-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card__type {
  font-size: 11px;
  color: var(--secondary-dark);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.project-card__title {
  font-size: 23px;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.25;
  transition: color 0.3s ease;
}

.project-card:hover .project-card__title {
  color: var(--primary-light);
}

.project-card__location {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-card__location i {
  color: var(--secondary);
}

.project-card__bhk {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

.project-card__btn {
  margin-top: auto;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
  transition: all 0.3s ease;
}

.project-card:hover .project-card__btn {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(30, 58, 110, 0.2);
}

/* Testimonial Cards */
.testimonial-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card__quote-mark {
  font-family: var(--font-heading);
  font-size: 80px;
  line-height: 1;
  color: rgba(240, 168, 48, 0.15);
  position: absolute;
  top: 10px;
  left: 20px;
  pointer-events: none;
}

.testimonial-card__stars {
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.testimonial-card__text {
  color: var(--text-secondary);
  font-size: 15px;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.testimonial-card__author {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 4px;
}

.testimonial-card__project {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

/* Stat Cards */
.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  color: white;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Enquiry Form Styling */
.enquiry-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.enquiry-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
  text-align: center;
}

.enquiry-card__sub {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.1);
}

textarea.form-control {
  resize: vertical;
}

.error-msg {
  color: var(--error);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-group.invalid .form-control {
  border-color: var(--error);
}

.form-group.invalid .error-msg {
  display: block;
}

.success-msg {
  display: none;
  background-color: #D4EDDA;
  color: #155724;
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #C3E6CB;
}

/* Details Table */
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.details-table th, 
.details-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.details-table th {
  font-weight: 600;
  color: var(--primary);
  width: 35%;
}

.details-table td {
  color: var(--text-secondary);
}

.details-table tr:last-child th,
.details-table tr:last-child td {
  border-bottom: none;
}

/* Nearby Landmarks Icon List */
.landmarks-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 576px) {
  .landmarks-list {
    grid-template-columns: 1fr;
  }
}

.landmarks-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.landmarks-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(240, 168, 48, 0.1);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Sticky WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  z-index: 999;
  font-size: 28px;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Mobile sticky bottom actions strip */
.mobile-action-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    z-index: 998;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }
  
  .mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-action-btn:last-child {
    border-right: none;
    background-color: var(--secondary);
    color: var(--text-on-secondary);
  }
  
  /* adjust body padding so content isn't cut off by action bar */
  body {
    padding-bottom: 56px;
  }
}
