/*
Theme Name: Christian Supply of Cookeville
Theme URI: https://www.christiansupplycookeville.com/
Author: Christian Supply of Cookeville
Description: A responsive, locally focused WordPress theme for Christian Supply of Cookeville.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: christian-supply-cookeville
*/

@import url("https://fonts.googleapis.com/css2?family=Epilogue:wght@400;500;600;700;800;900&family=Fraunces:ital,opsz,wght@1,9..144,400;1,9..144,600&display=swap");

:root {
  --cs-blue: #0066cb;
  --cs-blue-light: #1e73be;
  --cs-navy: #0b1f3f;
  --cs-coral: #ff636b;
  --cs-violet: #5b4e96;
  --cs-cream: #fbf8f1;
  --cs-white: #fff;
  --cs-font: "Epilogue", system-ui, sans-serif;
  --cs-serif: "Fraunces", Georgia, serif;
  --cs-radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cs-cream);
  color: var(--cs-navy);
  font-family: var(--cs-font);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cs-coral);
  outline-offset: 4px;
}
.cs-skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 1000;
  padding: .75rem 1rem; border-radius: 999px; background: var(--cs-coral);
  color: var(--cs-navy); font-weight: 800;
}
.cs-skip-link:focus { top: 1rem; }
.cs-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.cs-serif { font-family: var(--cs-serif); font-style: italic; font-weight: 400; }
.cs-eyebrow {
  margin: 0 0 1rem; color: var(--cs-blue); font-size: .78rem;
  font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
}
.cs-heading {
  max-width: 850px; margin: 0; font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 900; letter-spacing: -.055em; line-height: .98;
}
.cs-section { padding-block: clamp(5rem, 9vw, 8rem); }
.cs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 50px; padding: .8rem 1.4rem; border: 2px solid transparent;
  border-radius: 999px; font-weight: 800; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.cs-btn:hover { transform: translateY(-2px); }
.cs-btn--coral { background: var(--cs-coral); color: var(--cs-navy); }
.cs-btn--blue { background: var(--cs-blue); color: var(--cs-white); }
.cs-btn--outline { border-color: currentColor; }

.cs-header {
  position: sticky; top: 0; z-index: 20; padding: .75rem 0;
  background: rgb(251 248 241 / 94%); backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgb(11 31 63 / 7%);
}
.cs-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cs-brand { display: inline-flex; align-items: center; min-width: 150px; }
.cs-brand img { width: auto; max-width: 230px; max-height: 62px; object-fit: contain; }
.cs-brand .custom-logo { width: auto; max-width: 230px; max-height: 62px; }
.cs-nav { display: flex; align-items: center; gap: .15rem; }
.cs-nav a {
  display: inline-block; padding: .7rem .8rem; border-radius: 999px;
  color: var(--cs-navy); font-size: .88rem; font-weight: 700; text-decoration: none;
}
.cs-nav .cs-menu-list { display: flex; align-items: center; gap: .15rem; }
.cs-nav a:hover { background: rgb(0 102 203 / 9%); color: var(--cs-blue); }
.cs-header-actions { display: flex; align-items: center; gap: .5rem; }
.cs-phone-link { color: var(--cs-blue); font-weight: 800; text-decoration: none; white-space: nowrap; }
.cs-mobile-nav { display: none; }

.cs-hero { position: relative; overflow: hidden; padding-block: clamp(5rem, 10vw, 9rem); background: var(--cs-blue); color: var(--cs-cream); }
.cs-hero::after {
  content: "+"; position: absolute; right: 3vw; top: 0; color: var(--cs-blue-light);
  font-size: clamp(24rem, 58vw, 52rem); font-weight: 900; line-height: .85;
  opacity: .45; pointer-events: none;
}
.cs-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(3rem, 8vw, 7rem); }
.cs-location { display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1.5rem; font-size: .92rem; font-weight: 700; }
.cs-location::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--cs-coral); }
.cs-hero h1 { max-width: 780px; margin: 0; font-size: clamp(3.6rem, 8.6vw, 7.6rem); font-weight: 900; letter-spacing: -.07em; line-height: .88; }
.cs-hero h1 span { color: var(--cs-coral); }
.cs-hero-copy { max-width: 630px; margin: 1.8rem 0 0; color: rgb(251 248 241 / 88%); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.cs-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.cs-hero-image { position: relative; margin: 0; transform: rotate(2deg); }
.cs-hero-image img { width: 100%; aspect-ratio: 4 / 5; border: 9px solid var(--cs-cream); border-radius: 34px; object-fit: cover; box-shadow: 0 35px 70px rgb(3 17 45 / 35%); }
.cs-image-label { position: absolute; left: -1rem; bottom: -1.1rem; padding: .85rem 1.15rem; border-radius: 18px; background: var(--cs-coral); color: var(--cs-navy); box-shadow: 0 12px 30px rgb(3 17 45 / 22%); }
.cs-image-label small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cs-image-label strong { display: block; font: 1.4rem var(--cs-serif); }

.cs-marquee { overflow: hidden; border-block: 3px solid var(--cs-navy); background: var(--cs-coral); color: var(--cs-navy); }
.cs-marquee-track { display: flex; width: max-content; gap: 2rem; padding: 1rem 0; animation: cs-scroll 38s linear infinite; font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.cs-marquee-track span::after { content: "+"; margin-left: 2rem; }
@keyframes cs-scroll { to { transform: translateX(-50%); } }

.cs-services { background: var(--cs-cream); }
.cs-service-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.15rem; margin-top: 3rem; }
.cs-service {
  min-height: 230px; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--cs-radius);
  background: var(--cs-blue); color: var(--cs-cream);
}
.cs-service--feature {
  position: relative; display: flex; min-height: 500px; overflow: hidden;
  align-items: flex-end; background: var(--cs-navy);
}
.cs-service--feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cs-service--feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(11 31 63 / 95%), rgb(11 31 63 / 8%) 80%); }
.cs-service-content { position: relative; z-index: 1; }
.cs-service--violet { background: var(--cs-violet); }
.cs-service-icon { margin-bottom: 1rem; color: var(--cs-coral); font-size: 1.7rem; }
.cs-service h3 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.cs-service p { margin: .85rem 0 0; color: rgb(251 248 241 / 82%); }
.cs-text-link { display: inline-block; margin-top: 1rem; color: var(--cs-coral); font-weight: 800; text-underline-offset: 4px; }
.cs-callout { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1.2rem; padding: 2rem; border: 2px solid var(--cs-navy); border-radius: var(--cs-radius); }
.cs-callout p { max-width: 650px; margin: 0; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.3; }

.cs-repair { background: var(--cs-navy); color: var(--cs-cream); }
.cs-repair-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(3rem, 8vw, 7rem); }
.cs-repair-image { position: relative; margin: 0; }
.cs-repair-image img { width: 100%; aspect-ratio: 5 / 6; border-radius: var(--cs-radius); object-fit: cover; }
.cs-repair-badge { position: absolute; top: -1rem; right: -1rem; padding: .8rem 1rem; border-radius: 16px; background: var(--cs-cream); color: var(--cs-navy); }
.cs-repair-badge small { display: block; color: var(--cs-blue); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cs-repair-badge strong { font-size: 1rem; }
.cs-repair .cs-eyebrow, .cs-community .cs-eyebrow { color: var(--cs-coral); }
.cs-repair .cs-heading span { color: var(--cs-coral); }
.cs-repair-copy { margin: 1.4rem 0 0; color: rgb(251 248 241 / 82%); font-size: 1.1rem; }
.cs-steps { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.cs-steps li { display: flex; align-items: flex-start; gap: 1rem; }
.cs-step-number { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 50%; background: var(--cs-coral); color: var(--cs-navy); font-weight: 900; }
.cs-repair-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.cs-makers { background: var(--cs-cream); }
.cs-makers-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.cs-makers-intro > p { max-width: 360px; margin: 0; color: rgb(11 31 63 / 72%); font-size: 1.08rem; }
.cs-maker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; }
.cs-maker-card { display: block; color: var(--cs-navy); text-decoration: none; }
.cs-maker-card:nth-child(even) { margin-top: 3rem; }
.cs-maker-image { position: relative; overflow: hidden; border-radius: 26px; background: var(--cs-violet); }
.cs-maker-image img, .cs-maker-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.cs-maker-card:hover .cs-maker-image img { transform: scale(1.04); }
.cs-maker-placeholder { display: flex; flex-direction: column; justify-content: space-between; padding: 1.6rem; background: var(--cs-coral); color: var(--cs-navy); }
.cs-maker-placeholder strong { font: 2.6rem/1 var(--cs-serif); }
.cs-maker-placeholder span { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cs-maker-arrow { position: absolute; top: 1rem; right: 1rem; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--cs-cream); font-size: 1.2rem; transition: transform .2s ease; }
.cs-maker-card:hover .cs-maker-arrow { transform: rotate(45deg); }
.cs-maker-card h3 { margin: 1rem 0 .2rem; font-size: 1.25rem; font-weight: 900; }
.cs-maker-card p { margin: 0; color: rgb(11 31 63 / 68%); font-size: .92rem; }

.cs-community { background: var(--cs-violet); color: var(--cs-cream); }
.cs-community .cs-heading span { color: var(--cs-coral); }
.cs-community-list { margin: 3rem 0 0; padding: 0; border-block: 1px solid rgb(251 248 241 / 24%); list-style: none; }
.cs-community-list li { display: grid; grid-template-columns: 56px 1fr 1.25fr; align-items: center; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid rgb(251 248 241 / 18%); }
.cs-community-list li:last-child { border: 0; }
.cs-community-index { color: var(--cs-coral); font-size: .85rem; font-weight: 800; }
.cs-community-list h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 900; letter-spacing: -.04em; }
.cs-community-list p { margin: 0; color: rgb(251 248 241 / 82%); }

.cs-visit { background: var(--cs-coral); color: var(--cs-navy); text-align: center; }
.cs-visit .cs-eyebrow { color: var(--cs-navy); }
.cs-visit .cs-heading { max-width: 1000px; margin-inline: auto; font-size: clamp(2.8rem, 7vw, 6.6rem); }
.cs-visit .cs-heading span { color: var(--cs-cream); }
.cs-visit-phone { display: inline-block; margin-top: 2.5rem; font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 900; letter-spacing: -.04em; text-decoration-thickness: 5px; text-underline-offset: 10px; }
.cs-visit-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.2rem; }
.cs-footer { padding: 3.5rem 0 1.5rem; background: var(--cs-navy); color: rgb(251 248 241 / 76%); }
.cs-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.cs-footer-logo { display: inline-block; padding: .65rem; border-radius: 14px; background: var(--cs-cream); }
.cs-footer-logo img { max-width: 200px; max-height: 58px; object-fit: contain; }
.cs-footer h2 { margin: 0 0 .85rem; color: var(--cs-coral); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cs-footer ul { margin: 0; padding: 0; list-style: none; }
.cs-footer li + li { margin-top: .4rem; }
.cs-footer a { text-decoration: none; }
.cs-footer a:hover { color: var(--cs-cream); text-decoration: underline; text-underline-offset: 3px; }
.cs-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgb(251 248 241 / 18%); font-size: .86rem; }
.cs-footer-bottom p { margin: 0; }

@media (max-width: 980px) {
  .cs-nav, .cs-header-actions > .cs-phone-link { display: none; }
  .cs-mobile-nav { display: block; position: relative; }
  .cs-mobile-nav summary { cursor: pointer; padding: .65rem .9rem; border-radius: 999px; background: rgb(0 102 203 / 9%); font-weight: 800; list-style: none; }
  .cs-mobile-nav summary::-webkit-details-marker { display: none; }
  .cs-mobile-nav-panel { position: absolute; right: 0; top: calc(100% + .6rem); width: min(320px, calc(100vw - 48px)); padding: .7rem; border-radius: 22px; background: var(--cs-cream); box-shadow: 0 16px 45px rgb(11 31 63 / 20%); }
  .cs-mobile-nav-panel a { display: block; padding: .75rem 1rem; border-radius: 14px; font-weight: 800; text-decoration: none; }
  .cs-mobile-nav-panel a:hover { background: rgb(0 102 203 / 9%); }
.cs-menu-list, .cs-mobile-menu { margin: 0; padding: 0; list-style: none; }
.cs-mobile-menu li + li { margin-top: .1rem; }
}
@media (max-width: 760px) {
  .cs-wrap { width: min(100% - 32px, 560px); }
  .cs-hero-grid, .cs-repair-grid { grid-template-columns: 1fr; }
  .cs-hero-grid { gap: 3.5rem; }
  .cs-hero-image { width: min(100%, 420px); margin-inline: auto; }
  .cs-service-grid { grid-template-columns: 1fr 1fr; }
  .cs-service--feature { grid-column: 1 / -1; min-height: 440px; }
  .cs-callout { align-items: flex-start; flex-direction: column; }
  .cs-repair-image { width: min(100%, 460px); }
  .cs-makers-intro { align-items: flex-start; flex-direction: column; }
  .cs-maker-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-maker-card:nth-child(even) { margin-top: 1.5rem; }
  .cs-community-list li { grid-template-columns: 38px 1fr; gap: .5rem 1rem; }
  .cs-community-list p { grid-column: 2; }
  .cs-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cs-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .cs-header-inner { gap: .5rem; }
  .cs-brand img, .cs-brand .custom-logo { max-width: 165px; max-height: 48px; }
  .cs-header-actions .cs-btn { min-height: 42px; padding: .6rem .9rem; font-size: .84rem; }
  .cs-hero h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
  .cs-service-grid { grid-template-columns: 1fr; }
  .cs-service--feature { min-height: 400px; }
  .cs-maker-grid { gap: .8rem; }
  .cs-maker-card h3 { font-size: 1.05rem; }
  .cs-footer-grid { grid-template-columns: 1fr; }
  .cs-footer-brand { grid-column: auto; }
  .cs-footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
