/*
Theme Name: End Mill Sharpening
Description: Editable SiteOrigin landing pages and Gravity Forms quotes for a cutting tool sharpening service.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: end-mill-sharpening
*/
:root { --ink: #142a2c; --deep: #102e30; --paper: #f5f7f5; --lime: #dbf38e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #298676; outline-offset: 3px; }
h1, h2 { line-height: 1.1; letter-spacing: -.045em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.wrap, .ems-hero-copy { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.header-inner, .footer-inner, .service-nav, .site-header .menu { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.2rem; }
.header-inner, .footer-inner { justify-content: space-between; min-height: 74px; padding-block: .8rem; }
.brand { display: flex; gap: .65rem; align-items: center; font-size: 1.2rem; font-weight: 800; }
.brand a, .service-nav a { text-decoration: none; }
.brand img { display: block; width: auto; max-height: 45px; }
.service-nav { font-size: .94rem; font-weight: 700; }
.service-nav [aria-current="page"], .service-nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.site-header .menu { list-style: none; padding: 0; margin: 0; }
.site-footer { background: var(--deep); color: white; }
.standard-page { padding-block: 3rem; min-height: 48vh; }
.ems-hero-row, .panel-grid:has(.ems-hero-copy):not(:has(.ems-hero-row)) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--deep);
    color: white;
}
.ems-hero-row::before, .panel-grid:has(.ems-hero-copy):not(:has(.ems-hero-row))::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #0e292bf7, #0e292be0 37%, #0e292b20);
}
.ems-hero-row img, .panel-grid:has(.ems-hero-copy):not(:has(.ems-hero-row)) .textwidget img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 54%;
}
.ems-hero-copy { padding-block: clamp(3.75rem, 9vw, 7.25rem); }
.ems-hero-copy h1 { max-width: 720px; font-size: clamp(2.8rem, 7vw, 5.45rem); margin-bottom: .22em; }
.ems-hero-copy p { max-width: 470px; }
.ems-button { display: inline-block; background: var(--lime); color: var(--ink); text-decoration: none; border-radius: .4rem; padding: .73rem 1.1rem; font-weight: 750; }
.ems-button:hover { background: #efffb8; }
.ems-details-row { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; padding-block: clamp(1.5rem, 4vw, 3.8rem); }
.ems-details-row .panel-grid-cell { min-width: 0; }
.ems-details-row h2:not(:first-child) { margin-top: 1.2rem; }
.ems-detail-image { display: block; border-radius: .7rem; margin-bottom: 1.45rem; }
.ems-quote-card { min-width: 0; border: 1px solid #d4dfd9; border-radius: .9rem; background: white; padding: clamp(1.1rem, 3vw, 2rem); box-shadow: 0 13px 30px #132c2c12; }
.ems-quote-card :is(input[type=submit], button[type=submit]) { background: var(--deep); color: white; border: 0; padding: .7rem 1.1rem; border-radius: .4rem; font-weight: 700; cursor: pointer; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 5; background: white; padding: .5rem; }
@media (max-width: 780px) {
    .wrap, .ems-hero-copy, .ems-details-row { width: calc(100% - 2rem); }
    .ems-hero-row::before, .panel-grid:has(.ems-hero-copy):not(:has(.ems-hero-row))::before { background: linear-gradient(90deg, #0e292bf2, #0e292b8a); }
}
