/*
Theme Name: Allegro IT
Template: hello-elementor
Description: Custom child theme for allegroit.dk — project management with team spirit
Author: Allegro IT ApS
Author URI: https://allegroit.dk/
Version: 1.0.0
Text Domain: allegroit
*/

/* Allegro IT Redesign */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
.ait-page{font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;color:#1e293b;line-height:1.6;-webkit-font-smoothing:antialiased;margin:0}
.ait-page *{margin:0;padding:0;box-sizing:border-box}
/* HEADER */
.ait-header{background:#0f172a;padding:0 2rem;position:sticky;top:0;z-index:1000;border-bottom:1px solid rgba(255,255,255,0.08)}
.admin-bar .ait-header{top:32px}
.ait-header-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:72px}
.ait-header-brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.ait-header-brand img{width:40px;height:auto;border-radius:6px}
.ait-header-brand span{font-weight:700;font-size:1.15rem;color:#fff}
.ait-header-nav{display:flex;align-items:center;gap:8px}
.ait-header-nav a{color:#94a3b8;text-decoration:none;font-size:0.9rem;font-weight:500;padding:8px 16px;border-radius:8px;transition:all 0.2s}
.ait-header-nav a:hover{color:#fff;background:rgba(255,255,255,0.06)}
.ait-header-cta{background:#2563eb!important;color:#fff!important;padding:8px 20px!important;border-radius:8px!important}
.ait-header-cta:hover{background:#1d4ed8!important}
.ait-mobile-toggle{display:none;background:none;border:none;color:#fff;cursor:pointer;width:32px;height:32px;padding:4px}
.ait-mobile-toggle svg{width:100%;height:100%}
/* HERO */
.ait-hero{padding:80px 2rem 80px;background:linear-gradient(135deg,#0f172a 0%,#162044 50%,#1e293b 100%);position:relative;overflow:hidden}
.ait-hero:before{content:'';position:absolute;top:-50%;right:-20%;width:800px;height:800px;background:radial-gradient(circle,rgba(37,99,235,0.15) 0%,transparent 70%);border-radius:50%}
.ait-hero-inner{max-width:1100px;margin:0 auto;position:relative;z-index:1}
.ait-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(37,99,235,0.15);border:1px solid rgba(37,99,235,0.3);color:#93bbfd;padding:6px 16px;border-radius:100px;font-size:0.8rem;font-weight:500;margin-bottom:24px}
.ait-badge .dot{width:6px;height:6px;border-radius:50%;background:#60a5fa;display:inline-block}
.ait-hero h1{font-size:3rem;font-weight:800;color:#fff;line-height:1.1;letter-spacing:-0.03em;max-width:700px;margin-bottom:20px}
.ait-hero h1 .accent{color:#60a5fa}
.ait-hero .subtitle{font-size:1.15rem;color:#94a3b8;max-width:540px;margin-bottom:36px;line-height:1.7}
.ait-hero-btns{display:flex;gap:16px;flex-wrap:wrap}
.btn-primary{display:inline-flex;align-items:center;gap:8px;background:#2563eb;color:#fff!important;padding:14px 26px;border-radius:10px;text-decoration:none;font-weight:600;font-size:0.95rem;transition:all 0.2s;border:none;cursor:pointer}
.btn-primary:hover{background:#1d4ed8;transform:translateY(-1px)}
.btn-secondary{display:inline-flex;align-items:center;gap:8px;background:transparent;color:#cbd5e1!important;padding:14px 26px;border-radius:10px;text-decoration:none;font-weight:600;font-size:0.95rem;border:1px solid #475569;transition:all 0.2s;cursor:pointer}
.btn-secondary:hover{border-color:#94a3b8;color:#fff!important}
.ait-hero-stats{display:flex;gap:48px;margin-top:56px;padding-top:36px;border-top:1px solid rgba(255,255,255,0.1)}
.ait-hero-stat .num{font-size:2rem;font-weight:800;color:#fff}
.ait-hero-stat .label{font-size:0.85rem;color:#94a3b8;margin-top:4px}
/* SERVICES */
.ait-services{padding:80px 2rem;background:#fff}
.ait-services-inner{max-width:1100px;margin:0 auto}
.ait-section-label{font-size:0.8rem;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;color:#2563eb;margin-bottom:12px}
.ait-section-title{font-size:2.2rem;font-weight:800;color:#0f172a;letter-spacing:-0.02em;margin-bottom:16px;line-height:1.2}
.ait-section-subtitle{font-size:1.05rem;color:#64748b;max-width:560px;margin-bottom:48px;line-height:1.7}
.ait-services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.ait-service-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:32px;transition:all 0.3s}
.ait-service-card:hover{background:#fff;border-color:#2563eb;box-shadow:0 10px 15px -3px rgba(0,0,0,0.08);transform:translateY(-4px)}
.ait-service-icon{width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:20px}
.ait-service-icon.blue{background:#dbeafe}
.ait-service-icon.green{background:#dcfce7}
.ait-service-icon.purple{background:#f3e8ff}
.ait-service-icon svg{width:24px;height:24px}
.ait-service-card h3{font-size:1.15rem;font-weight:700;color:#0f172a;margin-bottom:12px}
.ait-service-card p{font-size:0.95rem;color:#64748b;line-height:1.7;margin-bottom:20px}
.ait-service-link{display:inline-flex;align-items:center;gap:6px;color:#2563eb!important;font-weight:600;font-size:0.9rem;text-decoration:none;transition:gap 0.2s}
.ait-service-link:hover{gap:10px}
/* APPROACH */
.ait-approach{padding:80px 2rem;background:#f8fafc}
.ait-approach-inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.ait-photo-frame{width:100%;border-radius:16px;overflow:hidden}
.ait-photo-frame img{width:100%;height:auto;display:block}
.ait-approach-photo{position:relative}
.ait-floating-card{position:absolute;bottom:-16px;right:-16px;background:#fff;border-radius:12px;padding:16px 20px;box-shadow:0 20px 25px -5px rgba(0,0,0,0.08);display:flex;align-items:center;gap:14px}
.ait-floating-card .fc-icon{width:40px;height:40px;border-radius:10px;background:#dbeafe;display:flex;align-items:center;justify-content:center}
.ait-floating-card .fc-num{font-size:1.3rem;font-weight:800;color:#0f172a}
.ait-floating-card .fc-label{font-size:0.8rem;color:#64748b}
.ait-approach-content .ait-section-title{max-width:440px}
.ait-approach-content>p{font-size:1rem;color:#475569;line-height:1.8;margin-bottom:28px}
.ait-benefits-list{display:flex;flex-direction:column;gap:14px}
.ait-benefit-item{display:flex;align-items:flex-start;gap:12px}
.ait-benefit-check{width:24px;height:24px;border-radius:6px;background:#dcfce7;flex-shrink:0;margin-top:2px;display:flex;align-items:center;justify-content:center}
.ait-benefit-check svg{width:14px;height:14px;color:#16a34a}
.ait-benefit-item span{font-size:0.95rem;color:#334155;font-weight:500}
/* TECH */
.ait-tech{padding:64px 2rem;background:#fff;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}
.ait-tech-inner{max-width:1100px;margin:0 auto;text-align:center}
.ait-tech-inner h2{font-size:1.4rem;font-weight:700;color:#0f172a;margin-bottom:40px}
.ait-tech-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.ait-tech-tag{padding:10px 20px;border-radius:100px;background:#f8fafc;border:1px solid #e2e8f0;font-size:0.85rem;font-weight:500;color:#475569;transition:all 0.2s}
.ait-tech-tag:hover{border-color:#2563eb;color:#2563eb;background:#dbeafe}
/* CTA */
.ait-cta{padding:80px 2rem;background:linear-gradient(135deg,#0f172a 0%,#162044 100%);text-align:center}
.ait-cta-inner{max-width:640px;margin:0 auto}
.ait-cta h2{font-size:2.2rem;font-weight:800;color:#fff;letter-spacing:-0.02em;margin-bottom:16px}
.ait-cta p{font-size:1.05rem;color:#94a3b8;margin-bottom:36px;line-height:1.7}
/* FOOTER */
.ait-footer{background:#0f172a;padding:48px 2rem 24px;border-top:1px solid rgba(255,255,255,0.05)}
.ait-footer-inner{max-width:1100px;margin:0 auto}
.ait-footer-top{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,0.08)}
.ait-footer-brand{display:flex;flex-direction:column;gap:12px}
.ait-footer-brand .logo-row{display:flex;align-items:center;gap:12px}
.ait-footer-brand .logo-row img{width:36px;height:auto}
.ait-footer-brand .logo-row span{font-weight:700;font-size:1.1rem;color:#fff}
.ait-footer-brand p{font-size:0.9rem;color:#94a3b8;line-height:1.7;max-width:300px}
.ait-footer-col h4{font-size:0.8rem;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;color:#94a3b8;margin-bottom:16px}
.ait-footer-col a{display:block;text-decoration:none;color:#64748b!important;font-size:0.9rem;margin-bottom:10px;transition:color 0.2s}
.ait-footer-col a:hover{color:#fff!important}
.ait-footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:20px}
.ait-footer-bottom p{font-size:0.8rem;color:#475569}
.ait-footer-bottom a{color:#64748b!important;text-decoration:none}
.ait-footer-bottom a:hover{color:#fff!important}
/* ARCHIVE */
.ait-archive-hero{padding:60px 2rem 40px;background:linear-gradient(135deg,#0f172a 0%,#162044 50%,#1e293b 100%);text-align:center}
.ait-archive-hero-inner{max-width:1100px;margin:0 auto}
.ait-archive-title{font-size:2.2rem;font-weight:800;color:#fff;letter-spacing:-0.02em;margin-top:8px}
.ait-archive{padding:0 2rem 80px;background:#f8fafc}
.ait-archive-inner{max-width:1100px;margin:0 auto}
/* Category filter bar */
.ait-archive-filters{display:flex;flex-wrap:wrap;gap:8px;padding:32px 0 40px;border-bottom:1px solid #e2e8f0;margin-bottom:40px}
.ait-filter-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border-radius:100px;background:#fff;border:1px solid #e2e8f0;color:#475569;font-size:0.85rem;font-weight:500;text-decoration:none;transition:all 0.2s;cursor:pointer}
.ait-filter-btn:hover{border-color:#2563eb;color:#2563eb;background:#eff6ff}
.ait-filter-btn.active{background:#2563eb;color:#fff;border-color:#2563eb}
.ait-filter-count{font-size:0.75rem;background:rgba(0,0,0,0.08);padding:1px 7px;border-radius:100px}
.ait-filter-btn.active .ait-filter-count{background:rgba(255,255,255,0.2)}
/* Post cards */
.ait-archive-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}
.ait-archive-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;text-decoration:none;color:inherit;transition:all 0.3s}
.ait-archive-card:hover{border-color:#2563eb;box-shadow:0 10px 15px -3px rgba(0,0,0,0.08);transform:translateY(-3px)}
.ait-archive-thumb{aspect-ratio:16/10;overflow:hidden;background:#e2e8f0}
.ait-archive-thumb img{width:100%;height:100%;object-fit:cover;transition:transform 0.3s}
.ait-archive-card:hover .ait-archive-thumb img{transform:scale(1.03)}
.ait-archive-card-body{padding:20px 24px 24px;flex:1;display:flex;flex-direction:column}
.ait-archive-card-body h3{font-size:1.05rem;font-weight:700;color:#0f172a;margin-bottom:8px;line-height:1.4}
.ait-archive-card-body p{font-size:0.9rem;color:#64748b;line-height:1.6;flex:1;margin-bottom:12px}
.ait-archive-meta{font-size:0.8rem;color:#94a3b8;display:flex;align-items:center;gap:6px}
.ait-archive-empty{text-align:center;color:#64748b;padding:60px 0}
/* Pagination */
.ait-pagination{padding-top:40px;text-align:center}
.ait-pagination .nav-links{display:flex;justify-content:center;gap:8px}
.ait-pagination .page-numbers{padding:8px 16px;border-radius:8px;background:#fff;border:1px solid #e2e8f0;color:#475569;font-size:0.9rem;text-decoration:none;transition:all 0.2s}
.ait-pagination .page-numbers:hover,.ait-pagination .page-numbers.current{background:#2563eb;color:#fff;border-color:#2563eb}
@media(max-width:768px){
.ait-archive-grid{grid-template-columns:1fr}
.ait-archive-filters{gap:6px}
.ait-filter-btn{padding:6px 14px;font-size:0.8rem}
.ait-archive-title{font-size:1.6rem}
}
/* SINGLE POST */
.ait-single-hero{padding:60px 2rem 40px;background:linear-gradient(135deg,#0f172a 0%,#162044 50%,#1e293b 100%);text-align:center}
.ait-single-hero-inner{max-width:800px;margin:0 auto}
.ait-single-title{font-size:2.2rem;font-weight:800;color:#fff;letter-spacing:-0.02em;margin-top:8px;line-height:1.25}
.ait-single-meta{margin-top:16px;font-size:0.85rem;color:#94a3b8}
.ait-single-image{background:#fff;padding:0 2rem}
.ait-single-image-inner{max-width:800px;margin:0 auto;padding-top:40px}
.ait-single-image-inner img{width:100%;height:auto;border-radius:12px;box-shadow:0 10px 25px -5px rgba(0,0,0,0.1)}
.ait-single-content{padding:40px 2rem 60px;background:#fff}
.ait-single-content-inner{max-width:800px;margin:0 auto;font-size:1.05rem;line-height:1.85;color:#334155}
/* Plain WP content headings */
.ait-single-content-inner h2{font-size:1.5rem;font-weight:700;color:#0f172a;margin:40px 0 16px;padding-top:24px;border-top:1px solid #e2e8f0}
.ait-single-content-inner h2:first-child{border-top:none;padding-top:0;margin-top:0}
.ait-single-content-inner h3{font-size:1.2rem;font-weight:700;color:#0f172a;margin:28px 0 12px}
.ait-single-content-inner p{margin-bottom:18px}
.ait-single-content-inner a{color:#2563eb;text-decoration:underline;text-underline-offset:2px}
.ait-single-content-inner a:hover{color:#1d4ed8}
.ait-single-content-inner img{max-width:100%;height:auto;border-radius:8px;margin:20px 0}
.ait-single-content-inner ul,.ait-single-content-inner ol{margin:0 0 18px 24px}
.ait-single-content-inner li{margin-bottom:8px}
.ait-single-content-inner blockquote{border-left:4px solid #2563eb;padding:16px 24px;margin:24px 0;background:#f8fafc;border-radius:0 8px 8px 0;color:#475569;font-style:italic}
/* Elementor content inside single posts — override default widget sizing */
.ait-single-content-inner .elementor{max-width:100%}
.ait-single-content-inner .elementor-section{margin-bottom:0}
.ait-single-content-inner .elementor-section-wrap>.elementor-section,.ait-single-content-inner .e-con{max-width:100%;padding-left:0;padding-right:0}
/* Elementor headings: strong visual hierarchy */
.ait-single-content-inner .elementor-heading-title.elementor-size-default{font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;color:#0f172a;line-height:1.3}
.ait-single-content-inner h2.elementor-heading-title{font-size:1.45rem!important;font-weight:700!important;margin-top:40px!important;margin-bottom:16px!important;padding-top:28px!important;border-top:1px solid #e2e8f0!important}
.ait-single-content-inner h3.elementor-heading-title{font-size:1.2rem!important;font-weight:700!important;margin-top:28px!important;margin-bottom:12px!important}
.ait-single-content-inner h5.elementor-heading-title{font-size:1rem!important;font-weight:600!important;text-transform:uppercase;letter-spacing:0.05em;color:#64748b!important;margin-top:32px!important;margin-bottom:12px!important}
/* Elementor widget spacing — tighten the section gaps */
.ait-single-content-inner .elementor-widget{margin-bottom:0!important}
.ait-single-content-inner .elementor-element{margin-bottom:0!important}
.ait-single-content-inner .elementor-widget-heading{margin-bottom:0!important}
.ait-single-content-inner .elementor-widget-text-editor{margin-bottom:4px!important}
.ait-single-content-inner .elementor-widget-icon-list{margin-bottom:2px!important}
.ait-single-content-inner .elementor-column-gap-default>.elementor-column>.elementor-element-populated{padding:0!important}
.ait-single-content-inner .elementor-section{margin-bottom:0!important;padding:0!important}
.ait-single-content-inner .e-con{padding:0!important;--padding-top:0!important;--padding-bottom:0!important;--padding-left:0!important;--padding-right:0!important}
.ait-single-content-inner .e-con-inner{gap:0!important}
/* Elementor text editor widget */
.ait-single-content-inner .elementor-widget-text-editor{margin-bottom:8px}
.ait-single-content-inner .elementor-text-editor p{font-size:1.05rem;line-height:1.85;color:#334155;margin-bottom:18px}
/* Elementor icon list (check marks, bullets, etc.) */
.ait-single-content-inner .elementor-icon-list-items{list-style:none;margin:0;padding:0}
.ait-single-content-inner .elementor-icon-list-item{display:flex;align-items:center;gap:12px;margin-bottom:0;padding:10px 0;font-size:1rem;color:#334155;line-height:1.5}
.ait-single-content-inner .elementor-icon-list-icon{flex-shrink:0;width:22px;height:22px;display:flex;align-items:center;justify-content:center;background:#dcfce7;border-radius:50%;margin-top:0}
.ait-single-content-inner .elementor-icon-list-icon svg{width:12px;height:12px}
.ait-single-content-inner .elementor-icon-list-icon i{font-size:12px;color:#16a34a}
/* Elementor button */
.ait-single-content-inner .elementor-button{display:inline-flex;align-items:center;gap:8px;background:#2563eb;color:#fff!important;padding:14px 28px;border-radius:10px;text-decoration:none;font-weight:600;font-size:0.95rem;transition:all 0.2s;border:none}
.ait-single-content-inner .elementor-button:hover{background:#1d4ed8;transform:translateY(-1px)}
/* Elementor divider */
.ait-single-content-inner .elementor-divider{padding:8px 0}
.ait-single-content-inner .elementor-divider-separator{border-top:1px solid #e2e8f0!important}
/* Elementor image */
.ait-single-content-inner .elementor-image img{border-radius:8px;margin:8px 0}
/* Elementor fancy text */
.ait-single-content-inner .eael-fancy-text-container{font-size:1.25rem;color:#0f172a;font-weight:500;text-align:center}
/* Single post footer */
.ait-single-footer{padding:0 2rem 60px;background:#fff}
.ait-single-footer-inner{max-width:800px;margin:0 auto;padding-top:24px;border-top:1px solid #e2e8f0}
.ait-back-link{display:inline-flex;align-items:center;gap:8px;color:#2563eb;text-decoration:none;font-weight:600;font-size:0.95rem;transition:gap 0.2s}
.ait-back-link:hover{gap:12px;color:#1d4ed8}
@media(max-width:768px){
.ait-single-title{font-size:1.6rem}
.ait-single-content-inner{font-size:1rem}
.ait-single-content-inner .elementor-text-editor p{font-size:1rem}
}
/* CONTACT FORM 7 */
.wpcf7{max-width:600px}
.wpcf7 label{display:block;font-size:0.9rem;font-weight:600;color:#334155;margin-bottom:4px}
.wpcf7 input[type="text"],.wpcf7 input[type="email"],.wpcf7 textarea{width:100%;padding:12px 16px;border:1px solid #e2e8f0;border-radius:8px;font-size:0.95rem;font-family:inherit;background:#fff;color:#0f172a;transition:border-color 0.2s}
.wpcf7 input[type="text"]:focus,.wpcf7 input[type="email"]:focus,.wpcf7 textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,0.1)}
.wpcf7 textarea{min-height:160px;resize:vertical}
.wpcf7 p{margin-bottom:16px}
.wpcf7 input[type="submit"]{display:inline-flex;align-items:center;gap:8px;background:#2563eb;color:#fff;padding:12px 28px;border-radius:8px;border:none;font-weight:600;font-size:0.95rem;cursor:pointer;transition:background 0.2s}
.wpcf7 input[type="submit"]:hover{background:#1d4ed8}
.wpcf7-response-output{padding:12px 16px!important;border-radius:8px!important;font-size:0.9rem;margin:16px 0 0!important}
/* PAGE CONTENT (Elementor pages, Kontakt etc.) */
.page .elementor{max-width:100%}
.page .entry-content,.page .page-content{max-width:800px;margin:0 auto;padding:40px 2rem 60px}
/* FRONT PAGE — floating card repositioned */
.ait-floating-card{bottom:-16px;left:20px;right:auto}
/* Hide default theme elements */
.site-header,.site-footer,.entry-header,.page-header,.post-navigation{display:none!important}
.site-main{padding:0!important;margin:0!important}
/* RESPONSIVE */
@media(max-width:768px){
.ait-header-nav{display:none;position:absolute;top:72px;left:0;right:0;background:#0f172a;flex-direction:column;padding:16px;border-top:1px solid rgba(255,255,255,0.08);gap:4px}
.ait-header.menu-open .ait-header-nav{display:flex}
.ait-mobile-toggle{display:block}
.ait-hero h1{font-size:2rem}
.ait-services-grid{grid-template-columns:1fr}
.ait-approach-inner{grid-template-columns:1fr;gap:32px}
.ait-footer-top{grid-template-columns:1fr 1fr}
.ait-hero-stats{gap:24px}
.admin-bar .ait-header{top:46px}
}
