/*
Theme Name: Southern Mobile Home Supplies
Theme URI: https://mobilehomesupplies.com/
Author: River Web Services
Description: A clean, responsive informational WordPress theme for Southern Mobile Home Supplies. Built for company information, supply categories, resources, and contact content without ecommerce dependencies.
Version: 1.4.8
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: southern-mobile-home-supplies
*/

:root {
  --smhs-navy: #07376c;
  --smhs-navy-dark: #05284f;
  --smhs-green: #17633c;
  --smhs-green-dark: #10482c;
  --smhs-charcoal: #2f3439;
  --smhs-gray: #66727d;
  --smhs-light: #f4f7f8;
  --smhs-border: #dfe5e8;
  --smhs-white: #ffffff;
  --smhs-shadow: 0 12px 34px rgba(4, 40, 79, 0.10);
  --smhs-radius: 12px;
  --smhs-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--smhs-charcoal);
  background: var(--smhs-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--smhs-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--smhs-green); }
button, input, textarea, select { font: inherit; }

.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: var(--smhs-navy-dark);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 12px 16px;
  top: 8px;
  width: auto;
  z-index: 100000;
  box-shadow: var(--smhs-shadow);
}

.smhs-container { width: min(calc(100% - 40px), var(--smhs-container)); margin-inline: auto; }
.site-main { min-height: 50vh; }

/* Top bar */
.site-topbar { background: var(--smhs-navy-dark); color: #fff; font-size: 14px; }
.site-topbar a { color: #fff; text-decoration: none; }
.site-topbar a:hover { text-decoration: underline; }
.site-topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.site-topbar__message { opacity: .92; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--smhs-border); position: sticky; top: 0; z-index: 1000; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { flex: 0 0 auto; max-width: 310px; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { display: block; width: auto; height: auto; max-height: 86px; max-width: 300px; }
.site-title { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; line-height: 1.1; }
.site-title a { color: var(--smhs-navy); text-decoration: none; }
.site-description { margin: 6px 0 0; color: var(--smhs-gray); font-size: 13px; }

.primary-navigation { margin-left: auto; min-width: 0; }
.primary-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; }
.primary-navigation li { position: relative; white-space: nowrap; }
.primary-navigation a { display: block; padding: 12px 11px; color: var(--smhs-charcoal); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; border-radius: 7px; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a, .primary-navigation .current-menu-ancestor > a { color: var(--smhs-navy); background: var(--smhs-light); }
.primary-navigation .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--smhs-border); box-shadow: var(--smhs-shadow); border-radius: 8px; }
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { display: block; }
.primary-navigation .sub-menu a { padding: 10px 12px; }
.menu-toggle { display: none; border: 0; background: var(--smhs-navy); color: #fff; border-radius: 7px; padding: 10px 12px; cursor: pointer; font-weight: 700; }

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--smhs-navy-dark), var(--smhs-navy));
  color: #fff;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,40,79,.97) 0%, rgba(4,40,79,.88) 47%, rgba(4,40,79,.35) 100%);
  pointer-events: none;
}
.home-hero.has-image { background-size: cover; background-position: center; }
.home-hero__inner { position: relative; z-index: 2; min-height: 540px; display: grid; align-items: center; grid-template-columns: minmax(0, 650px) 1fr; padding-block: 72px; }
.home-hero__eyebrow { color: #a9d6b8; font-size: 14px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.home-hero h1 { margin: 12px 0 18px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 5vw, 68px); line-height: 1.05; color: #fff; }
.home-hero p { margin: 0 0 28px; max-width: 660px; font-size: 20px; color: rgba(255,255,255,.92); }
.button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: var(--smhs-green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: .2s ease;
}
.button:hover, .wp-block-button__link:hover { background: var(--smhs-green-dark); color: #fff; transform: translateY(-1px); }
.button--outline { background: transparent; border-color: rgba(255,255,255,.75); margin-left: 10px; }
.button--outline:hover { background: #fff; color: var(--smhs-navy); }

/* Homepage sections */
.section { padding: 76px 0; }
.section--light { background: var(--smhs-light); }
.section-heading { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.section-heading__eyebrow { display: block; margin-bottom: 8px; color: var(--smhs-green); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.section-heading h2 { margin: 0 0 12px; color: var(--smhs-navy-dark); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 4vw, 46px); line-height: 1.15; }
.section-heading p { margin: 0; color: var(--smhs-gray); font-size: 18px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--smhs-border); border-radius: var(--smhs-radius); padding: 30px; box-shadow: 0 8px 22px rgba(4,40,79,.05); }
.info-card h3 { margin: 0 0 10px; color: var(--smhs-navy); font-family: Georgia, 'Times New Roman', serif; font-size: 24px; }
.info-card p { margin: 0 0 18px; color: var(--smhs-gray); }
.info-card a { font-weight: 800; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split-section__media { background: #fff; border: 1px solid var(--smhs-border); border-radius: var(--smhs-radius); padding: 24px; box-shadow: var(--smhs-shadow); }
.split-section__media img { display: block; width: 100%; }
.split-section h2 { color: var(--smhs-navy-dark); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 4vw, 46px); line-height: 1.15; margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 26px 0; }
.check-list li { position: relative; padding: 7px 0 7px 31px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 6px; color: var(--smhs-green); font-weight: 900; }

.cta-band { background: var(--smhs-green); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 42px; }
.cta-band h2 { margin: 0 0 5px; font-family: Georgia, 'Times New Roman', serif; font-size: 34px; color: #fff; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .button { background: #fff; color: var(--smhs-green-dark); white-space: nowrap; }
.cta-band .button:hover { background: var(--smhs-light); }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; background: var(--smhs-light); border-bottom: 1px solid var(--smhs-border); }
.page-hero.has-image { background-size: cover; background-position: center; color: #fff; }
.page-hero.has-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,40,79,.90) 0%, rgba(4,40,79,.70) 48%, rgba(4,40,79,.28) 100%); }
.page-hero__inner { position: relative; z-index: 1; padding: 54px 0; }
.page-hero h1 { margin: 0; color: var(--smhs-navy-dark); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.1; }
.page-hero.has-image h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.22); }
.page-hero p { margin: 10px 0 0; max-width: 760px; color: var(--smhs-gray); font-size: 18px; }
.page-hero.has-image p { color: rgba(255,255,255,.92); }
.content-area { padding: 58px 0 74px; }
.entry-content { max-width: 900px; margin: 0 auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--smhs-navy-dark); font-family: Georgia, 'Times New Roman', serif; line-height: 1.25; }
.entry-content h2 { font-size: 34px; margin-top: 42px; }
.entry-content h3 { font-size: 26px; margin-top: 32px; }
.entry-content blockquote { margin: 30px 0; padding: 20px 24px; border-left: 5px solid var(--smhs-green); background: var(--smhs-light); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--smhs-border); padding: 12px; text-align: left; }

.post-list { display: grid; gap: 28px; }
.post-card { border: 1px solid var(--smhs-border); border-radius: var(--smhs-radius); padding: 28px; }
.post-card h2 { margin-top: 0; }

/* Forms */
input[type='text'], input[type='email'], input[type='tel'], input[type='url'], input[type='search'], textarea, select {
  width: 100%;
  max-width: 100%;
  padding: 12px 13px;
  border: 1px solid #bac5cb;
  border-radius: 6px;
  background: #fff;
  color: var(--smhs-charcoal);
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(23,99,60,.18); border-color: var(--smhs-green); }
button, input[type='submit'] { border: 0; border-radius: 6px; padding: 12px 20px; background: var(--smhs-green); color: #fff; font-weight: 800; cursor: pointer; }

/* Footer */
.site-footer { background: #071f38; color: rgba(255,255,255,.82); }
.site-footer a { color: #fff; }
.footer-widgets { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 38px; padding: 58px 0 42px; }
.footer-widget h2, .footer-widget h3, .footer-widget .wp-block-heading { color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; margin-top: 0; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { margin: 7px 0; }
.footer-brand img { max-width: 260px; background: #fff; border-radius: 8px; padding: 8px; }
.site-info { border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.site-info__inner { min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--smhs-navy); color: #fff; box-shadow: var(--smhs-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 999; cursor: pointer; }
.back-to-top-icon { position: relative; display: block; width: 5px; height: 22px; margin: 5px auto 0; background: currentColor; border-radius: 2px; }
.back-to-top-icon::before,
.back-to-top-icon::after { content: ""; position: absolute; top: -1px; width: 17px; height: 5px; background: currentColor; border-radius: 2px; }
.back-to-top-icon::before { right: 1px; transform-origin: right center; transform: rotate(-45deg); }
.back-to-top-icon::after { left: 1px; transform-origin: left center; transform: rotate(45deg); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

@media (min-width: 981px) and (max-width: 1120px) {
  .site-header__inner { gap: 18px; }
  .site-branding { max-width: 250px; }
  .custom-logo { max-height: 78px; max-width: 245px; }
  .primary-navigation a { padding: 11px 8px; font-size: 14px; }
}

@media (max-width: 980px) {
  .admin-bar .site-header { top: 46px; }
  .site-header__inner { min-height: 86px; }
  .site-branding { flex: 1 1 auto; max-width: 265px; }
  .custom-logo { max-height: 70px; max-width: 260px; }
  .menu-toggle { display: inline-block; }
  .primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--smhs-border); box-shadow: var(--smhs-shadow); padding: 10px 20px 18px; }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; }
  .primary-navigation a { padding: 11px 10px; }
  .primary-navigation .sub-menu { display: block; position: static; box-shadow: none; border: 0; border-left: 2px solid var(--smhs-border); border-radius: 0; margin-left: 12px; padding: 0 0 0 10px; }
  .home-hero__inner { min-height: 490px; grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .smhs-container { width: min(calc(100% - 28px), var(--smhs-container)); }
  .site-topbar__inner { padding-block: 8px; align-items: flex-start; }
  .site-topbar__message { display: none; }
  .site-topbar__contact { gap: 10px 16px; }
  .site-header__inner { gap: 12px; }
  .custom-logo { max-height: 58px; max-width: 230px; }
  .site-title { font-size: 22px; }
  .home-hero__inner { min-height: 440px; padding-block: 55px; }
  .home-hero p { font-size: 18px; }
  .button--outline { margin-left: 0; margin-top: 10px; }
  .section { padding: 56px 0; }
  .info-grid { grid-template-columns: 1fr; }
  .cta-band__inner { display: block; }
  .cta-band .button { margin-top: 22px; }
  .footer-widgets { grid-template-columns: 1fr; }
  .site-info__inner { display: block; padding: 18px 0; }
}

/* Contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 42px; align-items: start; }
.contact-intro.entry-content { max-width: none; margin: 0 0 28px; }
.contact-intro.entry-content h2:first-child { margin-top: 0; }
.contact-card, .contact-form-card { background: #fff; border: 1px solid var(--smhs-border); border-radius: var(--smhs-radius); box-shadow: 0 10px 28px rgba(4,40,79,.07); padding: 30px; }
.contact-card h2, .contact-form-card h2 { margin: 0 0 12px; color: var(--smhs-navy-dark); font-family: Georgia, 'Times New Roman', serif; font-size: 30px; }
.contact-form-card > p { color: var(--smhs-gray); margin-top: 0; }
.contact-item { padding: 18px 0; border-top: 1px solid var(--smhs-border); }
.contact-item:first-of-type { margin-top: 20px; }
.contact-item strong { display: block; color: var(--smhs-navy-dark); margin-bottom: 4px; }
.contact-item address { margin: 0; font-style: normal; }
.contact-item a { font-weight: 700; }
.smhs-contact-form label { display: block; margin-bottom: 7px; color: var(--smhs-navy-dark); font-weight: 800; }
.smhs-contact-form p { margin: 0 0 19px; }
.form-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.smhs-contact-form textarea { resize: vertical; min-height: 160px; }
.form-submit-wrap { margin-bottom: 0 !important; }
.form-submit-wrap button { min-width: 160px; }
.smhs-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.recaptcha-wrap { margin: 4px 0 20px; overflow: hidden; }
.form-notice { margin: 20px 0; padding: 13px 15px; border-radius: 6px; font-weight: 700; }
.form-notice--success { background: #eef8f1; border: 1px solid #b9ddc4; color: #155d33; }
.form-notice--error { background: #fff2f2; border: 1px solid #e4bcbc; color: #8b2424; }

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

@media (max-width: 560px) {
  .form-row--two { grid-template-columns: 1fr; gap: 0; }
  .contact-card, .contact-form-card { padding: 22px; }
  .g-recaptcha { transform: scale(.88); transform-origin: left top; margin-bottom: -8px; }
}
