/*
Theme Name: برهان: أصيل
Description: تصميم بهوية المكتب نفسه: أخضر شعاره الداكن وذهبه، وصوره الحقيقية كبيرة، وخط القاهرة، ومساحات واسعة. مبني على «برهان: الأساس» ويعمل مع إضافة «برهان للمكاتب».
Template: burhan-base
Version: 1.0.26
Requires at least: 6.5
Requires PHP: 8.1
Author: Future Edge
Text Domain: burhan-asil
License: Proprietary
*/
/* The office's own identity: the deep green and gold of its logo, its photographs large, Kufi headings like its
   wordmark (now Cairo, at the office's request). Green is the office's brand colour here, chosen by the office (Burhan's own designs avoid it). */
:root {
  --asil-green: var(--wp--preset--color--accent, #24392c);
  --asil-night: var(--wp--preset--color--night, #16241b);
  --asil-gold: var(--wp--preset--color--gold, #b9a548);
  --asil-gold-deep: var(--wp--preset--color--gold-deep, #7f6d22);
  --asil-ivory: var(--wp--preset--color--soft, #f2eee2);
  --asil-line: var(--wp--preset--color--line, #e2dbc8);
  --asil-wide: 1200px;
}
/* Cairo for everything, from the design's own files (one variable file per script covers every weight) */
@font-face { font-family: "Cairo Asil"; font-weight: 200 1000; font-display: swap; src: url(assets/fonts/cairo-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Cairo Asil"; font-weight: 200 1000; font-display: swap; src: url(assets/fonts/cairo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --asil-font: "Cairo Asil", "Cairo", Tahoma, sans-serif; }
body, button, input, select, textarea, .wp-block-navigation, .wp-element-button { font-family: var(--asil-font) !important; }
h1, h2, h3, h4, h5, h6, .wp-block-site-title { font-family: var(--asil-font) !important; }
body { font-size: 1.04rem; line-height: 1.9; }
/* sections meet edge to edge, under the header too */
.wp-site-blocks > main, main.wp-block-group > * { margin-block-start: 0 !important; }
.burhan-section > * { max-width: var(--asil-wide); }

/* ---- header: the night green band, gold actions */
.burhan-asil-header { border-bottom: 1px solid rgba(185, 165, 72, .35); }
.burhan-asil-header .wp-block-site-title, .burhan-asil-header .wp-block-site-title a { color: #fff; font-size: 1.15rem; white-space: nowrap; text-decoration: none; }
/* The office's full name is long: on phones it wraps to two lines beside the logo instead of running off the screen */
@media (max-width: 600px) {
  .burhan-asil-header .burhan-asil-brand { min-width: 0; flex: 1 1 auto; }
  .burhan-asil-header .wp-block-site-title { min-width: 0; flex: 1 1 auto; }
  .burhan-asil-header .wp-block-site-title, .burhan-asil-header .wp-block-site-title a { white-space: normal; font-size: .92rem; line-height: 1.35; }
}
.burhan-asil-header .wp-block-navigation a { color: #e9e4d2; font-weight: 500; padding-block: 6px; border-bottom: 1px solid transparent; }
.burhan-asil-header .wp-block-navigation a:hover, .burhan-asil-header .wp-block-navigation a:focus-visible { color: var(--asil-gold); border-bottom-color: var(--asil-gold); }
.burhan-asil-header .burhan-logo:not([class*="burhan-logo--"]), .burhan-asil-footer .burhan-logo:not([class*="burhan-logo--"]) { filter: drop-shadow(0 0 0 transparent); background: #fbfaf6; border-radius: 50%; padding: 5px; box-sizing: content-box; }
/* The office's own versions for dark bands: the compact emblem (larger letters) in the header, the emblem with its letters in the footer */
.burhan-asil-header .burhan-logo--compact-dark { height: 64px; max-height: none; width: auto; }
@media (max-width: 600px) { .burhan-asil-header .burhan-logo--compact-dark { height: 54px; } }
.burhan-asil-header .burhan-logo-link, .burhan-asil-footer .burhan-logo-link { flex-shrink: 0; }
.burhan-asil-footer .burhan-logo--dark { height: 120px; max-height: none; width: auto; }
.burhan-asil-header .wp-block-navigation__responsive-container-open svg { fill: #fff; }
@media (min-width: 1100px) { .burhan-asil-header { flex-wrap: nowrap !important; } }

/* ---- hero: the office's own reception, under green from the text side */
.burhan-asil-hero { position: relative; isolation: isolate; color: #fff; min-height: min(78vh, 720px); display: grid; align-content: end;
  background: var(--asil-night) var(--burhan-cover, none) center 88% / cover no-repeat; }
.burhan-asil-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgba(22, 36, 27, .97) 0%, rgba(22, 36, 27, .9) 45%, rgba(22, 36, 27, .62) 75%, rgba(22, 36, 27, .5) 100%),
              linear-gradient(to top, rgba(22, 36, 27, .9), rgba(22, 36, 27, 0) 45%); }
.burhan-asil-hero-inner { width: 100%; max-width: var(--asil-wide); margin-inline: auto; padding: clamp(72px, 10vw, 140px) 24px 36px; box-sizing: border-box; }
.burhan-asil-hero-inner > * { max-width: 640px; }
.burhan-asil-eyebrow { color: var(--asil-gold); font-weight: 700; letter-spacing: .03em; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.burhan-asil-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--asil-gold); }
h1.burhan-asil-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; line-height: 1.4; margin: 0 0 18px; }
.burhan-asil-hero-inner > p:not(.burhan-asil-eyebrow) { color: #d9dccf; margin: 0 0 30px; font-size: 1.02rem; }
.burhan-asil-hero-actions { gap: 12px; }
.burhan-asil-hero .is-style-outline .wp-block-button__link { color: #fff !important; border: 1px solid rgba(255, 255, 255, .6); background: transparent; }
.burhan-asil-hero .is-style-outline .wp-block-button__link:hover { border-color: var(--asil-gold); color: var(--asil-gold) !important; }
.wp-element-button, .wp-block-button__link { padding: 14px 30px; letter-spacing: .01em; transition: filter .15s, border-color .15s, color .15s; }
.wp-block-button__link:hover { filter: brightness(1.07); }
/* the slider: the office's photographs, one fading into the next behind the hero's text */
.burhan-asil-hero:has(.burhan-slider) { background-image: none; }
.burhan-slider { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.burhan-slide { position: absolute; inset: 0; margin: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 7s linear; }
.burhan-slide.is-on { opacity: 1; transform: scale(1); }
.burhan-slide:first-child { background-position: center 88%; }
.burhan-slider-dots { position: absolute; z-index: 2; inset-inline-end: max(24px, calc((100% - var(--asil-wide)) / 2 + 24px)); bottom: 44px; display: flex; gap: 8px; }
.burhan-slider-dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; }
.burhan-slider-dots button[aria-current="true"] { background: var(--asil-gold); }
.burhan-slider-dots button:focus-visible { outline: 2px solid var(--asil-gold); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .burhan-slide { transition: none; transform: none; } }
/* the office's figures on a glass strip at the foot of the photograph */
.burhan-asil-facts { width: 100%; max-width: var(--asil-wide); margin: 0 auto; padding: 0 24px 40px; box-sizing: border-box; }
.burhan-asil-facts .burhan-stats { max-width: 640px; gap: 0; border-top: 1px solid rgba(185, 165, 72, .5); }
.burhan-asil-facts .burhan-stats div { background: none; text-align: start; padding: 18px 0 0; border-radius: 0; }
.burhan-asil-facts .burhan-stats dt { color: var(--asil-gold); font-family: var(--asil-font); font-weight: 700; font-size: 2.3em; }
.burhan-asil-facts .burhan-stats dd { color: #cfd3c6; }

/* ---- section furniture */
.burhan-asil-kicker { color: var(--asil-gold-deep); font-weight: 700; font-size: .92rem; letter-spacing: .04em; margin: 0 0 6px; display: flex; align-items: center; gap: 12px; }
.burhan-asil-kicker::before { content: ""; width: 28px; height: 1px; background: var(--asil-gold); }
.burhan-asil-center { justify-content: center; }
.burhan-asil-center::after { content: ""; width: 28px; height: 1px; background: var(--asil-gold); }
.burhan-section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 30px; }

/* ---- about: words beside a photograph of the office */
.burhan-asil-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.burhan-asil-split-text > p { color: #3d4640; max-width: 62ch; }
.burhan-asil-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--asil-line); }
.burhan-asil-values h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--asil-green); }
.burhan-asil-values h3::before { content: ""; display: block; width: 22px; height: 2px; background: var(--asil-gold); margin-bottom: 12px; }
.burhan-asil-values p { margin: 0; font-size: .94rem; color: #5c665f; line-height: 1.8; }
.burhan-asil-split-photo .burhan-gallery { display: block; }
.burhan-asil-split-photo .burhan-gallery img { aspect-ratio: 4 / 5; border-radius: 2px; box-shadow: 24px 24px 0 -2px var(--asil-ivory), 24px 24px 0 0 var(--asil-gold); }
.burhan-asil-split-photo .burhan-gallery figcaption { display: none; }

/* ---- practice areas: white cards on ivory, a gold line on hover */
.burhan-asil-services .burhan-services { --b-accent: var(--asil-green); gap: 14px; }
/* Three cards a row; a short last row sits in the middle */
.burhan-asil-services .burhan-services-described { display: flex; flex-wrap: wrap; justify-content: center; }
.burhan-asil-services .burhan-services-described > li { flex: 0 1 calc((100% - 28px) / 3); box-sizing: border-box; }
@media (max-width: 960px) { .burhan-asil-services .burhan-services-described > li { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 620px) { .burhan-asil-services .burhan-services-described > li { flex-basis: 100%; } }
.burhan-asil-services .burhan-service { border: 1px solid var(--asil-line); border-radius: 2px; padding: 26px 24px; background: #fff; position: relative; align-items: flex-start; overflow: hidden; }
.burhan-asil-services .burhan-service::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--asil-gold); transform: scaleX(0); transition: transform .25s; transform-origin: right; }
.burhan-asil-services .burhan-service:hover { box-shadow: none; }
.burhan-asil-services .burhan-service:hover::after { transform: scaleX(1); }
.burhan-asil-services .burhan-service-icon { background: var(--asil-green); color: var(--asil-gold); border-radius: 50%; width: 50px; height: 50px; }
.burhan-asil-services .burhan-service-text strong { color: var(--asil-green); font-size: 1.05rem; }

/* ---- lawyers on the office's green */
.burhan-asil-team h2 { color: #fff; }
.burhan-asil-team .burhan-asil-kicker { color: var(--asil-gold); }
.burhan-asil-team.burhan-motif::before { filter: invert(1); opacity: .05; }
.burhan-asil-team .burhan-lawyers { --b-accent: var(--asil-green); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; } /* the cards share the full width, however many lawyers */
.burhan-asil-team .burhan-avatar-photo, .burhan-asil-team .burhan-lawyer > .burhan-avatar { flex: none; }
.burhan-asil-team .burhan-lawyer { border: 0; border-top: 3px solid var(--asil-gold); border-radius: 2px; padding: 26px; }
.burhan-asil-team .burhan-avatar-photo { width: 88px; height: 88px; }
.burhan-asil-team .burhan-avatar { background: var(--asil-green); color: var(--asil-gold); font-family: var(--asil-font); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--asil-gold); }
.burhan-asil-team .burhan-lawyer h3 a { color: var(--asil-green); }
.burhan-asil-team .burhan-lawyer-role { color: var(--asil-gold-deep); }
.burhan-asil-team .burhan-lawyer-more { color: var(--asil-green) !important; }

/* ---- the office in photographs */
.burhan-asil-gallery .burhan-gallery { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.burhan-asil-gallery .burhan-gallery img { aspect-ratio: 3 / 4; border-radius: 2px; }
.burhan-asil-gallery .burhan-gallery figcaption { color: #5c665f; margin-top: 8px; }

/* ---- booking: green card beside the form */
.burhan-asil-book-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border: 1px solid var(--asil-line); background: #fff; }
.burhan-asil-book-side { background: var(--asil-green); color: #e6e8de; padding: clamp(28px, 4vw, 48px); }
.burhan-asil-book-side h2 { color: #fff; margin-bottom: 16px; }
.burhan-asil-book-side .burhan-asil-kicker { color: var(--asil-gold); }
.burhan-asil-book-side a { color: var(--asil-gold); }
.burhan-asil-contact-line { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(185, 165, 72, .4); font-size: .95rem; }
.burhan-asil-book-form { padding: clamp(24px, 4vw, 44px); }
.burhan-asil-book .burhan-booking, .burhan-lawyer-page { --b-accent: var(--asil-green); --b-soft: var(--asil-ivory); --b-radius: 3px; }
.burhan-btn:not(.burhan-btn-ghost) { background: var(--asil-gold) !important; color: var(--asil-night) !important; }
.burhan-asil-actions .burhan-btn-ghost { background: transparent !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .45) !important; padding: 11px 22px; }
.burhan-asil-actions .burhan-btn-ghost:hover { border-color: var(--asil-gold) !important; color: var(--asil-gold) !important; }
.burhan-time input:checked + span, .burhan-mode input:checked + span { background: var(--asil-green) !important; color: #fff !important; border-color: var(--asil-green) !important; }

/* ---- footer */
.burhan-asil-footer { border-top: 3px solid var(--asil-gold); }
.burhan-asil-footer::before { display: none; }
.burhan-asil-footer .wp-block-site-title, .burhan-asil-footer .wp-block-site-title a { color: #fff; font-size: 1.2rem; text-decoration: none; }
.burhan-asil-foot-title { color: var(--asil-gold); font-weight: 700; margin-bottom: 8px; }
.burhan-asil-footer p { color: #c9cdc0; }
.burhan-asil-footer a { color: #e9e4d2; }
.burhan-asil-muted { font-size: .94rem; }
.burhan-asil-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #9aa196 !important; }

/* ---- inner pages: a green title band */
body:not(.home) main > .wp-block-post-title, body:not(.home) .burhan-section > .wp-block-post-title { color: var(--asil-green); }
.burhan-lawyer-page .burhan-lp-hero { background: linear-gradient(135deg, #fff 55%, var(--asil-ivory)); border-color: var(--asil-line); border-top: 3px solid var(--asil-gold); border-radius: 2px; }
.burhan-lawyer-page .burhan-lp-initial { background: var(--asil-green); color: var(--asil-gold); }
.burhan-lawyer-page h1 { color: var(--asil-green); font-family: var(--asil-font); }

/* ---- phones */
@media (max-width: 860px) {
  .burhan-asil-split, .burhan-asil-book-card { grid-template-columns: 1fr; }
  .burhan-asil-split-photo { order: -1; }
  .burhan-asil-split-photo .burhan-gallery img { aspect-ratio: 4 / 3; box-shadow: 12px 12px 0 -2px var(--asil-ivory), 12px 12px 0 0 var(--asil-gold); }
  .burhan-asil-values { grid-template-columns: 1fr; gap: 16px; }
  .burhan-asil-hero { min-height: 0; }
  .burhan-asil-hero::before { background: linear-gradient(to top, rgba(22, 36, 27, .97) 35%, rgba(22, 36, 27, .7) 75%, rgba(22, 36, 27, .45)); }
  .burhan-asil-hero-inner { padding-top: 120px; }
  .burhan-asil-actions .burhan-btn-ghost { display: none; }
  .burhan-slider-dots { bottom: auto; top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .burhan-asil-services .burhan-service::after { transition: none; } }

/* ---- contact page: two cards side by side (للتواصل, أوقات العمل), the map below */
.burhan-contact-page { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: stretch; margin-block: 8px 28px; }
@media (max-width: 780px) { .burhan-contact-page { grid-template-columns: 1fr; } }
.burhan-contact-card { background: #fff; border: 1px solid var(--asil-line); border-top: 3px solid var(--asil-gold); border-radius: 2px; padding: 26px 28px; }
.burhan-contact-card h2 { font-size: 1.3rem; margin: 0 0 18px; }
.burhan-contact-card .burhan-contact { margin: 0; }
.burhan-contact-card .burhan-direct > p { display: none; }
.burhan-contact-card .burhan-direct-actions a[href^="tel:"] span[dir="ltr"] { display: none; }
.burhan-contact-card .burhan-contact-details { margin-top: 20px; gap: 0 24px; grid-template-columns: auto auto; justify-content: start; }
.burhan-contact-card .burhan-contact-details li:first-child { grid-column: 1 / -1; }
@media (min-width: 1200px) { .burhan-contact-card .burhan-contact-details li:first-child { white-space: nowrap; } } /* the address on one line where it fits */ /* the address across; the phone and the email side by side */
.burhan-contact-card .burhan-contact-details li { padding: 10px 0; border-top: 1px solid var(--asil-line); }
.burhan-contact-card .burhan-hours { gap: 0; }
.burhan-contact-card .burhan-hours div { padding: 12px 0; border-bottom: 1px solid var(--asil-line); align-items: baseline; }
.burhan-contact-card .burhan-hours div:first-child { padding-top: 0; }
.burhan-hours dd span { display: block; }
.burhan-contact-card .burhan-hours dd { text-align: end; }
.burhan-contact-card .burhan-hours-note { margin-top: 12px; }
/* the live map: a framed Google map the width of the content, the directions button under it */
.burhan-map-live { margin: 0; }
.burhan-map-live iframe { display: block; width: 100%; height: 460px; border: 1px solid var(--asil-line); border-top: 3px solid var(--asil-gold); border-radius: 2px; background: #eee; }
@media (max-width: 600px) { .burhan-map-live iframe { height: 320px; } }
.burhan-map-live figcaption { margin-top: 14px; justify-content: flex-start; }
.burhan-map-live figcaption .burhan-btn { margin: 0; }
/* the contact cards and the map as wide as the other sections */
.burhan-contact-page.alignwide, .burhan-map-live.alignwide { max-width: min(1200px, 100%) !important; }
.burhan-asil-gallery .burhan-map-tile iframe { aspect-ratio: 3 / 4; border-radius: 2px; }
/* a page's title band (the «about» page): the home page's dark band, shorter */
.burhan-asil-page-hero { min-height: 0; }
.burhan-asil-page-hero .burhan-asil-hero-inner { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 20px; }
.burhan-asil-page-hero .burhan-asil-hero-inner > p { margin-bottom: 8px; }
.burhan-asil-page-body { padding-top: clamp(40px, 5vw, 64px); }

/* section headers (the gold line and the heading): on the right, at the edge of the content under them */
.burhan-section > .burhan-asil-kicker, .burhan-section > h2 { margin-inline: auto !important; box-sizing: border-box; text-align: start !important; }
.burhan-section > .burhan-asil-kicker.burhan-asil-center { justify-content: flex-start; }
.burhan-section > .burhan-asil-kicker.burhan-asil-center::after { display: none; }
/* the home page has its own «احجز استشارة» in the hero and a booking section: one in the header would repeat it */
/* text pages (privacy): headings in proportion to the text, with room above */
.burhan-asil-page-body .wp-block-post-content > h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.burhan-asil-page-body .wp-block-post-content > h2:first-child { margin-top: 0; }
/* the privacy policy: a short line, then each subject as a card, two by two */
.burhan-policy.alignwide { max-width: min(1200px, 100%) !important; }
.burhan-policy-intro { font-size: 1.05rem; color: #3d4640; margin: 0 0 24px; }
.burhan-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 700px) { .burhan-policy-grid { grid-template-columns: 1fr; } }
.burhan-policy-card { background: #fff; border: 1px solid var(--asil-line); border-top: 3px solid var(--asil-gold); border-radius: 2px; padding: 24px 26px; }
.burhan-policy-card h2 { font-size: 1.2rem; margin: 0 0 10px; color: var(--asil-green); }
.burhan-policy-card p { margin: 0; line-height: 1.9; color: #3d4640; }
/* the opening band fits the screen: its column may shrink, the three facts share the width, the buttons wrap */
.burhan-asil-hero { grid-template-columns: minmax(0, 1fr); }
.burhan-asil-facts .burhan-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.burhan-asil-hero-actions { flex-wrap: wrap; }
@media (max-width: 480px) { .burhan-asil-facts .burhan-stats dt { font-size: 1.8em; } .burhan-asil-facts .burhan-stats dd { font-size: .85em; } }
/* phones: one 20px margin for every section (not the section's and its content's added together); a lawyer's photo above the text */
@media (max-width: 600px) {
  .burhan-section { padding-inline: 20px !important; }
  .burhan-section > * { padding-inline: 0 !important; }
  .burhan-lawyer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .burhan-contact-card .burhan-contact-details { grid-template-columns: 1fr; }
  .burhan-contact-card, .burhan-policy-card { padding: 20px; }
}
/* the phone menu fills the screen: the header's blur would otherwise hold it to the header's size */
.burhan-header:has(.wp-block-navigation__responsive-container.is-menu-open) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
