/*
Theme Name: Red Box Minimal
Theme URI: https://example.com/
Author: Custom build
Description: A minimal custom business theme inspired by a bold red-box layout, with a large headline, logo panel, simple navigation, and responsive mobile behavior.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: red-box-minimal
*/

:root {
  --rb-red: #e31b23;
  --rb-text: #111111;
  --rb-bg: #ffffff;
  --rb-page-x: clamp(24px, 4.4vw, 80px);
  --rb-header-y: clamp(28px, 4.1vw, 66px);
  --rb-gap: clamp(52px, 8vw, 140px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rb-bg);
  color: var(--rb-text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.site-header {
  width: 100%;
  background: var(--rb-red);
  color: #fff;
  padding: var(--rb-header-y) var(--rb-page-x) 24px;
}

.site-header__title {
  margin: 0;
  max-width: 1500px;
  font-size: clamp(2.2rem, 3.3vw, 4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.site-header__title a {
  color: #fff;
  text-decoration: none;
}

.redbox-home {
  padding: clamp(54px, 8vw, 112px) var(--rb-page-x) clamp(90px, 10vw, 160px);
}

.redbox-home__grid {
  display: grid;
  grid-template-columns: minmax(280px, 535px) minmax(240px, 1fr);
  align-items: start;
  column-gap: var(--rb-gap);
  max-width: 1500px;
}

.redbox-logo-panel {
  aspect-ratio: 1 / 0.97;
  width: min(100%, 535px);
  background: var(--rb-red);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.redbox-logo-panel .custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72%;
  height: 72%;
}

.redbox-logo-panel .custom-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.redbox-fallback-logo {
  color: #fff;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .82;
  letter-spacing: .12em;
  text-transform: lowercase;
  text-align: center;
  font-weight: 400;
}

.redbox-fallback-logo span { display: block; }

.redbox-menu-wrap {
  padding-top: clamp(10px, 2.2vw, 40px);
}

.redbox-menu,
.redbox-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.redbox-menu > li {
  margin: 0 0 clamp(34px, 4.2vw, 66px);
}

.redbox-menu > li:last-child { margin-bottom: 0; }

.redbox-menu a {
  color: var(--rb-text);
  text-decoration: none;
  font-size: clamp(1.55rem, 1.9vw, 2rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-block;
}

.redbox-menu a:hover,
.redbox-menu a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.redbox-menu .sub-menu {
  margin-top: 14px;
  padding-left: 18px;
}

.redbox-menu .sub-menu li { margin: 10px 0; }
.redbox-menu .sub-menu a { font-size: 1rem; font-weight: 500; }

.content-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(55px, 8vw, 110px) var(--rb-page-x) clamp(90px, 10vw, 150px);
}

.entry-title {
  margin: 0 0 1.1em;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.entry-content {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.65;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.site-footer {
  padding: 28px var(--rb-page-x) 36px;
  font-size: .875rem;
}

.site-footer p { margin: 0; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: #111;
  display: block;
  font-size: 14px;
  height: auto;
  left: 8px;
  padding: 12px 16px;
  top: 8px;
  width: auto;
  z-index: 100000;
}

@media (max-width: 820px) {
  .site-header {
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .site-header__title {
    font-size: clamp(2rem, 8vw, 3.35rem);
    max-width: 12ch;
  }

  .redbox-home {
    padding-top: 34px;
    padding-bottom: 80px;
  }

  .redbox-home__grid {
    grid-template-columns: 1fr;
    row-gap: 42px;
  }

  .redbox-logo-panel {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1 / 1;
  }

  .redbox-menu-wrap { padding-top: 0; }

  .redbox-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 28px;
  }

  .redbox-menu > li { margin: 0; }
  .redbox-menu a { font-size: clamp(1.35rem, 5vw, 1.75rem); }
}

@media (max-width: 520px) {
  :root { --rb-page-x: 20px; }
  .site-header { padding-top: 28px; padding-bottom: 24px; }
  .site-header__title { max-width: 13ch; }
  .redbox-home { padding-top: 20px; }
  .redbox-home__grid { row-gap: 30px; }
  .redbox-menu { grid-template-columns: 1fr; gap: 22px; }
  .redbox-menu a { font-size: 1.5rem; }
  .site-footer { padding-top: 18px; }
}
