/*
Theme Name: RKH Industries
Theme URI: https://www.rkhindustries.com
Author: RKH Industries LLC
Author URI: https://www.rkhindustries.com
Description: Block-editor-ready industrial fabrication, conveyor manufacturing, brewery piping, machining, and CAD engineering theme for RKH Industries LLC in Bend, Oregon.
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rkh-industries
*/

:root {
  --bg-dark: #133c73;
  --bg-steel: #1e5aa8;
  --bg-light: #f2f6fb;
  --surface: #ffffff;
  --text-main: #1a222d;
  --text-muted: #526071;
  --accent: #f36c21;
  --accent-hover: #d95814;
  --border: #dde3ea;
  --max-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Header */
.site-header {
  background: var(--bg-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 48px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.75rem;
  color: #cbd9ec;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e6eef8;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--accent-hover);
}

/* Block Editor Sections & Helpers */
.site-main .wp-block-group.rkh-section {
  padding: 64px 24px;
}

.site-main .wp-block-group.rkh-hero {
  background: linear-gradient(135deg, #133c73 0%, #1e5aa8 100%);
  color: #fff;
  padding: 76px 24px;
  border-bottom: 4px solid var(--accent);
}

.site-main .wp-block-group.rkh-page-hero {
  background: linear-gradient(135deg, #133c73 0%, #1e5aa8 100%);
  color: #fff;
  padding: 52px 24px;
  border-bottom: 3px solid var(--accent);
}

.site-main .wp-block-group.rkh-section-alt {
  background: var(--bg-light);
}

.site-main .wp-block-group.rkh-cta-banner {
  background: var(--bg-steel);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}

.rkh-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.rkh-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #d95814;
  margin-bottom: 8px;
}

.rkh-hero .rkh-eyebrow {
  color: #ff9a52;
}

.rkh-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  height: 100%;
}

.rkh-hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 26px;
  color: #e6ecf2;
}

.rkh-card .wp-block-image {
  margin: -24px -24px 18px;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  aspect-ratio: 4 / 3;
  background: var(--bg-dark);
}

.rkh-card .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rkh-policy-note {
  margin-top: 24px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--text-muted);
}

/* Native WordPress Buttons */
.wp-block-button__link {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.96rem;
}

.wp-block-button__link:hover {
  background: var(--accent-hover);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

/* Contact Form inside Block Editor */
.rkh-contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.rkh-contact-form input,
.rkh-contact-form textarea,
.rkh-contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.rkh-btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
}

.rkh-btn-submit:hover {
  background: var(--accent-hover);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #e2ebf6;
  padding: 56px 0 32px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #b7cae2;
  font-size: 0.85rem;
}

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

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav ul {
    gap: 16px;
    flex-wrap: wrap;
  }
}
