/*
Theme Name: Ekipaj Pro
Author: AI Designer
Description: A professional, trustworthy automotive service theme with a focus on diagnostics and reliability.
Version: 3.1
*/

:root {
  /* Colors - Trustworthy & Technical */
  --c-primary: #003366; /* Deep Navy Blue */
  --c-secondary: #0055A4; /* Brighter Blue */
  --c-accent: #FFD700; /* Gold/Yellow for CTA (Attention) */
  --c-text-dark: #222222;
  --c-text-light: #555555;
  --c-bg-light: #F4F7F9; /* Very light cool grey */
  --c-bg-white: #FFFFFF;
  --c-border: #E0E0E0;
  
  /* Typography */
  --f-heading: 'Roboto Condensed', sans-serif; /* Technical, compact */
  --f-body: 'Roboto', sans-serif; /* Clean, legible */
  
  /* Spacing */
  --s-container: 1280px;
  --s-gutter: 30px;
  
  /* Components */
  --radius: 4px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* IMPORT FONTS (Loaded via functions.php, fallbacks here) */

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

body {
  background-color: var(--c-bg-light);
  color: var(--c-text-dark);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

ul { list-style: none; }

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

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--c-secondary);
  color: #fff;
  font-family: var(--f-heading);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: var(--c-primary);
  color: #fff;
}

.btn-accent {
  background-color: var(--c-accent);
  color: var(--c-text-dark);
}
.btn-accent:hover {
  background-color: #E6C200;
  color: var(--c-text-dark);
}

/* HEADER - Solid & Information Rich */
.site-top-bar {
  background-color: var(--c-primary);
  color: #fff;
  padding: 10px 0;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contacts {
  display: flex;
  gap: 20px;
}
.top-contacts a:hover { text-decoration: underline; }

.site-header {
  background-color: var(--c-bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.brand-logo {
  font-family: var(--f-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-family: var(--f-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--c-text-dark);
}

.main-nav a:hover {
  color: var(--c-secondary);
}

/* HERO SECTION - Service Oriented */
.hero-section {
  background-color: var(--c-primary);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
}

/* NEW BLOCK 1: CATEGORIES */
.cat-section {
    padding: 60px 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.cat-card {
    background: var(--c-bg-light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}

.cat-card:hover {
    background: #fff;
    border-color: var(--c-secondary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cat-card p {
    color: var(--c-text-light);
    font-size: 0.9rem;
}

/* NEW BLOCK 2: FEATURED / EDITOR'S CHOICE */
.featured-section {
    padding: 40px 0;
    background: var(--c-bg-light);
}

.featured-wrap {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 30px;
}

.featured-label {
    background: var(--c-primary);
    color: #fff;
    padding: 10px 20px;
    font-family: var(--f-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius);
    white-space: nowrap;
}

.featured-grid {
    display: flex;
    gap: 30px;
    flex-grow: 1;
    overflow-x: auto;
}

.featured-item {
    min-width: 250px;
    border-left: 3px solid var(--c-accent);
    padding-left: 15px;
}

.feat-date {
    font-size: 0.8rem;
    color: var(--c-text-light);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.featured-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--c-text-dark);
}

.feat-link {
    font-size: 0.85rem;
    color: var(--c-secondary);
    font-weight: 700;
}

/* SERVICE CARDS (Grid) */
.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--c-text-dark);
}
.section-subtitle {
  color: var(--c-text-light);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.service-card {
  background: var(--c-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
  border-top: 4px solid var(--c-secondary);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-excerpt {
  color: var(--c-text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.service-link {
  font-weight: 700;
  color: var(--c-secondary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* TRUST BLOCK (Icons) */
.trust-section {
  background-color: var(--c-bg-white);
  padding: 60px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.trust-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 30px;
}

.trust-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.trust-item p {
  color: var(--c-text-light);
  font-size: 0.9rem;
}

/* ENTRY CONTENT (Global) */
.entry-content {
  background: var(--c-bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.entry-content p { margin-bottom: 1.5rem; }
.entry-content h2 { font-size: 1.8rem; margin-top: 2.5rem; padding-bottom: 10px; border-bottom: 2px solid var(--c-bg-light); }
.entry-content h3 { font-size: 1.5rem; margin-top: 2rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.5rem; padding-left: 20px; }
.entry-content li { margin-bottom: 0.5rem; }

/* FOOTER */
.site-footer {
  background-color: #1A1A1A;
  color: #ccc;
  padding: 60px 0 20px;
  font-size: 0.9rem;
}

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

.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links li {
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}
.footer-links a:hover { color: var(--c-accent); }

.footer-contacts li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  opacity: 0.6;
}

/* PAGINATION */
.pagination {
  margin-top: 40px;
  text-align: center;
}
.page-numbers {
  display: inline-block;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid var(--c-border);
  margin: 0 5px;
  border-radius: var(--radius);
  color: var(--c-primary);
  font-weight: 600;
}
.page-numbers.current {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-top-bar { display: none; }
  .header-main { flex-direction: column; gap: 15px; }
  .main-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
  
  .hero-content h1 { font-size: 2.5rem; }
  
  .cat-grid { grid-template-columns: 1fr; }
  
  .featured-wrap { flex-direction: column; text-align: center; }
  .featured-grid { flex-direction: column; width: 100%; }
  
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .entry-content { padding: 20px; }
}
