/*
Theme Name: Action Equipment Finance
Theme URI: https://example.com/
Author: Action Equipment Finance Corp
Description: A custom WordPress theme for Action Equipment Finance Corp with equipment-financing focused layouts and online application support.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: action-equipment-finance
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --aef-red: #b5121b;
  --aef-red-dark: #7c0c12;
  --aef-black: #151515;
  --aef-gray: #5d646b;
  --aef-light: #f4f5f6;
  --aef-white: #ffffff;
  --aef-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--aef-black);
  background: var(--aef-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: var(--aef-red); }
a:hover { color: var(--aef-red-dark); }
img { max-width: 100%; height: auto; }
.aef-container { width: min(92%, var(--aef-max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #dedede;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.custom-logo { max-height: 68px; width: auto; }
.site-title { margin: 0; font-size: 1.35rem; font-weight: 800; text-transform: uppercase; }
.site-title a { color: var(--aef-black); text-decoration: none; }
.site-description { margin: 0; color: var(--aef-gray); font-size: .9rem; }
.main-navigation ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; }
.main-navigation a { color: var(--aef-black); font-weight: 700; text-decoration: none; }
.main-navigation a:hover { color: var(--aef-red); }

.aef-hero {
  color: var(--aef-white);
  background:
    linear-gradient(105deg, rgba(15,15,15,.94), rgba(124,12,18,.84)),
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.16), transparent 32%);
  padding: 90px 0;
}
.aef-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.aef-kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #f2b9bd; }
.aef-hero h1 { margin: 10px 0 18px; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1.02; }
.aef-hero p { max-width: 700px; font-size: 1.15rem; }
.aef-button {
  display: inline-block;
  margin: 8px 10px 0 0;
  padding: 14px 22px;
  border-radius: 5px;
  background: var(--aef-red);
  color: var(--aef-white);
  text-decoration: none;
  font-weight: 800;
  border: 2px solid var(--aef-red);
}
.aef-button:hover { background: var(--aef-red-dark); border-color: var(--aef-red-dark); color: #fff; }
.aef-button-outline { background: transparent; border-color: #fff; }
.aef-button-outline:hover { background: #fff; color: var(--aef-black); }
.aef-hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); border-radius: 10px; padding: 28px; backdrop-filter: blur(4px); }
.aef-hero-card ul { margin: 0; padding-left: 20px; }

.aef-section { padding: 72px 0; }
.aef-section-alt { background: var(--aef-light); }
.aef-section h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-top: 0; }
.aef-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aef-card { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: 28px; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.aef-card h3 { margin-top: 0; }

.site-main { min-height: 55vh; }
.content-area { padding: 54px 0; }
.entry-title { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
.entry-content { max-width: 900px; }
.entry-content input,
.entry-content select,
.entry-content textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #b8bcc0;
  border-radius: 4px;
  font: inherit;
}
.entry-content button,
.entry-content input[type="submit"] {
  width: auto;
  cursor: pointer;
  background: var(--aef-red);
  color: #fff;
  border: 0;
  padding: 13px 20px;
  font-weight: 800;
  border-radius: 4px;
}
.aef-application-shell { max-width: 980px; margin: 0 auto; }
.aef-notice { padding: 16px 18px; background: #fff4d6; border-left: 5px solid #c58b00; margin-bottom: 24px; }
.aef-legal { margin-top: 40px; padding: 24px; background: #f7f7f7; border: 1px solid #ddd; font-size: .92rem; }

.site-footer { background: #111; color: #ddd; padding: 44px 0 24px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 28px; padding-top: 18px; font-size: .9rem; }

@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .main-navigation ul { gap: 12px 18px; }
  .aef-hero-grid, .aef-grid-3, .footer-grid { grid-template-columns: 1fr; }
  .aef-hero { padding: 64px 0; }
}

/* Editable-theme enhancements */
.aef-hero { background-size: cover; background-position: center; }
.aef-card-image { width: calc(100% + 56px); max-width: none; height: 210px; object-fit: cover; margin: -28px -28px 24px; border-radius: 8px 8px 0 0; }
.aef-home-editor-content .entry-content { max-width: none; }
.entry-content > * { max-width: 900px; }
.entry-content > .alignwide { max-width: var(--aef-max); }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content .wp-block-image img { border-radius: 6px; }
.aef-footer-contact { margin-top: 18px; }
.aef-footer-contact div { margin: 5px 0; }
.wp-block-button__link { background: var(--aef-red); }
