/* Shared core-block design system. These classes work in both WordPress editor and frontend. */
:root {
  --kowa-blue: #0f4880;
  --kowa-orange: #ea7711;
  --kowa-ink: #172d40;
  --kowa-muted: #52616d;
  --kowa-line: #dfe6eb;
  --kowa-surface: #f5f7f9;
  --kowa-radius: 14px;
  --kowa-width: 1200px;
}
.kowa-container { width: min(var(--kowa-width), calc(100% - 64px)); margin-inline: auto; }
.kowa-home { padding-block: 28px 0; }
.kowa-home, .editor-styles-wrapper { color: var(--kowa-ink); font-family: "Tahoma", "Arial", sans-serif; line-height: 1.9; }
.kowa-home img, .editor-styles-wrapper img { max-width: 100%; height: auto; }
.kowa-home p, .editor-styles-wrapper p { margin-block: 0 20px; }
.kowa-home .wp-block-heading, .editor-styles-wrapper .wp-block-heading { color: var(--kowa-blue); line-height: 1.5; font-weight: 700; margin-block: 0 24px; }
.kowa-home h2, .editor-styles-wrapper h2 { font-size: clamp(24px, 2.5vw, 34px); }
.kowa-home h3, .editor-styles-wrapper h3 { font-size: 21px; }
.kowa-section { padding-block: 64px; }
.kowa-section > h2::after, .kowa-areas > h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--kowa-orange); margin-top: 16px; }
.kowa-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; min-height: 500px; padding-block: 20px 38px; }
.kowa-hero-copy { padding-block: 24px; }
.kowa-hero-copy h1 { font-size: clamp(32px, 3.1vw, 46px); letter-spacing: -.7px; line-height: 1.5; }
.kowa-hero-copy h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--kowa-orange); margin-top: 24px; }
.kowa-hero-copy p { color: var(--kowa-muted); font-size: 17px; line-height: 2.1; }
.kowa-hero-image { margin: 0; align-self: stretch; min-height: 420px; border-radius: var(--kowa-radius); background: var(--kowa-surface); overflow: hidden; }
.kowa-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kowa-home .wp-block-buttons, .editor-styles-wrapper .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.kowa-home .wp-block-button__link, .editor-styles-wrapper .wp-block-button__link { background: var(--kowa-blue); color: white; border-radius: 8px; padding: 13px 28px; font: inherit; font-weight: 700; min-height: 48px; text-decoration: none; transition: background .15s; }
.kowa-home .wp-block-button__link:hover { background: #093562; }
.kowa-home :where(a,button):focus-visible { outline: 3px solid var(--kowa-orange); outline-offset: 5px; }
.kowa-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.kowa-service-card { position: relative; padding: 30px; border-radius: var(--kowa-radius); background: var(--kowa-surface); min-height: 180px; border: 1px solid var(--kowa-line); transition: border-color .15s, background .15s; }
.kowa-service-card:hover { background: #edf3f8; border-color: var(--kowa-blue); }
.kowa-service-card h3 { margin: 20px 0 0; font-size: 20px; padding-inline-end: 26px; }
.kowa-service-card a { color: var(--kowa-blue); text-decoration: none; }
.kowa-service-card a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kowa-service-card h3::after { content: "←"; color: var(--kowa-blue); position: absolute; inset-inline-end: 24px; bottom: 25px; }
.kowa-service-icon, .kowa-icon { margin: 0 0 18px; }
.kowa-service-icon img, .kowa-icon img { width: 48px; height: 48px; object-fit: contain; filter: brightness(0) saturate(100%) invert(52%) sepia(99%) saturate(1207%) hue-rotate(351deg) brightness(96%) contrast(91%); }
.kowa-areas { padding: 36px; background: var(--kowa-surface); border-radius: var(--kowa-radius); }
.kowa-city-links { gap: 12px; }
.kowa-city-link { flex: 1 1 130px; }
.kowa-city-link .wp-block-button__link { display: flex; align-items: center; justify-content: space-between; background: white; border: 1px solid var(--kowa-line); color: var(--kowa-blue); padding: 12px 18px; }
.kowa-city-link .wp-block-button__link::after { content: "←"; color: var(--kowa-orange); margin-inline-start: 12px; }
.kowa-city-link .wp-block-button__link:hover { color: white; }
.kowa-benefits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; margin-top: 36px; }
.kowa-benefit { padding-inline-end: 24px; border-inline-end: 1px solid var(--kowa-line); }
.kowa-benefit:last-child { border: 0; padding-inline-end: 0; }
.kowa-benefit p { color: var(--kowa-muted); font-size: 16px; line-height: 2; }
.kowa-reasons { border-top: 1px solid var(--kowa-line); }
.kowa-contact { border-radius: var(--kowa-radius); padding: 48px; background: var(--kowa-blue) url('../img/background_01.jpg.webp') center/cover; color: white; }
.kowa-contact .wp-block-heading { color: white; }
.kowa-contact p { max-width: 920px; margin: 0; }
.kowa-posts .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; list-style: none; padding: 0; }
.kowa-posts .wp-block-post-featured-image { margin: 0 0 18px; }
.kowa-posts .wp-block-post-featured-image img { width: 100%; aspect-ratio: 380/170; object-fit: cover; border-radius: 10px; }
.kowa-posts .wp-block-post-title { font-size: 18px; line-height: 1.7; margin: 0; }
.kowa-posts .wp-block-post-title a { color: var(--kowa-ink); text-decoration: none; }
.kowa-posts .wp-block-query-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 40px; }
.kowa-posts .wp-block-query-pagination a, .kowa-posts .page-numbers { display: inline-flex; padding: 8px 13px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--kowa-blue); border-radius: 6px; background: var(--kowa-surface); }
.kowa-posts .page-numbers.current { background: var(--kowa-blue); color: white; }
@media (max-width: 900px) {
 .kowa-hero { gap: 28px; }
 .kowa-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .kowa-benefits { gap: 24px; }
}
@media (max-width: 640px) {
 .kowa-container { width: calc(100% - 36px); }
 .kowa-home { padding-top: 8px; }
 .kowa-hero { grid-template-columns: 1fr; gap: 24px; padding-bottom: 16px; }
 .kowa-hero-copy { padding: 16px 0 0; }
 .kowa-hero-copy h1 { font-size: 30px; letter-spacing: -.4px; }
 .kowa-hero-copy p { font-size: 15px; line-height: 2; }
 .kowa-hero-image { height: 240px; min-height: 0; }
 .kowa-hero-copy .wp-block-button { width: 100%; }
 .kowa-hero-copy .wp-block-button__link { display: block; text-align: center; }
 .kowa-section { padding-block: 40px; }
 .kowa-service-grid, .kowa-benefits, .kowa-posts .wp-block-post-template { grid-template-columns: 1fr; }
 .kowa-service-grid { gap: 12px; }
 .kowa-service-card { min-height: 96px; display: flex; align-items: center; gap: 18px; padding: 20px; }
 .kowa-service-icon { margin: 0; flex: 0 0 44px; }
 .kowa-service-card h3 { font-size: 18px; margin: 0; }
 .kowa-service-card h3::after { bottom: auto; top: 32px; }
 .kowa-areas { padding: 24px 18px; }
 .kowa-city-link { flex-basis: calc(50% - 12px); }
 .kowa-benefit { border-inline-end: 0; border-bottom: 1px solid var(--kowa-line); padding: 0 0 20px; }
 .kowa-benefit:last-child { padding-bottom: 0; }
 .kowa-contact { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { .kowa-home * { transition: none !important; scroll-behavior: auto !important; } }
/* Photo-led service cards, using existing WordPress media. */
.kowa-service-card { padding: 0 0 22px; overflow: hidden; background: white; }
.kowa-service-photo { margin: 0 0 20px; }
.kowa-service-photo img { display: block; width: 100%; height: 185px; object-fit: cover; }
.kowa-service-card .kowa-service-icon { float: right; margin: 0 20px 0 14px; }
.kowa-service-card .kowa-service-icon img { width: 32px; height: 32px; }
.kowa-service-card h3 { margin: 0; padding-inline: 20px 42px; min-height: 60px; display: flex; align-items: center; font-size: 19px; }
.kowa-team-image { margin: 36px auto 0; width: 220px; }
.kowa-team-image img { display: block; width: 100%; height: auto; }
@media (max-width:640px) {
 .kowa-service-card { padding: 0; min-height: 106px; gap: 0; }
 .kowa-service-photo { flex: 0 0 105px; margin: 0; align-self: stretch; }
 .kowa-service-photo img { width: 105px; height: 100%; min-height: 106px; }
 .kowa-service-card .kowa-service-icon { position: absolute; inset-inline-end: 14px; top: 12px; margin: 0; }
 .kowa-service-card .kowa-service-icon img { width: 20px; height: 20px; }
 .kowa-service-card h3 { padding: 14px 16px 14px 34px; font-size: 16px; min-height: 106px; }
 .kowa-service-card h3::after { top: auto; bottom: 12px; inset-inline-end: 16px; }
}
/* Classic themes add an inner container to core Group blocks on render. */
.kowa-hero > .wp-block-group__inner-container,
.kowa-service-grid > .wp-block-group__inner-container,
.kowa-benefits > .wp-block-group__inner-container,
.kowa-service-card > .wp-block-group__inner-container { display: contents; }

/* Unified editorial hero: editable image and text share a single surface. */
.kowa-hero { position:relative; isolation:isolate; background:#f5f4f0; border-radius:24px; overflow:hidden; gap:0; padding:0; min-height:560px; grid-template-columns:1.05fr 1fr; }
.kowa-hero-copy { position:relative; z-index:2; padding:48px 46px; }
.kowa-hero-copy h1 { font-size:clamp(30px,3vw,43px); line-height:1.55; letter-spacing:-.5px; }
.kowa-hero-copy h1::after { width:40px; height:3px; margin-top:20px; }
.kowa-hero-copy p { font-size:16px; line-height:2; color:#4a5964; }
.kowa-hero-image { position:relative; border-radius:0; min-height:100%; margin:0; }
.kowa-hero-image::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(to left,#f5f4f0 0%,#f5f4f000 30%); }
.kowa-hero-image img { height:100%; object-fit:cover; object-position:55% center; }
.kowa-hero .wp-block-button__link { min-width:180px; text-align:center; border-radius:8px; }
@media(max-width:991px) {
 .kowa-home { padding-top:12px; }
 .kowa-hero { width:calc(100% - 24px); grid-template-columns:1fr; border-radius:18px; }
 .kowa-hero-copy { padding:28px 24px 20px; }
 .kowa-hero-copy h1 { font-size:28px; line-height:1.6; }
 .kowa-hero-copy p { font-size:14px; line-height:2; margin-bottom:22px; }
 .kowa-hero-image { height:235px; min-height:0; }
 .kowa-hero-image::after { background:linear-gradient(to bottom,#f5f4f0 0%,#f5f4f000 38%); }
 .kowa-hero-image img { object-position:center 60%; }
 .kowa-hero-copy .wp-block-button { width:auto; }
 .kowa-hero-copy .wp-block-buttons { justify-content:flex-start; }
}

/* Generated service imagery with editable Arabic labels, not baked-in text. */
.kowa-service-visual { position: relative; margin: 0 0 20px; }
.kowa-service-visual .kowa-service-photo { margin: 0; }
.kowa-service-visual .kowa-service-photo img { height: 250px; width: 100%; object-fit: cover; }
.kowa-home .kowa-photo-label, .editor-styles-wrapper .kowa-photo-label { position: absolute; top: 12px; right: 12px; max-width: 74%; margin: 0; padding: 9px 13px; background: #fffffff2; color: #0f4880; border-radius: 8px; font-size: 13px; line-height: 1.7; box-shadow: 0 3px 14px #102d4210; pointer-events: none; }
.kowa-photo-label strong { display: inline-block; font-size: 16px; letter-spacing: .7px; }
.kowa-benefits-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: stretch; }
.kowa-benefits-split > .wp-block-group__inner-container { display: contents; }
.kowa-benefits-copy .kowa-benefits { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.kowa-benefits-copy .kowa-benefit { padding: 0; border: 0; }
.kowa-benefits-copy .kowa-icon { float: right; margin: 0 0 0 16px; }
.kowa-benefits-copy .kowa-icon img { width: 32px; height: 32px; }
.kowa-benefits-copy .kowa-benefit h3 { margin-bottom: 10px; }
.kowa-benefits-copy .kowa-benefit p { font-size: 15px; }
.kowa-benefits-split .kowa-team-image { margin: 0; width: 100%; height: 100%; min-height: 480px; border-radius: 18px; overflow: hidden; }
.kowa-benefits-split .kowa-team-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.kowa-contact { background: #eaf1f7; color: #253f55; border: 1px solid #dbe6ef; }
.kowa-contact .wp-block-heading { color: #0f4880; }
.kowa-city-links .kowa-city-link { flex: 0 1 calc(25% - 9px); }
.kowa-city-links .wp-block-button__link { height: 100%; font-size: 15px; }
@media (max-width: 900px) {
 .kowa-benefits-split { grid-template-columns: 1fr; gap: 24px; }
 .kowa-benefits-split .kowa-team-image { height: 360px; min-height: 0; }
 .kowa-city-links .kowa-city-link { flex-basis: calc(50% - 6px); }
}
@media (max-width: 640px) {
 .kowa-service-card { display: block; padding-bottom: 16px; }
 .kowa-service-visual { margin-bottom: 16px; }
 .kowa-service-visual .kowa-service-photo img { height: 240px; min-height: 0; width: 100%; }
 .kowa-service-card .kowa-service-icon { position: static; float: right; margin: 10px 16px 0 10px; }
 .kowa-service-card h3 { min-height: 48px; padding: 0 16px 0 34px; }
 .kowa-service-card h3::after { bottom: 25px; }
 .kowa-benefits-split .kowa-team-image { height: 280px; }
 .kowa-city-links .wp-block-button__link { font-size: 13px; padding: 12px; }
}

/* Full-width homepage, with comfortable internal spacing instead of a capped canvas. */
.kowa-home { width:90%; max-width:none; margin-inline:auto; padding-top:0; }
.kowa-home .kowa-container { box-sizing: border-box; width: 100%; max-width: none; margin-inline: 0; padding-inline: clamp(20px, 3vw, 56px); }
.kowa-home .kowa-areas, .kowa-home .kowa-contact { border-radius: 0; }
.kowa-home .kowa-hero { display: grid; grid-template-columns: 1fr; position: relative; width: 100%; min-height: max(640px, calc(100svh - 110px)); border-radius: 0; padding: 0; overflow: hidden; }
.kowa-home .kowa-hero-copy { grid-area: 1 / 1; align-self: center; width: min(760px, 56%); box-sizing: border-box; padding: clamp(32px, 5vw, 80px); z-index: 2; }
.kowa-home .kowa-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; border-radius: 0; z-index: 0; }
.kowa-home .kowa-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.kowa-home .kowa-hero-image::after { background: linear-gradient(to left, #f5f4f0fa 0%, #f5f4f0e8 35%, #f5f4f033 68%, transparent 100%); }
/* Preserve the whole image so the baked-in title and corner labels are never cropped. */
.kowa-home .kowa-service-visual .kowa-service-photo img { width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 2; object-fit: contain; }
.kowa-home .kowa-service-card { display: block; padding: 0 0 18px; }
.kowa-home .kowa-service-card h3 { padding: 0 20px 0 42px; min-height: 52px; }
.kowa-home .kowa-service-card h3::after { top: auto; bottom: 30px; }
@media (max-width: 991px) {
 .kowa-home .kowa-hero { min-height: max(760px, calc(100svh - 160px)); }
 .kowa-home .kowa-hero-copy { width: 100%; max-width: 700px; align-self: start; padding: 32px 24px 300px; }
 .kowa-home .kowa-hero-image img { object-position: 30% center; }
 .kowa-home .kowa-hero-image::after { background: linear-gradient(to bottom, #f5f4f0 0%, #f5f4f0f5 38%, #f5f4f080 60%, transparent 85%); }
}

/* Keep the mobile hero action fully visible below the editable introduction. */
@media(max-width:991px) {
 .kowa-home .kowa-hero { min-height:0; grid-template-columns:1fr; }
 .kowa-home .kowa-hero-copy { grid-area:1 / 1; padding:30px 24px 24px; max-width:none; }
 .kowa-home .kowa-hero-image { grid-area:2 / 1; position:relative; inset:auto; height:auto; width:100%; }
 .kowa-home .kowa-hero-image img { height:auto; width:100%; object-fit:contain; }
 .kowa-home .kowa-hero-image::after { display:none; }
}
/* Service arrows sit immediately beside the title, within its own row. */
.kowa-home .kowa-service-card h3 { display:flex; justify-content:center; align-items:center; text-align:center; gap:12px; padding-inline:20px; }
.kowa-home .kowa-service-card h3::after { content:'←'; position:static; flex:0 0 38px; display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; color:#0f4880; background:#eaf1f7; font-size:22px; transition:transform .2s, background .2s; }
.kowa-home .kowa-service-card:hover h3::after,.kowa-home .kowa-service-card:focus-within h3::after { transform:translateX(-4px) rotate(-45deg); background:#dceaf5; }
.kowa-home .kowa-city-link .wp-block-button__link { border-radius:12px; gap:12px; transition:background .2s, border-color .2s, color .2s; }
.kowa-home .kowa-city-link .wp-block-button__link::after { content:'←'; display:inline-flex; flex:0 0 30px; width:30px; height:30px; align-items:center; justify-content:center; border-radius:50%; color:#0f4880; background:#edf3f8; margin:0; transition:transform .2s, background .2s; }
.kowa-home .kowa-city-link .wp-block-button__link:hover::after,.kowa-home .kowa-city-link .wp-block-button__link:focus-visible::after { transform:translateX(-3px); background:#fff; }

