/* Component Styles */
/* Reusable UI components: cards, buttons, forms, hero, etc. */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:focus {
  outline: 2px solid var(--primary-teal);
  outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
  background-color: var(--primary-teal);
  color: var(--text-white);
  border-color: var(--primary-teal);
}

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

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--bg-white);
  color: var(--primary-teal);
  border-color: var(--bg-white);
}

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

/* Gold Button */
.btn-gold {
  background-color: var(--accent-gold);
  color: var(--text-white);
  border-color: var(--accent-gold);
}

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

/* Button Sizes */
.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-body-sm);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--fs-body-lg);
}

.btn-full {
  width: 100%;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-lg);
  color: var(--primary-teal);
}

.card-icon.gold {
  color: var(--accent-gold);
}

.card-title {
  font-size: var(--fs-h4);
  color: var(--primary-teal);
  margin-bottom: var(--space-md);
}

.card-text {
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: var(--space-lg);
}

.card-link {
  color: var(--primary-teal);
  font-weight: var(--fw-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: auto;
}

.card-link:hover {
  color: var(--primary-teal-dark);
  gap: var(--space-sm);
}

/* Service Card */
.service-card {
  text-align: center;
  border: 1px solid var(--border-light);
}

.service-card:hover {
  border-color: var(--primary-teal);
}

/* Condition Card */
.condition-card {
  border-left: 4px solid var(--accent-gold);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-teal-light) 0%, var(--primary-teal) 100%);
  color: var(--text-white);
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
  background-size: 100px 100px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  color: var(--text-white);
  font-size: var(--fs-hero);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: var(--fs-h3);
  color: var(--accent-gold);
  margin-bottom: var(--space-2xl);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  text-transform: none;
}

.hero-text {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-relaxed);
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

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

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-body-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background-color: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(74, 124, 122, 0.1);
}

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

.form-error {
  color: var(--error);
  font-size: var(--fs-body-sm);
  margin-top: var(--space-xs);
}

.form-required {
  color: var(--error);
}

/* ========================================
   TIMELINE
   ======================================== */

.timeline {
  position: relative;
  padding: var(--space-2xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent-gold);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-3xl);
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-end;
  text-align: right;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  text-align: left;
}

.timeline-content {
  background-color: var(--bg-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 45%;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--accent-gold);
  border: 4px solid var(--bg-cream);
  border-radius: var(--radius-full);
  top: 20px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -58px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -58px;
}

.timeline-year {
  font-size: var(--fs-h4);
  color: var(--accent-gold);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
}

.timeline-title {
  font-size: var(--fs-h5);
  color: var(--primary-teal);
  margin-bottom: var(--space-sm);
}

.timeline-description {
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}

/* ========================================
   CONTACT INFO
   ======================================== */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.contact-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-teal);
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.contact-details p,
.contact-details a {
  font-size: var(--fs-body-lg);
  color: var(--text-primary);
  font-weight: var(--fw-medium);
  margin: 0;
}

.contact-details a:hover {
  color: var(--primary-teal);
}

/* ========================================
   EXPERTISE GRID
   ======================================== */

.expertise-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-gold);
  transition: all var(--transition-fast);
}

.expertise-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.expertise-icon {
  width: 30px;
  height: 30px;
  color: var(--primary-teal);
  flex-shrink: 0;
}

.expertise-text {
  font-size: var(--fs-body);
  color: var(--text-primary);
  font-weight: var(--fw-medium);
}

/* ========================================
   MAP CONTAINER
   ======================================== */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: var(--space-2xl) 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   BADGE
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border-radius: var(--radius-full);
  background-color: var(--bg-teal-light);
  color: var(--primary-teal);
}

.badge-gold {
  background-color: var(--accent-gold);
  color: var(--text-white);
}

/* ========================================
   DIVIDER
   ======================================== */

.divider {
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
  margin: var(--space-lg) auto;
}

.divider-left {
  margin-left: 0;
  margin-right: auto;
}

.divider-right {
  margin-left: auto;
  margin-right: 0;
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--bg-teal-light);
  border-top-color: var(--primary-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========================================
   FADE IN ANIMATION
   ======================================== */

.fade-in {
  opacity: 0;
  animation: fadeIn var(--transition-slow) forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ========================================
   HIDDEN LANGUAGE CONTENT
   ======================================== */

[data-lang-en],
[data-lang-el] {
  transition: opacity var(--transition-fast);
}

.lang-hidden {
  display: none;
}
