/* =====================
   CUSTOM PROPERTIES
   ===================== */
:root {
  --charcoal: #15284b;
  --grey-blue: #576680;
  --glacier: #8c9db5;
  --burnt-orange: #c86444;
  --terracotta: #e28769;
  --azure: #edf0f2;
  --off-white: #e8e6e0;
  --slate: #2c353f;
  --sage: #7a9374;
  --crimson: #a33b3b;

  --font-logo: 'Quicksand', sans-serif;
  --font-style: 'Cormorant Garamond', Georgia, serif;
  --font-body: Georgia, serif;

  --max-width: 1200px;
  --section-padding: 80px 24px;
  --radius: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =====================
   UTILITIES
   ===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  font-family: var(--font-style);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subheading {
  font-size: 1.1rem;
  opacity: 0.75;
  margin-bottom: 48px;
  max-width: 560px;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}

.btn--orange {
  background: var(--burnt-orange);
  color: var(--off-white);
  border-color: var(--burnt-orange);
}

.btn--orange:hover {
  background: #a8512f;
  border-color: #a8512f;
}

.btn--ghost {
  background: transparent;
  color: var(--off-white);
  border-color: var(--off-white);
}

.btn--ghost:hover {
  background: var(--off-white);
  color: var(--charcoal);
}

/* =====================
   NAV
   ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--off-white);
  transition: box-shadow var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 16px rgba(21, 40, 75, 0.12);
  backdrop-filter: blur(8px);
  background: rgba(232, 230, 224, 0.92);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav__logo {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.5rem;
  white-space: nowrap;
}

.nav__logo-online { color: var(--charcoal); }
.nav__logo-ify    { color: var(--burnt-orange); }

.nav__links {
  display: none;
  gap: 32px;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--burnt-orange); }

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--off-white);
  border-top: 1px solid rgba(21, 40, 75, 0.1);
  padding: 16px 24px 24px;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(21, 40, 75, 0.07);
}

.nav__mobile a:last-child {
  border-bottom: none;
  margin-top: 8px;
}

/* Desktop nav */
@media (min-width: 1280px) {
  .nav__links    { display: flex; }
  .nav__hamburger { display: none; }
  .nav__mobile   { display: none !important; }
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  background: var(--charcoal);
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__circle {
  position: absolute;
  border-radius: 50%;
}

.hero__circle--1 {
  width: 480px;
  height: 480px;
  background: rgba(200, 100, 68, 0.12);
  right: -120px;
  top: -120px;
}

.hero__circle--2 {
  width: 280px;
  height: 280px;
  background: rgba(140, 157, 181, 0.10);
  right: 80px;
  bottom: -80px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 16px;
}

.hero__heading {
  font-family: var(--font-style);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--off-white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--off-white);
  opacity: 0.78;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__trust {
  font-size: 0.8rem;
  color: var(--off-white);
  opacity: 0.55;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .hero__circle--1,
  .hero__circle--2 { display: none; }
}

/* =====================
   SERVICES
   ===================== */
.services {
  background: var(--azure);
  padding: var(--section-padding);
  text-align: center;
}

.services .section-subheading {
  margin: 0 auto 48px;
}

/* =====================
   CAROUSEL
   ===================== */
.carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel__track-wrap {
  width: 100%;
  max-width: 960px;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel__item {
  flex-shrink: 0;
  padding: 16px;
  transition: opacity 0.4s ease;
}

.carousel__item:not(.active) {
  opacity: 0.45;
}

.carousel__item.active {
  opacity: 1;
}

.service-card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 36px 28px;
  height: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.carousel__item.active .service-card {
  border-color: var(--burnt-orange);
  box-shadow: 0 8px 32px rgba(200, 100, 68, 0.16);
}

.service-card__icon {
  margin-bottom: 20px;
}

.service-card__title {
  font-family: var(--font-style);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--grey-blue);
  line-height: 1.65;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 32px));
  background: #fff;
  border: 2px solid var(--glacier);
  color: var(--charcoal);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: border-color var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__arrow:hover {
  border-color: var(--burnt-orange);
  color: var(--burnt-orange);
}

.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }

.carousel__dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--glacier);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width var(--transition), background var(--transition);
}

.carousel__dot.active {
  width: 24px;
  background: var(--burnt-orange);
}

@media (max-width: 767px) {
  .carousel__item { flex-shrink: 0; }
  .carousel__arrow--prev { left: 4px; }
  .carousel__arrow--next { right: 4px; }
}

/* =====================
   WHY ONLINEIFY
   ===================== */
.why {
  background: #fff;
  padding: var(--section-padding);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 8px;
}

.why__block {
  padding: 32px;
  border-left: 3px solid var(--burnt-orange);
  background: var(--azure);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.why__title {
  font-family: var(--font-style);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.why__desc {
  font-size: 0.95rem;
  color: var(--grey-blue);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .why__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================
   HOW IT WORKS
   ===================== */
.how {
  background: var(--charcoal);
  padding: var(--section-padding);
  text-align: center;
}

.how .section-heading {
  color: var(--off-white);
}

.how .section-subheading {
  color: var(--off-white);
  opacity: 0.7;
  margin: 0 auto 56px;
}

.how__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.how__step {
  position: relative;
  max-width: 280px;
}

.how__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--burnt-orange);
  color: var(--off-white);
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.how__title {
  font-family: var(--font-style);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 10px;
}

.how__desc {
  font-size: 0.9rem;
  color: var(--off-white);
  opacity: 0.7;
  line-height: 1.65;
}

.how__connector {
  font-size: 1.8rem;
  color: var(--burnt-orange);
  opacity: 0.6;
  line-height: 1;
}

@media (min-width: 768px) {
  .how__steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }

  .how__step {
    flex: 1;
    max-width: 240px;
  }

  .how__connector {
    padding-top: 16px;
    flex-shrink: 0;
    font-size: 2rem;
  }
}

/* =====================
   CTA BANNER
   ===================== */
.cta-banner {
  background: var(--burnt-orange);
  padding: 72px 24px;
  text-align: center;
}

.cta-banner .section-heading {
  color: var(--off-white);
  margin-bottom: 12px;
}

.cta-banner__sub {
  font-size: 1.1rem;
  color: var(--off-white);
  opacity: 0.88;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn--cta-white {
  background: var(--off-white);
  color: var(--burnt-orange);
  border-color: var(--off-white);
  font-size: 1rem;
  padding: 14px 36px;
}

.btn--cta-white:hover {
  background: #fff;
  border-color: #fff;
}

/* =====================
   FAQ
   ===================== */
.faq {
  background: var(--azure);
  padding: var(--section-padding);
}

.faq .section-subheading {
  max-width: 560px;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(21, 40, 75, 0.12);
}

.faq__item:first-child {
  border-top: 1px solid rgba(21, 40, 75, 0.12);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
}

.faq__question:hover {
  color: var(--burnt-orange);
}

.faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

.faq__item.open .faq__chevron {
  transform: rotate(90deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__answer p {
  padding: 0 0 24px;
  font-size: 0.95rem;
  color: var(--grey-blue);
  line-height: 1.75;
}

.faq__item.open .faq__answer {
  max-height: 400px;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--charcoal);
  color: var(--off-white);
  padding: 60px 24px 28px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(232, 230, 224, 0.12);
  margin-bottom: 28px;
}

.footer__logo {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.4rem;
}

.footer__logo-online { color: var(--off-white); }
.footer__logo-ify    { color: var(--burnt-orange); }

.footer__tagline {
  font-size: 0.88rem;
  opacity: 0.6;
  margin-top: 8px;
  line-height: 1.5;
  max-width: 260px;
}

.footer__nav-heading,
.footer__contact-heading {
  font-family: var(--font-logo);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 16px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity var(--transition), color var(--transition);
}

.footer__nav a:hover {
  opacity: 1;
  color: var(--burnt-orange);
}

.footer__contact p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.8;
}

.footer__contact a {
  color: var(--burnt-orange);
  opacity: 1;
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  opacity: 0.45;
}

@media (min-width: 768px) {
  .footer__main {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =====================
   RESPONSIVE POLISH
   ===================== */
@media (min-width: 768px) {
  :root {
    --section-padding: 96px 32px;
  }
}

@media (min-width: 1280px) {
  :root {
    --section-padding: 120px 48px;
  }

  .carousel__arrow--prev { left: -56px; }
  .carousel__arrow--next { right: -56px; }

  .carousel__track-wrap {
    max-width: 1100px;
  }
}
