@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700&display=swap');

:root {
  --sorai-teal: #132e33;
  --sorai-orange: #e85a36;
  --sorai-cream: #F0EDDC;
  --sorai-gold: #927a3d;
  --sorai-text: #1a1a1a;
  --sorai-text-light: #c1c1c1;
  --sorai-black: #000;
}

/* === BASE === */
body {
  font-family: "Poppins", sans-serif !important;
  color: var(--sorai-text);
  background: #fff;
  margin: 0;
}
h1,h2,h3,h4,h5,h6 {
  font-family: "Barlow Condensed", sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
a { transition: color 0.2s; }

/* ===================== */
/* === SORAI HEADER  === */
/* ===================== */
.sorai-header {
  background-color: var(--sorai-teal) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: none;
}
.sorai-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.sorai-logo-link {
  display: flex;
  align-items: center;
}
.sorai-logo-img {
  width: 100px;
  height: auto;
  display: block;
}
.sorai-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: center;
}
.sorai-nav-list li a {
  color: var(--sorai-cream) !important;
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
  transition: color 0.2s;
}
.sorai-nav-list li a:hover,
.sorai-nav-list li.current-menu-item a {
  color: var(--sorai-orange) !important;
}

/* Mobile toggle */
.sorai-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.sorai-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sorai-cream);
  transition: all 0.3s;
}
.sorai-toggle-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sorai-toggle-active span:nth-child(2) { opacity: 0; }
.sorai-toggle-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hide parent theme header completely */
.site-header,
.main-nav,
header.header,
.header-image,
.navbar-top {
  display: none !important;
}

/* ===================== */
/* === SORAI FOOTER  === */
/* ===================== */
.sorai-footer {
  background-color: var(--sorai-black) !important;
  color: #fff;
  padding: 48px 0 0;
}
.sorai-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 48px;
}
.sorai-footer-brand {
  flex: 0 0 40%;
}
.sorai-footer-logo {
  width: 100px;
  height: auto;
  margin-bottom: 16px;
}
.sorai-footer-tagline {
  color: var(--sorai-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}
.sorai-footer-columns {
  flex: 1;
  display: flex;
  gap: 48px;
}
.sorai-footer-col h4 {
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.sorai-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sorai-footer-col ul li {
  margin-bottom: 12px;
}
.sorai-footer-col ul li a {
  color: var(--sorai-text-light) !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  transition: color 0.2s;
}
.sorai-footer-col ul li a:hover {
  color: var(--sorai-orange) !important;
}
.sorai-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
}
.sorai-footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  margin: 0;
  text-align: center;
}

/* Hide parent theme footer */
footer.site-footer {
  display: none !important;
}

/* ======================== */
/* === CATEGORY LINKS   === */
/* ======================== */
a[rel="category tag"], .cat-links a, .sorai-cat-links a {
  color: var(--sorai-orange) !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

/* ======================== */
/* === READ MORE        === */
/* ======================== */
a.wp-block-post-excerpt__more-link, .entry-content a.more-link {
  color: var(--sorai-orange) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 2px solid var(--sorai-orange);
}

/* ======================== */
/* === HOMEPAGE         === */
/* ======================== */
.wp-block-post {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: box-shadow .25s;
}
.wp-block-post:hover { box-shadow: 0 4px 16px rgba(0,0,0,.13); }
.wp-block-cover { min-height: 340px !important; border-radius: 8px; overflow: hidden; }
.wp-block-cover__inner-container h2 a,
.wp-block-cover__inner-container h3 a { color: #fff !important; text-decoration: none; }
body.home .entry-title, body.page-id-1322 .entry-title { display: none; }
body.blog .page-title, body.archive .page-title {
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* ======================== */
/* === BUTTONS          === */
/* ======================== */
.wp-block-button__link {
  background-color: var(--sorai-orange) !important;
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.wp-block-button__link:hover { background-color: var(--sorai-teal) !important; }

/* ================================ */
/* === KATERINA STYLE HOMEPAGE  === */
/* ================================ */

/* Hide default theme header and page title */
.page-id-2876 .sorai-header { display: none !important; }
.page-id-2876 header.entry-header,
.page-id-2876 .sorai-page-title,
.page-id-2876 .entry-title { display: none !important; }
.page-id-2876 .site-content { padding-top: 0 !important; margin-top: 0 !important; }
.page-id-2876 .entry-content {
  padding-top: 0 !important; margin-top: 0 !important;
  max-width: 100% !important; width: 100% !important;
}
.page-id-2876 .entry-content > .wp-block-group {
  max-width: 100% !important;
}
/* Hide default theme footer on V2 page */
.page-id-2876 .sorai-footer,
.page-id-2876 #colophon,
.page-id-2876 .site-footer { display: none !important; }

/* Page bg */
.sk-page { background: #fff; }

/* Custom header */
.sk-custom-header {
  text-align: center;
  max-width: 100% !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  background: #fff !important;
}
.sk-center-logo { margin: 0 auto !important; }
.sk-center-logo img {
  width: 110px !important; height: auto !important;
  filter: brightness(0) invert(14%) sepia(20%) saturate(1400%) hue-rotate(145deg) brightness(90%) contrast(95%) !important;
}

/* Overlay logo (inside hero card) */
.sk-overlay-logo { margin: 0 auto !important; }
.sk-overlay-logo img {
  width: 60px !important; height: auto !important;
  filter: brightness(0) invert(14%) sepia(20%) saturate(1400%) hue-rotate(145deg) brightness(90%) contrast(95%) !important;
}

/* Custom nav bar */
.sk-custom-nav {
  max-width: 100% !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  background: #fff !important;
}
.sk-custom-nav a {
  color: #132e33 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.sk-custom-nav a:hover { color: #e85a36 !important; }

/* Hero */
.sk-hero-wrap {
  position: relative !important;
  margin-bottom: 60px !important;
  max-width: 100% !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  overflow: visible !important;
}
.sk-hero-wrap > .wp-block-group__inner-container { position: relative !important; }
.sk-hero-full-img { margin: 0 !important; max-width: 100% !important; }
.sk-hero-full-img img {
  width: 100% !important; height: 520px !important;
  object-fit: cover !important; display: block !important;
}
.sk-hero-overlay {
  position: absolute !important;
  bottom: -40px !important; right: 8% !important;
  max-width: 460px !important; width: 460px !important;
  box-shadow: 0 4px 40px rgba(0,0,0,0.08) !important;
  z-index: 10 !important;
}

/* Full-width sections */
.sk-more {
  max-width: 100% !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  background-color: #f9f6f0 !important;
}

/* Section headings */
.sk-latest h2, .sk-categories h2, .sk-more h2 {
  font-family: "Barlow Condensed", sans-serif !important;
}

/* Cards */
.sk-card { transition: box-shadow 0.35s, transform 0.35s; overflow: hidden; }
.sk-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); transform: translateY(-2px); }
.sk-card-img { margin: 0 !important; overflow: hidden; }
.sk-card-img img {
  width: 100% !important; height: 220px !important;
  object-fit: cover !important; display: block !important;
  transition: transform 0.5s;
}
.sk-card:hover .sk-card-img img,
.sk-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.sk-card .wp-block-post-featured-image { margin: 0 !important; overflow: hidden; }
.sk-card .wp-block-post-featured-image img { border-radius: 0 !important; transition: transform 0.5s; }
.sk-card h3 a { color: #132e33 !important; text-decoration: none !important; transition: color 0.2s; }
.sk-card h3 a:hover { color: #e85a36 !important; }

/* Category terms */
.sk-more .wp-block-post-terms a, .sk-card .wp-block-post-terms a {
  color: #927a3d !important;
  font-family: "Barlow Condensed", sans-serif !important;
  text-transform: uppercase !important; text-decoration: none !important;
  font-size: 0.6rem !important; letter-spacing: 0.18em !important; font-weight: 600 !important;
}

/* Category tiles */
.sk-cat-tile { overflow: hidden; transition: box-shadow 0.35s; }
.sk-cat-tile:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); }
.sk-cat-tile-img { margin: 0 !important; overflow: hidden; }
.sk-cat-tile-img img {
  width: 100% !important; height: 240px !important;
  object-fit: cover !important; display: block !important;
  transition: opacity 0.4s;
}
.sk-cat-tile:hover .sk-cat-tile-img img { opacity: 0.85; }

/* Buttons */
.sk-read-btn .wp-block-button__link,
.sk-explore-btn .wp-block-button__link {
  background: transparent !important;
  border: 1px solid #132e33 !important;
  color: #132e33 !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  transition: all 0.3s !important;
}
.sk-read-btn .wp-block-button__link:hover,
.sk-explore-btn .wp-block-button__link:hover {
  background: #132e33 !important;
  color: #F0EDDC !important;
}

/* Footer */
.sk-footer {
  max-width: 100% !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
}
.sk-footer-logo { margin-bottom: 0 !important; }
.sk-footer-logo img {
  width: 80px !important; height: auto !important;
  filter: none !important;
}
.sk-footer a {
  color: #b0c4c8 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.sk-footer a:hover { color: #ffffff !important; }
.sk-footer h4 { margin-top: 0 !important; }
.sk-footer-line {
  border-color: rgba(255,255,255,0.12) !important;
  opacity: 1 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .sk-custom-header, .sk-custom-nav, .sk-hero-wrap, .sk-more, .sk-footer {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .sk-hero-full-img img { height: 340px !important; }
  .sk-hero-overlay {
    position: relative !important;
    bottom: auto !important; right: auto !important;
    margin: -40px 20px 0 !important;
    max-width: 100% !important; width: auto !important;
  }
  .sk-card-img img,
  .sk-card .wp-block-post-featured-image img,
  .sk-cat-tile-img img { height: 200px !important; }
}

/* === GLOBAL HEADER FOOTER === */

/* ---- NEW HEADER ---- */
.sorai-header {
  background: #fff;
  border-bottom: 1px solid #e0dbd2;
}
.sorai-header-top {
  text-align: center;
  padding: 28px 24px 6px;
}
.sorai-header-inner { display: none !important; }
.sorai-logo-link { display: inline-block; }
.sorai-logo-img {
  width: 110px !important; height: auto !important;
  filter: brightness(0) invert(14%) sepia(20%) saturate(1400%) hue-rotate(145deg) brightness(90%) contrast(95%);
}
.sorai-title {
  font-size: 1.6rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 6px 0 2px;
}
.sorai-title-from { color: #e85a36; }
.sorai-title-wild { color: #132e33; }
.sorai-tagline-sub {
  font-size: 0.55rem; letter-spacing: 0.35em; font-weight: 500;
  text-transform: uppercase; color: #927a3d; margin: 0 0 0;
  text-align: center;
}
.sorai-nav {
  text-align: center;
  border-top: 1px solid #e0dbd2;
  padding: 14px 0;
}
.sorai-nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; gap: 36px;
}
.sorai-nav-list li a {
  color: #132e33; text-decoration: none;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; transition: color 0.2s;
}
.sorai-nav-list li a:hover { color: #e85a36; }

/* Mobile toggle */
.sorai-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px; position: absolute; right: 16px; top: 28px;
}
.sorai-mobile-toggle span {
  display: block; width: 24px; height: 2px; background: #132e33;
  margin: 5px 0; transition: 0.3s;
}

/* ---- NEW FOOTER ---- */
.sorai-footer {
  background: #132e33; color: #b0c4c8;
  padding: 60px 40px 40px;
}
.sorai-footer-inner {
  max-width: 1060px; margin: 0 auto;
}
.sorai-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.sorai-footer-brand p {
  font-size: 0.78rem; line-height: 1.7; font-weight: 300;
  color: #b0c4c8; margin-top: 16px;
}
.sorai-footer-logo {
  width: 80px !important; height: auto !important;
  filter: none !important;
}
.sorai-footer-col h4 {
  color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 16px;
}
.sorai-footer-col ul {
  list-style: none; padding: 0; margin: 0;
}
.sorai-footer-col ul li { margin-bottom: 8px; }
.sorai-footer-col ul li a {
  color: #b0c4c8; text-decoration: none;
  font-size: 0.78rem; font-weight: 300; transition: color 0.2s;
}
.sorai-footer-col ul li a:hover { color: #fff; }
.sorai-footer-line {
  border: none; border-top: 1px solid rgba(255,255,255,0.12);
  margin: 32px 0 20px;
}
.sorai-footer-copy {
  text-align: center; font-size: 0.65rem; font-weight: 300; color: #7a8e91;
  margin: 0;
}

/* ---- ARTICLE / SINGLE POST STYLES ---- */
.single .entry-content {
  max-width: 740px; margin: 0 auto;
  font-size: 1.02rem; line-height: 1.9; color: #333;
  font-weight: 300;
}
.single .entry-header {
  text-align: center; max-width: 740px; margin: 40px auto 24px;
}
.single .entry-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.4rem; font-weight: 700; color: #132e33;
  text-transform: lowercase; letter-spacing: -0.02em; line-height: 1.15;
}
.single .entry-meta {
  font-size: 0.72rem; color: #999; font-weight: 300; margin-top: 12px;
}
.single .entry-meta a { color: #927a3d; text-decoration: none; }
.single .wp-post-image, .single .entry-content img {
  width: 100%; height: auto; display: block;
}
.single .post-thumbnail {
  max-width: 100%; margin: 0 auto 32px;
}
.single .post-thumbnail img {
  width: 100%; height: 420px;
  object-fit: cover;
}
.single .cat-links a, .single .tag-links a {
  color: #927a3d; text-decoration: none;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.single blockquote {
  border-left: 3px solid #e85a36; padding-left: 20px;
  font-style: italic; color: #555; margin: 28px 0;
}
.single .entry-content h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem; font-weight: 700; color: #132e33;
  text-transform: lowercase; margin-top: 40px;
}
.single .entry-content h3 {
  font-size: 1.2rem; font-weight: 700; color: #132e33; margin-top: 32px;
}

/* ---- ARCHIVE / CATEGORY PAGE STYLES ---- */
.archive .page-title, .category .page-title, .search .page-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem; font-weight: 700; color: #132e33;
  text-transform: lowercase; text-align: center;
  letter-spacing: -0.02em; margin: 40px 0 12px;
}
.archive .archive-description, .category .archive-description {
  text-align: center; font-size: 0.9rem; color: #555;
  font-weight: 300; max-width: 600px; margin: 0 auto 40px;
}
.archive .post, .category .post, .search .post {
  border: 1px solid #ddd3c4; background: #fff;
  overflow: hidden; transition: box-shadow 0.35s, transform 0.35s;
  margin-bottom: 24px;
}
.archive .post:hover, .category .post:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07); transform: translateY(-2px);
}
.archive .post .post-thumbnail img, .category .post .post-thumbnail img {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
.archive .post .entry-title, .category .post .entry-title {
  font-size: 1rem; font-weight: 700; color: #132e33;
  text-transform: lowercase; line-height: 1.35; padding: 16px 20px 4px;
}
.archive .post .entry-title a, .category .post .entry-title a {
  color: #132e33; text-decoration: none; transition: color 0.2s;
}
.archive .post .entry-title a:hover, .category .post .entry-title a:hover { color: #e85a36; }
.archive .post .entry-meta {
  font-size: 0.72rem; color: #999; font-weight: 300; padding: 0 20px 16px;
}

/* Hide old theme elements */
.sorai-tagline-text, .sorai-tagline-wrap { display: none !important; }

/* V2 homepage hides theme header/footer (has its own inline) */
.page-id-2876 .sorai-header { display: none !important; }
.page-id-2876 .sorai-footer { display: none !important; }

/* Mobile */
@media (max-width: 768px) {
  .sorai-mobile-toggle { display: block; }
  .sorai-nav { display: none; border-top: none; padding: 0; }
  .sorai-nav.open { display: block; }
  .sorai-nav-list { flex-direction: column; gap: 0; text-align: center; }
  .sorai-nav-list li { border-top: 1px solid #e0dbd2; }
  .sorai-nav-list li a { display: block; padding: 14px 0; }
  .sorai-footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .single .entry-title { font-size: 1.8rem; }
  .single .post-thumbnail img { height: 280px; }
}

/* Override old dark header background */
.sorai-header { background: #fff !important; color: #132e33 !important; }
.sorai-header-inner { display: none !important; }
.sorai-header-top { background: #fff !important; }
.sorai-title-wild { color: #132e33 !important; }
.sorai-title-from { color: #e85a36 !important; }
.sorai-nav { background: #fff !important; }
.sorai-nav-list li a { color: #132e33 !important; }
.sorai-nav-list li a:hover { color: #e85a36 !important; }

/* Override old dark header background */
.sorai-header { background: #fff !important; color: #132e33 !important; }
.sorai-header-inner { display: none !important; }
.sorai-header-top { background: #fff !important; }
.sorai-title-wild { color: #132e33 !important; }
.sorai-title-from { color: #e85a36 !important; }
.sorai-nav { background: #fff !important; }
.sorai-nav-list li a { color: #132e33 !important; }
.sorai-nav-list li a:hover { color: #e85a36 !important; }

/* Override old dark header background */
.sorai-header { background: #fff !important; color: #132e33 !important; }
.sorai-header-inner { display: none !important; }
.sorai-header-top { background: #fff !important; }
.sorai-title-wild { color: #132e33 !important; }
.sorai-title-from { color: #e85a36 !important; }
.sorai-nav { background: #fff !important; }
.sorai-nav-list li a { color: #132e33 !important; }
.sorai-nav-list li a:hover { color: #e85a36 !important; }

/* Override old dark header background */
.sorai-header { background: #fff !important; color: #132e33 !important; }
.sorai-header-inner { display: none !important; }
.sorai-header-top { background: #fff !important; }
.sorai-title-wild { color: #132e33 !important; }
.sorai-title-from { color: #e85a36 !important; }
.sorai-nav { background: #fff !important; }
.sorai-nav-list li a { color: #132e33 !important; }
.sorai-nav-list li a:hover { color: #e85a36 !important; }
