/*
Theme Name:   Uncomplexer
Template:     generatepress
Version:      1.0.0
Description:  Child theme for the Uncomplexer consulting website.
*/

/* ============================================================
   FONTS — Poppins (self-hosted)
   ============================================================ */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  --dark-teal:  #004c4c;
  --teal:       #007676;
  --light-teal: #00a5a5;
  --dark-amber: #b95c00;
  --amber:      #ee9400;

  --bg:         #f4f2ee;
  --text:       #333333;
  --text-muted: #666666;
  --border:     #dedad4;

  --font-sans:     Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --font-heading:  'Poppins', Helvetica, Arial, sans-serif;

  --max-width: 1160px;
  --gap:       2rem;
  --radius:    6px;
}


/* ============================================================
   RESET / BASE
   ============================================================ */

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-teal);
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  color: var(--dark-teal);
  text-decoration: underline;
}

p { margin-top: 0; }

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

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}


/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

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

.section {
  padding-block: 4rem;
}

.section--sm {
  padding-block: 2.5rem;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.7em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border: 2px solid var(--teal);
}
.btn-primary:hover {
  background: var(--dark-teal);
  border-color: var(--dark-teal);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
}

.btn-amber {
  background: var(--amber);
  color: #fff;
  border: 2px solid var(--amber);
}
.btn-amber:hover {
  background: var(--dark-amber);
  border-color: var(--dark-amber);
  color: #fff;
  text-decoration: none;
}


/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  padding-bottom: 0px !important;
  padding-top: 8px !important;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Site logo */
.site-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-link:hover {
  opacity: 0.85;
  text-decoration: none;
}
.site-logo {
  height: 64px;
  width: auto;
  display: block;
}

/* Fallback site title */
.site-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
  line-height: 1;
}
.site-title a {
  color: var(--dark-teal);
  text-decoration: none;
}
.site-title a:hover {
  color: var(--teal);
}

/* Language flag link (footer) */
.lang-flag-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.lang-flag-link:hover {
  color: #fff;
  text-decoration: none;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.main-navigation a {
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.4em 0.75em;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.main-navigation a:hover {
  background: var(--bg);
  color: var(--teal);
  text-decoration: none;
}
.main-navigation .current-menu-item > a {
  color: var(--teal);
  font-weight: 600;
}

/* LinkedIn nav button */
.nav-linkedin a {
  background: var(--teal);
  color: #fff !important;
  padding: 0.4em 1em;
  border-radius: var(--radius);
}
.nav-linkedin a:hover {
  background: var(--dark-teal) !important;
  color: #fff !important;
}

/* Mobile menu toggle — GeneratePress handles JS, we style */
.menu-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4em 0.7em;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
    width: 100%;
  }
  .main-navigation.toggled {
    display: block;
  }
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.75rem;
  }
  .main-navigation a {
    display: block;
    width: 100%;
  }
}


/* ============================================================
   FRONT PAGE — HERO
   ============================================================ */

.hero {
  padding-block: 6rem 5rem;
  background: linear-gradient(150deg, var(--dark-teal) 0%, var(--teal) 100%);
  color: #fff;
}

.hero__inner {
  max-width: 700px;
}

.hero__headline {
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero__headline-accent {
  opacity: 0.75;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  opacity: 0.88;
  max-width: 56ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-outline {
  display: inline-block;
  padding: 0.7em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.45);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
  color: #fff;
  text-decoration: none;
}


/* ============================================================
   FRONT PAGE — BRAND SECTION (UNCOMPLEXER)
   ============================================================ */

.brand-section {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.brand-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0 0 3rem;
  color: var(--teal);
}

.brand-accent {
  color: var(--amber);
}

.brand-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.brand-pillar {
  padding-top: 1.25rem;
  border-top: 2px solid var(--border);
}

.brand-pillar:nth-child(1) { border-color: var(--teal); }
.brand-pillar:nth-child(2) { border-color: var(--dark-teal); }
.brand-pillar:nth-child(3) { border-color: var(--amber); }

.brand-pillar__tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.brand-pillar__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 640px) {
  .brand-pillars {
    grid-template-columns: 1fr;
  }
  .brand-word {
    margin-bottom: 2.5rem;
  }
}


/* ============================================================
   FRONT PAGE — CHALLENGE & APPROACH
   ============================================================ */

.challenge-section {
  background: var(--bg);
}

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

.challenge-problem,
.challenge-approach {
}

.challenge-problem h2 {
  color: var(--dark-teal);
}

.challenge-approach h2 {
  color: var(--dark-teal);
}

.challenge-approach {
  padding-left: 2rem;
  border-left: 3px solid var(--teal);
}

.section-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .challenge-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .challenge-approach {
    padding-left: 1.25rem;
    border-left-width: 2px;
  }
}


/* ============================================================
   FRONT PAGE — SERVICES
   ============================================================ */

.services-section {
  background: #fff;
  border-top: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: #fff;
  padding: 2rem 2rem 2.25rem;
  transition: background 0.15s;
}

.service-card:hover {
  background: #fafaf8;
}

.service-card__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--dark-teal);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

p.service-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   FRONT PAGE — CTA SECTION
   ============================================================ */

.cta-section {
  background: linear-gradient(150deg, var(--dark-teal) 0%, var(--teal) 100%);
  padding-block: 5rem;
  text-align: center;
  color: #fff;
}

.cta-inner {
  max-width: 540px;
  margin-inline: auto;
}

.cta-headline {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.cta-sub {
  opacity: 0.85;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-section .btn-primary {
  background: var(--amber);
  border-color: var(--amber);
}
.cta-section .btn-primary:hover {
  background: var(--dark-amber);
  border-color: var(--dark-amber);
}


/* ============================================================
   FRONT PAGE — BLOCK-BASED BRAND SECTION
   The Brand Pillar Headline and Brand Pillars blocks are separate
   but visually merge into one cohesive white section with borders.
   ============================================================ */

/* Word mark block: white bg, top border, bottom padding reduced */
.brand-block-headline {
  background: #fff;
  border-top: 1px solid var(--border);
  padding-block: 4rem 2rem;
  text-align: center;
}

/* Pillars block: continues white bg, bottom border, top padding reduced */
.brand-block-pillars {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding-block: 0 4rem;
}

/* Prevent GeneratePress from adding gap between adjacent brand blocks */
.brand-block-headline + .brand-block-pillars {
  margin-top: 0;
}

/* Services section wrapper used in block-based template via Group block */
.wp-block-group.services-section,
.services-section.wp-block-group {
  background: #fff;
  border-top: 1px solid var(--border);
}


/* ============================================================
   FRONT PAGE — LEGACY CONTENT SECTIONS (keep for WP editor)
   ============================================================ */

.intro-section {
  padding-block: 4rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}


/* ============================================================
   BLOG — ARCHIVE / POST LIST
   ============================================================ */

.archive-header {
  padding-block: 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.archive-header h1 {
  margin-bottom: 0.25rem;
}

.archive-header p {
  color: var(--text-muted);
  margin: 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
  padding-block: 2rem 4rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease;
}
.post-card:hover {
  box-shadow: 0 4px 20px rgba(0, 76, 76, 0.1);
}

.post-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card__image .post-card__placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--dark-teal), var(--light-teal));
}

.post-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.post-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-teal);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.post-card__title a {
  color: inherit;
  text-decoration: none;
}
.post-card__title a:hover {
  color: var(--teal);
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.post-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.post-card__link:hover {
  color: var(--dark-teal);
  text-decoration: underline;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-block: 1rem 3rem;
}

.pagination .page-numbers {
  padding: 0.4em 0.85em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}


/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */

.single-header {
  padding-block: 3.5rem 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.single-header .post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.single-header h1 {
  margin-bottom: 0;
}

.post-featured-image {
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.post-content {
  max-width: 72ch;
}

.post-content p,
.post-content li {
  line-height: 1.8;
  color: var(--text);
}

.post-content a {
  color: var(--teal);
  text-decoration: underline;
}

.post-content blockquote {
  border-left: 4px solid var(--teal);
  margin-left: 0;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 118, 118, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.post-nav a {
  font-size: 0.9rem;
  color: var(--teal);
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
}
.back-to-blog:hover {
  color: var(--teal);
}


/* ============================================================
   PORTFOLIO / REFERENCES
   ============================================================ */

.portfolio-header {
  padding-block: 3rem 1.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
  padding-block: 2rem 4rem;
}


/* ============================================================
   STATIC PAGES (Impressum, Privacy, etc.)
   ============================================================ */

.page-header {
  padding-block: 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-content-wrap {
  max-width: 72ch;
  padding-bottom: 4rem;
}

.page-content-wrap h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.page-content-wrap h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--dark-teal);
  color: rgba(255,255,255,0.75);
  padding-block: 2.5rem;
  font-size: 0.875rem;
}

.site-footer .footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copyright {
  color: rgba(255,255,255,0.5);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}



/* ============================================================
   404
   ============================================================ */

.error-404 {
  text-align: center;
  padding-block: 6rem;
}

.error-404 .error-code {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 10rem);
  color: var(--border);
  line-height: 1;
  margin-bottom: 0;
}

.error-404 h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.error-404 p {
  color: var(--text-muted);
  max-width: 45ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}


/* ============================================================
   GENERATEPRESS OVERRIDES
   ============================================================ */

/* Remove GP's default body/content background if needed */
.generate-columns-container,
.grid-container {
  max-width: var(--max-width);
}

/* GeneratePress sticky nav override */
.has-sticky-menu .site-header {
  position: sticky;
  top: 0;
}

/* Ensure GP doesn't override our heading colors */
.entry-title a {
  color: var(--dark-teal);
}
.entry-title a:hover {
  color: var(--teal);
}


/* ============================================================
   UTILITIES
   ============================================================ */

.text-muted   { color: var(--text-muted); }
.text-teal    { color: var(--teal); }
.text-amber   { color: var(--amber); }
.text-center  { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
