/*
Theme Name: Dr Shadi Faraj
Description: Block theme for drshadifaraj.com — the "Minimal" design (Option 4). Quiet, precise, staff-editable.
Version: 1.0.2
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: shadi-faraj
*/

/* ---------- Navigation & UX requirements (see PRODUCT-SPEC §4) ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html:has(body.admin-bar) { scroll-padding-top: 122px; } /* + 32px WordPress toolbar when logged in */
.sf-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--line); }
/* Blur lives on a background layer: backdrop-filter on the header itself would trap the full-screen mobile menu inside the header's 60px box. */
.sf-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); }
.admin-bar .sf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sf-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .sf-header { top: 0; } }

/* ---------- Layout ---------- */
body { margin: 0; }
.wp-site-blocks { padding: 0; }
.sf-inner, .sf-nav-row { max-width: 1140px; margin-left: auto !important; margin-right: auto !important; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.sf-inner > * { margin-block: 0; }
.sf-main { margin-top: 0 !important; }
.sf-section { padding: 110px 0; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0 !important; }

/* ---------- Header ---------- */
.sf-nav-row { padding-top: 16px; padding-bottom: 16px; gap: 22px; }
.sf-logo { margin: 0; white-space: nowrap; font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.sf-logo a { text-decoration: none; }
.sf-nav-right { gap: 22px; }
.sf-menu { font-size: 14px; font-weight: 500; gap: 22px; }
.sf-menu a { text-decoration: none; }
.sf-menu a:hover { color: var(--wp--preset--color--blue); }
/* Mobile full-screen menu */
.sf-menu .sf-mobile-only { display: none; } /* "Home" — only in the hamburger menu; on desktop the logo does this */
.sf-menu .wp-block-navigation__responsive-container.is-menu-open .sf-mobile-only { display: flex; }
.sf-menu .wp-block-navigation__responsive-container.is-menu-open { padding: 20px 24px; --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; text-align: left; }
.sf-menu .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; align-items: flex-start; gap: 0; }
.sf-menu .is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 0; width: 100%; }
.sf-menu .is-menu-open .wp-block-navigation-item { width: 100%; font-size: 22px; font-weight: 500; letter-spacing: -.3px; border-bottom: 1px solid var(--wp--preset--color--line); }
.sf-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { display: block; width: 100%; padding: 16px 0; }
.sf-book .wp-block-button__link { padding: 12px 24px; white-space: nowrap; }
@media (max-width: 960px) { .sf-menu { gap: 14px; font-size: 13px; } .sf-nav-right { gap: 14px; } }
@media (max-width: 600px) { .sf-nav-row, .sf-nav-right { gap: 12px; } .sf-logo { font-size: 18px; } .sf-book .wp-block-button__link { padding: 9px 14px; font-size: 13px; } }
@media (max-width: 400px) { .sf-nav-right .sf-book.wp-block-buttons { display: none; } } /* menu still has Contact; avoids overflow on very small phones */

/* ---------- Type ---------- */
.sf-k { font-size: 12px; color: var(--wp--preset--color--blue); font-weight: 600; letter-spacing: 1px; margin-bottom: 26px !important; }
.sf-section h2 { font-size: 40px; letter-spacing: -1.2px; margin-bottom: 22px !important; }
.sf-lede { font-size: 18px; color: var(--wp--preset--color--muted); max-width: 600px; }
.sf-lede a { color: var(--wp--preset--color--ink); }

/* ---------- Hero ---------- */
.sf-hero { padding-top: 120px; border-bottom: 0; }
.sf-hero h1 { font-size: 76px; letter-spacing: -3px; line-height: .98; max-width: 820px; margin-bottom: 36px !important; }
.sf-hero .sf-lede { margin-bottom: 64px !important; }
.sf-hero-img { gap: 16px !important; margin-bottom: 0 !important; }
.sf-hero-img .wp-block-image { margin: 0; }
.sf-hero-img img { width: 100%; height: 440px; object-fit: cover; display: block; }
.sf-hero-img .wp-block-column:last-child img { object-position: 60% 30%; }
.sf-meta { border-top: 1px solid var(--wp--preset--color--ink); margin-top: 16px !important; gap: 0 !important; }
.sf-meta p { padding: 18px 16px 0 0; font-size: 13px; color: var(--wp--preset--color--muted); margin: 0; }
.sf-meta strong { display: block; font-size: 15px; color: var(--wp--preset--color--ink); font-weight: 600; }

/* ---------- Areas of care ---------- */
.sf-rows { margin-top: 56px !important; border-top: 1px solid var(--wp--preset--color--ink); }
.sf-row { gap: 40px !important; padding: 30px 0; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.sf-row h3 { font-size: 22px; letter-spacing: -.4px; margin: 0; }
.sf-row p { color: var(--wp--preset--color--muted); font-size: 15.5px; margin: 0; }
.sf-row p.sf-more { margin-top: 10px; }
.sf-more a { font-size: 14px; color: var(--wp--preset--color--blue); text-decoration: none; font-weight: 600; }

/* ---------- About ---------- */
.sf-about { gap: 56px !important; }
.sf-about p { margin: 0 0 16px; }
.sf-facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--wp--preset--color--ink); }
.sf-facts li { padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: 15px; }
.sf-facts strong { display: inline-block; width: 130px; font-weight: 400; color: var(--wp--preset--color--muted); }
.sf-logos { margin-top: 56px !important; }
.sf-logos img { width: 100%; height: auto; }

/* ---------- Process ---------- */
.sf-steps { margin-top: 56px !important; border-top: 1px solid var(--wp--preset--color--ink); gap: 0 !important; }
.sf-steps .wp-block-column { padding: 22px 22px 0 0; }
.sf-steps p, .sf-steps h3 { margin: 0; }
.sf-steps .sf-step-n { font-size: 52px; font-weight: 300; color: var(--wp--preset--color--blue); letter-spacing: -2px; line-height: 1; margin-bottom: 18px; }
.sf-steps h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.sf-steps p:not(.sf-step-n) { font-size: 14.5px; color: var(--wp--preset--color--muted); }

/* ---------- GPs & locations ---------- */
.sf-gp { background: var(--wp--preset--color--soft); }
.sf-big-nums { margin-top: 40px !important; gap: 56px !important; }
.sf-big-nums p { font-size: 34px; letter-spacing: -1px; font-weight: 500; margin: 0; }
.sf-big-nums strong { display: block; font-size: 12px; color: var(--wp--preset--color--muted); letter-spacing: 1px; font-weight: 600; }
.sf-gp .wp-block-buttons { margin-top: 26px !important; }
.sf-locs { list-style: none; padding: 0; margin: 56px 0 0 !important; border-top: 1px solid var(--wp--preset--color--ink); columns: 2; column-gap: 40px; }
.sf-locs li { padding: 16px 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: 14px; color: var(--wp--preset--color--muted); break-inside: avoid; }
.sf-locs strong { display: block; font-size: 15px; font-weight: 500; color: var(--wp--preset--color--ink); }

/* ---------- Contact ---------- */
.sf-contact { border-bottom: 0; }
.sf-contact h2 { font-size: 56px !important; letter-spacing: -2px !important; }
.sf-tel { font-size: 56px; font-weight: 500; letter-spacing: -2px; margin: 10px 0 30px !important; }
.sf-tel a { color: var(--wp--preset--color--blue); text-decoration: none; }
.sf-contact .wp-block-buttons { margin-top: 26px !important; }
.sf-contact-grid { gap: 64px !important; margin: 0 !important; }

/* Call-back form (Contact Form 7) */
.sf-form { background: var(--wp--preset--color--soft); padding: 36px; }
.sf-form .wpcf7-form p { margin: 0 0 18px; }
.sf-form label { display: block; font-size: 13px; font-weight: 600; color: var(--wp--preset--color--ink); }
.sf-form input[type="text"], .sf-form input[type="tel"], .sf-form input[type="email"], .sf-form select, .sf-form textarea {
	display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 15px; font-weight: 400;
	color: var(--wp--preset--color--ink); background: #fff; border: 1px solid #d6d6d6; border-radius: 0;
}
.sf-form textarea { height: 110px; resize: vertical; }
.sf-form input:focus, .sf-form select:focus, .sf-form textarea:focus { outline: 2px solid var(--wp--preset--color--blue); outline-offset: -1px; border-color: transparent; }
.sf-form .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--wp--preset--color--muted); }
.sf-form .wpcf7-list-item { margin: 0; }
.sf-form .wpcf7-submit { background: var(--wp--preset--color--blue); color: #fff; border: 0; border-radius: 30px; padding: 13px 24px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sf-form .wpcf7-submit:hover { background: #173fae; }
.sf-form .wpcf7-not-valid-tip { font-size: 12.5px; font-weight: 400; margin-top: 4px; }
.sf-form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 14px !important; font-size: 14px; }

/* ---------- Inner pages (condition pages) ---------- */
.sf-page { padding: 90px 0 110px; }
.sf-narrow { max-width: 820px; }
.sf-page h1 { font-size: 52px; letter-spacing: -2px; margin-bottom: 36px; }
.sf-page h2 { font-size: 26px; letter-spacing: -.6px; margin: 44px 0 14px; }
.sf-page p { font-size: 17px; margin: 0 0 16px; }
.sf-page .wp-block-buttons { margin-top: 36px; }

/* ---------- Footer ---------- */
.sf-footer { border-top: 1px solid var(--wp--preset--color--line); padding: 36px 0 60px; margin: 0 !important; }
.sf-footer-text { font-size: 12.5px; color: var(--wp--preset--color--muted); margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 782px) {
	html { scroll-padding-top: 76px; }
	.sf-section { padding: 72px 0; }
	.sf-hero { padding-top: 56px; }
	.sf-hero h1 { font-size: 46px; letter-spacing: -1.6px; }
	.sf-hero-img img { height: 300px; }
	.sf-section h2 { font-size: 32px; }
	.sf-contact h2, .sf-tel { font-size: 38px !important; }
	.sf-row, .sf-about, .sf-big-nums { gap: 12px !important; }
	.sf-contact-grid { gap: 32px !important; } .sf-form { padding: 24px; }
	.sf-locs { columns: 1; }
	.sf-page h1 { font-size: 38px; }
}
