/* ==========================================================================
   CBS CREATIVE SOLUTIONS - STYLESHEET
   Colours are defined as variables below and are also overridden by
   js/config.js (theme section), so you can change them in one place.
   ========================================================================== */

:root {
  --navy:      #242a6c;
  --blue:      #2468b4;
  --blue-light:#3d8fd6;
  --charcoal:  #3c3c3c;
  --grey:      #6b6f7b;
  --mist:      #f3f6fb;
  --white:     #ffffff;
  --line:      #e3e8f0;
  --radius:    14px;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1180px;
  --header-h:  76px;
  --shadow-sm: 0 2px 10px rgba(36, 42, 108, .06);
  --shadow-md: 0 14px 40px rgba(36, 42, 108, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-light); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--mist); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--grey); font-size: 1.05rem; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; padding: 8px 14px; color: var(--charcoal);
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.nav-cta { margin-left: 10px; padding: 11px 20px; font-size: .9rem; color: var(--white); }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { color: var(--white); background: var(--navy); }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  width: 44px; height: 44px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; margin: 6px auto; background: var(--navy);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 12px 16px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .4s var(--ease), opacity .3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a.nav-cta { margin: 16px 0 0; text-align: center; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 80px) 0 90px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(61, 143, 214, .18), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(36, 42, 108, .10), transparent 60%),
    var(--white);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; color: var(--grey); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 480px; justify-self: center; width: 100%;
  display: grid; place-items: center;
}
.hero-visual .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(36, 104, 180, .35);
  animation: spin 40s linear infinite;
}
.hero-visual .ring.two { inset: 10%; border-style: solid; border-color: rgba(36, 42, 108, .12); animation-duration: 28s; animation-direction: reverse; }
.hero-visual .logo-card {
  width: 72%; padding: 34px; background: var(--white); border-radius: 28px;
  box-shadow: var(--shadow-md); animation: float 6s ease-in-out infinite;
}
.hero-visual .logo-card img { width: 100%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(36, 104, 180, .3); }
.card .icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--mist); border-radius: 16px; margin-bottom: 20px;
}
.card p { color: var(--grey); font-size: .97rem; }
.card .more { font-family: var(--font-head); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 6px; margin-top: 8px; }
.card .more:hover { gap: 10px; }

.service-card .price {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--grey);
}
.service-card .price strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); }
.service-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.service-card li { position: relative; padding-left: 24px; margin-bottom: 6px; font-size: .92rem; color: var(--charcoal); }
.service-card li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.price-card {
  display: flex; flex-direction: column; text-align: center;
  padding: 0; overflow: hidden;
}
.price-card .head { padding: 34px 24px 28px; background: var(--navy); color: var(--white); }
.price-card .head .pages { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.price-card .head h3 { color: var(--white); margin: 8px 0 4px; font-size: 1.25rem; }
.price-card .head .tag { font-size: .88rem; opacity: .8; }
.price-card .amount { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; color: var(--white); margin-top: 18px; line-height: 1; }
.price-card .amount small { font-size: .95rem; opacity: .75; font-weight: 400; }
.price-card .head.blue { background: var(--blue); }
.price-card .body { padding: 28px 24px 32px; flex: 1; display: flex; flex-direction: column; }
.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.price-card li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--grey); font-size: .95rem; }
.price-card li:last-child { border-bottom: 0; }
.price-card.featured { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--blue-light); color: var(--white); font-size: .72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .04em;
}
.price-card { position: relative; }
.pricing-note { text-align: center; color: var(--grey); font-size: .9rem; margin-top: 34px; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.stat { padding: 20px; background: var(--mist); border-radius: var(--radius); text-align: center; }
.stat .v { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.4rem; line-height: 1.2; }
.stat .l { font-size: .85rem; color: var(--grey); }
.value { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.value:last-child { border-bottom: 0; }
.value .dot { flex: 0 0 12px; height: 12px; margin-top: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(36, 104, 180, .12); }
.value h3 { margin-bottom: 4px; font-size: 1.08rem; }
.value p { margin: 0; color: var(--grey); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 70px) 0 70px; text-align: center;
  background: linear-gradient(180deg, var(--mist), var(--white));
}
.page-hero p { color: var(--grey); max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white); border-radius: 24px; padding: 60px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px;
  border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.cta-band h2 { color: var(--white); }
.cta-band p { opacity: .85; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 36px; }
.info-card h3 { color: var(--white); margin-bottom: 22px; }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item .ic {
  flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); font-size: 1.1rem;
}
.info-item .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.info-item a, .info-item span { color: var(--white); }
.info-item a:hover { color: var(--blue-light); }
.hours { font-size: .92rem; opacity: .9; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.hours div:last-child { border-bottom: 0; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-size: .88rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 104, 180, .12);
}
.field .err { color: #c0392b; font-size: .82rem; margin-top: 4px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.form-status { margin-top: 14px; font-size: .95rem; display: none; padding: 12px 16px; border-radius: 10px; }
.form-status.ok { display: block; background: #e8f7ee; color: #1e7a43; }
.form-status.bad { display: block; background: #fdecea; color: #a93226; }
.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer img { height: 56px; width: auto; background: var(--white); border-radius: 10px; padding: 6px 10px; margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Keep hover lift and featured lift working after the reveal animation has finished */
.card.reveal.in { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card.reveal.in:hover { transform: translateY(-6px); }
.price-card.featured.reveal.in { transform: translateY(-10px); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; order: -1; }
  .price-card.featured, .price-card.featured.reveal.in { transform: none; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .brand img { height: 44px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card, .info-card { padding: 26px; }
  .cta-band { padding: 44px 24px; }
  .stats { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
