/*
Theme Name: Digital Savvy Alpha
Theme URI: https://www.digitalsavvyinc.com/
Author: Digital Savvy, Inc.
Description: A custom, project-forward WordPress theme for Digital Savvy, Inc.
Version: 0.3.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: digital-savvy-alpha
*/

:root {
  --dsi-orange: #f47b20;
  --dsi-orange-dark: #c94f08;
  --dsi-blue: #093a64;
  --dsi-blue-dark: #05243f;
  --dsi-blue-bright: #0f6fae;
  --dsi-ink: #17222d;
  --dsi-muted: #5c6a76;
  --dsi-cloud: #f3f7fa;
  --dsi-white: #ffffff;
  --dsi-line: #d9e2e8;
  --dsi-shadow: 0 18px 45px rgba(5, 36, 63, .12);
  --dsi-radius: 18px;
  --dsi-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dsi-ink);
  background: var(--dsi-white);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--dsi-blue-bright); }
a:hover { color: var(--dsi-orange-dark); }
h1, h2, h3, h4 {
  color: var(--dsi-blue-dark);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.25rem; }
.wrap { width: min(calc(100% - 40px), var(--dsi-width)); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--soft { background: var(--dsi-cloud); }
.section--dark { color: rgba(255,255,255,.84); background: var(--dsi-blue-dark); }
.section--dark h2, .section--dark h3 { color: var(--dsi-white); }
.eyebrow {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--dsi-orange-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 4px; content: ""; border-radius: 4px; background: var(--dsi-orange); }
.section-intro { max-width: 720px; margin-bottom: 2.5rem; }
.section-intro h2 { margin: 0 0 1rem; }
.section-intro p { color: var(--dsi-muted); font-size: 1.1rem; }
.section--dark .section-intro p { color: rgba(255,255,255,.72); }

.skip-link {
  position: fixed; z-index: 9999; top: 10px; left: 10px; padding: .75rem 1rem;
  color: white; background: var(--dsi-blue-dark); transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.site-header {
  position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(9,58,100,.12);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
}
.header-inner { display: flex; min-height: 96px; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding { display: flex; min-width: 240px; align-items: center; gap: .9rem; }
.site-branding a { display: flex; align-items: center; gap: .8rem; color: var(--dsi-blue-dark); text-decoration: none; }
.site-branding__logo { flex: 0 0 auto; }
.custom-logo-link img { display: block; width: auto; max-width: 306px; max-height: 82px; }
.site-branding__tagline { max-width: 210px; margin: 0; color: var(--dsi-muted); font-size: .74rem; font-weight: 650; line-height: 1.25; }
.brand-mark {
  display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px;
  color: white; background: linear-gradient(145deg, var(--dsi-orange), var(--dsi-orange-dark));
  box-shadow: 0 8px 18px rgba(244,123,32,.24); font-weight: 900;
}
.brand-copy strong { display: block; font-size: 1.08rem; line-height: 1; }
.brand-copy span { color: var(--dsi-muted); font-size: .76rem; }
.main-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 1.5rem; list-style: none; }
.main-nav a { color: var(--dsi-blue-dark); font-size: .94rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--dsi-orange-dark); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--dsi-blue-dark); font: inherit; font-weight: 800; }
.button, .wp-block-button__link, button, input[type="submit"] {
  display: inline-flex; min-height: 48px; padding: .78rem 1.25rem; align-items: center; justify-content: center;
  border: 2px solid var(--dsi-orange); border-radius: 999px; color: var(--dsi-blue-dark); background: var(--dsi-orange);
  font: inherit; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .wp-block-button__link:hover, button:hover, input[type="submit"]:hover {
  color: var(--dsi-blue-dark); background: #ff964e; box-shadow: 0 10px 25px rgba(244,123,32,.25); transform: translateY(-2px);
}
.button--ghost { border-color: rgba(255,255,255,.55); color: white; background: transparent; }
.button--ghost:hover { color: white; background: rgba(255,255,255,.1); }

.hero {
  position: relative; overflow: hidden; color: white;
  background: radial-gradient(circle at 85% 20%, rgba(15,111,174,.65), transparent 34%), linear-gradient(135deg, #031c31 0%, #093a64 62%, #0a527f 100%);
}
.hero::after {
  position: absolute; right: -110px; bottom: -210px; width: 540px; height: 540px; content: "";
  border: 78px solid rgba(244,123,32,.12); border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; display: grid; min-height: 720px; padding: 95px 0 90px; align-items: center; grid-template-columns: 1.25fr .75fr; gap: 4rem; }
.hero h1 { max-width: 850px; margin: 0 0 1.3rem; color: white; }
.hero h1 span { color: var(--dsi-orange); }
.hero-lead { max-width: 740px; color: rgba(255,255,255,.82); font-size: clamp(1.1rem, 2vw, 1.32rem); }
.hero-actions { display: flex; margin-top: 2rem; flex-wrap: wrap; gap: .9rem; }
.hero-proof { display: grid; gap: 1rem; }
.proof-card { padding: 1.4rem; border: 1px solid rgba(255,255,255,.16); border-radius: var(--dsi-radius); background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.proof-card strong { display: block; color: white; font-size: 2rem; line-height: 1.1; }
.proof-card span { color: rgba(255,255,255,.68); font-size: .9rem; }

.audience-strip { position: relative; z-index: 2; margin-top: -40px; }
.audience-grid { display: grid; overflow: hidden; border-radius: var(--dsi-radius); background: white; box-shadow: var(--dsi-shadow); grid-template-columns: repeat(4, 1fr); }
.audience-item { padding: 1.5rem; border-right: 1px solid var(--dsi-line); }
.audience-item:last-child { border-right: 0; }
.audience-item strong { display: block; color: var(--dsi-blue-dark); }
.audience-item span { color: var(--dsi-muted); font-size: .88rem; }

.service-grid, .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card, .project-card { overflow: hidden; border: 1px solid var(--dsi-line); border-radius: var(--dsi-radius); background: white; box-shadow: 0 9px 30px rgba(5,36,63,.06); }
.service-card { display: flex; padding: 1.8rem; flex-direction: column; }
.service-card--has-image { padding: 0; }
.service-card__image { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--dsi-cloud); }
.service-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-card__image img { transform: scale(1.035); }
.service-card__body { display: flex; padding: 1.8rem; flex: 1; flex-direction: column; }
.service-card__body > a { margin-top: auto; }
.service-card__number { color: var(--dsi-orange-dark); font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.service-card h3 { margin: .9rem 0 .65rem; }
.service-card p { color: var(--dsi-muted); font-size: .96rem; }
.service-card a { font-weight: 800; text-decoration: none; }
.project-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(145deg, #d8e8f2, #f8fbfd);
}
.project-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.project-card:hover .project-card__image img { transform: scale(1.035); }
.project-card__placeholder {
  position: relative; display: flex; width: 100%; height: 100%; padding: 1.7rem; align-items: flex-end; overflow: hidden;
  color: white; background: linear-gradient(135deg, var(--dsi-blue-dark), var(--dsi-blue-bright)); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
}
.project-card__placeholder::before, .project-card__placeholder::after { position: absolute; content: ""; border-radius: 50%; }
.project-card__placeholder::before { top: -35%; right: -8%; width: 72%; aspect-ratio: 1; border: 34px solid rgba(244,123,32,.32); }
.project-card__placeholder::after { right: 10%; bottom: -60%; width: 60%; aspect-ratio: 1; background: rgba(255,255,255,.08); }
.project-card__placeholder-icon { position: absolute; top: 28px; left: 30px; width: 58px; height: 45px; border: 5px solid var(--dsi-orange); border-radius: 8px; transform: rotate(-4deg); }
.project-card__placeholder-icon::after { position: absolute; right: -17px; bottom: -14px; width: 42px; height: 5px; content: ""; border-radius: 5px; background: var(--dsi-orange); transform: rotate(4deg); }
.project-card__placeholder > span:last-child { position: relative; z-index: 2; }
.project-card__body { padding: 1.5rem; }
.project-card__meta { margin-bottom: .6rem; color: var(--dsi-orange-dark); font-size: .76rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.project-card h3 { margin: 0 0 .7rem; }
.project-card h3 a { color: var(--dsi-blue-dark); text-decoration: none; }
.project-card p { color: var(--dsi-muted); font-size: .95rem; }
.project-card__link { font-weight: 800; text-decoration: none; }

.split { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); }
.feature-panel { position: relative; padding: 2.2rem; border-radius: 28px; background: white; box-shadow: var(--dsi-shadow); }
.feature-panel::before { position: absolute; inset: -10px auto auto -10px; width: 62px; height: 62px; content: ""; border-radius: 18px; background: var(--dsi-orange); z-index: -1; }
.check-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: .8rem 0; padding-left: 2rem; }
.check-list li::before { position: absolute; left: 0; content: "✓"; color: var(--dsi-orange-dark); font-weight: 900; }
.quote { margin: 0; padding: 0; border: 0; font-size: 1.15rem; }
.quote p { color: var(--dsi-blue-dark); font-size: 1.3rem; font-weight: 700; }
.quote cite { color: var(--dsi-muted); font-size: .9rem; font-style: normal; }

.cta { padding: 55px 0; background: var(--dsi-orange); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { margin: 0 0 .35rem; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta p { margin: 0; color: rgba(5,36,63,.75); }
.cta .button { border-color: var(--dsi-blue-dark); color: white; background: var(--dsi-blue-dark); }

.site-footer { padding: 60px 0 25px; color: rgba(255,255,255,.7); background: #031724; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.site-footer h3 { margin-top: 0; color: white; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.footer-tagline { color: white; font-weight: 700; }
.footer-menu, .footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-menu li, .footer-contact li { margin: .45rem 0; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.footer-social { display: flex; margin-top: 1.1rem; flex-wrap: wrap; gap: .65rem; }
.footer-social__link { display: inline-flex; padding: .5rem .7rem; align-items: center; gap: .45rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .8rem; font-weight: 750; text-decoration: none; }
.footer-social__link span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: white; background: var(--dsi-blue-bright); font-weight: 900; }
.footer-social__link--google span { color: var(--dsi-blue-dark); background: var(--dsi-orange); }

.page-hero { padding: 85px 0 70px; color: white; background: linear-gradient(135deg, var(--dsi-blue-dark), var(--dsi-blue)); }
.page-hero h1 { margin: 0 0 1rem; color: white; font-size: clamp(2.6rem, 6vw, 4.5rem); }
.page-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.75); font-size: 1.15rem; }
.content-area { padding: 70px 0 100px; }
.entry-content { max-width: 820px; }
.entry-content > .alignwide { width: min(1100px, calc(100vw - 40px)); max-width: none; margin-right: calc((820px - min(1100px, calc(100vw - 40px))) / 2); margin-left: calc((820px - min(1100px, calc(100vw - 40px))) / 2); }
.entry-content .wp-block-gallery { margin-top: 2.4rem; margin-bottom: 2.4rem; }
.entry-content .wp-block-gallery img { border-radius: 12px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.4rem; font-size: 2rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content ul { padding-left: 1.3rem; }
.project-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; }
.project-sidebar { align-self: start; padding: 1.6rem; border-radius: var(--dsi-radius); background: var(--dsi-cloud); }
.project-sidebar dl { margin: 0; }
.project-sidebar dt { margin-top: 1rem; color: var(--dsi-muted); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.project-sidebar dd { margin: .2rem 0 0; color: var(--dsi-blue-dark); font-weight: 700; }
.post-thumbnail { width: 100%; margin-bottom: 2rem; overflow: hidden; border-radius: var(--dsi-radius); }
.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
.post-thumbnail--service img { width: 100%; max-height: 520px; object-fit: cover; }
.why-digital-savvy__layout { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); gap: clamp(3rem, 7vw, 7rem); }
.why-digital-savvy__feature { position: relative; min-width: 0; }
.why-digital-savvy__photo { overflow: hidden; margin: 0; aspect-ratio: 4/5; border-radius: 28px; background: var(--dsi-cloud); box-shadow: var(--dsi-shadow); }
.why-digital-savvy__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.testimonial-slider { position: relative; }
.why-digital-savvy__photo + .testimonial-slider { width: 100%; margin: 1.5rem 0 0; }
.testimonial-slider__slides { display: grid; }
.testimonial-slide { grid-area: 1 / 1; margin: 0; }
.testimonial-slide[hidden] { display: none; }
.testimonial-slider__controls { display: flex; margin-top: 1rem; align-items: center; justify-content: center; gap: .8rem; }
.testimonial-slider__arrow { width: 40px; min-height: 40px; padding: 0; border: 1px solid var(--dsi-line); color: var(--dsi-blue-dark); background: white; box-shadow: none; }
.testimonial-slider__arrow:hover { color: white; background: var(--dsi-blue); box-shadow: none; transform: none; }
.testimonial-slider__dots { display: flex; align-items: center; gap: .45rem; }
.testimonial-slider__dots button { width: 10px; min-height: 10px; padding: 0; border: 0; border-radius: 50%; background: #b8c8d3; box-shadow: none; }
.testimonial-slider__dots button.is-active { background: var(--dsi-orange); transform: scale(1.25); }
.testimonial-slider__pause { min-height: 38px; padding: .35rem .7rem; border: 1px solid var(--dsi-line); color: var(--dsi-blue-dark); background: white; box-shadow: none; font-size: .75rem; }
.testimonial-slider__pause:hover { color: white; background: var(--dsi-blue); box-shadow: none; transform: none; }

.about-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(3rem, 7vw, 7rem); }
.about-layout .entry-content { max-width: none; }
.about-portrait { position: sticky; top: 120px; overflow: hidden; aspect-ratio: 4/5; border-radius: 28px; background: linear-gradient(145deg, var(--dsi-blue), var(--dsi-blue-dark)); box-shadow: var(--dsi-shadow); }
.about-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-portrait__placeholder { display: grid; height: 100%; padding: 2rem; place-content: center; color: rgba(255,255,255,.82); text-align: center; }
.about-portrait__placeholder::before { display: block; width: 92px; height: 92px; margin: 0 auto 1.4rem; content: ""; border: 7px solid var(--dsi-orange); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,255,255,.08); }
.about-portrait__placeholder strong { color: white; font-size: 1.25rem; }
.about-portrait__placeholder span { margin-top: .4rem; font-size: .84rem; }
.pagination { margin-top: 3rem; }
.nav-links { display: flex; gap: .5rem; }
.page-numbers { padding: .55rem .85rem; border-radius: 8px; background: var(--dsi-cloud); text-decoration: none; }
.page-numbers.current { color: white; background: var(--dsi-blue); }
.empty-state { padding: 2rem; border: 1px dashed #9fb4c2; border-radius: var(--dsi-radius); color: var(--dsi-muted); background: white; }

input, textarea, select { width: 100%; padding: .8rem; border: 1px solid #9fb4c2; border-radius: 8px; font: inherit; }
input:focus, textarea:focus, select:focus, a:focus-visible, button:focus-visible { outline: 3px solid rgba(244,123,32,.45); outline-offset: 3px; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 86px; right: 0; left: 0; display: none; padding: 1rem 20px 1.5rem; border-bottom: 1px solid var(--dsi-line); background: white; }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: .2rem; }
  .main-nav a { display: block; padding: .65rem 0; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); }
  .audience-grid, .service-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-item:nth-child(2) { border-right: 0; }
  .audience-item:nth-child(-n+2) { border-bottom: 1px solid var(--dsi-line); }
  .split, .project-detail { grid-template-columns: 1fr; }
	.about-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5rem; }
	.why-digital-savvy__layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr); gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--dsi-width)); }
  .brand-copy span { display: none; }
  .site-branding { min-width: 0; }
  .custom-logo-link img { max-width: 215px; max-height: 64px; }
	.site-branding__tagline { display: none; }
  .hero-inner { padding-top: 65px; }
  .hero-proof, .audience-grid, .service-grid, .project-grid, .footer-grid { grid-template-columns: 1fr; }
  .audience-item { border-right: 0; border-bottom: 1px solid var(--dsi-line); }
  .audience-item:last-child { border-bottom: 0; }
  .proof-card { display: flex; align-items: center; gap: .8rem; }
  .proof-card strong { font-size: 1.5rem; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
	.about-layout { grid-template-columns: 1fr; }
	.about-portrait { position: static; width: min(100%, 360px); order: -1; }
	.why-digital-savvy__layout { grid-template-columns: 1fr; }
	.why-digital-savvy__feature { width: min(100%, 430px); margin-inline: auto; }
	.why-digital-savvy__photo + .testimonial-slider { width: 100%; margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
