/*
Theme Name: Swiss Modern
Author: WordPress Expert Designer
Description: A grid-based, high-contrast theme inspired by Swiss International Style.
Version: 7.0
*/

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-accent: #0044cc; /* Cobalt Blue */
  --color-light-gray: #fafafa; /* Much lighter gray */
  --color-border: #111111;
  
  /* Dimensions */
  --header-height: 80px;
  --container-max: 1440px;
  --gap: 2rem;
  
  /* Typography */
  --font-primary: 'Inter', 'Helvetica Neue', sans-serif;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

ul { list-style: none; }

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

/* Utility Class */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER DESIGN */
.site-header {
  border-bottom: 4px solid var(--color-text);
}

.header-top-bar {
  background: var(--color-text);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.header-main {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: #fff;
}

.site-logo {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 0.9;
  text-transform: uppercase;
}

.site-logo span {
  color: var(--color-accent);
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  position: relative;
}

.main-navigation a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* HERO SECTION */
.hero-section {
  border-bottom: 1px solid var(--color-text);
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: 400px;
}

.hero-text {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--color-text);
}

.hero-visual {
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10rem;
  font-weight: 900;
  overflow: hidden;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* POST GRID (Index) */
.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-bottom: 1px solid var(--color-text);
}

.post-item {
  grid-column: span 4;
  border-right: 1px solid var(--color-text);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.3s;
}

.post-item:nth-child(3n) {
  border-right: none;
}

.post-item:hover {
  background: var(--color-light-gray);
}

.post-item:hover .post-title {
  color: var(--color-accent);
}

.post-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--color-text);
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0%); /* Removed harsh grayscale */
  transition: filter 0.3s, transform 0.3s;
}

.post-item:hover .post-image img {
  transform: scale(1.02);
}

.post-content-wrap {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.post-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.post-excerpt {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #555;
}

.btn-arrow {
  margin-top: auto;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* SINGLE PAGE */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px; /* Content + Sidebar */
  max-width: var(--container-max);
  margin: 0 auto;
  border-left: 1px solid var(--color-text);
  border-right: 1px solid var(--color-text);
}

.single-main {
  border-right: 1px solid var(--color-text);
}

.single-header {
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--color-text);
}

.single-title {
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.single-meta-bar {
  font-family: monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #555;
}

.single-content {
  padding: 3rem 2rem;
  font-size: 1.25rem;
  line-height: 1.7;
}

.single-content p { margin-bottom: 1.5rem; }
.single-content h2 { margin-top: 3rem; font-size: 2rem; font-weight: 800; }

/* RECOMMENDED BLOCK (New Functionality) */
.recommended-section {
  background: var(--color-light-gray);
  border-top: 4px solid var(--color-text);
  padding: 4rem 0;
}

.rec-heading {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}

.rec-card {
  background: #fff;
  border: 1px solid var(--color-text);
}

.rec-card .rec-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--color-text);
}

.rec-card h3 {
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

/* NEW HOMEPAGE BLOCKS */

/* Philosophy Section */
.philosophy-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--color-text);
}

.philosophy-content {
  max-width: 800px;
}

.section-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.section-lead {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Buttons */
.btn-outline {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid var(--color-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--color-text);
  color: #fff;
}

.btn-solid {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--color-accent);
  transition: all 0.3s ease;
}

.btn-solid:hover {
  background: transparent;
  color: var(--color-accent);
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background: var(--color-light-gray);
  border-bottom: 1px solid var(--color-text);
}

.services-header {
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-item {
  background: #fff;
  border: 1px solid var(--color-text);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
}

.service-num {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent);
  opacity: 0.2;
  margin-bottom: 1rem;
  line-height: 1;
}

.service-item h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.service-item p {
  color: #555;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 8rem 0;
  background: var(--color-text);
  color: #fff;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.cta-text {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.cta-section .btn-solid {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}

.cta-section .btn-solid:hover {
  background: transparent;
  color: #fff;
}


/* FOOTER */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 4rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-brand h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-links h4 {
  border-bottom: 2px solid #333;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .post-item { grid-column: span 6; }
  .post-item:nth-child(2n) { border-right: none; }
  .post-item:nth-child(3n) { border-right: 1px solid var(--color-text); } /* reset */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-main { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .main-navigation ul { justify-content: center; }
  .hero-section { grid-template-columns: 1fr; }
  .hero-text { border-right: none; border-bottom: 1px solid var(--color-text); }
  .grid-container { display: block; }
  .post-item { border-right: none; border-bottom: 1px solid var(--color-text); }
  .single-layout { display: block; border: none; }
  .single-main { border-right: none; }
  .rec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .services-grid { grid-template-columns: 1fr; }
  .cta-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
}
