/*
Theme Name: AST Center Journal
Author: AI Designer
Description: An industrial, high-precision theme for automotive service quality and technical maintenance.
Version: 11.0
*/

:root {
  /* Colors - Industrial Bauhaus */
  --c-bg: #F5F5F5;
  --c-text: #1A1A1A;
  --c-accent: #FFCC00; /* Safety Yellow */
  --c-primary: #0055FF; /* Precision Blue */
  --c-border: #1A1A1A;
  --c-white: #FFFFFF;
  --c-grey: #E5E5E5;
  
  /* Typography */
  --f-display: 'Archivo Black', sans-serif;
  --f-body: 'Inter', sans-serif;
  
  /* Layout */
  --s-container: 1400px;
  --b-width: 2px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 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 40px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 18px 40px;
  background: var(--c-text);
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 1rem;
  border: var(--b-width) solid var(--c-text);
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: var(--c-accent);
  color: var(--c-text);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px var(--c-text);
}

.btn-blue {
    background: var(--c-primary);
}

/* HEADER - Split/Precision */
.site-header {
  border-bottom: var(--b-width) solid var(--c-border);
  background: var(--c-white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-family: var(--f-display);
  font-size: 2.2rem;
  letter-spacing: -2px;
}

.logo span { color: var(--c-primary); }

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

.main-nav a {
  font-family: var(--f-display);
  font-size: 0.9rem;
  position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 4px;
    background: var(--c-accent);
    transition: 0.3s;
}
.main-nav a:hover::after { width: 100%; }

/* HERO - Industrial Asymmetry */
.hero {
  padding: 100px 0;
  border-bottom: var(--b-width) solid var(--c-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-text {
  padding-right: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  margin-bottom: 30px;
}

.hero-visual {
  background: var(--c-accent);
  padding: 40px;
  border-left: var(--b-width) solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-container {
    width: 100%;
    height: 100%;
    background: var(--c-white);
    border: var(--b-width) solid var(--c-border);
    padding: 20px;
}

/* CARDS - Grid Precision */
.posts-section { padding: 100px 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--b-width);
  background: var(--c-border);
  border: var(--b-width) solid var(--c-border);
}

.card {
  background: var(--c-white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.card:hover {
  background: var(--c-grey);
}

.card-img {
  height: 250px;
  margin-bottom: 30px;
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { flex-grow: 1; }

.card-cat {
  font-family: var(--f-display);
  font-size: 0.8rem;
  color: var(--c-primary);
  margin-bottom: 15px;
  display: block;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.card-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 30px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--c-border);
    padding-top: 20px;
    font-family: var(--f-display);
    font-size: 0.8rem;
}

/* BLOCKS */
.block-expertise { padding: 100px 0; border-bottom: var(--b-width) solid var(--c-border); }
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.exp-item h3 { font-size: 1.2rem; margin-bottom: 10px; border-bottom: 4px solid var(--c-accent); display: inline-block; padding-bottom: 5px; }

/* FOOTER */
.site-footer {
  padding: 80px 0 40px;
  background: var(--c-text);
  color: var(--c-white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-logo { font-size: 2.5rem; color: var(--c-accent); margin-bottom: 20px; display: block; }

.footer-col h5 { color: var(--c-accent); margin-bottom: 30px; font-size: 1rem; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-display);
  font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding-right: 0; padding-bottom: 60px; }
  .hero-visual { border-left: none; border-top: var(--b-width) solid var(--c-border); }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
