/* =========================================================
   9STELLA — Public Site Design System
   Brand palette derived from the 9stella logo
   ========================================================= */

:root {
  --brand-primary: #cf5a28;      /* terracotta orange - wordmark */
  --brand-primary-dark: #a8441c;
  --brand-primary-light: #e8792f;
  --brand-accent: #f1b558;       /* gold - star trail */
  --brand-accent-dark: #e8912f;
  --ink-900: #1a1a2e;
  --ink-700: #3a3a4a;
  --ink-500: #6b6b7b;
  --ink-300: #a0a0ac;
  --surface-0: #ffffff;
  --surface-100: #faf7f4;
  --surface-200: #f3ede6;
  --border-color: #ece4dc;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(26,26,46,0.06);
  --shadow-md: 0 10px 30px rgba(207,90,40,0.12);
  --shadow-lg: 0 20px 50px rgba(26,26,46,0.14);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface-0);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.25;
}

a { text-decoration: none; color: var(--brand-primary); transition: all .2s ease; }
a:hover { color: var(--brand-primary-dark); }

::selection { background: var(--brand-accent); color: var(--ink-900); }

.text-brand { color: var(--brand-primary); }
.bg-surface-100 { background: var(--surface-100); }
.bg-surface-200 { background: var(--surface-200); }

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: rgba(207,90,40,0.08);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--brand-accent-dark);
  border-radius: 50%;
}

.section-title { font-size: 2.4rem; margin-bottom: 18px; }
.section-title span { color: var(--brand-primary); }
.section-subtitle { color: var(--ink-500); font-size: 1.05rem; max-width: 620px; }

/* ---------------- Buttons ---------------- */
.btn-brand {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-brand:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(207,90,40,0.22); color: #fff; }

.btn-outline-brand {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all .2s ease;
}
.btn-outline-brand:hover { background: var(--brand-primary); color: #fff; }

.btn-light-round {
  background: #fff;
  color: var(--brand-primary);
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.btn-light-round:hover { background: var(--brand-primary); color: #fff; transform: translateY(-2px); }

/* ---------------- Navbar ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all .25s ease;
}
.site-header .navbar-brand img { height: 100px; }
.site-header .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink-700) !important;
  padding: 10px 16px !important;
  position: relative;
}
.site-header .nav-link.active,
.site-header .nav-link:hover { color: var(--brand-primary) !important; }
.top-bar {
  background: var(--ink-900);
  color: #d8d8e0;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar a { color: #d8d8e0; }
.top-bar a:hover { color: var(--brand-accent); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 130px 0 100px;
  background: radial-gradient(circle at 15% 20%, rgba(207,90,40,0.08), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(241,181,88,0.15), transparent 45%),
              var(--surface-100);
  overflow: hidden;
}
.hero h1 { font-size: 3.2rem; }
.hero .lead { font-size: 1.15rem; color: var(--ink-500); }
.hero-shape {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  opacity: .12; filter: blur(10px);
}
@media (max-width: 768px) {
  .hero { padding: 90px 0 60px; }
  .hero h1 { font-size: 2.1rem; }
}

.stat-box { text-align: center; }
.stat-box .num { font-family: var(--font-heading); font-weight: 800; font-size: 2.4rem; color: var(--brand-primary); }
.stat-box .label { color: var(--ink-500); font-size: .9rem; }

/* ---------------- Cards ---------------- */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-color);
  transition: all .3s ease;
  height: 100%;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #fff; font-size: 26px;
  margin-bottom: 22px;
}
.service-card h4 { font-size: 1.2rem; }
.service-card .arrow-link { font-weight: 600; font-family: var(--font-heading); font-size: .9rem; }

.portfolio-card { border-radius: var(--radius-md); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.portfolio-card img { width: 100%; height: 280px; object-fit: cover; transition: transform .4s ease; }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: #fff; opacity: 0; transition: opacity .3s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .cat { color: var(--brand-accent); font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.portfolio-overlay h5 { color: #fff; margin: 4px 0 0; }

.testimonial-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  height: 100%;
}
.testimonial-card .quote-icon { color: var(--brand-accent); font-size: 2rem; opacity: .6; }
.testimonial-card .stars { color: var(--brand-accent-dark); font-size: .85rem; }
.testimonial-card .client { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testimonial-card .client img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }

.pricing-card {
  background: #fff; border-radius: var(--radius-lg); padding: 44px 34px;
  border: 1px solid var(--border-color); text-align: center; height: 100%;
  transition: all .3s ease; position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.pricing-card .badge-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand-primary); color: #fff; padding: 6px 18px;
  border-radius: 30px; font-size: .75rem; font-weight: 700; letter-spacing: 1px;
}
.pricing-card .price { font-family: var(--font-heading); font-weight: 800; font-size: 2.6rem; color: var(--ink-900); }
.pricing-card .price small { font-size: 1rem; color: var(--ink-500); font-weight: 500; }
.pricing-card ul { list-style: none; padding: 0; margin: 26px 0; text-align: left; }
.pricing-card ul li { padding: 8px 0; color: var(--ink-700); }
.pricing-card ul li i { color: var(--brand-primary); margin-right: 10px; }

.team-card { text-align: center; }
.team-card .photo-wrap { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; position: relative; }
.team-card img { width: 100%; height: 300px; object-fit: cover; transition: transform .4s ease; }
.team-card:hover img { transform: scale(1.06); }
.team-card .social {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
  background: linear-gradient(0deg, rgba(26,26,46,0.85), transparent);
  display: flex; gap: 10px; justify-content: center; opacity: 0; transition: opacity .3s ease;
}
.team-card:hover .social { opacity: 1; }

.blog-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); height: 100%; }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card .body { padding: 26px; }
.blog-card .meta { font-size: .8rem; color: var(--ink-500); margin-bottom: 10px; }
.blog-card .meta .cat { color: var(--brand-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.blog-card h5 { font-size: 1.1rem; }

/* ---------------- CTA / Contact ---------------- */
.cta-section {
  background: linear-gradient(135deg, var(--ink-900), #2b2b45);
  color: #fff; border-radius: var(--radius-lg); padding: 70px 50px;
  position: relative; overflow: hidden;
}
.cta-section::after {
  content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px;
  background: var(--brand-primary); opacity: .25; border-radius: 50%; filter: blur(20px);
}
.cta-section h2 { color: #fff; }
.cta-section p { color: #c8c8d4; }

.contact-info-item { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.contact-info-item .icon {
  width: 52px; height: 52px; min-width: 52px; border-radius: 14px;
  background: rgba(207,90,40,0.1); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

.form-control-brand {
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  padding: 13px 18px; background: var(--surface-100);
}
.form-control-brand:focus {
  border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(207,90,40,0.12);
  background: #fff;
}

/* Honeypot spam-trap field: invisible to real visitors, but present in the DOM
   (not display:none) so most bots that pre-fill every visible-looking input
   still catch it. Off-screen positioning instead of visibility tricks that
   more sophisticated scrapers check for. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink-900); color: #b8b8c4; padding-top: 80px; }
.site-footer h6 { color: #fff; font-family: var(--font-heading); margin-bottom: 22px; }
.site-footer a { color: #b8b8c4; }
.site-footer a:hover { color: var(--brand-accent); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 50px; padding: 24px 0; font-size: .88rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; justify-content: center; margin-right: 8px;
}
.footer-social a:hover { background: var(--brand-primary); color: #fff; }

/* ---------------- Page header ---------------- */
.page-header {
  background: linear-gradient(135deg, var(--ink-900), #2b2b45);
  padding: 90px 0 60px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.page-header h1 { color: #fff; }
.page-header .breadcrumb { justify-content: center; background: transparent; margin: 0; }
.page-header .breadcrumb a { color: #c8c8d4; }
.page-header .breadcrumb .active { color: var(--brand-accent); }

/* Misc */
.divider-icon { width: 60px; height: 4px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); border-radius: 4px; margin-bottom: 20px;}
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }

.preloader {
  position: fixed; inset: 0; background: #fff; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.preloader .spinner { width: 46px; height: 46px; border: 4px solid var(--surface-200); border-top-color: var(--brand-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
