/* SM Plant Sales: home page ([smp_home]), loaded on the front page only. Matches the hero:
   navy band, white cards, 1px lines, 8px corners, 40px buttons, sentence case throughout. */

.smp-home { --h-navy: #003768; --h-amber: #f9b101; --h-ink: #1a1a1a; --h-muted: #545d68; --h-line: #dfe3e8; --h-soft: #f4f6f9; }
.smp-home *, .smp-home *::before, .smp-home *::after { box-sizing: border-box; }
.smp-home .smp-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.smp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 50px; }
.smp-home-section { padding: 48px 0; }
.smp-home .smp-home-h2 { margin: 0 0 18px; color: var(--h-navy); font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; }
/* :where keeps these resets weaker than every component rule below */
:where(.smp-home) p { margin: 0; }
:where(.smp-home) ul { margin: 0; padding: 0; list-style: none; }
:where(.smp-home) li { margin: 0; }

/* Hero: fills the screen below the header. SM's own yard photo under a navy gradient; what SM sells
   (left), the finder and part search (right); stats along the bottom of the text. */
.smp-hero {
	position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
	min-height: calc(100vh - var(--smp-hdr-h, 170px)); min-height: calc(100svh - var(--smp-hdr-h, 170px));
	background: #002b52; color: #fff;
}
.smp-hero * { box-sizing: border-box; }
.smp-home .smp-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 60%; }
.smp-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(0, 33, 64, 0.97) 0%, rgba(0, 39, 74, 0.9) 42%, rgba(0, 39, 74, 0.5) 100%),
		linear-gradient(0deg, rgba(0, 25, 48, 0.55) 0%, rgba(0, 25, 48, 0) 40%);
}
.smp-hero-inner {
	width: 100%; max-width: 1240px; margin: 0 auto; padding: 64px 50px;
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 64px; align-items: center;
}
.smp-hero-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.9); font-size: 13px; font-weight: 600; line-height: 1.2;
}
.smp-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #f9b101; box-shadow: 0 0 0 3px rgba(249, 177, 1, 0.25); }
.smp-home .smp-hero h1 {
	margin: 0 0 18px; max-width: 12em; color: #fff; font-size: clamp(2.25rem, 1.2rem + 3.2vw, 4.25rem); font-weight: 800;
	line-height: 1.04; letter-spacing: -0.02em; text-transform: none;
}
.smp-hero-lead { margin: 0 0 28px; max-width: 34em; color: rgba(255, 255, 255, 0.82); font-size: 18px; line-height: 1.55; }
.smp-hero-links { display: flex; gap: 10px; }
.smp-hero-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 6px;
	font-size: 14px; font-weight: 600; text-decoration: none !important; letter-spacing: 0; text-transform: none; white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.smp-hero .smp-hero-btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.smp-hero-btn-primary { background: #f9b101; color: #1a1a1a !important; }
.smp-hero-btn-primary:hover, .smp-hero-btn-primary:focus-visible { background: #ffc229; }
.smp-hero-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); color: #fff !important; }
.smp-hero-btn-ghost:hover, .smp-hero-btn-ghost:focus-visible { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.1); }
.smp-hero-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.smp-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 40px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.smp-hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; margin: 0; }
.smp-hero-stats dd { margin: 0; color: #fff; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.smp-hero-stats dt { margin: 0; color: rgba(255, 255, 255, 0.65); font-size: 13px; font-weight: 500; }
.smp-hero-card { padding: 24px; border-radius: 14px; background: #fff; color: #1a1a1a; box-shadow: 0 24px 60px rgba(0, 16, 32, 0.45), 0 2px 6px rgba(0, 16, 32, 0.2); }
.smp-hero .smp-finder-hero { margin: 0 0 18px; padding: 0; border: 0; background: none; max-width: none; }
.smp-hero .smp-finder-hero .smp-finder-title { font-size: 17px; }
.smp-hero-search { margin: 0; padding-top: 18px; border-top: 1px solid #e6e9ee; }
.smp-hero-search-title { margin: 0 0 10px; color: #003768; font-size: 15px; font-weight: 700; }
.smp-hero-search-row { display: flex; gap: 8px; }
.smp-hero-search input[type="search"] {
	flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; padding: 0 12px; border: 1px solid #b9c1ca; border-radius: 6px; background: #fff; color: #1a1a1a; font-size: 15px;
}
.smp-hero-search input[type="search"]:focus { outline: 3px solid #f9b101; outline-offset: 0; border-color: #003768; }
.smp-hero-search button {
	flex: 0 0 auto; height: 40px; margin: 0; padding: 0 16px; border: 0; border-radius: 6px; background: #003768; color: #fff;
	font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.smp-hero-search button:hover, .smp-hero-search button:focus-visible { background: #00264a; }
@media (max-width: 1199px) {
	.smp-hero-inner { gap: 40px; }
	.smp-hero-stats { gap: 28px; }
}
@media (max-width: 921px) {
	.smp-hero::before { background: linear-gradient(180deg, rgba(0, 33, 64, 0.9) 0%, rgba(0, 33, 64, 0.94) 100%); }
	.smp-hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
	.smp-home .smp-hero h1 { max-width: none; }
	.smp-hero-lead { font-size: 16px; margin-bottom: 20px; }
	.smp-hero-stats { margin-top: 24px; padding-top: 16px; }
	.smp-hero-card { padding: 16px; border-radius: 12px; }
	/* the header search sits directly above on tablets and phones */
	.smp-hero-search { display: none; }
	.smp-hero .smp-finder-hero { margin: 0; }
	.smp-hero .smp-finder-hero .smp-finder-title { font-size: 15px; }
}
@media (max-width: 599px) {
	.smp-hero-inner { padding: 24px 20px; gap: 20px; }
	.smp-hero-eyebrow { margin-bottom: 14px; padding: 5px 10px; font-size: 12px; }
	.smp-home .smp-hero h1 { margin-bottom: 12px; font-size: 2rem; }
	.smp-hero-lead { font-size: 15px; margin-bottom: 18px; }
	/* Phones: the three links are one row of equal buttons at every width */
	.smp-hero-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.smp-hero .smp-hero-btn { min-height: 40px; padding: 0 6px; font-size: 14px; }
	/* Stats: one row of three equal columns */
	.smp-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; padding-top: 14px; }
	.smp-hero-stats dd { font-size: 20px; }
	.smp-hero-stats dt { font-size: 12px; }
}
@media (max-width: 359px) {
	.smp-hero .smp-hero-btn { font-size: 13px; }
	.smp-hero-stats dt { font-size: 11px; }
}

/* Brands */
.smp-brands { padding: 28px 0 8px; text-align: center; }
.smp-home .smp-brands-label { margin: 0 0 12px; color: var(--h-muted); font-size: 13px; font-weight: 600; }
.smp-home .smp-brands-img { display: block; width: 100%; max-width: 860px; height: auto; margin: 0 auto; }

/* Shop by category */
.smp-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.smp-cat {
	display: flex; flex-direction: column; height: 100%; overflow: hidden;
	border: 1px solid var(--h-line); border-radius: 8px; background: #fff; color: var(--h-ink) !important; text-decoration: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.smp-cat:hover, .smp-cat:focus-visible { border-color: var(--h-navy); box-shadow: 0 6px 18px rgba(0, 55, 104, 0.1); }
.smp-cat:focus-visible { outline: 3px solid var(--h-amber); outline-offset: 2px; }
.smp-cat-img { display: block; aspect-ratio: 3 / 2; background: var(--h-soft); }
.smp-cat-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.smp-cat-body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; padding: 14px 16px 16px; }
.smp-cat-title { color: var(--h-navy); font-size: 17px; font-weight: 700; line-height: 1.25; }
.smp-cat-text { color: var(--h-muted); font-size: 14px; line-height: 1.45; }
.smp-cat-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--h-navy); font-size: 14px; font-weight: 600; }
.smp-cat-cta .smp-icon { width: 16px; height: 16px; transition: transform 0.15s ease; }
.smp-cat:hover .smp-cat-cta .smp-icon { transform: translateX(3px); }
.smp-home-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.smp-home-chips a {
	display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; border: 1px solid var(--h-line); border-radius: 999px; background: #fff;
	color: var(--h-navy); font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none;
}
.smp-home-chips a:hover, .smp-home-chips a:focus-visible { border-color: var(--h-navy); }

/* Why SM Plant */
.smp-why { background: var(--h-soft); }
.smp-why-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.smp-why-intro p { margin: 0; color: var(--h-ink); font-size: 15px; line-height: 1.6; }
.smp-why-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.smp-why-points li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--h-line); border-radius: 8px; background: #fff; }
.smp-why-points strong { display: block; margin-bottom: 2px; color: var(--h-navy); font-size: 15px; line-height: 1.3; }
.smp-why-points li > span:last-child { color: var(--h-muted); font-size: 14px; line-height: 1.45; }
.smp-why-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; background: #fff4d6; color: var(--h-navy); }

/* Talk to the parts desk */
.smp-contact { background: var(--h-navy); color: #fff; }
.smp-contact-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.smp-home .smp-contact .smp-home-h2 { color: #fff; }
.smp-contact-main p { margin: 0; max-width: 38em; color: rgba(255, 255, 255, 0.88); font-size: 15px; line-height: 1.55; }
.smp-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.smp-contact-visit { padding: 18px 20px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; }
.smp-home .smp-contact-visit h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.smp-contact-visit .smp-icon { width: 18px; height: 18px; color: var(--h-amber); }
.smp-contact-visit p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 14px; line-height: 1.5; }
.smp-contact-visit a { display: inline-block; margin-top: 10px; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 921px) {
	.smp-wrap { padding: 0 20px; }
	.smp-home-section { padding: 32px 0; }
	.smp-home .smp-home-h2 { font-size: 1.3rem; margin-bottom: 14px; }
	.smp-cats { gap: 12px; }
	.smp-why-inner, .smp-contact-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 599px) {
	.smp-brands { padding: 20px 0 0; }
	/* Category cards become compact rows: photo left, text right */
	.smp-cats { grid-template-columns: 1fr; gap: 10px; }
	.smp-cat { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
	.smp-cat-img { aspect-ratio: auto; height: 100%; min-height: 96px; }
	.smp-cat-body { padding: 10px 12px; gap: 3px; }
	.smp-cat-title { font-size: 16px; }
	.smp-cat-text { font-size: 13px; }
	.smp-cat-cta { padding-top: 2px; font-size: 13px; }
	.smp-why-points { grid-template-columns: 1fr; gap: 8px; }
	.smp-why-points li { padding: 10px 12px; }
	.smp-why-icon { width: 32px; height: 32px; }
	/* Phones: Call across the top, WhatsApp and Email as two halves below, at every width */
	.smp-contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.smp-contact-actions .smp-hero-btn { min-height: 40px; padding: 0 8px; white-space: nowrap; }
	.smp-contact-actions .smp-hero-btn-primary { grid-column: 1 / -1; }
	/* Phones: the extra links are one tidy list, not chips that wrap */
	.smp-home-chips { display: block; margin-top: 10px !important; border: 1px solid var(--h-line); border-radius: 8px; background: #fff; overflow: hidden; }
	.smp-home-chips li + li { border-top: 1px solid var(--h-line); }
	.smp-home-chips a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border: 0; border-radius: 0; font-size: 14px; }
	.smp-home-chips a::after { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
}
