/* ============================================
   AtoZ-CRO Design System & Styles
   Matched pixel-perfect to live Elementor site
   ============================================ */

/* Font */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* Custom Properties */
:root {
  --color-primary: #04010C;
  --color-secondary: #FFFFFF;
  --color-accent: #292E75;
  --color-bg-light: #F4F5F8;
  --color-border: #EBEBEB;
  --font-family: 'Montserrat', sans-serif;
  --max-width: 1260px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6em;
  color: var(--color-primary);
  background: var(--color-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-primary);
}

h1 {
  font-size: 40px;
  line-height: 1.2em;
}

h2 {
  font-size: 22px;
  line-height: 1.5em;
}

/* Section headings use primary typography (40px) on the live site */
.section-heading {
  font-size: 40px;
  line-height: 1.2em;
}

strong, b {
  color: var(--color-accent);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-secondary);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.11);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px;
  max-width: 1385px;
  margin: 0 auto;
}

.header-logo img {
  width: 214px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav ul {
  display: flex;
  gap: 36px;
}

.header-nav ul a {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6em;
  color: var(--color-primary);
  transition: color 0.3s ease;
  position: relative;
}

.header-nav ul a:hover {
  color: var(--color-primary);
}

.btn {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4em;
  text-transform: uppercase;
  padding: 14px 50px;
  border-radius: 16px;
  background: var(--color-accent);
  color: var(--color-secondary);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #1e2260;
  color: var(--color-secondary);
}

.btn--header {
  padding: 14px 50px;
  font-size: 18px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger svg {
  width: 30px;
  height: 30px;
  fill: var(--color-primary);
}

.hamburger .icon-close {
  display: none;
}

.hamburger.active .icon-open {
  display: none;
}

.hamburger.active .icon-close {
  display: block;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  background: url('../img/atoz-hero-image-min.jpg') center/cover no-repeat;
  text-align: center;
  padding: 190px 10px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* No overlay on live site */

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

.hero h1 {
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.hero p {
  color: var(--color-secondary);
  font-size: 20px;
  line-height: 1.5em;
}

.scroll-chevron {
  position: relative;
  z-index: 1;
}

.scroll-chevron svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 2;
}

.scroll-chevron svg polyline:first-child {
  animation: moveUpDown 1.5s ease-in-out infinite;
  animation-delay: 0.3s;
}

.scroll-chevron svg polyline:last-child {
  animation: moveUpDown 1.5s ease-in-out infinite;
}

@keyframes moveUpDown {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

/* ============================================
   About Section
   ============================================ */

.about {
  margin: 70px 0 100px;
  padding: 0;
}

.about-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.about-text {
  width: 50%;
  flex-shrink: 0;
}

.about-text h2 {
  font-size: 40px;
  line-height: 1.2em;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  width: 50%;
  flex-shrink: 0;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
}

/* ============================================
   Numbers Section
   ============================================ */

.numbers {
  position: relative;
  background: url('../img/atoz-in-numbers-min.jpg') center/cover no-repeat;
  padding: 60px 0 120px;
  text-align: center;
}

.numbers::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 1, 12, 0.65);
}

.numbers .container {
  position: relative;
  z-index: 1;
}

.numbers h2 {
  color: var(--color-secondary);
  font-size: 40px;
  line-height: 1.2em;
  margin-bottom: 50px;
}

.counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 50px;
}

.counter-item {
  text-align: center;
}

.counter-number {
  font-size: 100px;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.1;
}

.counter-prefix {
  font-size: 100px;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.1;
}

.counter-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: 8px;
  line-height: 1.5em;
}

/* ============================================
   Services Section (Accordion)
   ============================================ */

.services {
  margin: 100px 0;
}

.services h2 {
  font-size: 40px;
  line-height: 1.2em;
  margin-bottom: 40px;
}

.accordion-grid {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.accordion-column {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: var(--color-accent);
  border-radius: 16px;
  overflow: hidden;
  border: none;
}

.accordion-item summary {
  padding: 24px 30px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5em;
  color: var(--color-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s;
}

.accordion-item summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: '+';
  font-size: 34px;
  font-weight: 300;
  color: var(--color-secondary);
  flex-shrink: 0;
  line-height: 1;
}

.accordion-item[open] summary::after {
  content: '-';
}

.accordion-content {
  padding: 0 30px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Further Services Section
   Hidden on all viewports (matches live site)
   ============================================ */

.further-services {
  display: none;
}

/* ============================================
   Quality Section
   ============================================ */

.quality {
  padding: 0;
  margin: 100px 0 0;
}

.quality-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 50px;
}

.quality-block--reverse {
  direction: rtl;
}

.quality-block--reverse > * {
  direction: ltr;
}

/* Second quality block: 55/40 split */
.quality-block:not(.quality-block--reverse) {
  grid-template-columns: 55% 40%;
  justify-content: space-between;
  margin-top: 50px;
  margin-bottom: 0;
}

.quality-block:not(.quality-block--reverse) .quality-image {
  margin-bottom: -50px;
}

.quality-text h2 {
  font-size: 40px;
  line-height: 1.2em;
  margin-bottom: 20px;
}

.quality-text p {
  margin-bottom: 16px;
}

.quality-image img {
  width: 100%;
  border-radius: 16px;
}

.quality-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 60px;
  margin-bottom: 50px;
}

.checklist-item {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}

.checklist-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-item span {
  font-size: 18px;
  line-height: 1.6em;
}

/* ============================================
   Company History Section
   ============================================ */

.history {
  background: url('../img/background-min.png') top center/cover no-repeat;
  padding: 100px 10px;
}

.history h2 {
  color: var(--color-secondary);
  font-size: 40px;
  line-height: 1.2em;
  text-align: center;
  margin-bottom: 50px;
}

.timeline {
  position: relative;
  max-width: 1050px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 5%;
  height: 90%;
  width: 20px;
  background-color: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 30px 60px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 80px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 80px;
}

.timeline-dot {
  display: none;
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 110px;
  height: 110px;
  background-color: var(--color-accent);
  border-radius: 50%;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2em;
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-year {
  position: absolute;
  right: -45px;
  top: 0;
}

.timeline-item:nth-child(even) .timeline-year {
  position: absolute;
  left: -45px;
  top: 0;
}

.timeline-icon {
  display: inline-block;
  margin-bottom: 15px;
}

.timeline-icon svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-title {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5em;
  margin-bottom: 6px;
}

.timeline-desc {
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1.7em;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
  background-color: var(--color-bg-light);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 50% 40%;
  gap: 0;
  justify-content: space-between;
}

.contact-text h2 {
  font-size: 40px;
  line-height: 1.2em;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 8px;
  line-height: 1.7;
}

.contact-info .contact-address {
  margin-bottom: 34px;
}

.contact-info a {
  color: var(--color-accent);
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-btn {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4em;
  text-transform: uppercase;
  padding: 14px 50px;
  border-radius: 16px;
  background: var(--color-accent);
  color: var(--color-secondary);
  text-decoration: none;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #1e2260;
  color: var(--color-secondary);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-accent);
  padding: 40px 0;
  color: var(--color-secondary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo img {
  width: 214px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a,
.footer-nav-link {
  color: var(--color-secondary) !important;
  font-size: 18px;
  font-weight: 500;
  transition: opacity 0.3s;
}

.footer-nav a:hover,
.footer-nav-link:hover {
  opacity: 0.8;
}

.footer-copy {
  font-size: 14px;
  opacity: 0.8;
}

/* ============================================
   Imprint Page
   ============================================ */

.legal-content {
  padding: 80px 0;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content h1:first-child {
  margin-top: 0;
}

.legal-content h6 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ============================================
   Mobile Nav Overlay
   ============================================ */

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-secondary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
}

.mobile-nav .btn {
  margin-top: 10px;
}

/* ============================================
   Responsive - Tablet
   ============================================ */

@media (max-width: 1279px) {
  h1 {
    font-size: 36px;
  }

  .header-inner {
    padding: 10px 20px;
  }

  .header-logo img {
    width: 160px;
  }

  .header-nav ul {
    display: none;
  }

  .btn--header {
    padding: 14px 30px;
    font-size: 16px;
  }

  .hamburger {
    display: block;
    order: 3;
  }

  .btn--header {
    order: 2;
    margin-left: auto;
  }

  .hero {
    padding: 50px 20px;
  }

  .about {
    margin: 30px 0 60px;
  }

  .about-grid {
    flex-direction: column;
    gap: 40px;
  }

  .about-text,
  .about-image {
    width: 100%;
  }

  .about-image img {
    height: 440px;
    object-fit: cover;
    object-position: center center;
  }

  .accordion-grid {
    flex-direction: column;
    gap: 24px;
  }

  .accordion-column {
    width: 100%;
  }

  .services {
    margin: 60px 0;
  }

  .quality-checklist {
    grid-template-columns: 1fr;
  }

  .quality-block,
  .quality-block:not(.quality-block--reverse) {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .timeline::before {
    width: 14px;
  }

  .timeline-year {
    width: 90px;
    height: 90px;
    font-size: 24px;
  }

  .timeline-item:nth-child(odd) .timeline-year {
    right: -45px;
  }

  .timeline-item:nth-child(even) .timeline-year {
    left: -45px;
  }

  .timeline-icon svg {
    width: 40px;
    height: 40px;
  }

  .counter-number {
    font-size: 80px;
  }

  .counter-prefix {
    font-size: 80px;
  }

  .numbers {
    padding: 60px 0;
  }

  .counters {
    justify-content: center;
    gap: 50px 100px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .about-text h2,
  .quality-text h2,
  .numbers h2,
  .services h2,
  .history h2,
  .contact-text h2 {
    font-size: 36px;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */

@media (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 1.7em;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 20px;
  }

  .header-logo img {
    width: 140px;
  }

  .hamburger svg {
    width: 24px;
    height: 24px;
  }

  .hero {
    padding: 120px 20px 60px;
    text-align: left;
    align-items: flex-start;
  }

  .hero p {
    font-size: 18px;
    line-height: 1.6em;
  }

  .about-grid,
  .quality-block,
  .quality-block:not(.quality-block--reverse),
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .quality-block--reverse {
    direction: ltr;
  }

  .quality-block:not(.quality-block--reverse) .quality-image {
    margin-bottom: 0;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: auto;
    object-fit: initial;
  }

  .counters {
    justify-content: space-between;
    gap: 40px 0;
  }

  .counter-item {
    width: 48%;
    text-align: center;
  }

  .counter-number {
    font-size: 60px;
  }

  .counter-prefix {
    font-size: 60px;
  }

  .counter-label {
    font-size: 18px;
  }

  .accordion-item summary {
    font-size: 20px;
    padding: 20px 24px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .btn--header {
    padding: 12px 16px;
    font-size: 14px;
  }

  .contact-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Timeline mobile: single column */
  .timeline::before {
    left: 20px;
    width: 14px;
    height: 100%;
    top: 0;
    transform: translateX(-50%);
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) .timeline-year,
  .timeline-item:nth-child(even) .timeline-year {
    position: relative;
    left: auto;
    right: auto;
    width: 70px;
    height: 70px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .history {
    padding: 60px 20px;
  }

  .contact {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  .legal-content {
    padding: 40px 20px;
  }

  .about-text h2,
  .quality-text h2,
  .numbers h2,
  .services h2,
  .history h2,
  .contact-text h2 {
    font-size: 30px;
  }
}
