/* =============================================
   BRIARCLIFF TECHNOLOGY CONSULTING
   Base: Inter font, primary #d91966
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #d91966;
  --dark:      #25282b;
  --dark2:     #1d1d1d;
  --body-text: #52575c;
  --muted:     #a0a4a8;
  --light-bg:  #f8f9fa;
  --pink-light:#fbe8f0;
  --test-bg:   #fef3f3;
  --footer-bg: #1a1a1a;
  --white:     #ffffff;
  --shadow:    0 12px 24px rgba(80,80,80,.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* CONTAINER */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 90px 0; }

/* =============================================
   SECTION LABELS / TAGS
   ============================================= */
.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.tag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.tag-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.tag-line {
  width: 50px; height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

.section-top-center { text-align: center; margin-bottom: 56px; }
.section-top-center .section-tag { justify-content: center; }
.section-top-left { max-width: 560px; }

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--dark2);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* LINK-STYLE BUTTON */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  transition: gap .2s;
}
.btn-link:hover { gap: 12px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  padding: 15px 33px;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #c0154f; transform: translateY(-1px); }

.btn-sm { padding: 10px 22px; font-size: 15px; }

.btn-dark {
  display: inline-block;
  padding: 12px 26px;
  background: var(--dark);
  color: var(--white);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--dark);
  cursor: pointer;
  transition: background .2s;
}
.btn-dark:hover { background: #3a3f44; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--light-bg);
  border-bottom: 1px solid rgba(0,0,0,.06);
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--body-text);
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-primary { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--dark);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--white);
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content { flex: 1; max-width: 600px; }

.hero-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.18;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-image {
  flex: 0 0 500px;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-img-main { width: 100%; position: relative; }
.hero-img-main .hero-svg { width: 100%; border-radius: 20px; }

.hero-img-small {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-badge {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 130px;
}
.stat-badge--bottom { margin-top: 16px; }

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}
.stat-lbl {
  display: block;
  font-size: 12px;
  color: var(--body-text);
  margin-top: 2px;
}

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: rgba(255,255,255,0.002);
  border-radius: 10px;
  padding: 44px 40px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(80,80,80,.12);
}

.service-icon {
  width: 95px; height: 95px;
  border-radius: 50%;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.service-icon svg { width: 45px; height: 45px; }

.service-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
}

.service-text {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.67;
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--white); }

.about-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-content { flex: 1; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item { text-align: left; }

.stat-big {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.stat-text {
  font-size: 14px;
  color: var(--body-text);
  margin-top: 4px;
}

.about-image {
  flex: 0 0 500px;
  position: relative;
}

.about-img-wrap { position: relative; }

.about-circle-deco {
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  border: 2px dashed rgba(217,25,102,.3);
  top: -30px; right: -30px;
  pointer-events: none;
}

.about-img-placeholder { border-radius: 16px; overflow: hidden; }
.about-svg { width: 100%; }

/* =============================================
   TEAM
   ============================================= */
.team { background: var(--light-bg); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.team-card:hover { transform: translateY(-5px); }

.team-img { overflow: hidden; }
.team-img svg { width: 100%; display: block; }

.team-info {
  padding: 20px 20px 22px;
}
.team-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.team-role {
  font-size: 14px;
  color: var(--muted);
}

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio { background: var(--white); }

.portfolio-header { margin-bottom: 48px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.portfolio-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.portfolio-item svg { width: 100%; display: block; transition: transform .35s; }
.portfolio-item:hover svg { transform: scale(1.04); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(217,25,102,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  border-radius: 10px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--test-bg); }

.testimonials-slider { position: relative; overflow: hidden; }

.testimonial-track {
  display: flex;
  transition: transform .4s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--white);
  border-radius: 12px;
  padding: 48px 52px;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 0 auto;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 17px;
  color: var(--body-text);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 16px;
  color: var(--dark);
}
.testimonial-author span {
  font-size: 14px;
  color: var(--muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.slider-btn:hover { background: var(--primary); color: var(--white); }

.slider-dots { display: flex; gap: 8px; align-items: center; }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot.active { background: var(--primary); transform: scale(1.3); }

/* =============================================
   PRICING
   ============================================= */
.pricing { background: var(--white); }

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.toggle-label { font-size: 16px; color: var(--dark); }

.toggle-switch {
  width: 52px; height: 28px;
  border-radius: 14px;
  background: var(--primary);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background .2s;
  padding: 0;
}

.toggle-knob {
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: transform .25s;
  display: block;
}

.toggle-switch.yearly .toggle-knob { transform: translateX(24px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
}

.pricing-card {
  background: var(--white);
  border-radius: 10px;
  padding: 48px 45px;
  box-shadow: 0 16px 32px rgba(80,80,80,.08);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pricing-card--featured {
  background: var(--primary);
  color: var(--white);
  padding: 56px 45px;
}

.pricing-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: inherit;
}

.pricing-desc {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.6;
}
.pricing-card--featured .pricing-desc { color: rgba(255,255,255,.8); }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.pricing-card--featured .price-amount { color: var(--white); }

.price-period {
  font-size: 16px;
  color: var(--muted);
}
.pricing-card--featured .price-period { color: rgba(255,255,255,.7); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.pricing-features li {
  font-size: 15px;
  color: var(--body-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card--featured .pricing-features li { color: rgba(255,255,255,.9); }

.check {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.check--white { color: var(--white); }
.check--off { color: var(--muted); }

/* =============================================
   BLOG
   ============================================= */
.blog { background: var(--light-bg); }

.blog-grid-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.blog-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.blog-card:hover { transform: translateY(-5px); }

.blog-img svg { width: 100%; display: block; }
.blog-img--featured { max-height: 380px; overflow: hidden; }

.blog-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-content { padding: 20px 22px 24px; }

.blog-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.blog-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
}
.blog-card--featured .blog-title { font-size: 20px; }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}

.newsletter-inner {
  max-width: 636px;
  margin: 0 auto;
  padding: 0 24px;
}

.newsletter-title {
  font-size: 36px;
  font-weight: 700;
  color: #fafafa;
  margin-bottom: 16px;
  line-height: 1.2;
}

.newsletter-text {
  font-size: 16px;
  color: rgba(249,249,250,.85);
  line-height: 1.7;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.newsletter-input {
  flex: 1;
  padding: 18px 22px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  border: none;
  background: #fafafa;
  color: var(--dark);
  outline: none;
  min-width: 0;
}
.newsletter-input::placeholder { color: var(--muted); }

.btn-newsletter {
  padding: 18px 28px;
  background: var(--dark);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  transition: background .2s;
  white-space: nowrap;
}
.btn-newsletter:hover { background: #3a3f44; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--footer-bg);
  padding: 70px 0 32px;
}

.footer-inner { }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 14px;
}
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: border-color .2s, color .2s;
}
.social-icon:hover { border-color: var(--primary); color: var(--primary); }
.social-icon svg { width: 16px; height: 16px; }

.footer-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links li, .footer-links a {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
  transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,.12);
  margin-bottom: 28px;
}

.footer-copy {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 42px; }
  .section-title { font-size: 38px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-inner { gap: 48px; }
  .hero-image { flex: 0 0 420px; }
}

@media (max-width: 860px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-text { margin: 0 auto 36px; }
  .hero-image { flex: none; width: 100%; max-width: 420px; }
  .hero-img-small { display: none; }

  .about-inner { flex-direction: column-reverse; }
  .about-image { flex: none; width: 100%; }
  .about-circle-deco { display: none; }

  .blog-grid-top { grid-template-columns: 1fr; }
  .blog-side { display: grid; grid-template-columns: repeat(2, 1fr); }
  .blog-grid-bottom { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pricing-card--featured { padding: 48px 45px; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--light-bg); padding: 20px 24px; gap: 20px; border-bottom: 1px solid rgba(0,0,0,.07); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .section-pad { padding: 60px 0; }
  .section-title { font-size: 32px; }
  .hero-title { font-size: 32px; }
  .newsletter-title { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-side { grid-template-columns: 1fr; }
  .blog-grid-bottom { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .testimonial-card { padding: 30px 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { border-radius: 6px 6px 0 0; }
  .btn-newsletter { border-radius: 0 0 6px 6px; }
}
