/* IBP Ceramics - Static Site Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

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

:root {
  --clr-bg: #f0f1f3;
  --clr-surface: #ffffff;
  --clr-text: #2a2d32;
  --clr-text-muted: #6c7078;
  --clr-primary: #e8652b;
  --clr-primary-dark: #c9511e;
  --clr-accent: #f59e5c;
  --clr-border: #d8dadf;
  --clr-hero: #2e3238;
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --max-width: 1100px;
  --radius: 6px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--clr-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clr-primary-dark); }
img { max-width: 100%; display: block; }

/* HEADER / NAV */
.site-header {
  background: var(--clr-hero);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: .5px;
}
.site-logo span { color: var(--clr-accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--clr-accent); }

/* HAMBURGER */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--clr-hero) 0%, #5a4a3e 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero.hero-banner {
  background: none;
  padding: 100px 24px;
}
.hero.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,50,56,.85) 0%, rgba(90,74,62,.7) 100%);
  z-index: 1;
}
.hero.hero-banner > * {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  opacity: .85;
  line-height: 1.7;
}

/* CARD IMAGE */
.card-img {
  height: 200px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.card:hover .card-img img {
  transform: scale(1.05);
}
.cat-card .card-img { height: 160px; }

/* CONTAINER */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* SECTION */
.section { padding: 60px 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 32px;
  color: var(--clr-hero);
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.card {
  background: var(--clr-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.card-icon {
  height: 160px;
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--clr-hero);
}
.card-meta {
  font-size: .85rem;
  color: var(--clr-text-muted);
  margin-bottom: 12px;
}
.card-body p {
  color: var(--clr-text-muted);
  font-size: .95rem;
  flex: 1;
}
.card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--clr-primary);
}
.card-link::after { content: ' →'; }

/* CATEGORY CARDS */
.cat-card .card-icon { height: 120px; font-size: 2.5rem; }

/* POST PAGE */
.post-header {
  background: linear-gradient(135deg, var(--clr-hero) 0%, #5a4a3e 100%);
  color: #fff;
  padding: 60px 24px 50px;
  text-align: center;
}
.post-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  max-width: 700px;
  margin: 0 auto 12px;
  line-height: 1.25;
}
.post-header .post-meta {
  font-size: .95rem;
  opacity: .7;
}
.post-content {
  max-width: 720px;
  margin: -30px auto 60px;
  background: var(--clr-surface);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.post-content p { margin-bottom: 18px; }
.post-content h4, .post-content strong {
  color: var(--clr-hero);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 28px 0 10px;
}
.post-content ul, .post-content ol {
  margin: 12px 0 18px 24px;
}
.post-content li { margin-bottom: 6px; }
.post-content a { text-decoration: underline; }
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: .95rem;
}
.back-link::before { content: '← '; }

/* CONTACT */
.contact-info {
  max-width: 600px;
  margin: 0 auto;
  background: var(--clr-surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-align: center;
}
.contact-info h2 { font-family: var(--font-heading); margin-bottom: 16px; color: var(--clr-hero); }
.contact-info a { font-size: 1.1rem; font-weight: 600; }

/* FOOTER */
.site-footer {
  background: var(--clr-hero);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 32px 24px;
  font-size: .9rem;
  margin-top: 40px;
}
.site-footer a { color: var(--clr-accent); }

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  font-size: .9rem;
  color: var(--clr-text-muted);
}
.breadcrumb a { color: var(--clr-primary); }
.breadcrumb span { margin: 0 6px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 50px 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .post-content { padding: 28px 20px; margin-top: -20px; }
  .post-header h1 { font-size: 1.8rem; }
  .nav-links { 
    display: none; 
    position: absolute; 
    top: 64px; left: 0; right: 0;
    background: var(--clr-hero);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
