/*
Theme Name: Schaffer Print Works
Theme URI: https://schafferprintworks.com
Author: Agency Team
Description: Lightweight classic theme for Schaffer Print Works — a family-run Las Vegas custom cake-topper, edible-print & decal business. Lead-generation focused, Yoast-ready, content editable via Advanced Custom Fields (ACF Pro).
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schaffer-print-works
*/

:root {
  --purple: #5B2775;
  --indigo: #2A1080;
  --magenta: #E5147A;
  --tangerine: #F7901E;
  --yellow: #F2D40D;
  --green: #76D63E;
  --ink: #1F1A24;
  --slate: #6B6475;
  --surface: #FAF8FC;
  --border: #E7E1EE;
  --white: #FFFFFF;

  --maxw: 1080px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(43, 16, 128, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Poppins", system-ui, sans-serif; line-height: 1.2; color: var(--purple); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--magenta); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
img { max-width: 100%; height: auto; display: block; }
.section { padding: 3.5rem 0; }
.center { text-align: center; }
.muted { color: var(--slate); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-family: "Poppins", sans-serif;
  font-weight: 600; padding: .85rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 1rem; transition: transform .12s ease, background .15s ease;
}
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: #c70f68; transform: translateY(-1px); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--indigo); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--purple); border: 2px solid var(--purple); padding: calc(.85rem - 2px) calc(1.6rem - 2px); }
.btn-ghost:hover { background: var(--purple); color: #fff; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250,248,252,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.brand { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--purple); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.brand .drip { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(45deg);
  background: conic-gradient(from 200deg, var(--magenta), var(--tangerine), var(--yellow), var(--green), var(--indigo), var(--magenta)); }
.brand .brand-b { color: var(--ink); }
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-menu { display: flex; gap: 1.4rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-menu a:hover { color: var(--purple); }
.nav-links .btn { color: #fff; }
@media (max-width: 720px) { .nav-menu { display: none; } }
@media (max-width: 480px) {
  .nav { padding: .65rem .9rem; gap: .5rem; }
  .brand { font-size: .9rem; gap: .35rem; flex-shrink: 1; min-width: 0; }
  .brand .drip { width: 20px; height: 20px; flex-shrink: 0; }
  .nav-links { flex-shrink: 0; }
  .nav-links .btn { padding: .5rem .85rem; font-size: .82rem; white-space: nowrap; }
}

/* Hero */
.hero { padding: 4rem 0 3rem; text-align: center; position: relative; overflow: hidden; }
.hero .eyebrow { font-family: "Poppins", sans-serif; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; color: var(--magenta); }
.hero p.lead { font-size: 1.2rem; max-width: 38rem; margin: 1rem auto 1.5rem; color: var(--ink); }
.hero .cta-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.trust { margin-top: 1.5rem; font-size: .9rem; color: var(--slate); }

/* Hero split (text + image) */
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; text-align: left; }
.hero-split .cta-row { justify-content: flex-start; }
.hero-split .hero-img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split .cta-row { justify-content: center; }
  .hero-split .hero-img { max-width: 440px; margin: 1rem auto 0; }
}

/* Media frame + gallery */
.media-frame { border-radius: 16px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: .82rem; font-weight: 600; color: var(--slate); padding: .5rem .65rem .65rem; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery.three { grid-template-columns: repeat(3, 1fr); }
.gallery.three img { aspect-ratio: 4 / 3; }
@media (max-width: 820px) { .gallery.three { grid-template-columns: 1fr; } }

/* Cards / grid */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { color: var(--purple); }
.card .swatch { width: 44px; height: 44px; border-radius: 10px; margin-bottom: .75rem; }
.card a.more { font-weight: 700; text-decoration: none; }

/* Bands */
.band-purple { background: linear-gradient(135deg, var(--purple), var(--indigo)); color: #fff; }
.band-purple h2, .band-purple h3 { color: #fff; }
.band-purple .muted { color: #d9cfe6; }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.step .n { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--magenta); color: #fff;
  font-family: "Poppins"; font-weight: 700; display: grid; place-items: center; }

/* Form */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); max-width: 620px; margin: 0 auto; }
form.quote { display: grid; gap: .85rem; }
.form-row { display: grid; gap: .85rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .25rem; }
input, select, textarea {
  font: inherit; width: 100%; padding: .7rem .8rem; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--purple); border-color: var(--purple); }
.hp { position: absolute; left: -9999px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: .75rem; }
.faq summary { font-family: "Poppins"; font-weight: 600; cursor: pointer; color: var(--purple); }
.faq p { margin: .75rem 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc9d6; padding: 2.5rem 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .grid { gap: 2rem; }
.site-footer h4 { font-family: "Poppins"; color: #fff; margin: 0 0 .6rem; }
.badge { display: inline-block; background: var(--green); color: #14310a; font-weight: 700; font-size: .8rem; padding: .25rem .6rem; border-radius: 999px; }

/* WordPress core helpers */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.wp-block-image img { border-radius: var(--radius); }
.entry-content { max-width: 760px; margin: 0 auto; }

/* Hero image collage (homepage) */
.hero-split:has(.hero-collage) { align-items: center; }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.hero-collage .col { display: flex; flex-direction: column; gap: .85rem; }
.hero-collage .col:nth-child(2) { margin-top: 1.75rem; }
.hero-collage img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); display: block; animation: spw-float 6s ease-in-out infinite; }
.hero-collage .col:nth-child(1) img:nth-child(1) { animation-duration: 6s;   animation-delay: 0s; }
.hero-collage .col:nth-child(1) img:nth-child(2) { animation-duration: 7.2s; animation-delay: -2.4s; }
.hero-collage .col:nth-child(2) img:nth-child(1) { animation-duration: 6.6s; animation-delay: -3.6s; }
.hero-collage .col:nth-child(2) img:nth-child(2) { animation-duration: 7.6s; animation-delay: -1.2s; }
@keyframes spw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero-collage img { animation: none; } }
@media (max-width: 860px) {
  .hero-collage { max-width: 420px; margin: 1.25rem auto 0; }
  .hero-collage .col:nth-child(2) { margin-top: 1.25rem; }
}

/* Service card images (What we make) */
.card.has-img { padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease; }
.card.has-img .card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  transition: transform .45s ease; }
.card.has-img .card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card.has-img h3 { margin-top: 0; }
.card.has-img:hover { transform: translateY(-10px); box-shadow: 0 20px 44px rgba(43, 16, 128, .18); }
.card.has-img:hover .card-img { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) {
  .card.has-img, .card.has-img .card-img { transition: none; }
  .card.has-img:hover { transform: none; }
  .card.has-img:hover .card-img { transform: none; }
}

/* Full-bleed hero with background image + parallax (service pages) */
.hero-bg { position: relative; padding: 6rem 1.25rem 5rem; text-align: center; color: #fff; overflow: hidden;
  background-size: cover; background-position: center; background-attachment: fixed; }
.hero-bg::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,16,40,.55) 0%, rgba(43,16,128,.7) 100%); }
.hero-bg > .wrap { position: relative; z-index: 1; }
.hero-bg .eyebrow { color: #fff; opacity: .92; }
.hero-bg h1 { color: #fff; }
.hero-bg p.lead { color: #fff; max-width: 40rem; margin: 1rem auto 1.5rem; font-size: 1.2rem; }
.hero-bg .cta-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-bg .btn-ghost { color: #fff; border-color: #fff; }
.hero-bg .btn-ghost:hover { background: #fff; color: var(--purple); }
.hero-bg .trust { color: #fff; opacity: .9; margin-top: 1.5rem; }
@media (max-width: 768px) { .hero-bg { background-attachment: scroll; padding: 4.5rem 1.25rem 3.5rem; } }

/* Multi-select services (checkbox group) */
.field-label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .5rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .9rem; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 400; font-size: .95rem; cursor: pointer; }
.check input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--purple); }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* Footer bottom bar + social icons */
.footer-bottom { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; opacity: .9; font-size: .85rem; }
.social { display: flex; gap: .6rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; transition: background .2s ease, color .2s ease, transform .2s ease; }
.social a:hover { background: var(--magenta); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social.light a { background: var(--surface); color: var(--purple); border: 1px solid var(--border); }
.social.light a:hover { background: var(--magenta); color: #fff; border-color: var(--magenta); }


/* Keep nav action button + language switcher on one line */
.nav .btn-primary, .nav .nav-lang { white-space: nowrap; }
.nav-links { flex-wrap: wrap; row-gap: .4rem; }

/* === Mobile polish 2026-06-22: restore side gutters + fix nav logo overlap === */
/* .section/.hero shorthand padding was zeroing the horizontal gutter on .section.wrap/.hero.wrap; restore it (this rule comes last so it wins). */
.wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
@media (max-width: 600px) { .wrap { padding-left: 1.15rem; padding-right: 1.15rem; } }
/* Stop the brand text from overflowing onto the Espanol / Request-a-Quote buttons on small screens. */
@media (max-width: 480px) {
  .nav { flex-wrap: wrap; row-gap: .4rem; }
  .brand { flex-shrink: 0; min-width: auto; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; }
}

/* === Logo watermark overlay on 16:10 service-card images (a baked corner logo crops off there) === */
.card.has-img{position:relative;}
.card.has-img::after{
	content:"";
	position:absolute;
	top:10px;
	right:10px;
	width:56px;
	height:56px;
	background:url(/wp-content/uploads/2026/06/favicon-512.png) center/contain no-repeat;
	opacity:.9;
	pointer-events:none;
	filter:drop-shadow(0 1px 4px rgba(0,0,0,.5));
	z-index:3;
}
@media (max-width:600px){
	.card.has-img::after{width:44px;height:44px;top:8px;right:8px;}
}
