/* =============================================
   Synergy Solutions — Custom Styles
   Bootstrap 5 + Google Fonts (Montserrat)
   ============================================= */

:root {
  --navy:       #1a1f36;
  --navy-light: #252d4a;
  --orange:     #e8622a;
  --orange-hov: #cf4f1a;
  --off-white:  #f7f6f2;
  --text:       #2c2c2c;
  --mid:        #6b7280;
  --border:     #e2e0db;
}

/* ---- Base ---- */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--navy);
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hov); }

/* ---- Navbar ---- */
.navbar-synergy {
  background: #fff;
  padding: 0.6rem 0;
  box-shadow: 0 1px 0 var(--border);
  transition: padding 0.3s, box-shadow 0.3s;
}

.navbar-synergy.scrolled {
  padding: 0.35rem 0;
  box-shadow: 0 2px 16px rgba(26,31,54,0.12);
}

.navbar-synergy .navbar-brand { padding: 0; }

.navbar-logo {
  height: 90px;
  width: auto;
  display: block;
  transition: height 0.3s;
}

.navbar-synergy.scrolled .navbar-logo { height: 69px; }

.navbar-synergy .nav-link {
  color: var(--navy) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s;
}

.navbar-synergy .nav-link:hover,
.navbar-synergy .nav-link.active {
  color: var(--orange) !important;
}

.navbar-toggler { border-color: var(--border); }

/* Centre the menu on the page itself, not just the space beside the logo */
@media (min-width: 1200px) {
  .navbar-synergy .container { position: relative; }
  .navbar-synergy .navbar-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .navbar-synergy .nav-link { white-space: nowrap; }
}

/* ---- Buttons ---- */
.btn-synergy {
  background: var(--orange);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-synergy:hover {
  background: var(--orange-hov);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-light-synergy {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.65);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.73rem 2rem;
  border-radius: 2px;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline-light-synergy:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

/* Background image on its own layer so it can slowly zoom */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/synergy_hero.jpg') center center / cover no-repeat;
  animation: hero-zoom 24s ease-out both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,31,54,0.88) 40%, rgba(26,31,54,0.5) 100%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0 -5%; /* overhang so the drifting glow never shows an edge */
  background-image:
    radial-gradient(circle at 76% 16%, rgba(232,98,42,0.15) 0%, transparent 48%),
    radial-gradient(circle at 8%  82%, rgba(232,98,42,0.07) 0%, transparent 40%);
  pointer-events: none;
  animation: hero-glow 9s ease-in-out infinite alternate;
}

.hero-geo {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
  animation: hero-fade 1.6s 0.6s ease-out both, hero-breathe 8s 2.2s ease-in-out infinite;
}

.hero-geo::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 2px solid rgba(232,98,42,0.2);
  border-top-color: rgba(232,98,42,0.75);
  border-radius: 50%;
  animation: hero-spin 18s linear infinite;
}

@media (max-width: 767px) { .hero-geo { display: none; } }

.hero .container { position: relative; z-index: 2; }

/* Label, heading, intro and buttons fade up one after another */
.hero .row > div > * {
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .row > div > :nth-child(1) { animation-delay: 0.2s; }
.hero .row > div > :nth-child(2) { animation-delay: 0.4s; }
.hero .row > div > :nth-child(3) { animation-delay: 0.65s; }
.hero .row > div > :nth-child(4) { animation-delay: 0.9s; }

@keyframes hero-zoom    { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes hero-rise    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hero-fade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-spin    { to { transform: rotate(360deg); } }
@keyframes hero-breathe {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(-50%) scale(1.05); }
}
@keyframes hero-glow    { from { opacity: 0.6; transform: translateX(-2%); } to { opacity: 1; transform: translateX(2%); } }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-pattern, .hero-geo, .hero-geo::before,
  .hero .row > div > * { animation: none; }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 800;
}

.hero h1 span { color: var(--orange); }

.hero .hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 500px;
  line-height: 1.75;
  margin: 1.5rem 0 2.5rem;
}

/* ---- Image crossfader ---- */
.img-crossfader {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,31,54,0.15);
  /* maintain aspect ratio of the images */
  aspect-ratio: 700 / 480;
}

.crossfade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.crossfade-img.active {
  opacity: 1;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: var(--navy);
  min-height: 42vh;
  display: flex;
  align-items: center;
  padding: 9.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Overlay and page image share one layer so it can slowly zoom like the home hero */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(26,31,54,0.92) 40%, rgba(26,31,54,0.65) 100%),
    var(--hero-img, none) center center / cover no-repeat;
  pointer-events: none;
  animation: hero-zoom 24s ease-out both;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(232,98,42,0.07);
  pointer-events: none;
  animation: hero-glow 9s ease-in-out infinite alternate;
}

.page-hero--about    { --hero-img: url('../images/abstract-1.jpg'); }
.page-hero--branding { --hero-img: url('../images/abstract-2.jpg'); }
.page-hero--websites { --hero-img: url('../images/abstract-3.jpg'); }
.page-hero--portfolio{ --hero-img: url('../images/abstract-4.jpg'); }
.page-hero--contact    { --hero-img: url('../images/abstract-5.jpg'); }
.page-hero--charities  { --hero-img: url('../images/publication.jpg'); }

/* Breadcrumb, heading and intro fade up in turn */
.page-hero .container > * {
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page-hero .container > :nth-child(1) { animation-delay: 0.15s; }
.page-hero .container > :nth-child(2) { animation-delay: 0.35s; }
.page-hero .container > :nth-child(3) { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .page-hero::after,
  .page-hero .container > * { animation: none; }
}

.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.6); max-width: 560px; font-size: 1rem; line-height: 1.7; margin: 0; }

.breadcrumb {
  margin-bottom: 1.25rem;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}
.breadcrumb-item a { color: rgba(255,255,255,0.55); }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: var(--orange); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ---- Section Headings ---- */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.18;
}

.section-divider {
  width: 44px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* ---- Service Cards ---- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.service-card:hover {
  box-shadow: 0 16px 48px rgba(26,31,54,0.1);
  transform: translateY(-5px);
  border-bottom-color: var(--orange);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(232,98,42,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--orange);
}

.service-card h5 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.service-card p  { color: var(--mid); font-size: 0.9rem; line-height: 1.75; margin: 0; }

.service-card .read-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange);
}

.service-card .read-more::after {
  content: ' →';
}

/* ---- Portfolio ---- */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy);
  aspect-ratio: 4 / 3;
  display: block;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s, opacity 0.35s;
  display: block;
}

.portfolio-card:hover img {
  transform: scale(1.07);
  opacity: 0.3;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(26,31,54,0.9) 0%, transparent 60%);
}

.portfolio-card:hover .portfolio-overlay {
  background: rgba(26,31,54,0.75);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.portfolio-overlay h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.portfolio-overlay .tag {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-overlay p {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  max-width: 230px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s 0.08s, transform 0.3s 0.08s;
  margin: 0.75rem 0 0;
  line-height: 1.6;
}

.portfolio-card:hover .portfolio-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Stats Strip ---- */
.stats-strip {
  background: var(--navy);
  padding: 4rem 0;
}

.stat-item { text-align: center; }

.stat-item h3 {
  color: var(--orange);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item p {
  color: rgba(255,255,255,0.58);
  font-size: 0.87rem;
  margin: 0;
  letter-spacing: 0.03em;
}

/* ---- Process Cards ---- */
.process-card {
  background: var(--off-white);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--orange);
}

.process-num {
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(232,98,42,0.18);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ---- Values ---- */
.value-item {
  padding: 2rem;
  border-left: 3px solid var(--orange);
  background: var(--off-white);
  border-radius: 0 4px 4px 0;
  height: 100%;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, #e8622a 0%, #c84f1e 100%);
  padding: 5rem 0;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 0; }

.btn-cta-white {
  background: #fff;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.75rem 2.2rem;
  border: 2px solid #fff;
  border-radius: 2px;
  transition: all 0.2s;
  display: inline-block;
}

.btn-cta-white:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Contact ---- */
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.contact-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: rgba(232,98,42,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.1rem;
}

.contact-info-item h6 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.25rem;
}

.contact-info-item p { margin: 0; font-size: 0.95rem; color: var(--text); }

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  border-radius: 2px;
  border-color: var(--border);
  font-size: 0.93rem;
  padding: 0.65rem 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,98,42,0.14);
}

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  padding: 4.5rem 0 2rem;
}

.footer-brand { display: inline-block; }

.footer-brand img {
  height: 80px;
  width: auto;
  display: block;
}

.footer-desc {
  color: rgba(255,255,255,0.42);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 0.6rem;
  max-width: 280px;
}

.footer h6 {
  color: rgba(255,255,255,0.85);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.55rem; }

.footer ul li a {
  color: rgba(255,255,255,0.48);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer ul li a:hover { color: var(--orange); }

.footer-contact-item {
  color: rgba(255,255,255,0.48);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact-item i { color: var(--orange); margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.48); }
.footer-contact-item a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.78rem; margin: 0; }

.footer-bottom-links a {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: var(--orange); }

/* ---- Utilities ---- */
.bg-off-white { background: var(--off-white); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
