/* ===========================================================
   P2 Creative — Site Styles
   =========================================================== */
:root{
  --brand-blue: #145dc7;
  --brand-blue-dark: #0d3f8c;
  --brand-pink: #e6195c;
  --brand-dark: #17223b;
  --brand-light: #f4f7fc;
  --text-muted: #6b7688;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(20, 93, 199, .12);
  --transition: all .3s ease;
}

*{ scroll-behavior: smooth; }

body{
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--brand-dark);
  background: #fff;
  /* NOTE: no overflow-x:hidden here — it would break position:sticky on #mainNav.
     Horizontal overflow from decorative shapes is contained locally via .hero{overflow:hidden}. */
}

h1,h2,h3,h4,.font-serif{ font-family: 'Merriweather', Georgia, serif; }

a{ text-decoration: none; transition: var(--transition); }

.brand-p2{ color: var(--brand-blue); font-weight: 800; }
.brand-creative{ color: var(--brand-dark); font-weight: 700; }

/* ---------- Topbar ---------- */
.topbar{
  background: var(--brand-blue-dark);
  color: #d8e6ff;
  font-size: .88rem;
  padding: 8px 0;
}
.topbar a{ color: #d8e6ff; margin-right: 18px; white-space: nowrap; }
.topbar a:hover{ color: #fff; }
.topbar-social a{ margin-right: 0; margin-left: 12px; font-size: 1rem; }

/* Below md the phone/email links no longer fit next to the social icon on one
   line (container switches to justify-content-center via Bootstrap utility
   classes in header.php); stack + center each wrapped line instead of leaving
   it left-hung. */
@media (max-width: 767.98px){
  .topbar .container{ text-align: center; }
  .topbar-contact{ width: 100%; margin-bottom: 4px; }
  .topbar-contact a{ margin: 0 9px; display: inline-block; }
}

/* ---------- Navbar ---------- */
#mainNav{
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  padding: 14px 0;
  transition: var(--transition);
  z-index: 1030;
}
#mainNav.shrink{ padding: 8px 0; box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.navbar-brand{ font-size: 1.6rem; padding: 0; }
.brand-logo{ height: 42px; width: auto; display: block; }
.footer-logo{ height: 40px; width: auto; display: block; background: #fff; padding: 6px 10px; border-radius: 8px; }
.nav-link{
  font-weight: 600;
  color: var(--brand-dark) !important;
  margin: 0 6px;
  position: relative;
  padding: 8px 4px !important;
}
.nav-link::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:0; height:3px;
  background: var(--brand-pink);
  border-radius: 3px;
  transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after{ width:100%; }
.nav-link.active{ color: var(--brand-blue) !important; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-blue-dark) 55%, #0a2f66 100%);
  color:#fff;
  padding: 110px 0 140px;
  overflow: hidden;
}
.hero::before, .hero::after{
  content:"";
  position:absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.hero::before{ width:420px; height:420px; top:-140px; right:-100px; }
.hero::after{ width:260px; height:260px; bottom:-100px; left:-60px; background: rgba(230,25,92,.15); }
.hero h1{ font-weight: 800; font-family: 'Poppins', sans-serif; line-height:1.2; }
.hero .lead{ color: #dbe7ff; }
.hero-badge{
  display:inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px;
  border-radius: 30px;
  font-size:.85rem;
  letter-spacing:.5px;
  margin-bottom: 18px;
}
.typed-cursor{ border-right: 3px solid var(--brand-pink); padding-right:4px; }

.hero-photo{ border: 6px solid rgba(255,255,255,.15); }

.btn-brand{
  background: var(--brand-pink);
  border: none;
  color:#fff;
  font-weight:600;
  padding: 12px 30px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(230,25,92,.35);
}
.btn-brand:hover{ background:#c4134e; color:#fff; transform: translateY(-2px); }
.btn-outline-brand{
  border: 2px solid #fff;
  color:#fff;
  font-weight:600;
  padding: 10px 28px;
  border-radius: 30px;
}
.btn-outline-brand:hover{ background:#fff; color: var(--brand-blue); }

.hero-shape-divider{
  position:absolute; left:0; right:0; bottom:-1px; line-height:0;
}

/* ---------- Section basics ---------- */
section{ padding: 90px 0; }
.section-tag{
  color: var(--brand-pink);
  font-weight:700;
  letter-spacing:2px;
  text-transform: uppercase;
  font-size:.8rem;
}
.section-title{ font-weight:800; margin-bottom: 14px; }
.section-sub{ color: var(--text-muted); max-width: 620px; margin: 0 auto; }
.bg-light-soft{ background: var(--brand-light); }

/* ---------- Stat counters ---------- */
.stat-box{ text-align:center; }
.stat-num{
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand-blue);
  font-family:'Poppins',sans-serif;
}
.stat-label{ color: var(--text-muted); font-weight:500; }

/* ---------- Service cards ---------- */
.service-card{
  background:#fff;
  border-radius: var(--radius);
  padding: 40px 30px;
  height:100%;
  box-shadow: var(--shadow-soft);
  border: 1px solid #eef1f8;
  transition: var(--transition);
  position: relative;
  overflow:hidden;
}
.service-card:hover{ transform: translateY(-10px); box-shadow: 0 20px 40px rgba(20,93,199,.18); }
.service-icon{
  width:72px; height:72px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-pink));
  color:#fff;
  font-size: 2rem;
  margin-bottom: 22px;
}
.service-card h4{ font-family:'Poppins',sans-serif; font-weight:700; }
.service-card p{ color: var(--text-muted); }
.service-link{ color: var(--brand-blue); font-weight:600; }
.service-link i{ transition: var(--transition); }
.service-card:hover .service-link i{ transform: translateX(6px); }

/* ---------- Process steps ---------- */
.step-num{
  width:54px; height:54px;
  border-radius:50%;
  background: var(--brand-light);
  color: var(--brand-blue);
  font-weight:800;
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
  border: 2px dashed var(--brand-blue);
  margin: 0 auto 18px;
}

/* ---------- Portfolio / gallery ---------- */
.portfolio-item{
  border-radius: var(--radius);
  overflow:hidden;
  position:relative;
  cursor:pointer;
}
/* Images sit inside a Bootstrap .ratio box, which absolutely-positions them to
   width:100%/height:100% — don't fight that with a fixed px height here (that
   used to leave a gap below the image, making it look detached/floating). */
.portfolio-item .ratio > img{ object-fit:cover; transition: var(--transition); }
.portfolio-overlay{
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(20,93,199,.92), rgba(230,25,92,.55));
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#fff; opacity:0; transition: var(--transition);
  text-align:center; padding: 20px;
}
.portfolio-item:hover img{ transform: scale(1.1); }
.portfolio-item:hover .portfolio-overlay{ opacity:1; }
.portfolio-filters{ margin-bottom: 40px; }
.portfolio-filters button{
  border:none; background:transparent;
  font-weight:600; color: var(--text-muted);
  padding: 8px 20px; border-radius: 30px; margin: 4px;
  transition: var(--transition);
}
.portfolio-filters button.active,
.portfolio-filters button:hover{ background: var(--brand-blue); color:#fff; }

/* ---------- Testimonials ---------- */
.testimonial-card{
  background:#fff;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-soft);
  height:100%;
  border: 1px solid #eef1f8;
}
.testimonial-quote{ color: var(--brand-pink); font-size:2rem; }
.testimonial-card p{ color:#3d4457; font-style: italic; }
.testimonial-person{ display:flex; align-items:center; gap:14px; margin-top:18px; }
.testimonial-avatar{
  width:50px; height:50px; border-radius:50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-pink));
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700;
}
.rating i{ color:#ffb400; }

/* ---------- CTA ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--brand-blue-dark), var(--brand-pink));
  color:#fff; border-radius: var(--radius);
  padding: 60px; text-align:center;
}

/* ---------- Team ---------- */
.team-card{ text-align:center; }
.team-photo{
  width:150px; height:150px; border-radius:50%;
  margin:0 auto 18px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-pink));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:2.4rem; font-weight:700;
}

/* ---------- Contact ---------- */
.contact-info-item{
  display:flex; gap:18px; align-items:flex-start;
  margin-bottom: 26px;
}
.contact-info-icon{
  width:52px; height:52px; min-width:52px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-blue);
  display:flex; align-items:center; justify-content:center;
  font-size:1.3rem;
}
.form-control, .form-select{
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #dde3ef;
}
.form-control:focus, .form-select:focus{
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 .2rem rgba(20,93,199,.15);
}
.contact-map iframe, .contact-map{
  border-radius: var(--radius);
  width:100%; height: 320px; border:0;
  background: var(--brand-light);
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--brand-dark);
  color: #b9c2d4;
  padding: 70px 0 20px;
}
.site-footer h5, .site-footer h6{ color:#fff; font-weight:700; margin-bottom: 18px; }
.footer-brand .brand-creative{ color:#fff; }
.footer-links{ list-style:none; padding:0; margin:0; }
.footer-links li{ margin-bottom: 10px; }
.footer-links a{ color:#b9c2d4; }
.footer-links a:hover{ color: var(--brand-pink); padding-left:4px; }
.social-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background: rgba(255,255,255,.08); color:#fff; margin-top: 10px;
}
.social-btn:hover{ background: var(--brand-pink); color:#fff; }
.footer-divider{ border-color: rgba(255,255,255,.1); margin: 30px 0 20px; }
.text-light-50{ color:#8b95ab; }

/* ---------- Back to top ---------- */
#backToTop{
  position:fixed; right:24px; bottom:24px;
  width:48px; height:48px; border-radius:50%;
  background: var(--brand-pink); color:#fff; border:none;
  box-shadow: 0 8px 20px rgba(230,25,92,.4);
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: var(--transition);
  z-index: 1050;
}
#backToTop.show{ opacity:1; visibility:visible; transform:none; }

/* ---------- Reveal-on-scroll ---------- */
.reveal{ opacity:0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:none; }

/* ---------- Page header (inner pages) ---------- */
.page-header{
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-dark));
  color:#fff; padding: 90px 0 60px; text-align:center;
}
.page-header .breadcrumb-custom a{ color:#cfe0ff; }
.page-header .breadcrumb-custom span{ color:#fff; }

/* ---------- Form status ---------- */
#formStatus{ display:none; }

/* ---------- Utility ---------- */
.icon-circle-sm{
  width:36px;height:36px;border-radius:50%;
  background: var(--brand-light); color:var(--brand-blue);
  display:inline-flex;align-items:center;justify-content:center;
}

@media (max-width: 767px){
  .hero{ padding: 90px 0 100px; text-align:center; }
  section{ padding: 60px 0; }
  .cta-band{ padding: 40px 24px; }
}
