/* =============================================
   AL-AHAD REAL ESTATE - MAIN STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy:       #0D1B3E;
  --navy-mid:   #122047;
  --navy-light: #1A3063;
  --gold:       #C9933A;
  --gold-light: #E8B05A;
  --white:      #FFFFFF;
  --off-white:  #F5F6F8;
  --light-grey: #EAECF0;
  --mid-grey:   #8A93A6;
  --dark-grey:  #2E3A52;
  --text-body:  #3B4760;
  --shadow-sm:  0 2px 8px rgba(13,27,62,0.08);
  --shadow-md:  0 8px 30px rgba(13,27,62,0.12);
  --shadow-lg:  0 20px 60px rgba(13,27,62,0.18);
  --radius:     6px;
  --radius-lg:  12px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'DM Sans',sans-serif;color:var(--text-body);background:var(--white);line-height:1.7;overflow-x:hidden}
h1,h2,h3,h4,h5{font-family:'Playfair Display',serif;color:var(--navy);line-height:1.25}
a{color:inherit;text-decoration:none;transition:color var(--transition)}
img{max-width:100%;display:block}
ul{list-style:none}

.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}
.section-pad{padding:90px 0}
.section-pad-sm{padding:60px 0}
.section-label{display:inline-block;font-size:.72rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:.75rem}
.section-title{font-size:clamp(1.9rem,3.5vw,2.7rem);font-weight:700;color:var(--navy);margin-bottom:1rem}
.section-title span{color:var(--gold)}
.section-desc{font-size:1.05rem;color:var(--mid-grey);max-width:560px;line-height:1.8}
.text-center{text-align:center}
.text-center .section-desc{margin:0 auto}

.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.78rem 1.8rem;border-radius:var(--radius);font-family:'DM Sans',sans-serif;font-size:.92rem;font-weight:600;cursor:pointer;border:2px solid transparent;transition:all var(--transition);text-decoration:none}
.btn-primary{background:var(--gold);color:var(--white);border-color:var(--gold)}
.btn-primary:hover{background:var(--gold-light);border-color:var(--gold-light);transform:translateY(-2px);box-shadow:0 8px 24px rgba(201,147,58,.35)}
.btn-outline{background:transparent;color:var(--white);border-color:rgba(255,255,255,.5)}
.btn-outline:hover{background:var(--white);color:var(--navy);border-color:var(--white)}
.btn-outline-dark{background:transparent;color:var(--navy);border-color:var(--navy)}
.btn-outline-dark:hover{background:var(--navy);color:var(--white)}

/* NAVBAR */
.navbar-custom{position:fixed;top:0;left:0;right:0;z-index:1000;padding:0;transition:background var(--transition),box-shadow var(--transition)}
.navbar-custom.scrolled{background:var(--navy)!important;box-shadow:0 4px 20px rgba(0,0,0,.2)}
.navbar-custom .navbar-brand{display:flex;align-items:center;gap:.7rem;padding:1rem 0}
.brand-icon{width:42px;height:42px;background:var(--gold);border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:1.3rem;flex-shrink:0}
.brand-text{line-height:1.1}
.brand-text .name{font-family:'Playfair Display',serif;font-size:1rem;font-weight:700;color:var(--white);display:block}
.brand-text .sub{font-size:.65rem;color:var(--gold-light);letter-spacing:.08em;text-transform:uppercase}
.navbar-custom .nav-link{color:rgba(255,255,255,.85)!important;font-size:.88rem;font-weight:500;padding:.5rem .9rem!important;position:relative;transition:color var(--transition)}
.navbar-custom .nav-link::after{content:'';position:absolute;bottom:0;left:.9rem;right:.9rem;height:2px;background:var(--gold);transform:scaleX(0);transition:transform var(--transition)}
.navbar-custom .nav-link:hover,.navbar-custom .nav-link.active{color:var(--white)!important}
.navbar-custom .nav-link:hover::after,.navbar-custom .nav-link.active::after{transform:scaleX(1)}
.navbar-custom .nav-cta{background:var(--gold);color:var(--white)!important;border-radius:var(--radius);padding:.45rem 1.1rem!important;margin-left:.5rem}
.navbar-custom .nav-cta::after{display:none}
.navbar-custom .nav-cta:hover{background:var(--gold-light)!important}
.navbar-toggler{border:1px solid rgba(255,255,255,.3);padding:6px 10px}
.navbar-toggler-icon{filter:invert(1)}

/* HERO */
.hero{min-height:100vh;background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 60%,#1f3a6b 100%);position:relative;display:flex;align-items:center;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 60% 80% at 80% 50%,rgba(201,147,58,.12) 0%,transparent 70%);pointer-events:none}
.hero-content{position:relative;z-index:2;padding:140px 0 80px}
.hero-badge{display:inline-flex;align-items:center;gap:.5rem;background:rgba(201,147,58,.15);border:1px solid rgba(201,147,58,.3);color:var(--gold-light);border-radius:50px;padding:.4rem 1rem;font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;margin-bottom:1.5rem;animation:fadeInUp .6s ease both}
.hero-title{font-size:clamp(2.4rem,5vw,4rem);font-weight:900;color:var(--white);line-height:1.12;margin-bottom:1.5rem;animation:fadeInUp .6s ease .1s both}
.hero-title .accent{color:var(--gold)}
.hero-title .outline{-webkit-text-stroke:1.5px rgba(255,255,255,.45);color:transparent}
.hero-subtitle{font-size:1.08rem;color:rgba(255,255,255,.72);max-width:520px;line-height:1.8;margin-bottom:2.2rem;animation:fadeInUp .6s ease .2s both}
.hero-btns{display:flex;gap:1rem;flex-wrap:wrap;animation:fadeInUp .6s ease .3s both}
.hero-stats{display:flex;gap:2.5rem;margin-top:3rem;padding-top:2rem;border-top:1px solid rgba(255,255,255,.1);animation:fadeInUp .6s ease .4s both;flex-wrap:wrap}
.stat-item .num{font-family:'Playfair Display',serif;font-size:2rem;font-weight:700;color:var(--gold);display:block;line-height:1}
.stat-item .label{font-size:.8rem;color:rgba(255,255,255,.55);margin-top:.3rem}
.hero-visual{position:relative;z-index:2;animation:fadeInRight .8s ease .2s both}
.hero-card-stack{position:relative;padding:2rem}
.hero-main-card{background:rgba(255,255,255,.06);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-lg);padding:1.8rem;color:white}
.hmc-label{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-light);margin-bottom:.5rem}
.hmc-title{font-size:1.5rem;font-weight:700;color:white;margin-bottom:.3rem;font-family:'Playfair Display',serif}
.hmc-sub{font-size:.85rem;color:rgba(255,255,255,.6);margin-bottom:1.2rem}
.hmc-features{display:flex;flex-direction:column;gap:.6rem}
.hmc-feature{display:flex;align-items:center;gap:.7rem;font-size:.88rem;color:rgba(255,255,255,.8)}
.hmc-feature i{color:var(--gold);font-size:.9rem;width:16px}
.float-card{position:absolute;background:var(--gold);border-radius:var(--radius);padding:.9rem 1.2rem;color:white;font-size:.82rem;font-weight:600;box-shadow:var(--shadow-lg);animation:float 3s ease-in-out infinite}
.float-card.fc1{top:-45px;left:0}
.float-card.fc2{bottom:1rem;right:0;animation-delay:-1.5s}
.float-card .fc-num{font-size:1.5rem;font-weight:700;font-family:'Playfair Display',serif;display:block}

/* STRIP */
.about-strip{background:var(--navy);padding:1.5rem 0}
.strip-items{display:flex;flex-wrap:wrap}
.strip-item{flex:1;min-width:220px;display:flex;align-items:center;gap:1rem;padding:1rem 2rem;border-right:1px solid rgba(255,255,255,.1)}
.strip-item:last-child{border-right:none}
.strip-icon{width:44px;height:44px;background:rgba(201,147,58,.15);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:1.1rem;flex-shrink:0}
.strip-text .t{font-size:.85rem;font-weight:600;color:white}
.strip-text .s{font-size:.75rem;color:rgba(255,255,255,.5)}

/* SERVICES */
.services-section{background:var(--off-white)}
.service-card{background:var(--white);border-radius:var(--radius-lg);padding:2.2rem;height:100%;border:1px solid var(--light-grey);transition:all var(--transition);position:relative;overflow:hidden}
.service-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--gold);transform:scaleX(0);transition:transform var(--transition);transform-origin:left}
.service-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:transparent}
.service-card:hover::before{transform:scaleX(1)}
.service-icon{width:60px;height:60px;background:linear-gradient(135deg,var(--navy),var(--navy-light));border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:1.5rem;margin-bottom:1.4rem}
.service-card h4{font-size:1.1rem;font-weight:700;margin-bottom:.8rem;color:var(--navy)}
.service-card p{font-size:.9rem;color:var(--mid-grey);line-height:1.7;margin-bottom:1rem}
.service-list{padding:0;margin:0}
.service-list li{font-size:.85rem;color:var(--text-body);padding:.3rem 0 .3rem 1.2rem;position:relative}
.service-list li::before{content:'›';position:absolute;left:0;color:var(--gold);font-weight:700}

/* PROJECTS */
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.project-card{position:relative;border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:4/3;background:var(--navy)}
.project-card:nth-child(1){grid-column:span 2;aspect-ratio:auto;min-height:300px}
.project-img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.project-card:hover .project-img{transform:scale(1.07)}
.project-overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(13,27,62,.9) 0%,transparent 60%);display:flex;align-items:flex-end;padding:1.5rem}
.project-info h5{color:white;font-size:1rem;margin-bottom:.2rem}
.project-info span{font-size:.78rem;color:var(--gold-light)}

/* WHY US */
.why-us{background:var(--off-white)}
.why-item{display:flex;gap:1.2rem;padding:1.5rem;background:white;border-radius:var(--radius-lg);border:1px solid var(--light-grey);transition:all var(--transition);height:100%}
.why-item:hover{border-color:var(--gold);box-shadow:var(--shadow-md)}
.why-num{font-family:'Playfair Display',serif;font-size:2.5rem;font-weight:700;color:var(--light-grey);line-height:1;flex-shrink:0;min-width:50px}
.why-body h5{font-size:1rem;font-weight:700;color:var(--navy);margin-bottom:.4rem}
.why-body p{font-size:.88rem;color:var(--mid-grey);line-height:1.6;margin:0}

/* VALUES */
.values-section{background:var(--navy)}
.values-section .section-title{color:white}
.values-section .section-desc{color:rgba(255,255,255,.5)}
.value-card{text-align:center;padding:2.5rem 1.5rem;border:1px solid rgba(255,255,255,.08);border-radius:var(--radius-lg);transition:all var(--transition)}
.value-card:hover{border-color:rgba(201,147,58,.4);background:rgba(255,255,255,.04);transform:translateY(-4px)}
.value-icon{width:64px;height:64px;background:rgba(201,147,58,.12);border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:1.6rem;margin:0 auto 1.2rem}
.value-card h5{color:white;font-size:1rem;margin-bottom:.6rem}
.value-card p{font-size:.88rem;color:rgba(255,255,255,.5);line-height:1.7;margin:0}

/* TESTIMONIALS */
.testi-card{background:var(--off-white);border-radius:var(--radius-lg);padding:2rem;height:100%;border:1px solid var(--light-grey)}
.testi-quote{font-size:3rem;color:var(--gold);line-height:1;font-family:'Playfair Display',serif;margin-bottom:.5rem}
.testi-text{font-size:.95rem;color:var(--text-body);line-height:1.8;margin-bottom:1.5rem;font-style:italic}
.testi-author{display:flex;align-items:center;gap:.8rem}
.testi-avatar{width:44px;height:44px;background:var(--navy);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gold);font-weight:700;font-size:1rem}
.testi-name{font-weight:600;font-size:.9rem;color:var(--navy)}
.testi-role{font-size:.78rem;color:var(--mid-grey)}
.stars{color:var(--gold);font-size:.85rem;margin-bottom:.8rem}

/* CTA */
.cta-banner{background:linear-gradient(135deg,var(--gold) 0%,#b87d28 100%);padding:60px 0}
.cta-banner h2{color:white;font-size:clamp(1.7rem,3vw,2.3rem)}
.cta-banner p{color:rgba(255,255,255,.85);font-size:1.05rem}

/* CONTACT */
.contact-section{background:var(--off-white)}
.contact-card{background:white;border-radius:var(--radius-lg);padding:2.5rem;box-shadow:var(--shadow-sm);border:1px solid var(--light-grey)}
.contact-info-item{display:flex;gap:1rem;padding:1.2rem 0;border-bottom:1px solid var(--light-grey)}
.contact-info-item:last-child{border-bottom:none}
.ci-icon{width:44px;height:44px;background:linear-gradient(135deg,var(--navy),var(--navy-light));border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:1rem;flex-shrink:0}
.ci-text .label{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--mid-grey);margin-bottom:.2rem}
.ci-text .val{font-size:.9rem;color:var(--navy);font-weight:500}

/* FORMS */
.form-group{margin-bottom:1.2rem}
.form-label{font-size:.85rem;font-weight:600;color:var(--navy);margin-bottom:.4rem;display:block}
.form-control,.form-select{width:100%;padding:.75rem 1rem;border:1.5px solid var(--light-grey);border-radius:var(--radius);font-family:'DM Sans',sans-serif;font-size:.92rem;color:var(--text-body);background:white;transition:border-color var(--transition),box-shadow var(--transition);outline:none}
.form-control:focus,.form-select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,147,58,.12)}
textarea.form-control{resize:vertical;min-height:130px}
.form-error{font-size:.78rem;color:#e03e3e;margin-top:.3rem;display:block}
.alert-success{background:#e9f7ef;border:1px solid #a8d5bb;color:#1a6b3a;border-radius:var(--radius);padding:1rem 1.2rem;font-size:.9rem;margin-bottom:1.2rem}
.alert-error{background:#fdf0f0;border:1px solid #f0b8b8;color:#7a1b1b;border-radius:var(--radius);padding:1rem 1.2rem;font-size:.9rem;margin-bottom:1.2rem}

/* PAGE HERO */
.page-hero{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 100%);padding:140px 0 80px;position:relative;overflow:hidden}
.page-hero::after{content:'';position:absolute;bottom:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--gold),var(--gold-light),var(--gold))}
.page-hero h1{color:white;font-size:clamp(2rem,4vw,3rem)}
.page-hero .breadcrumb-item{font-size:.85rem}
.page-hero .breadcrumb-item a{color:var(--gold-light)}
.page-hero .breadcrumb-item.active{color:rgba(255,255,255,.6)}
.page-hero .breadcrumb-item+.breadcrumb-item::before{color:rgba(255,255,255,.4)}

/* SWOT */
.swot-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.swot-card{border-radius:var(--radius-lg);padding:1.8rem}
.swot-card.strengths{background:#e9f5ed;border-top:4px solid #2e7d52}
.swot-card.weaknesses{background:#fdf3e9;border-top:4px solid var(--gold)}
.swot-card.opportunities{background:#e8f0fd;border-top:4px solid #1a5dc8}
.swot-card.threats{background:#fdeaea;border-top:4px solid #c82828}
.swot-card h5{font-size:.95rem;margin-bottom:.8rem;color:var(--navy)}
.swot-card li{font-size:.88rem;color:var(--text-body);padding:.25rem 0 .25rem 1rem;position:relative}
.swot-card li::before{content:'•';position:absolute;left:0;color:var(--gold)}

/* WORKFLOW */
.workflow-step{display:flex;gap:1.5rem;padding:1.5rem 0;position:relative}
.workflow-step:not(:last-child)::after{content:'';position:absolute;left:22px;top:4rem;bottom:0;width:2px;background:linear-gradient(to bottom,var(--gold),var(--light-grey))}
.step-num{width:46px;height:46px;background:var(--navy);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gold);font-weight:700;font-size:.85rem;flex-shrink:0;z-index:1;box-shadow:0 0 0 4px var(--off-white)}
.step-body h5{font-size:1rem;color:var(--navy);margin-bottom:.4rem}
.step-body p{font-size:.88rem;color:var(--mid-grey);line-height:1.7;margin:0}

/* MAP */
.map-container{border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md)}
.map-container iframe{display:block}

/* FOOTER */
.footer{background:#080f23;color:rgba(255,255,255,.65);padding:70px 0 0}
.footer-logo .name{font-family:'Playfair Display',serif;font-size:1.1rem;font-weight:700;color:white}
.footer-logo .sub{font-size:.7rem;color:var(--gold-light);text-transform:uppercase;letter-spacing:.08em}
.footer-desc{font-size:.88rem;line-height:1.8;margin:1rem 0;color:rgba(255,255,255,.5)}
.footer h6{color:white;font-family:'DM Sans',sans-serif;font-size:.8rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;margin-bottom:1.2rem;padding-bottom:.7rem;border-bottom:1px solid rgba(255,255,255,.08)}
.footer-links{display:flex;flex-direction:column;gap:.5rem}
.footer-links a{font-size:.88rem;color:rgba(255,255,255,.5);transition:color var(--transition);display:flex;align-items:center;gap:.5rem}
.footer-links a i{font-size:.65rem;color:var(--gold)}
.footer-links a:hover{color:var(--gold-light)}
.footer-contact-item{display:flex;gap:.8rem;font-size:.85rem;color:rgba(255,255,255,.5);margin-bottom:.8rem;line-height:1.5}
.footer-contact-item i{color:var(--gold);margin-top:.15rem;flex-shrink:0}
.social-links{display:flex;gap:.6rem;margin-top:1rem}
.social-link{width:36px;height:36px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:8px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.5);font-size:.85rem;transition:all var(--transition)}
.social-link:hover{background:var(--gold);border-color:var(--gold);color:white;transform:translateY(-2px)}
.footer-bottom{margin-top:3rem;padding:1.2rem 0;border-top:1px solid rgba(255,255,255,.06);font-size:.82rem;color:rgba(255,255,255,.3);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem}
.footer-bottom a{color:var(--gold-light)}

/* ANIMATIONS */
@keyframes fadeInUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeInRight{from{opacity:0;transform:translateX(30px)}to{opacity:1;transform:translateX(0)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.fade-up{opacity:0;transform:translateY(28px);transition:opacity .6s ease,transform .6s ease}
.fade-up.visible{opacity:1;transform:none}

/* RESPONSIVE */
@media(max-width:992px){
  .hero-visual{display:none}
  .project-grid{grid-template-columns:1fr 1fr}
  .project-card:nth-child(1){grid-column:span 2}
  .swot-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .section-pad{padding:60px 0}
  .project-grid{grid-template-columns:1fr}
  .project-card:nth-child(1){grid-column:span 1}
  .swot-grid{grid-template-columns:1fr}
  .hero-stats{gap:1.5rem}
  .footer-bottom{flex-direction:column;text-align:center}
}
