/* ALFA IT STUDIO — V5 iteration: layout, interactions, lists */
:root{
  --container:1660px;
  --header-max:1660px;
  --yellow:#ffc400;
  --black:#11120f;
  --ink:#171815;
  --muted:#777c75;
  --line:#d8dbd5;
  --paper:#f7f7f4;
  --soft:#eff1ed;
  --ease:cubic-bezier(.2,.75,.2,1);
}

/* ===== HEADER: same width as site content, stable messenger controls ===== */
.site-header{
  width:min(var(--header-max),calc(100% - 24px))!important;
  max-width:none!important;
  margin:8px auto 0!important;
}
.site-header .header-inner{
  width:100%!important;
  max-width:none!important;
  padding:0 20px!important;
  grid-template-columns:minmax(180px,230px) minmax(520px,1fr) auto!important;
  gap:22px!important;
  min-height:62px!important;
}
.site-header .main-nav{justify-content:center!important;gap:clamp(16px,1.5vw,27px)!important;min-width:0!important}
.site-header .header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:nowrap!important;white-space:nowrap!important;min-width:max-content!important}
.site-header .header-messenger,.site-header .social-mini{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:68px!important;min-height:38px!important;padding:8px 13px!important;white-space:nowrap!important}
.site-header .online{white-space:nowrap!important}
.site-header .header-phone{font-size:12px!important;white-space:nowrap!important}

/* ===== NO DECORATIVE OVERTITLES ABOVE SECTION HEADINGS ===== */
.v5-hide-overtitle,.section-head>.eyebrow,.listing-intro-v4>.eyebrow{display:none!important}
.section-head{align-items:end!important}

/* ===== HOMEPAGE HERO ===== */
.hero{padding-top:64px!important}
.hero-copy{display:block!important;margin-top:20px!important;max-width:610px!important}
.hero-copy p{max-width:600px!important;margin:0!important}
.hero-copy .btn{display:inline-flex!important;margin-top:18px!important;min-width:190px!important;justify-content:center!important}

/* ===== METRICS ===== */
.metric-strip{background:#fff!important;border-color:#d8dbd5!important}
.metric-strip::before{opacity:.58}
.metric{padding-top:19px!important}
.metric-head-v4{gap:9px!important;margin-bottom:9px!important;font-size:8px!important;color:#777c75!important;text-transform:uppercase!important;letter-spacing:.11em!important}
.metric-symbol-v4{width:9px!important;height:9px!important;border:0!important;background:var(--yellow)!important;border-radius:50%!important;padding:0!important;box-shadow:0 0 0 5px rgba(255,196,0,.10)!important}
.metric:hover .metric-symbol-v4{transform:scale(1.25)!important;background:var(--alfa-dark,#2f3338)!important}
.metric-head-v4 small{font:inherit!important;color:inherit!important}
.metric strong{font-size:clamp(27px,2.55vw,39px)!important}

/* ===== SERVICES ACCORDION ===== */
.service-list{overflow:visible!important}
.service-accordion{
  display:grid!important;
  grid-template-columns:52px minmax(230px,.72fr) minmax(360px,1.18fr) minmax(180px,220px)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  gap:0 28px!important;
  min-height:126px!important;
  padding:22px 18px 22px 0!important;
  border-bottom:1px solid var(--line)!important;
  cursor:pointer!important;
  transition:background .3s var(--ease),padding .3s var(--ease),border-radius .3s var(--ease)!important;
  color:var(--ink)!important;
  text-decoration:none!important;
}
.service-accordion:first-child{border-top:1px solid var(--line)!important}
.service-accordion:hover,.service-accordion.is-open{background:rgba(255,196,0,.96)!important;padding-left:18px!important;border-radius:16px!important;border-color:transparent!important}
.service-accordion .service-name{font-size:clamp(21px,1.8vw,29px)!important}
.service-accordion .service-desc{font-size:12.5px!important;line-height:1.52!important}
.service-accordion .service-tags{margin-top:16px!important}
.service-actions-v5{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:14px!important;white-space:nowrap!important}
.service-price-v5{font-size:12px!important;font-weight:760!important;letter-spacing:-.01em!important}
.service-more-v5{position:relative;z-index:4;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:104px!important}
.service-extra-v5{
  grid-column:2/5!important;
  max-height:0!important;
  overflow:hidden!important;
  opacity:0!important;
  padding:0 0 0!important;
  transition:max-height .48s var(--ease),opacity .28s ease,padding .4s var(--ease)!important;
  pointer-events:none!important;
}
.service-extra-v5 p{max-width:1060px!important;margin:0 0 11px!important;font-size:12.5px!important;line-height:1.62!important;color:#292b27!important}
.service-accordion.is-open .service-extra-v5{max-height:520px!important;opacity:1!important;padding:24px 0 7px!important;pointer-events:auto!important}
.service-accordion.is-open .service-name::after{content:" —";color:#111}

/* ===== CASES: six items, whole-page scroll, 16:10 media, yellow add card ===== */
.cases-section{overflow:visible!important}
.cases-showcase{grid-template-columns:330px minmax(0,1fr)!important;align-items:start!important}
.cases-showcase::before{left:330px!important}
.add-project-card{
  position:sticky!important;top:86px!important;width:276px!important;height:128px!important;
  background:var(--yellow)!important;color:#111!important;border-radius:12px!important;
  padding:20px!important;margin-right:38px!important;
}
.add-project-title{color:#111!important}
.add-project-plus{background:var(--alfa-dark,#2f3338)!important;color:var(--yellow)!important;margin-top:72px!important}
.add-project-card:hover{background:var(--alfa-dark,#2f3338)!important;color:var(--yellow)!important}
.add-project-card:hover .add-project-title{color:var(--yellow)!important}
.add-project-card:hover .add-project-plus{background:var(--yellow)!important;color:#111!important}
.cases-scroll{
  max-height:none!important;height:auto!important;overflow:visible!important;
  padding-left:34px!important;scrollbar-width:auto!important;
}
.case-list-item{
  grid-template-columns:minmax(300px,.58fr) minmax(520px,1.42fr)!important;
  min-height:0!important;padding:34px 0!important;gap:38px!important;align-items:center!important;
}
.case-list-item:first-child{padding-top:0!important}
.case-list-media{
  width:100%!important;height:auto!important;aspect-ratio:16/10!important;
  border-radius:14px!important;background:#f0f1ee!important;overflow:hidden!important;
}
.case-list-media img{width:100%!important;height:100%!important;object-fit:contain!important;background:#f4f5f2!important}
.case-list-item h3{font-size:21px!important;max-width:430px!important}
.case-list-item p{font-size:12.5px!important;max-width:440px!important}
.case-open{right:16px!important}

/* ===== TEAM ===== */
.team-controls>span{display:none!important}
.team-controls{gap:8px!important}
.team-intro-copy-v5{max-width:1080px!important;margin:14px 0 30px!important;color:#555a54!important;font-size:13px!important;line-height:1.65!important}

/* ===== HOMEPAGE BLOG: selector list controls large 16:10 card ===== */
.editorial-grid{grid-template-columns:minmax(0,1.55fr) minmax(360px,.85fr)!important;gap:22px!important;align-items:stretch!important}
.article-featured-v5{display:flex!important;flex-direction:column!important;min-height:560px!important;background:#fff!important;overflow:hidden!important}
.editorial-grid>.article-featured-v5 .article-image{aspect-ratio:16/10!important;max-height:none!important;min-height:0!important}
.editorial-grid>.article-featured-v5 .article-image img{width:100%!important;height:100%!important;object-fit:cover!important}
.editorial-grid>.article-featured-v5 .article-body{padding:17px 18px 18px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;flex:1!important}
.editorial-grid>.article-featured-v5 .article-body h3{font-size:21px!important;margin:8px 0 8px!important}
.editorial-grid>.article-featured-v5 .article-body p{font-size:11.5px!important;margin-bottom:14px!important}
.article-read-v5{margin-top:auto!important}
.editorial-grid .article-list{border-top:1px solid var(--line)!important}
.editorial-grid .article-list a{cursor:pointer!important;transition:background .22s ease,padding .22s ease!important}
.editorial-grid .article-list a:hover,.editorial-grid .article-list a.is-selected{background:#fff8d9!important;padding-inline:10px!important;border-radius:9px!important}

/* ===== CONTACT PHONE BREAKS OUT OF THE PANEL ===== */
.contact-modern-section{padding-top:96px!important;overflow:visible!important}
.contact-modern-v5{overflow:visible!important;min-height:430px!important;align-items:stretch!important;margin-top:44px!important;padding-top:38px!important;padding-bottom:0!important}
.contact-modern-v5 .contact-phone-wrap{height:470px!important;align-self:end!important;margin-top:-105px!important;overflow:visible!important}
.contact-modern-v5 .contact-phone{height:520px!important;align-self:flex-end!important;animation:phoneFloat 5.5s ease-in-out infinite!important}
.contact-modern-v5 .contact-modern-form{align-self:center!important;padding-bottom:34px!important}

/* ===== LIST PAGES: breadcrumbs + 3 cards per row ===== */
main>.section:first-child{padding-top:52px!important}
.page-breadcrumbs-v5{margin:0 0 18px!important;display:flex!important;align-items:center!important;gap:8px!important;color:#858983!important;font-size:9px!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.page-breadcrumbs-v5 a{color:#5e625d!important;text-decoration:none!important}
.page-breadcrumbs-v5 a:hover{color:#111!important}
.listing-intro-v4{margin-bottom:26px!important}
.listing-intro-v4 h1{font-size:31px!important}
.service-cards,.articles-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
.articles-grid .article-card:first-child{grid-column:auto!important}
.articles-grid .article-card:first-child .article-image,.articles-grid .article-image,.service-card-media{aspect-ratio:16/10!important}
.articles-grid .article-card:first-child .article-body h3,.articles-grid .article-body h3{font-size:19px!important;line-height:1.16!important}
.articles-grid .article-body{padding:16px!important}
.articles-grid .article-body p{font-size:11.5px!important}
.service-card-body{padding:20px!important}
.service-card-body h2{font-size:22px!important;margin:0 0 12px!important}
.service-card-body p{font-size:12px!important}
.service-card-price-v5{display:block!important;margin:5px 0 13px!important;font-size:13px!important}
.service-card .btn{display:inline-flex!important}

/* ===== ARTICLE DETAIL: more breathing from header, smaller type, author plaque ===== */
.article-detail-hero-v4.detail-topspace-v5{padding-top:52px!important}
.article-detail-hero-v4 .breadcrumbs{margin-bottom:16px!important}
body:has(.article-layout--wide) .article-detail-hero-v4 .page-title{font-size:clamp(31px,2.55vw,39px)!important;line-height:1.05!important}
.article-layout--wide .prose,.article-layout--wide .prose p,.article-layout--wide .prose ul,.article-layout--wide .prose ol,.article-layout--wide .prose li{font-size:13.5px!important;line-height:1.68!important}
.article-layout--wide .prose .article-lead-v3{font-size:14.5px!important;line-height:1.66!important}
.article-layout--wide .prose h2{font-size:clamp(22px,1.75vw,27px)!important;line-height:1.12!important;margin-top:38px!important;margin-bottom:14px!important}
.article-layout--wide .prose h3{font-size:19px!important;line-height:1.18!important}
.article-author-v5{display:flex!important;align-items:center!important;gap:18px!important;margin:36px auto 0!important;width:min(1120px,100%)!important;padding:18px 20px!important;border-radius:14px!important;background:#f4f5f4!important;border:1px solid #eceeeb!important}
.article-author-v5 img{width:70px!important;height:70px!important;object-fit:cover!important;border-radius:50%!important;flex:0 0 auto!important}
.article-author-v5>div{display:grid!important;gap:3px!important}
.article-author-label-v5{font-size:10px!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:#8b8f89!important}
.article-author-v5 strong{font-size:15px!important}
.article-author-v5 p{margin:0!important;font-size:12px!important;color:#555a54!important}

/* ===== DETAIL PAGE TOP SPACING ===== */
.case-hero-v4.detail-topspace-v5{padding-top:52px!important}
.detail-hero-v4.detail-topspace-v5 .detail-hero-content{padding-top:78px!important}
.case-hero-v4 .breadcrumbs,.detail-hero-v4 .breadcrumbs{margin-bottom:16px!important}

/* ===== COMPANY: rebuild broken first screen into a clean two-column layout ===== */
.company-hero-v5{background:#f4f5f1!important;padding:52px 0 62px!important}
.company-grid-v5{display:grid!important;grid-template-columns:minmax(280px,.65fr) minmax(0,1.35fr)!important;gap:24px 80px!important;align-items:start!important}
.company-grid-v5 .page-breadcrumbs-v5{grid-column:1/-1!important}
.company-grid-v5 .listing-intro-v4{grid-column:1!important;margin:0!important}
.company-grid-v5 .about-statement{grid-column:2!important;margin:0!important;font-size:clamp(22px,2vw,30px)!important;max-width:800px!important}
.company-grid-v5 .about-copy{grid-column:2!important;max-width:780px!important;margin-top:4px!important}
.company-grid-v5 .about-copy p{font-size:13px!important}
.company-hero-v5 .listing-intro-v4 h1{font-size:31px!important}
.company-hero-v5+.section{padding-top:52px!important}
.company-hero-v5+.section .section-head{margin-bottom:14px!important}
.company-hero-v5~.section--black .metric{color:#fff!important}

/* ===== CONTACTS: clean heading then content grid ===== */
.contacts-hero-v5{padding:52px 0 62px!important;background:#f3f4f0!important}
.contacts-hero-v5>.container{display:block!important}
.contacts-hero-v5 .listing-intro-v4{margin-bottom:24px!important}
.contacts-layout-v5{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr)!important;gap:18px!important}
.contacts-layout-v5 .contact-primary{min-height:420px!important;padding:38px!important;border-radius:20px!important}
.contacts-layout-v5 .contact-primary h2{font-size:clamp(28px,2.4vw,37px)!important;line-height:1!important;letter-spacing:-.035em!important}
.contacts-layout-v5 .contact-links a{font-size:clamp(19px,1.65vw,26px)!important}
.contacts-layout-v5 .contact-card{padding:24px!important;border-radius:18px!important}
.contacts-layout-v5 .contact-card p{font-size:14px!important}
.contacts-layout-v5 .map-card{min-height:180px!important;border-radius:18px!important}
.contacts-hero-v5+.section{padding-top:52px!important}
.contacts-hero-v5+.section .content-split{grid-template-columns:minmax(260px,.6fr) minmax(0,1.4fr)!important;gap:60px!important}
.contacts-hero-v5+.section .section-title{font-size:27px!important}

@media(max-width:1280px){
  .site-header .header-inner{grid-template-columns:190px 1fr auto!important;gap:14px!important;padding-inline:14px!important}
  .site-header .main-nav{gap:13px!important}.site-header .main-nav a{font-size:9px!important}
  .site-header .header-actions{gap:6px!important}.site-header .header-messenger{min-width:58px!important;padding-inline:9px!important}
  .service-accordion{grid-template-columns:44px 240px minmax(300px,1fr) 190px!important;gap:0 20px!important}
  .cases-showcase{grid-template-columns:280px minmax(0,1fr)!important}.cases-showcase::before{left:280px!important}.add-project-card{width:238px!important}
  .case-list-item{grid-template-columns:minmax(240px,.62fr) minmax(430px,1.38fr)!important;gap:28px!important}
}

@media(max-width:1050px){
  .site-header .header-inner{grid-template-columns:1fr auto!important}.site-header .main-nav{display:none!important}.site-header .menu-toggle{display:block!important}
  .service-accordion{grid-template-columns:42px minmax(190px,.7fr) minmax(260px,1.1fr) 180px!important}
  .service-cards,.articles-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .editorial-grid{grid-template-columns:1fr!important}.article-featured-v5{min-height:0!important}
  .contacts-layout-v5{grid-template-columns:1fr!important}
  .company-grid-v5{grid-template-columns:1fr!important}.company-grid-v5 .listing-intro-v4,.company-grid-v5 .about-statement,.company-grid-v5 .about-copy{grid-column:1!important}
}

@media(max-width:900px){
  .hero-copy .btn{margin-top:14px!important}
  .service-accordion{grid-template-columns:36px 1fr auto!important;gap:12px!important;align-items:start!important}
  .service-accordion .service-desc{grid-column:2/4!important}.service-actions-v5{grid-column:2/4!important;justify-content:flex-start!important;margin-top:6px!important}.service-extra-v5{grid-column:2/4!important}
  .cases-showcase{grid-template-columns:1fr!important}.cases-showcase::before{display:none!important}.add-project-card{position:relative!important;top:auto!important;width:100%!important;height:92px!important;margin:0 0 20px!important}.add-project-plus{margin-top:38px!important}.cases-scroll{padding-left:0!important}.case-list-item{grid-template-columns:1fr!important}.case-list-media{order:-1!important}
  .contact-modern-v5{grid-template-columns:1fr!important;margin-top:85px!important;padding-top:0!important}.contact-modern-v5 .contact-phone-wrap{height:350px!important;margin-top:-90px!important;overflow:hidden!important}.contact-modern-v5 .contact-phone{transform:scale(.78)!important;transform-origin:bottom center!important;animation:none!important}
  .company-grid-v5{gap:20px!important}
}

@media(max-width:650px){
  .site-header{width:calc(100% - 16px)!important}.site-header .header-actions .online,.site-header .header-messenger,.site-header .header-phone{display:none!important}
  .hero{padding-top:44px!important}.hero-copy{margin-top:16px!important}
  .service-cards,.articles-grid{grid-template-columns:1fr!important}
  .service-accordion{grid-template-columns:30px 1fr!important;padding-right:10px!important}.service-accordion .service-desc,.service-actions-v5,.service-extra-v5{grid-column:2!important}.service-actions-v5{flex-wrap:wrap!important}
  .case-list-item{padding:25px 0!important}.case-list-media{aspect-ratio:16/10!important}.case-list-item h3{font-size:18px!important}
  .editorial-grid>.article-featured-v5 .article-body h3{font-size:19px!important}
  .article-detail-hero-v4.detail-topspace-v5,.case-hero-v4.detail-topspace-v5{padding-top:38px!important}
  .article-author-v5{align-items:flex-start!important}.article-author-v5 img{width:56px!important;height:56px!important}
  .contacts-layout-v5 .contact-primary{min-height:330px!important;padding:26px!important}.contacts-hero-v5+.section .content-split{grid-template-columns:1fr!important;gap:28px!important}
}
