/*
Theme Name: Strict Modern
Author: Senior Frontend Designer
Description: Clean, professional, and strictly structured WordPress theme.
Version: 5.2
*/

/* =====================
   VARIABLES
   ===================== */
:root {
  /* Colors - Strict Business Palette */
  --color-primary: #0F172A; /* Slate 900 - Text & Headings */
  --color-secondary: #475569; /* Slate 600 - Body Text */
  --color-accent: #2563EB; /* Royal Blue - Buttons/Links */
  --color-accent-hover: #1D4ED8;
  --color-bg: #F8FAFC; /* Slate 50 - Background */
  --color-surface: #FFFFFF; /* Pure White - Cards */
  --color-border: #E2E8F0; /* Slate 200 - Borders */
  
  /* Dimensions */
  --container-width: 1240px;
  --header-height: 80px;
  
  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul { list-style: none; }

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

/* Utilities */
.text-center { text-align: center; }
.text-white { color: white !important; }
.mb-5 { margin-bottom: 3rem; }
.bg-white { background-color: white; }
.bg-light { background-color: var(--color-bg); }
.bg-primary { background-color: var(--color-primary); }
.p-4 { padding: 2rem; }
.rounded { border-radius: 8px; }

/* =====================
   HEADER
   ===================== */
.site-header {
  height: var(--header-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.header-nav ul {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.header-nav a:hover,
.header-nav .current-menu-item > a {
  color: var(--color-accent);
}

/* =====================
   SECTIONS & BLOCKS
   ===================== */
.section-block {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.section-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 1rem;
}

.section-header .section-title { margin-bottom: 0; }

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* =====================
   HERO SECTION
   ===================== */
.hero-area {
  background: var(--color-surface);
  padding: 8rem 0; /* Increased padding */
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  position: relative;
}

/* Modifier for Hero with Background Image */
.hero-bg-image {
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-big-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.hero-bg-image .hero-big-title {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--color-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-bg-image .hero-desc {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

/* Button variant for dark background */
.hero-bg-image .btn-outline {
  border-color: white;
  color: white;
}

.hero-bg-image .btn-outline:hover {
  background: white;
  color: var(--color-primary);
}

/* =====================
   FEATURES GRID
   ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.feature-icon {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-border);
  margin-bottom: 1rem;
  line-height: 1;
}

.feature-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-secondary);
}

/* =====================
   FORMATS GRID
   ===================== */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.format-item {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2.5rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.format-item h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.format-item p {
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* =====================
   LISTS & CONTENT
   ===================== */
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.h3-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.link-arrow {
  font-weight: 600;
  color: var(--color-accent);
  border-bottom: 2px solid transparent;
}

.link-arrow:hover {
  border-bottom-color: var(--color-accent);
}

/* =====================
   POST GRID
   ===================== */
.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.card-img-link {
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
}

.card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card-item:hover .card-img-link img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-title a:hover {
  color: var(--color-accent);
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
}

.read-link::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.2s;
}

.read-link:hover::after {
  transform: translateX(4px);
}

/* =====================
   FOOTER
   ===================== */
.main-footer {
  background: var(--color-primary);
  color: #94A3B8;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-desc {
  max-width: 300px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-links li,
.footer-contact-list li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.contact-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 0.25rem;
}

.contact-link {
  color: white;
  font-weight: 500;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.5;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .grid-wrapper, 
  .features-grid,
  .formats-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 768px) {
  .hero-area { padding: 4rem 0; }
  
  .grid-wrapper, 
  .features-grid,
  .formats-grid,
  .two-col-grid { 
    grid-template-columns: 1fr; 
  }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  
  .header-wrap {
    flex-direction: column;
    gap: 1rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
