/*
 Theme Name: Sound Thinking Blog
 Theme URI: https://example.com/
 Author: Chris / Custom
 Description: Custom blog theme for Sonobond "Sound Thinking" blog with 4-post grid homepage and clean single post layout.
 Version: 1.0
 Text Domain: sound-thinking-blog
*/

/* ------------------------------------------------------------------
   Root variables & base
------------------------------------------------------------------- */

:root {
  --st-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --st-font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --st-color-bg: #ffffff;
  --st-color-page: #f5f7fa;
  --st-color-text: #1a1a1a;
  --st-color-muted: #6f7480;
  --st-color-accent: #ff3300;
  --st-color-border: #dde1e7;
  --st-max-width: 1120px;
}

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


a {
    color: black;
}

a:hover {
  color: #ff3300; 
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--st-font-body);
  color: var(--st-color-text);
  background: var(--st-color-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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


/* ---------------------------------------------
   Top nav with gradient bar + black strip
---------------------------------------------- */

.st-nav-wrapper {
  width: 100%;
}

/* orange/red gradient strip */
.st-nav-gradient {
  height: 22px; /* tweak to match live site */
  background-image: url('gradient.jpg');
  background-size: cover;
  background-position: center;
}

/* black nav bar */
.st-main-nav-bar {
  background: #050505;
  border-bottom: 1px solid #262626;
}

.st-main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 0;
}

/* menu items */

.st-main-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

.st-main-nav-list > li > a {
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
}

.st-main-nav-list > li > a:hover {
  color: #ff3b00; /* Sonobond red accent */
}

/* search on right */

.st-nav-search {
  margin-left: auto;
  max-width: 360px;
  width: 100%;
}

/* style default WP search form */

.st-nav-search form {
  position: relative;
}

.st-nav-search .search-field {
    width: 100%;
    border-radius: 0px;
    border: none;
    padding: 10px 38px 10px 14px;
    background: #3c3c3c;
    color: #ffffff;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

.st-nav-search .search-field::placeholder {
  color: #cccccc;
}

/* submit button as red icon */

.st-nav-search .search-submit {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background: url('search-icon.svg') no-repeat center center;
  background-size: 20px 20px;
  cursor: pointer;
  padding: 0;
}

.st-nav-search .search-submit:hover {
  opacity: 0.8;
}

/* Remove default text */
.st-nav-search .search-submit span,
.st-nav-search .screen-reader-text {
  display: none;
}

/* responsive tweaks */

@media (max-width: 900px) {
  .st-main-nav-inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .st-main-nav-list {
    flex-wrap: wrap;
    gap: 18px;
  }

  .st-nav-search {
    max-width: 100%;
  }
}


/* ------------------------------------------------------------------
   Layout shell
------------------------------------------------------------------- */

.st-site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--st-color-page);
}

.st-site-main {
  flex: 1 0 auto;
}

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

@media (max-width: 768px) {
  .st-container {
    padding: 0 16px;
  }
}

/* ------------------------------------------------------------------
   Header & logo
------------------------------------------------------------------- */

.st-site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.st-site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0 18px;
}

.st-logo-link {
  display: inline-flex;
  align-items: center;
}

.st-main-logo {
  height: 58px;
  width: auto;
  display: block;
}

.st-blog-title-block {
  display: flex;
  flex-direction: column;
}

.st-blog-title {
  font-family: var(--st-font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.st-blog-subtitle {
  font-size: 14px;
  color: var(--st-color-muted);
  margin-top: -2px;
}

/* Optional primary nav (if you use it) */
.st-site-nav {}

.st-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.st-nav-list a {
  text-decoration: none;
  color: var(--st-color-text);
}

.st-nav-list a:hover {
  color: var(--st-color-accent);
}

/* ------------------------------------------------------------------
   Blog home hero with waveform background
------------------------------------------------------------------- */

/* HERO TWO-COLUMN LAYOUT */

.st-blog-hero-bg {
  background-image: url('hero-background-img.png');
  background-size: cover;
  background-position: center center;
  padding: 60px 0;
  color: #ffffff;
}

.st-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .st-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.st-hero-left h1 {
  margin: 0;
}

.st-blog-hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: #ffffff;
}

.st-hero-right {
  max-width: 550px;
}

.st-blog-hero-subtitle {
  font-size: 20px;
  color: #d6d6d6;
  margin-bottom: 10px;
}

.st-blog-hero-intro {
  font-size: 17px;
  color: #eeeeee;
  margin: 0;
  line-height: 1.55;
}

/* ----------------------------------------------------
   TOP HEADER (Logo left, contact right)
----------------------------------------------------- */

.st-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: #ffffff;
}

/* Logo */
.st-main-logo {
  height: 62px;
  width: auto;
  display: block;
}

/* Right side contact area */
.st-header-contact {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #444444;
  gap: 12px;
}

.st-contact-link,
.st-contact-phone {
  text-decoration: none;
  color: #444444;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.st-contact-link:hover,
.st-contact-phone:hover {
  color: #000000;
}

.st-contact-divider {
  color: #777;
  margin: 0 4px;
}

/* Make phone number clickable */
.st-contact-phone {
  cursor: pointer;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  .st-top-header {
    flex-direction: column;
    gap: 12px;
  }
}


/* ------------------------------------------------------------------
   Post grid on home
------------------------------------------------------------------- */

.st-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .st-post-grid {
    grid-template-columns: 1fr;
  }
}

.st-post-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.st-category-label {
    padding-top: 20px;
}

.st-post-card-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--st-color-muted);
  margin-bottom: 8px;
}

.st-post-card-title {
  font-family: var(--st-font-heading);
  font-size: 19px;
  line-height: 1.3;
  margin: 8px 0 8px;
}

.st-post-card-title a {
  text-decoration: none;
  color: var(--st-color-text);
}

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

.st-post-card-excerpt {
  font-size: 15px;
  margin: 0 0 14px;
  color: #4b4f56;
  flex: 1 0 auto;
}

/* ----------------------------------------------------
   Custom footer – Inductotherm layout
----------------------------------------------------- */

.st-site-footer {
  background: #000;
  color: #ffffff;
  padding: 22px 0 24px;
  font-size: 13px;
}

.st-footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

/* Left side: parent logo */
.st-footer-left {
  max-width: 380px;
}

.st-footer-parent-label {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 14px;
}

.st-footer-parent-logo {
  max-width: 260px;
  height: auto;
  display: block;
}

/* Right side: links + social + copyright */
.st-footer-right {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-footer-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.st-footer-links a {
  text-decoration: none;
  color: #ff3b00;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
}

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

.st-footer-divider {
  color: #888888;
  margin: 0 4px;
}

/* Social icon wrapper */
.st-section-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon container */
.st-social-icon {
    display: flex;
    width: 33px;
    height: 33px;
    background: #2B2F33;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

/* Icon images */
.st-social-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Hover effect */
.st-social-icon:hover {
    background: #E23A0D; /* Optional Sonobond orange accent */
}


/* Social buttons */
.st-footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.st-footer-social-btn {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: #4b4b4b;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
}

.st-footer-social-btn:hover {
  background: #666666;
}

/* Bottom copyright line */
.st-footer-bottom-row {
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* Responsive footer layout */
@media (max-width: 900px) {
  .st-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .st-footer-right {
    text-align: left;
    align-items: flex-start;
  }

  .st-footer-top-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}



/* ---------------------------------------------
   Latest Posts heading row: filters + social
---------------------------------------------- */

.st-section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 16px;
}

.st-section-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Category dropdown */

.st-category-select {
  padding: 7px 32px 7px 10px;
  border-radius: 4px;
  border: 1px solid #d0d4dc;
  font-size: 14px;
  background-color: #ffffff;
  color: #1a1a1a;
  min-width: 180px;
}

/* Social buttons */

.st-section-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.st-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: #2c3035;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
}

.st-social-btn:hover {
  background: #41464d;
}

/* Mobile stacking */

@media (max-width: 768px) {
  .st-section-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .st-section-tools {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* ------------------------------------------------------------------
   Pagination
------------------------------------------------------------------- */

.st-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 30px;
  font-size: 15px;
}

.st-pagination a,
.st-pagination span {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
}

.st-pagination a {
  border-color: var(--st-color-border);
  color: var(--st-color-text);
  background: #ffffff;
}

.st-pagination a:hover {
  border-color: var(--st-color-accent);
}

.st-pagination .current {
  background: var(--st-color-accent);
  color: #ffffff;
}

/* ------------------------------------------------------------------
   Single post layout
------------------------------------------------------------------- */

.st-single-wrapper {
  padding: 36px 0 28px;
  background: var(--st-color-page);
}

.st-single-title {
  font-family: var(--st-font-heading);
  font-size: 30px;
  margin: 0 0 10px;
}

.st-single-meta {
  font-size: 13px;
  color: var(--st-color-muted);
  margin-bottom: 18px;
}

.st-single-meta span + span::before {
  content: " | ";
  margin: 0 4px;
}


.st-single-featured-image {
  margin: 18px 0 24px;
}

.st-single-featured-image img {
	height: auto;
    border-radius: 0;
    display: block;
    max-height: 470px;
    width: 100%;
    object-fit: cover;
}

/* Content typography */

.st-single-content {
  font-size: 15px;
  background: #ffffff;
  padding: 29px 37px 29px;
}

.st-single-content p {
  margin: 0 0 16px;
}

.st-single-content h2,
.st-single-content h3,
.st-single-content h4 {
  margin: 24px 0 12px;
  font-family: var(--st-font-heading);
}

.st-single-content ul,
.st-single-content ol {
  margin: 0 0 18px 22px;
}

/* ------------------------------------------------------------------
   Download CTA block (above content, or with meta)
------------------------------------------------------------------- */

.st-download-cta {
  margin: 28px 0 20px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid var(--st-color-border);
}

.st-download-cta-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.st-download-cta-text {
  font-size: 14px;
  margin: 0 0 12px;
}

.st-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--st-color-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.st-btn-primary:hover {
  opacity: 0.9;
}


/* ----------------------------------------------------
   Post CTA card (download PDF block)
----------------------------------------------------- */

.st-cta-card {
  margin: 28px 0 26px;
  padding: 26px 30px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.st-cta-card-content {
  max-width: 650px;
}

.st-cta-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.st-cta-body {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.st-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 6px;
  background: #d6271f; /* Sonobond red */
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.st-cta-button:hover {
  background: #b51f18;
}

/* Right-side PDF icon */
.st-cta-card-icon img {
  width: 120px;   /* tweak to match design */
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 800px) {
  .st-cta-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .st-cta-card-icon img {
    width: 90px;
  }
}


/* ------------------------------------------------------------------
   FAQ / bottom block
------------------------------------------------------------------- */

.st-faq-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--st-color-border);
}

.st-faq-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.st-faq-text {
  font-size: 14px;
  margin: 0;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */

.st-site-footer {
  border-top: 1px solid var(--st-color-border);
  background: #000;
  padding: 29px 0;
  margin-top: 40px;
  font-size: 13px;
  color: var(--st-color-muted);
}

/* ------------------------------------------------------------------
   Utilities
------------------------------------------------------------------- */

.st-text-center { text-align: center; }
.st-mb-0 { margin-bottom: 0 !important; }
.st-mt-0 { margin-top: 0 !important; }
