/* ============================================================
   NEXORA GROWTH HUB — GLOBAL STYLESHEET
   Brand: Green #27AE60 / Blue #1565C0 (from logo)
   ============================================================ */

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:#f4f8f4; }
::-webkit-scrollbar-thumb { background:var(--green); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:var(--green-dark); }

/* ---- SELECTION ---- */
::selection { background:rgba(39,174,96,.2); color:var(--green-dark); }

/* ---- SMOOTH SCROLL ---- */
html { scroll-behavior:smooth; }

/* ---- FOCUS RING (accessibility) ---- */
:focus-visible {
  outline:2px solid var(--green);
  outline-offset:3px;
  border-radius:4px;
}

/* ============================================================
   REUSABLE COMPONENTS (used across all pages)
   ============================================================ */

/* Badge / pill label */
.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 12px;
  border-radius:50px;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
}
.badge-green { background:rgba(39,174,96,.12); color:var(--green-dark); }
.badge-blue  { background:rgba(21,101,192,.1);  color:var(--blue); }
.badge-dark  { background:rgba(13,27,42,.08);   color:var(--brand-dark); }

/* Cards */
.card {
  background:#fff;
  border-radius:18px;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
  border:1px solid rgba(39,174,96,.1);
  overflow:hidden;
  transition:transform .25s, box-shadow .25s;
}
.card:hover { transform:translateY(-5px); box-shadow:0 14px 36px rgba(39,174,96,.12); }

/* Divider */
.divider-brand {
  height:3px;
  background:linear-gradient(90deg, var(--green), var(--blue-light));
  border-radius:4px;
  margin:0 auto;
  width:60px;
}

/* Section spacing */
.section-gap { padding:90px 0; }
.section-gap-sm { padding:60px 0; }

/* Text utilities */
.text-green      { color:var(--green-dark); }
.text-blue       { color:var(--blue); }
.text-gray       { color:var(--gray); }
.text-muted      { color:var(--gray-light); }
.font-bold       { font-weight:700; }
.font-black      { font-weight:900; }

/* Gradient text helper */
.text-gradient {
  background:linear-gradient(120deg, #27AE60, #1565C0);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ============================================================
   FOOTER — inherits brand colors
   ============================================================ */
.footer {
  background:var(--brand-dark);
  color:rgba(255,255,255,.8);
  padding:72px 0 0;
  border-top:3px solid var(--green-dark);
}
.footer-grid {
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1.2fr;
  gap:48px;
  padding-bottom:52px;
}
.footer-brand-logo {
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  margin-bottom:16px;
}
.footer-brand-logo img { height:44px; width:auto; }
.footer-brand-name {
  font-size:1.15rem;
  font-weight:800;
  background:linear-gradient(120deg, #27AE60, #1565C0);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.footer-brand p { font-size:.88rem; line-height:1.7; color:rgba(255,255,255,.65); margin-bottom:22px; }
.footer-social { display:flex; gap:10px; }
.footer-social a {
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid rgba(39,174,96,.3);
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.7);
  font-size:.82rem;
  text-decoration:none;
  transition:all .2s;
}
.footer-social a:hover {
  background:var(--green);
  border-color:var(--green);
  color:#fff;
  transform:translateY(-2px);
}
.footer-col h4 {
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:rgba(255,255,255,.5);
  margin-bottom:18px;
  position:relative;
  padding-bottom:10px;
}
.footer-col h4::after {
  content:'';
  position:absolute;
  bottom:0; left:0;
  width:28px; height:2px;
  background:var(--green);
  border-radius:2px;
}
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:9px; }
.footer-col ul li a {
  color:rgba(255,255,255,.62);
  text-decoration:none;
  font-size:.87rem;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:color .2s, padding-left .2s;
}
.footer-col ul li a::before {
  content:'\f054';
  font-family:'Font Awesome 6 Free';
  font-weight:900;
  font-size:.55rem;
  color:var(--green);
  opacity:.7;
}
.footer-col ul li a:hover { color:#fff; padding-left:4px; }
.footer-contact li {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
  font-size:.86rem;
  color:rgba(255,255,255,.62);
}
.footer-contact li i { color:var(--green); margin-top:2px; flex-shrink:0; }
.footer-contact li a { color:rgba(255,255,255,.62); text-decoration:none; transition:color .2s; }
.footer-contact li a:hover { color:var(--green-light); }

.footer-bottom {
  border-top:1px solid rgba(255,255,255,.07);
  padding:20px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-size:.8rem;
  color:rgba(255,255,255,.4);
}
.footer-bottom a { color:rgba(255,255,255,.4); text-decoration:none; transition:color .2s; }
.footer-bottom a:hover { color:var(--green-light); }
.footer-bottom-links { display:flex; gap:20px; }

/* ============================================================
   INNER PAGE HERO (about, services, contact etc.)
   ============================================================ */
.page-hero {
  background:var(--grad-hero);
  color:#fff;
  padding:72px 0 64px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.page-hero::before {
  content:'';
  position:absolute;
  top:-60px; right:-60px;
  width:360px; height:360px;
  background:radial-gradient(circle, rgba(39,174,96,.15) 0%, transparent 65%);
}
.page-hero::after {
  content:'';
  position:absolute;
  bottom:-40px; left:-40px;
  width:260px; height:260px;
  background:radial-gradient(circle, rgba(21,101,192,.12) 0%, transparent 65%);
}
.page-hero .container { position:relative; z-index:1; }
.page-hero h1 { font-size:clamp(2rem,4vw,2.8rem); font-weight:800; margin-bottom:14px; }
.page-hero p  { font-size:1.05rem; color:rgba(255,255,255,.82); max-width:600px; margin:0 auto 20px; }
.breadcrumb {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.8rem;
  color:rgba(255,255,255,.6);
}
.breadcrumb a { color:rgba(255,255,255,.6); text-decoration:none; }
.breadcrumb a:hover { color:var(--green-light); }
.breadcrumb i { font-size:.65rem; color:rgba(255,255,255,.35); }

/* ============================================================
   FORMS (contact, audit, consultation)
   ============================================================ */
.form-group { margin-bottom:20px; }
.form-label {
  display:block;
  font-size:.82rem;
  font-weight:600;
  color:#1a1a2e;
  margin-bottom:6px;
}
.form-control {
  width:100%;
  padding:12px 16px;
  border:2px solid #e8f5e9;
  border-radius:12px;
  font-family:inherit;
  font-size:.92rem;
  color:#1a1a2e;
  background:#fff;
  transition:border-color .2s, box-shadow .2s;
  outline:none;
}
.form-control:focus {
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(39,174,96,.12);
}
.form-control::placeholder { color:#bbb; }
.form-control.error { border-color:#e74c3c; }
textarea.form-control { resize:vertical; min-height:130px; }
.form-select {
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2327AE60' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:40px;
}
.form-error { font-size:.78rem; color:#e74c3c; margin-top:4px; }
.form-success { font-size:.82rem; color:var(--green-dark); margin-top:4px; }

/* ============================================================
   ALERT BOXES
   ============================================================ */
.alert {
  padding:14px 18px;
  border-radius:12px;
  font-size:.88rem;
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:18px;
}
.alert i { flex-shrink:0; margin-top:1px; }
.alert-success { background:#e8f5e9; color:#1e8449; border:1px solid rgba(39,174,96,.3); }
.alert-error   { background:#fdf0f0; color:#c0392b; border:1px solid rgba(231,76,60,.3); }
.alert-info    { background:#e3f2fd; color:#1565C0; border:1px solid rgba(21,101,192,.3); }
.alert-warning { background:#fff8e1; color:#d68910; border:1px solid rgba(214,137,16,.3); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x:auto; border-radius:14px; border:1px solid rgba(39,174,96,.1); }
table { width:100%; border-collapse:collapse; }
thead tr { background:var(--grad-hero); color:#fff; }
thead th {
  padding:14px 18px;
  font-size:.8rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.8px;
  text-align:left;
}
tbody tr { border-bottom:1px solid rgba(39,174,96,.07); transition:background .15s; }
tbody tr:hover { background:rgba(39,174,96,.04); }
tbody td { padding:13px 18px; font-size:.88rem; color:#444; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:48px;
  flex-wrap:wrap;
}
.page-link {
  width:40px; height:40px;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  border:2px solid rgba(39,174,96,.2);
  color:var(--gray);
  text-decoration:none;
  font-weight:600;
  font-size:.88rem;
  transition:all .2s;
}
.page-link:hover,
.page-link.active {
  background:var(--grad-brand);
  border-color:transparent;
  color:#fff;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width:40px; height:40px;
  border:3px solid rgba(39,174,96,.15);
  border-top-color:var(--green);
  border-radius:50%;
  animation:spin .7s linear infinite;
  margin:0 auto;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ============================================================
   RESPONSIVE FOOTER
   ============================================================ */
@media(max-width:1024px){
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media(max-width:640px){
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .footer-bottom-links { justify-content:center; }
}
