/* Reusable Components */

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1.5;
}

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

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Cards */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

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

.card-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.card-text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: var(--space-4);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Service Cards */
.service-card {
  text-align: center;
  padding: var(--space-8);
}

.service-icon {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.service-card h3 {
  margin-bottom: var(--space-3);
}

/* Blog Card */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: var(--space-4);
}

.blog-card-meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.blog-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.blog-card-excerpt {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.blog-card-link {
  color: var(--color-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.blog-card-link:hover {
  text-decoration: none;
}

/* Tags */
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-background);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  border-radius: var(--border-radius);
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
}

.tag-accent {
  background-color: rgba(95, 204, 219, 0.1);
  color: var(--color-accent);
}

/* Quote Block */
.quote-block {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.quote-block cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-base);
  font-style: normal;
  color: var(--color-text);
  font-weight: 600;
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--color-border);
  margin: var(--space-12) 0;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Image with overlay text */
.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.image-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.image-overlay:hover img {
  transform: scale(1.05);
}

.overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--color-white);
  padding: var(--space-6);
}

.overlay-content h3 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

/* Loading state */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Nav "Coming Soon" badge */
.nav-coming-soon {
  position: relative;
}

.nav-coming-soon::after {
  content: 'Soon';
  font-size: 0.55em;
  font-weight: 700;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: super;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Coming Soon Page */
.coming-soon-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
}

.coming-soon-content {
  max-width: 700px;
  text-align: center;
}

.coming-soon-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background-color: rgba(95, 204, 219, 0.1);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  margin-bottom: var(--space-6);
}

.coming-soon-content h1 {
  margin-bottom: var(--space-4);
}

.coming-soon-content .lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}

.coming-soon-previews {
  text-align: left;
  margin-bottom: var(--space-10);
}

.coming-soon-previews h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
}

.coming-soon-item {
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--color-accent);
  margin-bottom: var(--space-4);
  background: var(--color-white);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  box-shadow: var(--shadow-sm);
}

.coming-soon-item h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.coming-soon-item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.coming-soon-cta {
  background: linear-gradient(135deg, rgba(45, 55, 72, 0.05) 0%, rgba(74, 85, 104, 0.05) 100%);
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
}

.coming-soon-cta p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--space-6);
  }

  .blog-card-image {
    height: 200px;
  }
}
