/*
Theme Name: Nizar Haddad — Minimal Portfolio
Theme URI: https://example.invalid/
Author: Azrar Studio
Description: A clean, four-page academic and executive personal website for Dr. Nizar Haddad. Includes a full-viewport homepage, biography, research profiles, and editable engagement gallery.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: nizar-haddad
License: GPL-2.0-or-later
*/

:root{--forest:#103b2c;--ink:#1f2924;--mute:#79837c;--line:#e5e8e2;--cream:#f8faf7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Manrope,Arial,sans-serif;color:var(--ink);background:#fff;-webkit-font-smoothing:antialiased}a{text-decoration:none;color:inherit}button{font:inherit;cursor:pointer}img{max-width:100%;display:block}.wrap{max-width:1380px;margin:auto;width:calc(100% - 112px)}.site-head{height:92px;position:relative;z-index:50;border-bottom:1px solid var(--line);background:#fff}.site-head .wrap{height:100%;display:flex;align-items:center;justify-content:space-between;gap:40px}.brand{font-size:19px;letter-spacing:-.06em;font-weight:800;white-space:nowrap}.navigation{display:flex;align-items:center;gap:34px}.navigation a{font-size:12px;color:#667169;white-space:nowrap;font-weight:600;transition:color .2s}.navigation a:hover,.navigation a.on{color:var(--forest)}.navigation a.on:after{content:'';display:block;width:100%;height:2px;background:var(--forest);margin-top:7px}.menu{display:none;border:1px solid #ffffff55;background:transparent;color:inherit;padding:10px 14px;border-radius:0;font-size:12px;font-weight:700}.home{height:100svh;min-height:560px;overflow:hidden;background:#102c22;color:#fff}.home .site-head{position:absolute;top:0;width:100%;background:transparent;border-bottom:1px solid #ffffff38;color:#fff}.home .navigation a{color:#ffffffcf}.home .navigation a.on,.home .navigation a:hover{color:#fff}.home .navigation a.on:after{background:#c4d4bb}.home-hero{height:100%;position:relative;isolation:isolate;display:flex;align-items:center}.home-photo{position:absolute;inset:0;z-index:-3;background:url('assets/images/nizar-original.png') center 47%/cover no-repeat}.home-hero:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(0,25,19,.91),rgba(0,27,20,.78) 26%,rgba(1,34,24,.26) 60%,rgba(1,19,16,.06) 100%),linear-gradient(180deg,rgba(0,15,11,.50),transparent 35%,rgba(0,15,10,.18))}.hero-text{padding-top:60px;max-width:650px}.eyebrow{font-weight:700;letter-spacing:.18em;text-transform:uppercase;font-size:10px}.hero-eyebrow{color:#d5e3d8;line-height:2.1}.hero-text h1{font-weight:600;font-size:clamp(57px,6.7vw,105px);line-height:1.08;letter-spacing:-.075em;margin:20px 0}.hero-sub{font-size:clamp(15px,1.5vw,19px);line-height:1.8;letter-spacing:-.025em;max-width:470px;color:#e2e8e4}.hero-link{display:inline-flex;align-items:center;gap:24px;border-bottom:1px solid #c9d7c7;padding:0 0 11px;margin-top:32px;text-transform:uppercase;font-size:11px;letter-spacing:.07em;font-weight:700}.hero-bottom{position:absolute;bottom:27px;left:0;width:100%;font-size:10px;letter-spacing:.11em;color:#ffffffaf}.hero-bottom .wrap{display:flex;justify-content:space-between}.inner{min-height:calc(100vh - 92px);padding:105px 0 120px}.topline{font-size:11px;color:#6d816e;font-weight:800;letter-spacing:.17em;text-transform:uppercase}.page-heading{font-size:clamp(44px,6.2vw,82px);font-weight:600;line-height:1.1;letter-spacing:-.075em;margin:20px 0 28px}.intro{max-width:800px;color:#596660;font-size:clamp(15px,1.65vw,19px);line-height:1.9;font-weight:400}.divider{border:0;border-top:1px solid var(--line);margin:52px 0}.two-col{display:grid;grid-template-columns:1fr 1.2fr;gap:95px}.lead{font-size:clamp(20px,2.2vw,30px);line-height:1.6;letter-spacing:-.045em;margin:0}.bodycopy{font-size:15px;line-height:2.1;color:#66736b}.bodycopy p{margin:0 0 22px}.small-title{font-size:12px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;margin:0 0 25px;color:#526b59}.expertise{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:55px}.expertise article{border-top:1px solid #dce4dc;padding-top:22px}.expertise h3{font-size:16px;font-weight:700;letter-spacing:-.025em}.expertise p{font-size:13px;line-height:1.9;color:#718075}.research-list{display:grid;grid-template-columns:repeat(2,1fr);gap:0 80px;max-width:1090px;margin-top:45px}.research-list article{border-top:1px solid var(--line);padding:29px 0}.research-list span{font-size:11px;color:#8c998d}.research-list h3{font-size:clamp(17px,2vw,24px);font-weight:600;letter-spacing:-.045em;line-height:1.4;margin:13px 0 0}.profiles{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.profiles a{border:1px solid #c5d0c7;padding:13px 19px;font-size:12px;font-weight:700}.profiles a:hover{background:#f2f6f1}.muted{color:#78847b;font-size:12px;line-height:1.9}.gallery-grid{display:grid;grid-template-columns:1.4fr .85fr;gap:17px;margin-top:55px}.gallery-photo{position:relative;overflow:hidden;background:#f1f3ee;min-height:400px}.gallery-photo img{width:100%;height:100%;object-fit:cover;object-position:center;position:absolute;inset:0}.gallery-placeholder{background:#eef2ec;min-height:300px;display:flex;align-items:end;padding:27px}.gallery-placeholder span{font-size:12px;color:#708171}.gallery-sub{display:grid;grid-template-rows:1fr 1fr;gap:17px}.gallery-description{max-width:570px}.footer{border-top:1px solid var(--line);padding:23px 0;color:#859088;font-size:11px}.footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer a{text-decoration:underline;text-underline-offset:4px}.home .footer{display:none}
@media(max-width:850px){.wrap{width:calc(100% - 48px)}.site-head{height:75px}.menu{display:block}.navigation{display:none;position:absolute;top:75px;left:0;right:0;background:#fff;color:#24382c;flex-direction:column;align-items:flex-start;gap:0;box-shadow:0 15px 30px #0001;padding:15px 24px}.navigation.open{display:flex}.navigation a,.home .navigation a{color:#284233;display:block;width:100%;padding:14px 0}.navigation a.on:after{display:none}.home .navigation{background:#14382b}.home .navigation a{color:#fff}.hero-text{padding-top:50px}.home-photo{background-position:58% center}.home-hero:before{background:linear-gradient(90deg,rgba(0,22,17,.92),rgba(0,28,20,.60) 75%,rgba(0,20,18,.33))}.inner{padding:68px 0 85px}.two-col{grid-template-columns:1fr;gap:25px}.research-list{gap:0 25px}.gallery-grid{grid-template-columns:1fr}.gallery-sub{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.gallery-photo{min-height:400px}.gallery-placeholder{min-height:180px}}@media(max-width:520px){.wrap{width:calc(100% - 36px)}.home{min-height:520px}.home-photo{background-position:59% center}.home-hero:before{background:rgba(0,23,18,.69)}.hero-text h1{font-size:56px}.hero-bottom span:last-child{display:none}.expertise,.research-list{grid-template-columns:1fr}.gallery-sub{grid-template-columns:1fr}.gallery-photo{min-height:300px}.page-heading{font-size:48px}.brand{font-size:17px}}

/* WordPress integration */
.admin-bar .site-head{top:32px}.home.admin-bar{height:calc(100svh - 32px)}
.wp-block-gallery,.blocks-gallery-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px!important;margin:40px 0!important;padding:0!important}
.wp-block-gallery .wp-block-image,.wp-block-gallery figure{margin:0!important;overflow:hidden;aspect-ratio:4/3}
.wp-block-gallery img{width:100%!important;height:100%!important;object-fit:cover}
.content-area .wp-block-image img{width:100%;height:auto;max-height:800px;object-fit:cover}
.content-area .wp-block-image{margin:38px 0}
.content-area p{line-height:2}
.content-area h2{font-weight:600;letter-spacing:-.05em}
.gallery-empty{border:1px dashed #d1d9d1;padding:35px;color:#6b7e70;font-size:13px;margin-top:35px}
.profile-link{display:inline-block;border:1px solid #c5d0c7;padding:13px 19px;font-size:12px;font-weight:700;margin:0 10px 10px 0}
.profile-link:hover{background:#f2f6f1}
.home .hero-text{position:relative}
@media(max-width:782px){.admin-bar .site-head{top:46px}.home.admin-bar{height:calc(100svh - 46px)}}
@media(max-width:700px){.wp-block-gallery,.blocks-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.wp-block-gallery,.blocks-gallery-grid{grid-template-columns:1fr}}

/* V1.1 refined homepage and engagement gallery */
.home-hero{align-items:flex-end}.home-hero .hero-wrap{position:relative;z-index:2;padding-bottom:clamp(60px,10vh,126px)}
.home .hero-text{padding-top:0;max-width:min(880px,100%)}
.home .hero-text h1{font-size:clamp(30px,4.2vw,64px);letter-spacing:-.06em;line-height:1.16;white-space:nowrap;margin:12px 0 12px;font-weight:600}
.home .hero-eyebrow{font-size:clamp(9px,.8vw,12px);letter-spacing:.14em}
.home .hero-sub{max-width:700px;font-size:clamp(11px,1vw,15px);margin:0;line-height:1.65}
.home-hero:before{background:linear-gradient(0deg,rgba(0,20,16,.87),rgba(0,20,16,.52) 28%,rgba(0,20,16,0) 66%),linear-gradient(180deg,rgba(0,19,14,.52),transparent 27%)}
.home-photo{background-position:center 42%}
.hero-socials{display:flex;align-items:center;gap:14px;margin-top:22px;flex-wrap:wrap}
.hero-socials a{display:inline-flex;align-items:center;gap:8px;color:#fff;font-size:11px;font-weight:600;opacity:.9;border:1px solid #ffffff65;border-radius:4px;padding:8px 13px;transition:background .2s,opacity .2s}
.hero-socials a:hover,.hero-socials a:focus-visible{background:#ffffff25;opacity:1}
.hero-socials svg{width:16px;height:16px;display:block}
.rg-symbol{display:inline-flex;align-items:center;font-family:Arial,sans-serif;font-weight:700;font-size:18px;letter-spacing:-.12em;line-height:1}
.rg-symbol sup{font-size:11px;letter-spacing:0;align-self:flex-start;margin-left:2px}
.engagement-page .page-heading{font-size:clamp(38px,5.4vw,72px);white-space:normal}
.engagement-gallery{columns:3 275px;column-gap:15px;margin-top:54px}
.engagement-tile{appearance:none;display:block;width:100%;border:0;background:#edf0eb;margin:0 0 15px;padding:0;break-inside:avoid;overflow:hidden;cursor:zoom-in}
.engagement-tile img{display:block;width:100%;height:auto;transition:transform .35s ease;object-fit:cover}
.engagement-tile:hover img{transform:scale(1.025)}
.engagement-tile:focus-visible{outline:3px solid #31684c;outline-offset:3px}
.gallery-lightbox[hidden]{display:none!important}
.gallery-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(6,12,10,.96);display:flex;align-items:center;justify-content:center;padding:72px 65px 48px}
.gallery-lightbox img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.gallery-lightbox button{appearance:none;position:absolute;border:1px solid #ffffff55;background:#182821;color:white;padding:10px 13px;cursor:pointer;font-weight:700;font-size:14px}
.gallery-lightbox .lightbox-close{top:23px;right:25px;font-size:12px}
.gallery-lightbox .lightbox-prev{left:20px;top:50%}
.gallery-lightbox .lightbox-next{right:20px;top:50%}
.lightbox-counter{position:absolute;bottom:15px;left:0;width:100%;text-align:center;color:#eee;font-size:12px}
.extra-gallery{margin-top:56px}
@media(max-width:850px){.home-photo{background-position:56% center}.home-hero:before{background:linear-gradient(0deg,rgba(0,20,16,.91),rgba(0,20,16,.54) 42%,transparent 82%),linear-gradient(180deg,rgba(0,19,14,.50),transparent 22%)}.home .hero-text h1{font-size:clamp(26px,5.2vw,48px)}.home-hero .hero-wrap{padding-bottom:80px}}
@media(max-width:520px){.home-photo{background-position:56% center}.home-hero .hero-wrap{padding-bottom:80px}.home .hero-text h1{font-size:clamp(26px,7.1vw,38px)}.home .hero-eyebrow{font-size:9px}.home .hero-sub{font-size:11px;max-width:330px}.hero-socials{gap:8px}.hero-socials a{padding:9px 10px;font-size:10px}.engagement-gallery{columns:2 135px;column-gap:9px}.engagement-tile{margin-bottom:9px}.gallery-lightbox{padding:70px 22px 65px}.gallery-lightbox .lightbox-prev{left:8px;top:auto;bottom:16px}.gallery-lightbox .lightbox-next{right:8px;top:auto;bottom:16px}}
@media(max-height:620px){.home-hero .hero-wrap{padding-bottom:32px}.home .hero-text h1{font-size:clamp(26px,3.8vw,48px)}.hero-socials{margin-top:12px}}
