/*
Theme Name: Smith's Hydraulic
Description: A clean, responsive replacement for the retired Bouncy theme.
Template: twentyseventeen
Version: 1.0.0
Text Domain: smiths-recovery
*/
:root { --brand: #852016; --ink: #20272b; --muted: #566269; --paper: #f5f3ee; --line: #dedbd4; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.7 system-ui, sans-serif; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, input:focus-visible { outline: 3px solid #cf632c; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 1.5em 0 .65em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4, h5, h6 { font-size: 1.1rem; }
p { margin: 0 0 1.25em; }
ul, ol { padding-inline-start: 1.5rem; }
hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.shell { width: min(100% - 2.5rem, 75rem); margin-inline: auto; }
.screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; inset: 1rem auto auto 1rem; width: auto; height: auto; clip-path: none; padding: 1rem; background: white; z-index: 20; }
.site-header {
 border-top: .4rem solid var(--brand); background: white;
 .header-main { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 1.3rem; }
 .logo { flex: 0 1 23rem; display: block; }
 .header-contact { color: var(--muted); font-size: .9rem; }
 .header-contact a { display: block; font-size: 1.3rem; font-weight: 750; color: var(--ink); }
}
.site-nav {
 background: var(--ink); color: white;
 ul { list-style: none; padding: 0; margin: 0; }
 .menu { display: flex; flex-wrap: wrap; gap: 0 1rem; }
 li { position: relative; }
 a { display: block; padding: .8rem .5rem; color: white; text-decoration: none; font-weight: 600; }
 a:hover, .current-menu-item > a { background: #ffffff15; text-decoration: underline; }
 .sub-menu { padding-inline-start: 1rem; font-size: .9rem; }
 .icon { display: none; }
}
body > .svg-filters { display: none; }
.menu-toggle { display: none; border: 0; background: transparent; color: white; padding: .8rem .5rem; cursor: pointer; font-weight: 700; }
html.smiths-js .site-nav {
 .menu-toggle { display: block; }
 .menu { display: none; }
 .menu.is-open { display: flex; }
}
.hero {
 background: var(--paper); padding-block: clamp(2rem, 6vw, 5rem); border-bottom: 1px solid var(--line);
 .hero-grid { display: grid; gap: 2rem; align-items: center; }
 h1 { margin-top: .3rem; }
 p { max-width: 45rem; font-size: 1.15rem; }
 .eyebrow { color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
 img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .3rem; }
}
.button { display: inline-block; background: var(--brand); color: white; padding: .8rem 1.3rem; border-radius: .2rem; text-decoration: none; font-weight: 700; }
.button:hover { background: #64170f; color: white; }
.entry { padding-block: 2.5rem 4rem; }
.entry-title { margin-top: 0; }
.entry-content {
 overflow-wrap: anywhere;
 &::after { content: ''; display: table; clear: both; }
 img.alignleft, img.alignright { float: none; margin: 0 0 1.5rem; }
 .aligncenter { display: block; margin-inline: auto; }
 .wp-caption { max-width: 100%; }
 .wp-caption-text { font-size: .9rem; color: var(--muted); }
}
.recovery-columns { display: grid; gap: 2rem; margin-block: 1.5rem; }
.recovery-column { min-width: 0; }
.recovery-notice { padding: 1.25rem; background: var(--paper); border-inline-start: .3rem solid var(--brand); margin-block: 1.5rem; }
.contact-panel { padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); margin-block: 1.5rem; h2,h3 { margin-top: 0; } p:last-child { margin-bottom: 0; } }
.portfolio-grid {
 display: grid; gap: 1.5rem; margin-block: 2rem;
 article { border: 1px solid var(--line); border-radius: .25rem; overflow: hidden; }
 img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
 h3 { font-size: 1.1rem; padding: 1rem; margin: 0; }
 a { color: var(--ink); text-decoration: none; }
 a:hover h3 { text-decoration: underline; }
}
.portfolio-feature { display: block; margin-block: 1.5rem; max-height: 70vh; object-fit: contain; }
.site-footer {
 background: var(--ink); color: #e6e9ea; padding-block: 3rem;
 .footer-grid { display: grid; gap: 2rem; }
 h2 { font-size: 1.2rem; color: white; margin-top: 0; }
 a { color: white; }
 ul { padding: 0; list-style: none; }
 .copyright { margin-block: 2rem 0; padding-top: 1.5rem; border-top: 1px solid #ffffff30; font-size: .85rem; }
}
input, textarea, select, button { font: inherit; max-width: 100%; }
@media (min-width: 768px) {
 html.smiths-js .site-nav { .menu { display: flex; } .menu-toggle { display: none; } }
 .site-nav {
  .sub-menu { display: none; position: absolute; inset: 100% auto auto 0; min-width: 17rem; padding: .5rem; background: var(--ink); z-index: 10; }
  li:hover > .sub-menu, li:focus-within > .sub-menu { display: block; }
 }
 .hero .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
 .recovery-columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
 .portfolio-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
 .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
 .entry-content { img.alignright { float: right; margin-inline-start: 2rem; } img.alignleft { float: left; margin-inline-end: 2rem; } }
}
@media (min-width: 1100px) { .recovery-columns:has(> .quarter) { grid-template-columns: repeat(4,minmax(0,1fr)); } }
