/*
Theme Name: Reliable Decatur
Author: Reliable Cleaning Service Decatur
Description: Lightweight custom theme for Reliable Cleaning Service Decatur. Calm, photo led layout, no page builder, no jQuery, self hosted fonts.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: reliable-decatur
*/

/* Fraunces and DM Sans, SIL Open Font License, self hosted (latin subset). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(assets/fonts/fraunces-latin.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/dm-sans-latin.woff2) format("woff2"); }

:root {
	--paper: #f6f3ee;
	--sand: #ece6dc;
	--line: #d9d2c5;
	--navy: #0b1f54;
	--blue: #1a56db;
	--ink: #1c2540;
	--soft: #4b5470;
	--quiet: #8a8170;
	--serif: "Fraunces", Georgia, serif;
	--sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.w { width: min(1240px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; margin: 0; color: var(--navy); }
h2 { font-size: clamp(36px, 4.4vw, 64px); }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border: 0; border-radius: 6px; background: var(--navy); color: #fff; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .1s; }
.btn:hover { background: var(--blue); color: #fff; }
.btn:active { transform: translateY(1px); }
.link { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: flex; align-items: center; gap: 10px; height: 56px; text-decoration: none; color: var(--navy); }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo-text { display: grid; line-height: 1; }
.logo-text b { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -0.015em; white-space: nowrap; }
.logo-text small { margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.bar nav { display: flex; gap: 32px; align-items: center; font-weight: 500; }
.bar nav a:not(.btn) { text-decoration: none; }
.bar nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }

/* Hero */
.hero { padding: 40px 0 112px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 112px); max-width: 13ch; }
.hero-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-top: 40px; }
.hero-sub p { font-size: 20px; margin: 0; max-width: 38ch; }
.acts { display: flex; gap: 28px; align-items: center; justify-content: flex-end; }
.hero-photos { margin-top: 56px; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.hero-photos img { width: 100%; height: 520px; object-fit: cover; border-radius: 4px; }
.hero-photos .stack { display: grid; gap: 16px; }
.hero-photos .stack img { height: 252px; }

/* Section heads */
section { padding: 112px 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.head p { margin: 0; font-size: 19px; max-width: 44ch; }

/* Numbered list (What we clean, service and location lists) */
.services { padding-top: 24px; }
.list { border-top: 1px solid var(--line); }
.list > div { display: grid; grid-template-columns: 60px 1fr 1.4fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.list i { font-style: normal; color: var(--quiet); font-family: var(--serif); font-size: 22px; }
.list b { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--navy); line-height: 1.2; }
.list b a { text-decoration: none; }
.list b a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.list span { color: var(--soft); }
.list span a { color: var(--navy); font-weight: 700; text-underline-offset: 4px; }

/* Before and after gallery */
.work { background: var(--navy); color: var(--paper); }
.work h2 { color: var(--paper); }
.work .head p { color: #c7cee0; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 12px; }
.tile { margin: 0; cursor: pointer; }
.tile .pic { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: #182d60; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.tile .after { opacity: 0; }
.tile .tag { position: absolute; left: 10px; bottom: 10px; background: var(--paper); color: var(--navy); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 3px; }
.tile .tag .a { display: none; }
.tile.is-after .after { opacity: 1; }
.tile.is-after .tag .b { display: none; }
.tile.is-after .tag .a { display: inline; }
@media (hover: hover) {
	.tile:hover .after { opacity: 1; }
	.tile:hover .tag .b { display: none; }
	.tile:hover .tag .a { display: inline; }
}
.tile figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: #c7cee0; }
.tile figcaption b { display: block; color: var(--paper); font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 2px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.steps i { display: block; font-style: normal; font-family: var(--serif); font-size: 40px; color: var(--quiet); line-height: 1; margin-bottom: 20px; }
.steps b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--navy); line-height: 1.2; margin-bottom: 10px; }
.steps span { color: var(--soft); }

/* Estimate */
.estimate { padding-top: 0; }
.estimate > .w { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; background: var(--sand); border-radius: 4px; padding: 64px; }
.est-text p { font-size: 19px; margin: 20px 0 0; max-width: 34ch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #c9c0b0; border-radius: 4px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans); }
.form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sendrow { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.sendrow span { font-size: 14px; color: var(--soft); }
.sendrow span a { color: var(--navy); }
.notice { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: 4px; font-weight: 500; }
.notice.ok { background: #e3efe4; color: #1d4d27; }
.notice.err { background: #f6e1dc; color: #6e2414; }

/* Inner pages */
.page-hero { padding: 32px 0 72px; }
.crumbs { margin: 0 0 28px; font-size: 14px; color: var(--soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 8px; color: var(--quiet); }
.page-hero h1 { font-size: clamp(44px, 6.2vw, 92px); max-width: 16ch; }
.page-photo { margin-top: 56px; }
.page-photo img { width: 100%; height: 480px; object-fit: cover; border-radius: 4px; }
.page-body section { padding: 0 0 112px; }
.page-body section:first-child { border-top: 1px solid var(--line); padding-top: 80px; }
.page-body > .w + .estimate, .page-body + .estimate { padding-top: 0; }
.prose { max-width: 70ch; font-size: 18px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 18px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose h3 { margin: 36px 0 10px; }
.prose a, .head p a { color: var(--navy); font-weight: 700; text-underline-offset: 4px; }
.checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 16px; height: 9px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
section.cta { background: var(--sand); border-radius: 4px; padding: 64px !important; border-top: 0 !important; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
section.cta .head { margin: 0; grid-template-columns: 1fr; gap: 16px; }
.map-frame iframe { display: block; width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 4px; background: var(--sand); }
.map-link { margin: 14px 0 0; font-size: 15px; color: var(--soft); }
.map-link a { color: var(--navy); font-weight: 700; text-underline-offset: 4px; }

/* Footer */
.site-footer { padding: 96px 0 40px; }
.foot-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.foot-line { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.15; color: var(--navy); margin: 0; max-width: 20ch; }
.foot-contact { display: grid; justify-items: end; gap: 4px; font-size: 20px; font-weight: 500; }
.foot-contact a { text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; font-size: 14px; color: var(--soft); }
.foot-bottom .logo { height: 48px; }
.foot-bottom .logo svg { width: 36px; height: 36px; }
.foot-bottom .logo-text b { font-size: 19px; }
.foot-bottom .logo-text small { font-size: 9.5px; }

.mobile-bar { display: none; }

@media (max-width: 1100px) {
	.tiles { grid-template-columns: repeat(3, 1fr); }
	.bar nav { gap: 22px; }
}
@media (max-width: 860px) {
	.bar { height: 72px; }
	.logo { height: 46px; gap: 8px; }
	.logo svg { width: 34px; height: 34px; }
	.logo-text b { font-size: 16.5px; }
	.bar { gap: 12px; }
	.foot-bottom { flex-wrap: wrap; gap: 12px; }
	.logo-text small { font-size: 9px; letter-spacing: .16em; }
	.bar nav a:not(.btn) { display: none; }
	.bar nav .btn { height: 44px; padding: 0 18px; font-size: 15px; }
	.bar nav .btn .long { display: none; }
	.hero { padding: 24px 0 72px; }
	.hero-sub, .head, .foot-top { grid-template-columns: 1fr; gap: 20px; }
	.acts { flex-direction: column-reverse; align-items: stretch; gap: 16px; text-align: center; }
	.hero-photos { grid-template-columns: 1fr; margin-top: 36px; }
	.hero-photos img { height: 300px; }
	.hero-photos .stack { display: none; }
	section { padding: 72px 0; }
	.head { margin-bottom: 36px; }
	.list > div { grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 22px 0; }
	.list b { font-size: 24px; }
	.list span { grid-column: 2; }
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: 1fr; gap: 32px; }
	.estimate > .w { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px; width: 100%; border-radius: 0; }
	.form { grid-template-columns: 1fr; }
	.foot-contact { justify-items: start; }
	.site-footer { padding-bottom: 104px; }
	.mobile-bar { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
	.mobile-bar a { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 6px; font-weight: 700; text-decoration: none; }
	.mobile-bar a:first-child { border: 1px solid var(--navy); color: var(--navy); }
	.page-hero { padding: 20px 0 48px; }
	.page-photo { margin-top: 36px; }
	.page-photo img { height: 260px; }
	.page-body section { padding-bottom: 72px; }
	.page-body section:first-child { padding-top: 56px; }
	.checks ul { grid-template-columns: 1fr; }
	section.cta { grid-template-columns: 1fr; padding: 32px 20px !important; }
	.map-frame iframe { height: 420px; }
}
@media (min-width: 861px) {
	.bar nav .btn .short { display: none; }
}
@media (max-width: 860px) {
	.bar nav .btn .short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* Logo pack (1.2.0): the horizontal full-color lockup as one image. */
.logo .logo-img { display: block; height: 48px; width: auto; }
.foot-bottom .logo .logo-img { height: 44px; }
@media (max-width: 860px) { .logo .logo-img { height: 40px; } }
