/*
Theme Name: Digital Beauty Box
Theme URI: https://digitalbeautybox.com/
Author: Shay La Vie
Author URI: https://shaylavie.com/
Description: An editorial WordPress theme for Digital Beauty Box with simplified front-end and back-end service positioning, hosted business options, package pages, creative services, Design Studio controls, and a coming-soon template.
Version: 2.2.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: digital-beauty-box
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, one-column, two-columns, wide-blocks
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --dbb-bg: #f8f5f0;
  --dbb-surface: #e8e0d6;
  --dbb-surface-2: #d7ccc2;
  --dbb-ink: #24201d;
  --dbb-muted: #756b64;
  --dbb-accent: #d46f98;
  --dbb-accent-soft: #efc5d4;
  --dbb-line: rgba(23, 19, 19, 0.18);
  --dbb-white: #ffffff;
  --dbb-display: "Bodoni Moda", "Times New Roman", serif;
  --dbb-body: "Montserrat", Arial, sans-serif;
  --dbb-container: 1240px;
  --dbb-gutter: clamp(20px, 4vw, 64px);
  --dbb-radius: 0;
  --dbb-section: clamp(72px, 10vw, 150px);
  --dbb-h1: clamp(64px, 9vw, 142px);
  --dbb-h2: clamp(45px, 6vw, 88px);
  --dbb-h3: clamp(30px, 3vw, 46px);
  --dbb-body-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dbb-ink);
  background: var(--dbb-bg);
  font-family: var(--dbb-body);
  font-size: var(--dbb-body-size);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--dbb-accent); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--dbb-accent-soft); color: var(--dbb-ink); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-family: var(--dbb-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -0.025em;
}
h1 { font-size: var(--dbb-h1); }
h2 { font-size: var(--dbb-h2); }
h3 { font-size: var(--dbb-h3); }
p { margin: 0 0 1.25em; }

.dbb-shell { width: min(var(--dbb-container), calc(100% - (var(--dbb-gutter) * 2))); margin-inline: auto; }
.dbb-narrow { width: min(820px, calc(100% - (var(--dbb-gutter) * 2))); margin-inline: auto; }
.dbb-section { padding-block: var(--dbb-section); }
.dbb-section--tight { padding-block: clamp(54px, 7vw, 92px); }
.dbb-eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.dbb-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.dbb-lede { font-size: clamp(18px, 2vw, 24px); line-height: 1.5; max-width: 760px; }
.dbb-rule { height: 1px; background: var(--dbb-line); border: 0; margin: 0; }
.dbb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--dbb-ink);
  background: var(--dbb-ink);
  color: var(--dbb-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 700;
  transition: .25s ease;
}
.dbb-button:hover { background: var(--dbb-accent); border-color: var(--dbb-accent); color: white; transform: translateY(-2px); }
.dbb-button--ghost { background: transparent; color: var(--dbb-ink); }
.dbb-button--ghost:hover { color: white; }

/* Header */
.dbb-site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--dbb-line);
  background: color-mix(in srgb, var(--dbb-bg) 94%, transparent);
}
.dbb-header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.dbb-brand { justify-self: center; text-align: center; text-decoration: none; }
.dbb-brand-mark { display: block; font-family: var(--dbb-display); font-size: 31px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.dbb-brand-sub { display: block; margin-top: 5px; font-size: 8px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.custom-logo { display: block; max-height: 56px; width: auto; }
.dbb-nav ul { display: flex; gap: 26px; align-items: center; list-style: none; padding: 0; margin: 0; }
.dbb-nav a { text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.dbb-nav--right { justify-self: end; }
.dbb-nav--left { justify-self: start; }
.dbb-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.dbb-menu-toggle span { display: block; width: 25px; height: 1px; background: var(--dbb-ink); margin: 5px 0; }

/* Hero */
.dbb-hero { overflow: hidden; }
.dbb-hero-top { min-height: min(770px, 82vh); display: grid; grid-template-columns: 1.08fr .92fr; border-bottom: 1px solid var(--dbb-line); }
.dbb-hero-copy { padding: clamp(64px, 8vw, 120px) var(--dbb-gutter); display: flex; flex-direction: column; justify-content: center; }
.dbb-hero-copy h1 { max-width: 850px; }
.dbb-hero-copy h1 em { font-weight: 400; color: var(--dbb-accent); }
.dbb-hero-copy p { max-width: 560px; font-size: clamp(17px, 1.6vw, 21px); }
.dbb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.dbb-hero-art { position: relative; min-height: 620px; overflow: hidden; background: var(--dbb-surface-2); border-left: 1px solid var(--dbb-line); }
.dbb-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.dbb-hero-stamp { position: absolute; right: 6%; bottom: 6%; width: 142px; height: 142px; border-radius: 50%; background: var(--dbb-accent); color: white; display: grid; place-items: center; text-align: center; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; transform: rotate(7deg); padding: 20px; }

.dbb-marquee { overflow: hidden; border-bottom: 1px solid var(--dbb-line); background: var(--dbb-ink); color: white; }
.dbb-marquee-track { display: flex; width: max-content; animation: dbb-marquee 24s linear infinite; }
.dbb-marquee-item { padding: 15px 22px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.dbb-marquee-item::after { content: "✦"; margin-left: 44px; color: var(--dbb-accent-soft); }
@keyframes dbb-marquee { to { transform: translateX(-50%); } }

/* Intro editorial section */
.dbb-intro { background: var(--dbb-bg); }
.dbb-intro-grid { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(48px, 8vw, 130px); align-items: start; }
.dbb-intro-note { position: sticky; top: 32px; }
.dbb-intro-heading { max-width: 900px; }
.dbb-intro-heading .inline-art { display: inline-block; width: .95em; height: .72em; margin: 0 .1em; vertical-align: -.02em; background: var(--dbb-accent-soft); border-radius: 50%; transform: rotate(-9deg); }
.dbb-intro-copy { margin-top: 44px; display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: end; }

/* About */
.dbb-about { background: var(--dbb-surface); border-block: 1px solid var(--dbb-line); }
.dbb-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.dbb-about-art { position: relative; }
.dbb-about-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dbb-about-mini { position: absolute; width: 44%; right: -5%; bottom: -7%; border: 10px solid var(--dbb-surface); box-shadow: 0 20px 60px rgba(23,19,19,.08); }
.dbb-about-copy { padding: 5% 0; }
.dbb-about-copy .micro-title { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }

/* Services */
.dbb-services-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 62px; }
.dbb-services-head h2 { max-width: 830px; }
.dbb-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--dbb-line); border-left: 1px solid var(--dbb-line); }
.dbb-service-card { position: relative; min-height: 530px; padding: 30px; border-right: 1px solid var(--dbb-line); border-bottom: 1px solid var(--dbb-line); display: flex; flex-direction: column; background: var(--dbb-bg); overflow: hidden; }
.dbb-service-card:nth-child(2) { background: var(--dbb-surface); }
.dbb-service-card:nth-child(3) { background: var(--dbb-surface-2); }
.dbb-service-no { font-family: var(--dbb-display); font-size: 24px; }
.dbb-service-card h3 { margin-top: auto; max-width: 280px; }
.dbb-service-card p { max-width: 310px; }
.dbb-card-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.dbb-card-link::after { content: "↗"; font-size: 17px; font-weight: 400; }
.dbb-service-orb { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(217,31,104,.12); right: -55px; top: 68px; }

/* Stats */
.dbb-stats { background: var(--dbb-ink); color: white; }
.dbb-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.dbb-stat { min-height: 220px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.18); }
.dbb-stat:last-child { border-right: 0; }
.dbb-stat strong { font-family: var(--dbb-display); font-size: clamp(50px, 6vw, 86px); font-weight: 400; line-height: 1; color: var(--dbb-accent-soft); }
.dbb-stat span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

/* Quote */
.dbb-quote { text-align: center; }
.dbb-quote blockquote { margin: 0 auto; max-width: 1050px; font-family: var(--dbb-display); font-size: clamp(42px, 6vw, 84px); line-height: 1.04; }
.dbb-quote cite { display: block; margin-top: 28px; font-style: normal; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

/* Pricing */
.dbb-pricing { background: var(--dbb-surface); border-block: 1px solid var(--dbb-line); }
.dbb-pricing-head { max-width: 850px; margin-bottom: 64px; }
.dbb-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dbb-price-card { background: var(--dbb-bg); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--dbb-line); position: relative; }
.dbb-price-card--featured { background: var(--dbb-ink); color: white; transform: translateY(-18px); }
.dbb-price-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.dbb-price { margin: 22px 0 24px; font-family: var(--dbb-display); font-size: clamp(60px, 6vw, 86px); line-height: 1; }
.dbb-price small { font-family: var(--dbb-body); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dbb-price-list { list-style: none; padding: 0; margin: 28px 0 34px; border-top: 1px solid currentColor; opacity: .88; }
.dbb-price-list li { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent); font-size: 14px; }
.dbb-price-card--featured .dbb-button { background: white; color: var(--dbb-ink); border-color: white; }

/* Workflow */
.dbb-workflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.dbb-workflow-steps { counter-reset: step; }
.dbb-workflow-step { counter-increment: step; padding: 28px 0; border-top: 1px solid var(--dbb-line); display: grid; grid-template-columns: 70px 1fr; gap: 18px; }
.dbb-workflow-step::before { content: "0" counter(step); font-family: var(--dbb-display); font-size: 24px; color: var(--dbb-accent); }
.dbb-workflow-step h3 { font-size: 32px; margin-bottom: 10px; }

/* Journal */
.dbb-journal-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 54px; }
.dbb-journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dbb-post-card a { text-decoration: none; }
.dbb-post-card-media { overflow: hidden; background: var(--dbb-surface); aspect-ratio: 4 / 3; }
.dbb-post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.dbb-post-card:hover .dbb-post-card-media img { transform: scale(1.03); }
.dbb-post-meta { margin: 20px 0 12px; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dbb-post-card h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.04; }

/* CTA */
.dbb-cta { background: var(--dbb-accent); color: white; overflow: hidden; }
.dbb-cta-inner { min-height: 560px; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 70px; position: relative; }
.dbb-cta h2 { max-width: 860px; }
.dbb-cta .dbb-button { background: white; color: var(--dbb-ink); border-color: white; }
.dbb-cta-orbit { width: min(430px, 34vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; justify-self: end; position: relative; }
.dbb-cta-orbit::before, .dbb-cta-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.dbb-cta-orbit::before { inset: 12%; }
.dbb-cta-orbit::after { inset: 27%; background: rgba(255,255,255,.1); }
.dbb-cta-orbit span { position: relative; z-index: 2; font-family: var(--dbb-display); font-size: clamp(36px, 4vw, 58px); text-align: center; line-height: .95; max-width: 220px; }

/* Footer */
.dbb-footer { background: var(--dbb-ink); color: white; }
.dbb-footer-top { padding: 80px 0 56px; display: grid; grid-template-columns: 1.35fr .65fr .65fr; gap: 54px; }
.dbb-footer-logo { font-family: var(--dbb-display); font-size: clamp(48px, 6vw, 82px); line-height: .88; text-transform: uppercase; letter-spacing: .02em; }
.dbb-footer p { color: rgba(255,255,255,.72); max-width: 490px; }
.dbb-footer h4 { font-family: var(--dbb-body); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.dbb-footer ul { list-style: none; padding: 0; margin: 0; }
.dbb-footer li { margin: 7px 0; }
.dbb-footer a { color: white; text-decoration: none; }
.dbb-footer a:hover { color: var(--dbb-accent-soft); }
.dbb-footer-bottom { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 20px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* Standard page and post */
.dbb-page-hero { padding: clamp(72px, 10vw, 140px) 0 clamp(44px, 7vw, 90px); border-bottom: 1px solid var(--dbb-line); }
.dbb-page-hero h1 { font-size: clamp(66px, 9vw, 130px); max-width: 1050px; }
.dbb-content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 70px; padding-block: 78px 120px; }
.dbb-content-wrap--single { grid-template-columns: minmax(0, 840px); justify-content: center; }
.dbb-entry-content { font-size: 17px; }
.dbb-entry-content > * { max-width: 840px; }
.dbb-entry-content h2 { margin-top: 1.35em; }
.dbb-entry-content h3 { margin-top: 1.4em; }
.dbb-entry-content img, .dbb-entry-content .wp-block-image { max-width: 100%; }
.dbb-entry-content .alignwide { width: min(1120px, 100vw - 40px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.dbb-entry-content blockquote { border-left: 2px solid var(--dbb-accent); margin: 2em 0; padding: 0 0 0 28px; font-family: var(--dbb-display); font-size: 34px; line-height: 1.18; }
.dbb-sidebar { border-left: 1px solid var(--dbb-line); padding-left: 34px; }
.dbb-widget { margin-bottom: 42px; }
.dbb-widget-title { font-family: var(--dbb-body); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; padding-bottom: 14px; border-bottom: 1px solid var(--dbb-line); }

/* Blog archive */
.dbb-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; padding-block: 70px 120px; }
.dbb-pagination { display: flex; justify-content: center; gap: 8px; padding-bottom: 100px; }
.dbb-pagination .page-numbers { min-width: 42px; min-height: 42px; border: 1px solid var(--dbb-line); display: grid; place-items: center; text-decoration: none; }
.dbb-pagination .current, .dbb-pagination a:hover { background: var(--dbb-ink); color: white; }

/* Forms */
.dbb-form { display: grid; gap: 18px; }
.dbb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dbb-field label { display: block; margin-bottom: 8px; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.dbb-field input, .dbb-field textarea, .dbb-field select { width: 100%; border: 1px solid var(--dbb-line); background: transparent; color: var(--dbb-ink); min-height: 52px; padding: 12px 14px; border-radius: 0; }
.dbb-field textarea { min-height: 170px; resize: vertical; }
.dbb-alert { padding: 15px 18px; border: 1px solid var(--dbb-line); margin-bottom: 22px; }
.dbb-alert--success { border-color: #2a815e; background: #eef8f1; }

/* Accessibility */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed !important; top: 10px; left: 10px; z-index: 9999; width: auto; height: auto; clip: auto; background: white; color: black; padding: 12px 16px; }

/* WordPress */
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 12px; color: var(--dbb-muted); }
.sticky { outline: 1px solid var(--dbb-line); }
.bypostauthor { opacity: 1; }

@media (max-width: 1050px) {
  .dbb-header-inner { grid-template-columns: auto 1fr auto; }
  .dbb-brand { justify-self: start; }
  .dbb-nav--left, .dbb-nav--right { display: none; }
  .dbb-menu-toggle { display: block; justify-self: end; }
  .dbb-mobile-nav { display: none; position: absolute; left: 0; right: 0; top: 88px; background: var(--dbb-bg); border-bottom: 1px solid var(--dbb-line); padding: 24px var(--dbb-gutter) 32px; }
  .dbb-mobile-nav.is-open { display: block; }
  .dbb-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .dbb-mobile-nav li { border-bottom: 1px solid var(--dbb-line); }
  .dbb-mobile-nav a { display: block; padding: 14px 0; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
  .dbb-hero-top { grid-template-columns: 1fr; }
  .dbb-hero-art { min-height: 580px; border-left: 0; border-top: 1px solid var(--dbb-line); }
  .dbb-intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .dbb-intro-note { position: static; }
  .dbb-service-grid { grid-template-columns: 1fr 1fr; }
  .dbb-service-card:nth-child(3) { grid-column: span 2; min-height: 440px; }
  .dbb-stats-grid { grid-template-columns: 1fr 1fr; }
  .dbb-stat:nth-child(2) { border-right: 0; }
  .dbb-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .dbb-price-grid { grid-template-columns: 1fr; }
  .dbb-price-card--featured { transform: none; }
  .dbb-content-wrap { grid-template-columns: 1fr; }
  .dbb-sidebar { border-left: 0; border-top: 1px solid var(--dbb-line); padding: 36px 0 0; }
  .dbb-archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --dbb-gutter: 20px; --dbb-section: 72px; }
  .dbb-header-inner { min-height: 76px; }
  .dbb-mobile-nav { top: 76px; }
  .dbb-brand-mark { font-size: 24px; }
  .dbb-brand-sub { font-size: 7px; }
  .dbb-hero-copy { padding: 62px var(--dbb-gutter); }
  .dbb-hero-art { min-height: 430px; }
  .dbb-hero-stamp { width: 110px; height: 110px; font-size: 8px; }
  .dbb-intro-copy { grid-template-columns: 1fr; }
  .dbb-about-grid { grid-template-columns: 1fr; }
  .dbb-about-mini { right: 2%; }
  .dbb-services-head, .dbb-journal-head { display: block; }
  .dbb-services-head .dbb-button, .dbb-journal-head .dbb-button { margin-top: 24px; }
  .dbb-service-grid { grid-template-columns: 1fr; }
  .dbb-service-card, .dbb-service-card:nth-child(3) { grid-column: auto; min-height: 410px; }
  .dbb-stats-grid { grid-template-columns: 1fr; }
  .dbb-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); min-height: 160px; }
  .dbb-stat:last-child { border-bottom: 0; }
  .dbb-workflow-grid { grid-template-columns: 1fr; gap: 36px; }
  .dbb-journal-grid, .dbb-archive-grid { grid-template-columns: 1fr; }
  .dbb-cta-inner { grid-template-columns: 1fr; min-height: auto; padding-block: 78px; }
  .dbb-cta-orbit { justify-self: start; width: 270px; }
  .dbb-footer-top { grid-template-columns: 1fr; }
  .dbb-footer-bottom { display: block; }
  .dbb-footer-bottom span { display: block; margin: 5px 0; }
  .dbb-form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
