/*
Theme Name: Timeline
Theme URI: https://timeline.al
Author: Emiljano
Author URI: https://timeline.al
Description: Timeline is a clean WordPress theme created by Emiljano for the Timeline brand, built to work smoothly with Elementor.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: timeline
*/

:root {
  --timeline-text: #1f2937;
  --timeline-muted: #6b7280;
  --timeline-border: #e5e7eb;
  --timeline-surface: #ffffff;
  --timeline-width: min(1200px, calc(100% - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--timeline-text);
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.timeline-shell {
  width: var(--timeline-width);
  margin: 0 auto;
}

.timeline-site-header {
  position: relative;
  z-index: 20;
  background: var(--timeline-surface);
  border-bottom: 1px solid var(--timeline-border);
}

.timeline-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.timeline-brand {
  display: inline-flex;
  align-items: center;
  color: var(--timeline-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-brand img {
  max-height: 56px;
  width: auto;
}

.timeline-menu ul {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-menu a,
.timeline-mobile-menu a,
.timeline-footer-menu a {
  color: var(--timeline-text);
}

.timeline-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--timeline-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--timeline-text);
  cursor: pointer;
}

.timeline-menu-toggle__bars,
.timeline-menu-toggle::before,
.timeline-menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
  content: "";
}

.timeline-menu-toggle__bars {
  position: relative;
}

.timeline-menu-toggle::before {
  transform: translateY(-6px);
}

.timeline-menu-toggle::after {
  transform: translateY(6px);
}

body.timeline-menu-open .timeline-menu-toggle__bars {
  opacity: 0;
}

body.timeline-menu-open .timeline-menu-toggle::before {
  transform: translateY(2px) rotate(45deg);
}

body.timeline-menu-open .timeline-menu-toggle::after {
  transform: translateY(0) rotate(-45deg);
}

.timeline-mobile-menu {
  display: none;
  padding-bottom: 16px;
}

.timeline-mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-mobile-menu a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--timeline-border);
}

.timeline-site-main {
  padding: 32px 0;
}

.timeline-site-main--elementor {
  padding: 0;
}

.timeline-card {
  background: #ffffff;
}

.timeline-page-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.timeline-page-content {
  color: var(--timeline-text);
}

.timeline-page-content > *:last-child {
  margin-bottom: 0;
}

.timeline-site-footer {
  border-top: 1px solid var(--timeline-border);
  padding: 24px 0;
}

.timeline-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.timeline-footer-row p {
  margin: 0;
  color: var(--timeline-muted);
}

.timeline-footer-menu ul {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-empty-state {
  text-align: center;
  padding: 64px 0;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.alignwide {
  width: min(1400px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.elementor-location-header,
.elementor-location-footer {
  width: 100%;
}

@media (max-width: 900px) {
  .timeline-menu {
    display: none;
  }

  .timeline-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
  }

  body.timeline-menu-open .timeline-mobile-menu {
    display: block;
  }

  .timeline-footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-footer-menu ul {
    flex-wrap: wrap;
  }
}
