/*
Theme Name:        centrdmedia
Theme URI:         https://centrdmedia.com/
Author:            centrdmedia
Author URI:        https://centrdmedia.com/
Description:       Block-based theme for centrdmedia — Roundhouse direction. Every homepage section is a custom Gutenberg block.
Version:           1.0.3
Requires at least: 6.4
Tested up to:      6.9
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       centrd
*/

/* Self-hosted brand fonts. Comfortaa: SIL OFL 1.1. Open Sans: Apache 2.0.
   Both free for commercial use and redistribution — see assets/fonts/LICENSES.txt */
@font-face{font-family:'Comfortaa';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/comfortaa-600.woff2') format('woff2');}
@font-face{font-family:'Comfortaa';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/comfortaa-700.woff2') format('woff2');}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/opensans-400.woff2') format('woff2');}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/opensans-600.woff2') format('woff2');}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/opensans-700.woff2') format('woff2');}

/* ==========================================================================
   Brand tokens — sampled from the live centrdmedia.com coming-soon page.
   Fonts: Comfortaa (display) + Open Sans (body), both free/open-source.
   ========================================================================== */
:root{
  --violet:#6011F7;
  --violet-dark:#4E0BD1;
  --violet-tint:#F1ECFE;
  --rose:#F9386A;
  --rose-dark:#E22557;
  --ink:#221C2E;
  --body:#4B4557;
  --muted:#6B6480;
  --surface:#F5F5F5;
  --line:#D6D6D6;
  --line-soft:#EDEBF2;
  --white:#FFFFFF;
  --ff-display:'Comfortaa', system-ui, sans-serif;
  --ff-body:'Open Sans', system-ui, sans-serif;
}

body{background:#FFFFFF;color:#4B4557;font-family:'Open Sans',system-ui,sans-serif;}
.wrap{max-width:1140px;margin:0 auto;padding:0 clamp(20px,4vw,44px)}
h1,h2,h3,h4{font-family:'Comfortaa',system-ui,sans-serif;font-weight:700;color:#221C2E;letter-spacing:-.02em;margin:0}
p{margin:0}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:#6011F7;background:#F1ECFE;padding:7px 15px;border-radius:999px;margin-bottom:20px;
}
.eyebrow i{width:11px;height:11px;background:#6011F7;border-radius:0 100% 0 0;display:block;flex:none}
nav{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:20px 0}
nav .brand{display:flex;align-items:center;gap:10px;font-family:'Comfortaa',system-ui,sans-serif;font-weight:700;font-size:17px;color:#221C2E;text-decoration:none}
nav ul{display:flex;gap:6px;list-style:none;margin:0 0 0 auto;padding:0;font-size:14.5px;font-weight:600}
nav ul a{text-decoration:none;color:#5C5570;padding:9px 15px;border-radius:999px;transition:.18s;display:block}
nav ul a:hover{background:#F5F5F5;color:#6011F7}
nav ul a[aria-current]{color:#6011F7;background:#F1ECFE}
.btn{
  display:inline-flex;align-items:center;gap:8px;text-decoration:none;cursor:pointer;border:0;background:#6011F7;
  color:#fff;font-family:'Open Sans',system-ui,sans-serif;font-weight:700;font-size:14.5px;white-space:nowrap;
  padding:13px 26px;border-radius:999px;transition:.2s;box-shadow:0 8px 20px -10px rgba(96,17,247,.9);
}
.btn:hover{background:#4E0BD1;transform:translateY(-1px)}
.btn.pink{background:#F9386A;box-shadow:0 8px 20px -10px rgba(249,56,106,.9)}
.btn.pink:hover{background:#E22557}
.btn.ghost{background:#F5F5F5;color:#221C2E;box-shadow:none}
.btn.ghost:hover{background:#EAE6F7;color:#6011F7}
section{padding:0 0 clamp(48px,7vw,84px)}
.sechead{text-align:center;max-width:50ch;margin:0 auto clamp(26px,3.4vw,42px)}
.sechead h2{font-size:clamp(26px,3.8vw,40px);line-height:1.14;text-wrap:balance;margin-bottom:12px}
.sechead p{font-size:16px;line-height:1.65}
.sechead.left{text-align:left;margin-left:0}
.phero{padding:clamp(28px,4vw,52px) 0 clamp(34px,4.5vw,58px);max-width:56ch}
.phero h1{font-size:clamp(32px,5vw,54px);line-height:1.08;margin-bottom:16px;text-wrap:balance}
.phero p{font-size:clamp(16px,1.7vw,18.5px);line-height:1.65}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.82fr);gap:clamp(28px,4vw,56px);align-items:center;padding:clamp(32px,5vw,64px) 0}
.hero h1{font-size:clamp(34px,5.2vw,58px);line-height:1.08;margin-bottom:18px;text-wrap:balance}
.hero h1 mark{background:none;color:#6011F7}
.hero .tag{font-size:clamp(16px,1.7vw,18.5px);line-height:1.65;max-width:44ch;margin-bottom:28px}
.cta{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.heropanel{border-radius:clamp(28px,4vw,44px);overflow:hidden;aspect-ratio:1/.92;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.heropanel i:nth-child(odd){border-radius:0 100% 0 0}
.heropanel i:nth-child(even){border-radius:0 0 0 100%}
.svc{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,2vw,20px)}
.svc article{
  border-radius:clamp(20px,2.6vw,28px);padding:clamp(22px,2.6vw,30px);background:#F5F5F5;
  transition:transform .25s;position:relative;overflow:hidden;
}
.svc article:hover{transform:translateY(-4px)}
.svc article.a{background:#6011F7;color:#DCCEFF}
.svc article.a h3{color:#fff}
.svc article.b{background:#F9386A;color:#3D0714}
.svc article.b h3{color:#2A0410}
.svc i{width:30px;height:30px;display:block;background:#6011F7;border-radius:0 100% 0 0;margin-bottom:18px;flex:none}
.svc article:nth-child(even) i{border-radius:0 0 0 100%}
.svc article.a i{background:rgba(255,255,255,.9)}
.svc article.b i{background:#2A0410}
.svc h3{font-size:18px;margin-bottom:8px}
.svc p{font-size:14.5px;line-height:1.6}
.srow{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,4vw,54px);
  align-items:center;padding:clamp(26px,3.4vw,40px) 0;border-top:1px solid #EDEBF2;
}
.srow h3{font-size:clamp(22px,2.8vw,30px);margin-bottom:12px}
.srow>div>p{font-size:15.5px;line-height:1.68;margin-bottom:20px;max-width:46ch}
.srow h4{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:#6B6480;font-family:'Open Sans',sans-serif;font-weight:700;margin-bottom:12px}
.inc{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:9px;font-size:14.5px}
.inc li{display:flex;gap:10px;align-items:flex-start}
.inc li u{width:19px;height:19px;border-radius:50%;background:#F1ECFE;color:#6011F7;flex:none;display:grid;place-items:center;font-size:10px;text-decoration:none;margin-top:3px;font-weight:700}
.sart{border-radius:clamp(24px,3vw,36px);aspect-ratio:4/3;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;overflow:hidden}
.sart i:nth-child(odd){border-radius:0 100% 0 0}
.sart i:nth-child(even){border-radius:0 0 0 100%}
.sart.solo{grid-template-columns:1fr;grid-template-rows:1fr;background:#F1ECFE;padding:clamp(26px,7%,58px)}
.sart.solo i{border-radius:0 100% 0 0}
.sart.solo.mirror i{border-radius:0 0 0 100%}
.srow.flip .sart{order:-1}
.work{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(16px,2.4vw,26px)}
.work .card{text-decoration:none;color:inherit;display:block}
.work .thumb{
  aspect-ratio:4/3;border-radius:clamp(20px,2.6vw,28px);background-color:#F5F5F5;
  background-size:cover;background-position:top center;transition:transform .25s;
}
.work .card:hover .thumb{transform:translateY(-4px)}
.work h3{font-size:19px;margin:16px 0 4px}
.work p{font-size:14px;color:#6B6480}
.work .tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.work .tags b{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#6011F7;background:#F1ECFE;padding:4px 10px;border-radius:999px}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(16px,2.4vw,26px);counter-reset:s}
.steps article{position:relative}
.steps article::before{
  counter-increment:s;content:"0" counter(s);
  font-family:'Comfortaa',system-ui,sans-serif;font-weight:700;font-size:13px;color:#6011F7;
  display:block;margin-bottom:12px;
}
.steps article{border-top:2px solid #221C2E;padding-top:16px}
.steps h3{font-size:17px;margin-bottom:7px}
.steps p{font-size:14px;line-height:1.6}
.cs-hero{
  border-radius:clamp(24px,3.4vw,40px);overflow:hidden;aspect-ratio:16/9;
  background-color:#F5F5F5;background-size:cover;background-position:top center;margin-bottom:clamp(28px,3.6vw,44px);
}
.cs-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:18px;padding:22px 0 clamp(30px,4vw,46px);border-top:1px solid #EDEBF2;border-bottom:1px solid #EDEBF2;margin-bottom:clamp(30px,4vw,46px)}
.cs-meta h4{font-size:11.5px;letter-spacing:.09em;text-transform:uppercase;color:#6B6480;font-family:'Open Sans',sans-serif;font-weight:700;margin-bottom:6px}
.cs-meta p{font-size:15px;color:#221C2E;font-weight:600}
.cs-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:clamp(20px,4vw,54px);align-items:start;padding-bottom:clamp(30px,4vw,44px)}
.cs-body h2{font-size:clamp(22px,2.8vw,30px);text-wrap:balance}
.cs-body p{font-size:15.5px;line-height:1.72;margin-bottom:14px}
.cs-body p:last-child{margin-bottom:0}
.cs-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.cs-list li{display:flex;gap:12px;align-items:flex-start;font-size:15.5px;line-height:1.62}
.cs-list li u{width:21px;height:21px;background:#6011F7;border-radius:0 100% 0 0;flex:none;margin-top:3px;text-decoration:none}
.cs-list li:nth-child(even) u{background:#F9386A;border-radius:0 0 0 100%}
.cs-list b{color:#221C2E;font-weight:700}
.cs-shots{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:clamp(14px,2vw,20px);align-items:stretch}
.cs-shots div{border-radius:clamp(18px,2.4vw,26px);background-color:#F5F5F5;background-size:cover;background-position:top center;min-height:100%}
.cs-shots div.wide{aspect-ratio:4/3}
.cs-shots div.tall{background-size:contain;background-repeat:no-repeat;background-position:center top;background-color:#F1ECFE;padding-top:16px}
.vals{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2.4vw,24px)}
.vals article{background:#F5F5F5;border-radius:clamp(20px,2.6vw,28px);padding:clamp(22px,2.6vw,30px)}
.vals i{width:28px;height:28px;display:block;background:#6011F7;border-radius:0 100% 0 0;margin-bottom:16px}
.vals article:nth-child(even) i{background:#F9386A;border-radius:0 0 0 100%}
.vals h3{font-size:17px;margin-bottom:8px}
.vals p{font-size:14.5px;line-height:1.62}
.faq{display:grid;gap:10px;max-width:74ch;margin:0 auto}
.faq details{background:#F5F5F5;border-radius:18px;padding:16px 22px;transition:background .2s}
.faq details[open]{background:#F1ECFE}
.faq summary{
  font-family:'Comfortaa',system-ui,sans-serif;font-weight:700;color:#221C2E;font-size:16px;
  cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px;align-items:center;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:#6011F7;font-size:20px;font-family:'Open Sans',sans-serif;flex:none}
.faq details[open] summary::after{content:"–"}
.faq p{font-size:14.5px;line-height:1.68;margin-top:10px}
.final{background:#F5F5F5;padding-top:clamp(44px,6vw,80px)}
.box{
  background:#fff;border-radius:clamp(26px,3.4vw,40px);padding:clamp(28px,4vw,52px);
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:clamp(24px,4vw,44px);align-items:start;
  box-shadow:0 26px 60px -34px rgba(34,28,46,.4);
}
.box h2{font-size:clamp(26px,3.6vw,38px);line-height:1.12;margin-bottom:12px;text-wrap:balance}
.box>div>p{font-size:15.5px;line-height:1.65;margin-bottom:20px}
.form{display:grid;gap:12px}
.form label{font-size:12.5px;font-weight:700;color:#221C2E;display:grid;gap:6px}
.form .in{background:#F5F5F5;border-radius:14px;padding:13px 16px;font-size:14px;color:#6E6782;border:1px solid transparent;transition:.18s}
.form .in:hover{border-color:#D6D6D6}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.next{list-style:none;margin:0;padding:0;display:grid;gap:14px;counter-reset:n}
.next li{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.6}
.next li::before{
  counter-increment:n;content:counter(n);width:24px;height:24px;border-radius:50%;background:#6011F7;color:#fff;
  flex:none;display:grid;place-items:center;font-size:12px;font-weight:700;margin-top:1px;
}
.deets{display:grid;gap:10px;font-size:15px;margin-top:22px}
.deets a{color:#6011F7;font-weight:600;text-decoration:none}
.deets a:hover{text-decoration:underline}
footer{background:#F5F5F5;padding:clamp(34px,4vw,52px) 0 26px}
footer .cols{display:flex;justify-content:space-between;gap:28px;flex-wrap:wrap;padding-bottom:28px}
footer .brand{display:flex;align-items:center;gap:10px;font-family:'Comfortaa',system-ui,sans-serif;font-weight:700;color:#221C2E;font-size:18px;margin-bottom:12px}
footer p{font-size:14px;line-height:1.6}
footer ul{list-style:none;margin:0;padding:0;display:flex;gap:22px;font-size:14px;flex-wrap:wrap}
footer a{text-decoration:none;color:#5C5570;transition:.15s}
footer a:hover{color:#6011F7}
footer .base{border-top:1px solid #E2DEEC;padding-top:20px;font-size:12.5px;color:#6B6480}
@media (max-width:940px){
  .svc,.vals{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:820px){
  .hero,.srow,.cs-body{grid-template-columns:1fr}
  nav ul{display:none}
  .srow .sart{order:-1}
}
@media (max-width:600px){
  .svc,.vals,.work,.steps{grid-template-columns:1fr}
  .cs-shots{grid-template-columns:1fr}
  .cs-shots div.tall{aspect-ratio:9/16}
}
@media (max-width:760px){
  .form .row{grid-template-columns:1fr}
  .ask div{grid-template-columns:1fr;gap:4px}
}

/* --------------------------------------------------------------------------
   WordPress admin-bar + accessibility bits the prototype had no need for.
   -------------------------------------------------------------------------- */
.screen-reader-text{
  border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;
  padding:0;position:absolute;width:1px;word-wrap:normal!important;
}
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:100000;background:var(--violet);
  color:#fff;padding:12px 20px;border-radius:0 0 12px 0;font-weight:700;
}
.skip-link:focus{left:0}
:focus-visible{outline:2px solid var(--violet);outline-offset:3px;border-radius:4px}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}

/* --------------------------------------------------------------------------
   Theme adaptations. The prototype faked two things that must be real here:
   work thumbnails were CSS background-images (now media-library <img>), and
   the enquiry form was styled <span>s (now real inputs).
   -------------------------------------------------------------------------- */
.brand .custom-logo-link{display:block;line-height:0}
.brand img.custom-logo{height:34px;width:auto;display:block}
footer .brand img.custom-logo{height:36px}

.work .thumb{overflow:hidden}
.work .thumb img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}

.form input,.form textarea,.form select{
  width:100%;background:#F5F5F5;border:1px solid transparent;border-radius:14px;
  padding:13px 16px;font:inherit;font-size:14px;color:var(--ink);transition:.18s;
}
.form input::placeholder,.form textarea::placeholder{color:var(--muted)}
.form input:hover,.form textarea:hover{border-color:var(--line)}
.form input:focus,.form textarea:focus{border-color:var(--violet);outline:none;background:#fff}
.form textarea{resize:vertical;min-height:96px}
.form button{width:100%;justify-content:center}
.form--preview input,.form--preview textarea,.form--preview button{opacity:.75;cursor:not-allowed}
.form__notice{
  margin:0;font-size:12.5px;line-height:1.5;color:var(--muted);
  background:var(--violet-tint);border-radius:12px;padding:10px 14px;
}

/* WP menu markup: wp_nav_menu adds .menu / .menu-item wrappers the prototype
   didn't have, and marks the current page. */
nav ul.menu,footer ul.menu{list-style:none;margin:0;padding:0}
nav ul.menu{margin-left:auto}
nav ul .current-menu-item > a{color:var(--violet);background:var(--violet-tint)}
footer ul .current-menu-item > a{color:var(--violet)}

/* --------------------------------------------------------------------------
   Small screens: the real logo image is far wider than the prototype's text
   wordmark, so brand + CTA overflowed 390px once the nav collapsed.
   Cap the logo and shrink the button instead of pushing the page sideways.
   -------------------------------------------------------------------------- */
@media (max-width:600px){
  .site-header nav{gap:12px}
  .site-header .brand{min-width:0;flex:0 1 auto}
  .site-header .brand img.custom-logo{height:auto;width:100%;max-width:180px}
  .site-header .btn{flex:none;padding:11px 18px;font-size:13.5px}
  .site-footer .brand img.custom-logo{height:auto;width:100%;max-width:200px}
}
