/*
Theme Name: Bäst Branding Agency
Theme URI: https://wearebast.com
Author: Bäst
Author URI: https://wearebast.com
Description: A bold, minimal, editorial WordPress theme for Bäst Branding Agency. Inspired by goagainst.com — ultra-clean typography, monochrome palette, generous whitespace.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bast
Tags: one-column, custom-menu, featured-images, full-width-template
*/

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1.105rem;
  line-height: 1.4;
  color: #353535;
  background-color: #f5f5f5;
  letter-spacing: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Spectral', serif;
  font-weight: 700;
  color: #000000;
}

/* ===== LAYOUT ===== */
.site-container {
  width: 100%;
  overflow-x: hidden;
}

.content-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

.content-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(245, 245, 245, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 98px;
}

.site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: #000000;
  text-transform: uppercase;
}

.site-logo a {
  color: #000000;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: #353535;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  line-height: 1;
}

.main-nav a:hover {
  color: #000000;
}

.nav-cta {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
  background: #000000;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.8;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000000;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero-section {
  padding-top: 98px; /* header height */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: #f5f5f5;
}

.hero-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
}

.hero-tagline {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  line-height: 1.05;
  color: #000000;
  text-transform: uppercase;
  max-width: 1100px;
  margin-bottom: 48px;
}

.hero-description {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1.105rem;
  line-height: 1.55;
  color: #353535;
  max-width: 620px;
}

/* ===== SECTIONS (general) ===== */
.section {
  padding: 100px 0;
}

.section--light {
  background-color: #f5f5f5;
}

.section--white {
  background-color: #ffffff;
}

.section--dark {
  background-color: #000000;
  color: #ffffff;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #ffffff;
}

.section--dark a {
  color: #ffffff;
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #949494;
  margin-bottom: 48px;
}

.section-heading {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: #000000;
  margin-bottom: 32px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.service-item {
  padding: 48px 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

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

.service-item:hover {
  background-color: #ffffff;
}

.service-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: #949494;
  margin-bottom: 24px;
  display: block;
}

.service-title {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  color: #000000;
  margin-bottom: 16px;
}

.service-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #949494;
}

/* ===== ABOUT / PHILOSOPHY ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-statement {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.25;
  color: #000000;
}

.about-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1.105rem;
  line-height: 1.55;
  color: #353535;
}

.about-text p + p {
  margin-top: 24px;
}

/* ===== WORK / CASE STUDIES ===== */
.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 520px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.work-item:nth-child(even) {
  direction: rtl;
}

.work-item:nth-child(even) > * {
  direction: ltr;
}

.work-image {
  background-color: #e8e8e8;
  background-size: cover;
  background-position: center;
  min-height: 520px;
}

.work-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.work-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #949494;
  margin-bottom: 24px;
}

.work-title {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.work-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.work-link:hover {
  opacity: 0.6;
}

.work-link::after {
  content: '\2192';
  font-size: 1rem;
}

/* ===== INSIGHTS / BLOG ===== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.insight-card {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 24px;
}

.insight-date {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: #949494;
  margin-bottom: 16px;
}

.insight-title {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #000000;
  margin-bottom: 16px;
}

.insight-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: #353535;
  transition: color 0.2s ease;
}

.insight-link:hover {
  color: #000000;
}

/* ===== CTA / NEWSLETTER ===== */
.cta-section {
  background-color: #000000;
  color: #ffffff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cta-heading {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: #ffffff;
  text-transform: uppercase;
}

.cta-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1.105rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.cta-email {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #ffffff;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 0;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 24px;
}

.cta-email::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta-email:focus {
  border-color: #ffffff;
}

.cta-button {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  background-color: #ffffff;
  border: none;
  padding: 14px 32px;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cta-button:hover {
  opacity: 0.85;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.footer-col-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.footer-copyright {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* ===== PAGE TEMPLATE ===== */
.page-header {
  padding-top: 178px; /* 98px header + 80px spacing */
  padding-bottom: 60px;
}

.page-title {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: #000000;
  text-transform: uppercase;
}

.page-content {
  padding-bottom: 100px;
}

.page-content p {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1.105rem;
  line-height: 1.55;
  color: #353535;
  margin-bottom: 24px;
}

.page-content h2 {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  margin-top: 48px;
  margin-bottom: 24px;
}

/* ===== SINGLE POST ===== */
.post-header {
  padding-top: 178px;
  padding-bottom: 40px;
}

.post-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  color: #949494;
  margin-bottom: 24px;
}

.post-title {
  font-family: 'Spectral', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: #000000;
}

.post-content {
  padding-bottom: 100px;
}

.post-content p {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1.105rem;
  line-height: 1.7;
  color: #353535;
  margin-bottom: 24px;
  max-width: 720px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  border: none;
}

.btn--primary {
  background: #000000;
  color: #ffffff;
}

.btn--primary:hover {
  opacity: 0.8;
}

.btn--outline {
  background: transparent;
  color: #000000;
  border: 1px solid #000000;
}

.btn--outline:hover {
  background: #000000;
  color: #ffffff;
}

.btn--white {
  background: #ffffff;
  color: #000000;
}

.btn--white:hover {
  opacity: 0.85;
}

/* ===== HORIZONTAL RULE ===== */
hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 0;
}

/* ===== VIEW ALL LINK ===== */
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  margin-top: 48px;
  transition: opacity 0.2s ease;
}

.view-all:hover {
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-wide,
  .content-narrow,
  .header-inner,
  .hero-content,
  .cta-content,
  .footer-inner {
    padding-left: 40px;
    padding-right: 40px;
  }

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

  .service-item:nth-child(3n) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }

  .service-item:nth-child(2n) {
    border-right: none;
  }

  .about-content {
    gap: 48px;
  }

  .work-item {
    min-height: 400px;
  }

  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .content-wide,
  .content-narrow,
  .header-inner,
  .hero-content,
  .cta-content,
  .footer-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-inner {
    height: 72px;
  }

  .hero-section {
    padding-top: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f5f5f5;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    border-right: none !important;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .work-item:nth-child(even) {
    direction: ltr;
  }

  .work-image {
    min-height: 280px;
  }

  .work-info {
    padding: 40px 24px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section {
    padding: 64px 0;
  }

  .cta-section {
    padding: 80px 0;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .page-header {
    padding-top: 140px;
  }

  .post-header {
    padding-top: 140px;
  }
}

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

/* ===== WORDPRESS SPECIFIC ===== */
.wp-block-image {
  margin-bottom: 24px;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
