/* HellExJur — Mediterranean Legal Theme */
:root {
  --hx-blue: #0369a1;
  --hx-blue-dark: #075985;
  --hx-blue-light: #0ea5e9;
  --hx-gold: #ca8a04;
  --hx-gold-light: #eab308;
  --hx-yellow-bg: #fef9c3;
  --hx-yellow-warm: #fef08a;
  --hx-white: #ffffff;
  --hx-text: #1e293b;
  --hx-text-muted: #64748b;
  --hx-shadow: 0 4px 24px rgba(3, 105, 161, 0.12);
  --hx-radius: 12px;
  --hx-header-h: 80px;
  --hx-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--hx-font);
  color: var(--hx-text);
  background: var(--hx-yellow-bg);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hx-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--hx-gold);
}

ul {
  list-style: none;
}

.hx-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — transparent over hero */
.hx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--hx-header-h);
  transition: background 0.3s, box-shadow 0.3s;
}

.hx-header.hx-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--hx-shadow);
}

.hx-header.hx-scrolled .hx-logo,
.hx-header.hx-scrolled .hx-nav-link {
  color: var(--hx-text);
}

.hx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.hx-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hx-white);
  letter-spacing: -0.02em;
}

.hx-logo span {
  color: var(--hx-gold-light);
}

.hx-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hx-nav-link {
  color: var(--hx-white);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.hx-nav-link:hover,
.hx-nav-link.hx-active {
  color: var(--hx-gold-light);
}

.hx-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--hx-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.hx-header.hx-scrolled .hx-nav-toggle {
  color: var(--hx-blue);
}

/* Hero */
.hx-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.82) 0%, rgba(7, 89, 133, 0.65) 50%, rgba(202, 138, 4, 0.35) 100%);
}

.hx-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: calc(var(--hx-header-h) + 48px) 24px 80px;
  margin: 0 auto;
  text-align: center;
  color: var(--hx-white);
}

.hx-hero-tag {
  display: inline-block;
  background: rgba(202, 138, 4, 0.9);
  color: var(--hx-white);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hx-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hx-hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 36px;
}

.hx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hx-btn:hover {
  transform: translateY(-2px);
}

.hx-btn-primary {
  background: var(--hx-gold);
  color: var(--hx-white);
  box-shadow: 0 4px 16px rgba(202, 138, 4, 0.4);
}

.hx-btn-primary:hover {
  background: var(--hx-gold-light);
  color: var(--hx-white);
}

.hx-btn-outline {
  background: transparent;
  color: var(--hx-white);
  border: 2px solid var(--hx-white);
}

.hx-btn-outline:hover {
  background: var(--hx-white);
  color: var(--hx-blue);
}

.hx-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Service Category Tabs */
.hx-tabs-wrap {
  background: var(--hx-white);
  box-shadow: var(--hx-shadow);
  position: relative;
  z-index: 10;
  margin-top: -40px;
  border-radius: var(--hx-radius);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hx-tabs {
  display: flex;
  flex-wrap: wrap;
}

.hx-tab {
  flex: 1;
  min-width: 140px;
  padding: 20px 16px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hx-text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  font-family: var(--hx-font);
}

.hx-tab i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--hx-blue-light);
}

.hx-tab:hover {
  color: var(--hx-blue);
  background: var(--hx-yellow-bg);
}

.hx-tab.hx-tab-active {
  color: var(--hx-blue);
  border-bottom-color: var(--hx-gold);
  background: var(--hx-yellow-warm);
}

.hx-tab-panel {
  display: none;
  padding: 32px 40px;
  animation: hxFadeIn 0.3s ease;
}

.hx-tab-panel.hx-tab-panel-active {
  display: block;
}

@keyframes hxFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.hx-section {
  padding: 80px 0;
}

.hx-section-alt {
  background: var(--hx-white);
}

.hx-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.hx-section-header h2 {
  font-size: 2rem;
  color: var(--hx-blue);
  margin-bottom: 12px;
}

.hx-section-header p {
  color: var(--hx-text-muted);
}

.hx-label {
  display: inline-block;
  color: var(--hx-gold);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* Cards Grid */
.hx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.hx-card {
  background: var(--hx-white);
  border-radius: var(--hx-radius);
  overflow: hidden;
  box-shadow: var(--hx-shadow);
  transition: transform 0.2s;
}

.hx-card:hover {
  transform: translateY(-4px);
}

.hx-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.hx-card-body {
  padding: 24px;
}

.hx-card-body h3 {
  font-size: 1.15rem;
  color: var(--hx-blue);
  margin-bottom: 10px;
}

.hx-card-body p {
  color: var(--hx-text-muted);
  font-size: 0.95rem;
}

.hx-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--hx-blue), var(--hx-blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hx-white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Checklist Tool */
.hx-checklist {
  background: var(--hx-white);
  border-radius: var(--hx-radius);
  padding: 40px;
  box-shadow: var(--hx-shadow);
  max-width: 800px;
  margin: 0 auto;
}

.hx-checklist h3 {
  color: var(--hx-blue);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.hx-checklist-desc {
  color: var(--hx-text-muted);
  margin-bottom: 28px;
}

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

.hx-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--hx-text);
  font-size: 0.9rem;
}

.hx-form-group select,
.hx-form-group input,
.hx-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: var(--hx-font);
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--hx-yellow-bg);
}

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

.hx-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hx-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.hx-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--hx-blue);
}

.hx-checklist-result {
  margin-top: 28px;
  padding: 24px;
  background: var(--hx-yellow-warm);
  border-radius: 8px;
  border-left: 4px solid var(--hx-gold);
  display: none;
}

.hx-checklist-result.hx-visible {
  display: block;
}

.hx-checklist-result h4 {
  color: var(--hx-blue);
  margin-bottom: 12px;
}

.hx-checklist-result ul {
  list-style: disc;
  padding-left: 20px;
}

.hx-checklist-result li {
  margin-bottom: 8px;
  color: var(--hx-text);
}

.hx-checklist-result .hx-priority-high {
  color: #b91c1c;
  font-weight: 600;
}

.hx-checklist-result .hx-priority-medium {
  color: var(--hx-gold);
  font-weight: 600;
}

/* About / Team */
.hx-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hx-about-img {
  border-radius: var(--hx-radius);
  box-shadow: var(--hx-shadow);
}

.hx-about-text h2 {
  font-size: 2rem;
  color: var(--hx-blue);
  margin-bottom: 16px;
}

.hx-about-text p {
  color: var(--hx-text-muted);
  margin-bottom: 16px;
}

.hx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.hx-stat {
  text-align: center;
  padding: 20px;
  background: var(--hx-yellow-warm);
  border-radius: var(--hx-radius);
}

.hx-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--hx-blue);
}

.hx-stat-label {
  font-size: 0.85rem;
  color: var(--hx-text-muted);
}

/* Contact */
.hx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.hx-contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.hx-contact-info-item i {
  width: 44px;
  height: 44px;
  background: var(--hx-blue);
  color: var(--hx-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hx-contact-form {
  background: var(--hx-white);
  padding: 36px;
  border-radius: var(--hx-radius);
  box-shadow: var(--hx-shadow);
}

.hx-form-success {
  display: none;
  padding: 16px;
  background: #dcfce7;
  color: #166534;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
}

.hx-form-success.hx-visible {
  display: block;
}

/* Page Hero (inner pages) */
.hx-page-hero {
  background: linear-gradient(135deg, var(--hx-blue) 0%, var(--hx-blue-dark) 60%, var(--hx-gold) 100%);
  padding: calc(var(--hx-header-h) + 48px) 24px 64px;
  text-align: center;
  color: var(--hx-white);
}

.hx-page-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.hx-page-hero p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

.hx-header-inner-page .hx-logo,
.hx-header-inner-page .hx-nav-link {
  color: var(--hx-white);
}

.hx-header-inner-page.hx-scrolled .hx-logo,
.hx-header-inner-page.hx-scrolled .hx-nav-link {
  color: var(--hx-text);
}

/* Privacy */
.hx-privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hx-privacy-content h2 {
  color: var(--hx-blue);
  font-size: 1.4rem;
  margin: 32px 0 12px;
}

.hx-privacy-content p,
.hx-privacy-content li {
  color: var(--hx-text-muted);
  margin-bottom: 12px;
}

.hx-privacy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Footer */
.hx-footer {
  background: var(--hx-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 24px;
}

.hx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.hx-footer h4 {
  color: var(--hx-gold-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

.hx-footer a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.hx-footer a:hover {
  color: var(--hx-gold-light);
}

.hx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Cookie Banner */
.hx-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--hx-white);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  padding: 20px 24px;
  z-index: 9999;
  display: none;
}

.hx-cookie.hx-cookie-visible {
  display: block;
}

.hx-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hx-cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--hx-text-muted);
}

.hx-cookie-text a {
  color: var(--hx-blue);
  text-decoration: underline;
}

.hx-cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.hx-cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: var(--hx-font);
}

.hx-cookie-accept {
  background: var(--hx-blue);
  color: var(--hx-white);
}

.hx-cookie-decline {
  background: transparent;
  color: var(--hx-text-muted);
  border: 2px solid #e2e8f0;
}

/* Services list */
.hx-service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.hx-service-detail:nth-child(even) {
  direction: rtl;
}

.hx-service-detail:nth-child(even) > * {
  direction: ltr;
}

.hx-service-detail img {
  border-radius: var(--hx-radius);
  box-shadow: var(--hx-shadow);
}

.hx-service-detail h3 {
  font-size: 1.5rem;
  color: var(--hx-blue);
  margin-bottom: 12px;
}

.hx-service-detail p {
  color: var(--hx-text-muted);
  margin-bottom: 12px;
}

.hx-service-list {
  margin-top: 16px;
}

.hx-service-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--hx-text);
}

.hx-service-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--hx-gold);
}

/* Responsive */
@media (max-width: 768px) {
  .hx-nav {
    display: none;
    position: absolute;
    top: var(--hx-header-h);
    left: 0;
    right: 0;
    background: var(--hx-white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--hx-shadow);
  }

  .hx-nav.hx-nav-open {
    display: flex;
  }

  .hx-nav-open .hx-nav-link {
    color: var(--hx-text);
  }

  .hx-nav-toggle {
    display: block;
  }

  .hx-about-grid,
  .hx-contact-grid,
  .hx-service-detail {
    grid-template-columns: 1fr;
  }

  .hx-service-detail:nth-child(even) {
    direction: ltr;
  }

  .hx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hx-stats {
    grid-template-columns: 1fr;
  }

  .hx-tabs-wrap {
    margin-top: 0;
    border-radius: 0;
  }

  .hx-tab {
    min-width: 50%;
  }
}

@media (max-width: 480px) {
  .hx-footer-grid {
    grid-template-columns: 1fr;
  }

  .hx-tab {
    min-width: 100%;
  }
}
