/* Component Styles - Buttons, Cards, Hero, Forms */

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-align: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-ocean);
  color: white;
  border-color: var(--color-ocean);
}

.btn-primary:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: white;
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}

.btn-gold:hover {
  background-color: #B89555;
  border-color: #B89555;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-navy);
  padding: 60px 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 58, 92, 0.85) 0%,
    rgba(74, 144, 184, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 0 var(--space-md);
}

/* Hero Slideshow Background */
.hero-slideshow-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slideshow-image.active {
  opacity: 1;
}

/* Dark overlay for slideshow (property management page) */
.hero-slideshow-bg + .hero-overlay {
  background: rgba(27, 58, 92, 0.72);
}

.hero-content h1 {
  color: white;
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.hero-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 768px) {
  .hero-content p {
    font-size: var(--text-xl);
  }
}

.hero-content .btn {
  margin-top: var(--space-sm);
}

/* Service Cards and Grid */
.services {
  background-color: var(--color-bg-alt);
}

.services h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: var(--container-xl);
  margin: 0 auto;
}

@media (min-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background-color: white;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-ocean);
}

.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Compact Services List */
.services-list {
  max-width: var(--container-lg);
  margin: 0 auto;
  background-color: white;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
}

.services-columns {
  list-style: disc;
  padding-left: 1.5rem;
  column-count: 1;
  column-gap: var(--space-lg);
}

@media (min-width: 768px) {
  .services-columns {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .services-columns {
    column-count: 3;
  }
}

.services-columns li {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: 0.75rem;
  break-inside: avoid;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-ocean) 0%, var(--color-navy) 100%);
  color: white;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-lg);
}

.cta-banner h2 {
  color: white;
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.95);
}

/* Profile Card */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .profile-card {
    flex-direction: row;
    text-align: left;
    gap: var(--space-md);
  }
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin-bottom: var(--space-sm);
  border: 4px solid var(--color-sand);
}

@media (min-width: 768px) {
  .profile-photo {
    margin-bottom: 0;
  }
}

.profile-info h3 {
  margin-bottom: 0.25rem;
}

.profile-info .title {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.profile-info .phone {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-ocean);
  margin-bottom: var(--space-sm);
}

.profile-info .phone a {
  color: var(--color-ocean);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E5E5E5;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-ocean);
}

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

.form-message {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

.form-message.success {
  background-color: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.form-message.error {
  background-color: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
}

/* Contact Info Box */
.contact-info-box {
  background-color: var(--color-sand);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-ocean);
}

.contact-info-box h3 {
  margin-bottom: var(--space-sm);
}

.contact-info-box p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info-box p:last-child {
  margin-bottom: 0;
}

.contact-info-box a {
  color: var(--color-ocean);
  font-weight: var(--weight-medium);
}

/* Value Proposition Cards */
.value-card {
  padding: var(--space-md);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
}

.value-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.value-card p {
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg) auto;
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

/* Service Overview Cards (Homepage) */
.service-overview-card {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm) auto;
  color: var(--color-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-overview-card h3 {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.service-overview-card p {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

.service-overview-card .btn {
  margin-top: auto;
}

.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Compact Contact Strip */
.contact-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-sand);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .contact-strip {
    flex-direction: row;
    justify-content: space-between;
    padding: var(--space-lg);
  }
}

.contact-strip-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-photo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid white;
}

.contact-strip .contact-info h3 {
  margin-bottom: 0.25rem;
  font-size: var(--text-xl);
}

.contact-strip .phone {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0;
}

.contact-strip .phone a {
  color: var(--color-ocean);
}

.contact-strip-cta {
  flex-shrink: 0;
}

/* Expertise Cards (About Page) */
.expertise-card {
  background-color: var(--color-sand);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-ocean);
}

.expertise-header h3 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.expertise-years {
  font-style: italic;
  color: var(--color-ocean);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-sm);
}

.expertise-card p {
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}
