:root {
  --ink: #0b2d47;
  --ink-2: #355269;
  --brand: #0b5f8a;
  --brand-strong: #06416f;
  --accent: #df7366;
  --accent-strong: #c95447;
  --sky: #edf7fb;
  --surface: #ffffff;
  --surface-2: #f7fafc;
  --line: #dce7ee;
  --shadow-sm: 0 8px 24px rgba(11,45,71,.08);
  --shadow-md: 0 18px 50px rgba(11,45,71,.12);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
p { color: var(--ink-2); font-size: 16px; line-height: 1.75; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.025em; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); }
h2 { font-size: clamp(2rem, 3vw, 3rem); }
.container { width: min(var(--max), calc(100% - 40px)); max-width: var(--max); margin-inline: auto; padding: 0; }

/* Navigation */
.header, .pheader { position: relative; }
.pheader { min-height: auto; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(6,65,111,.08); }
nav {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.header nav {
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 0 0 20px 20px;
  padding-inline: 24px;
  box-shadow: 0 8px 30px rgba(11,45,71,.07);
}
nav img { width: 170px; height: auto; display: block; }
.nav-links { flex: 0 1 auto; text-align: right; }
.nav-links ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.nav-links ul li { padding: 0; display: block; }
.nav-links ul li::after { display: none; }
.nav-links ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
}
.nav-links ul li a:hover, .nav-links ul li a[aria-current="page"] { color: var(--brand); background: var(--sky); }
.nav-links ul li:last-child a { color: #fff; background: var(--brand); padding-inline: 20px; }
.nav-links ul li:last-child a:hover { background: var(--brand-strong); transform: translateY(-1px); }

/* Home hero */
.header {
  min-height: min(860px, 94vh);
  background-image:
    linear-gradient(100deg, rgba(247,250,252,.98) 0%, rgba(247,250,252,.92) 45%, rgba(247,250,252,.56) 70%, rgba(247,250,252,.30) 100%),
    url(../../images/headerLB1.jpg);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.header::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -180px;
  bottom: -210px;
  border-radius: 50%;
  background: rgba(223,115,102,.12);
  filter: blur(2px);
}
.text-box {
  width: min(var(--max), calc(100% - 40px));
  left: 50%; top: 51%;
  transform: translate(-50%,-50%);
  text-align: left;
  color: var(--ink);
}
.text-box h1 { max-width: 900px; margin: 0; font-weight: 780; }
.text-box h1::before {
  content: "UK ACCOUNTING • TAX • FINANCE";
  display: block;
  width: fit-content;
  margin-bottom: 24px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(11,95,138,.10);
  color: var(--brand);
  font-size: 12px;
  letter-spacing: .15em;
  font-weight: 800;
}
.text-box p { max-width: 690px; margin: 22px 0 32px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-btn, .btn, .button, form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(223,115,102,.24);
}
.hero-btn { padding-inline: 27px; min-height: 56px; }
.hero-btn::after, .button::after { content: "→"; font-size: 18px; }
.hero-btn:hover, .btn:hover, .button:hover, form input[type="submit"]:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201,84,71,.25); }

/* Generic section treatment */
.Banner { width: min(840px, calc(100% - 40px)); padding: 90px 0 34px; }
.Banner h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 3.5vw, 3.2rem); }
.Banner p { margin: 0 auto; font-size: 17px; }
.main-content, .CA-content, .DS-content { max-width: var(--max); padding: 36px 20px 80px; }
h2.section-title { margin: 52px 0 36px; font-size: clamp(2rem, 3vw, 2.7rem); }
h2.section-title:after { width: 54px; height: 4px; border-radius: 4px; background: var(--accent); }
h2.section-title p { max-width: 800px; margin: 18px auto 0; font-size: 16px; font-weight: 400; }

/* Process carousel */
carousel {
  display: block;
  min-height: auto;
  padding: 12px 0 54px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--sky) 100%);
}
.card-wrapper { margin: 0 36px 30px; padding: 24px 8px 40px; }
.card-list .card-item .card-link {
  height: 100%;
  min-height: 360px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-list .card-item .card-link:hover { border-color: rgba(11,95,138,.35); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-list .card-item .card-image { height: 176px; object-fit: contain; border-radius: 16px; background: var(--surface-2); padding: 12px; }
.card-list .card-link .badge { margin: 20px 0 12px; background: var(--sky); color: var(--brand); font-weight: 750; }
.card-list .card-link .card-title { color: var(--ink); font-size: 1.05rem; line-height: 1.55; }
.swiper-button-next, .swiper-button-prev { color: var(--brand) !important; }
.swiper-pagination-bullet-active { background: var(--brand) !important; }

/* Cards */
.services-container, .process-container, .security-container { gap: 22px; }
.card, .service-card, .benefit-item, .mission, .vision {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card { padding: 30px; }
.card:hover, .service-card:hover, .benefit-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card h3 { border: 0; color: var(--ink); padding-bottom: 0; margin: 10px 0 8px; font-size: 1.35rem; }
.card .icon { width: auto; min-height: 54px; margin: 0; font-size: 2.4rem; }
.card .icon img { width: 54px; height: 54px; object-fit: contain; }
.ReadMore { color: var(--brand); font-weight: 700; }
.card .btn { margin-top: 20px; background: var(--brand); box-shadow: none; }
.card .btn:hover { background: var(--brand-strong); }

/* Service detail page */
.page-services #features { padding: 86px 0 100px; }
.section-header { margin: 0 auto 70px; max-width: 800px; }
.section-header h2 { color: var(--ink); font-size: clamp(2.3rem, 4vw, 3.7rem); margin-bottom: 18px; }
.section-header p { color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.service-container { margin-bottom: 42px; gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.service-content { padding: clamp(30px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.service-content h3 { color: var(--ink); font-size: clamp(1.7rem, 2.4vw, 2.25rem); margin: 0 0 18px; }
.service-content p { color: var(--ink-2); line-height: 1.8; margin-bottom: 26px; }
.service-image { border-radius: 0; box-shadow: none; min-height: 360px; }
.service-image img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.service-container:hover .service-image img { transform: scale(1.025); }
.button { align-self: flex-start; background: var(--brand); box-shadow: none; }
.button:hover { background: var(--brand-strong); border: 0; }

/* About */
.page-about .hero { padding: 96px 0 90px; background: linear-gradient(135deg, #f6fbfd, #eaf5f8); }
.page-about .hero h1 { color: var(--ink); font-size: clamp(2.5rem, 4.6vw, 4.2rem); max-width: 920px; margin: 0 auto 20px; }
.page-about .hero p { color: var(--ink-2); font-size: 18px; }
.section-light, .section-dark { padding: 88px 0; }
.section-dark { background: var(--surface-2); }
.our-story p { max-width: 820px; font-size: 17px; }
.services-grid, .benefits-list { gap: 22px; }
.service-card, .benefit-item { padding: 30px; }
.service-card h4, .benefit-item h4 { color: var(--ink); font-size: 1.2rem; }
.benefit-item i { color: var(--brand) !important; }
.mission-vision { gap: 24px; }
.mission, .vision { padding: 36px; }
.cta { padding: 88px 0; background: var(--ink); text-align: center; }
.cta h2, .cta p { color: #fff; }
.cta p { opacity: .8; }
.cta .btn { margin-top: 12px; }

/* Contact */
.page-contact #contactForm { padding: 82px 20px 100px; background: var(--surface-2); }
.contact-container { width: min(var(--max), 100%); margin: 0 auto; padding: 0; gap: 50px; background: transparent; align-items: stretch; }
.contact-left { flex: 1.05; gap: 0; padding: 42px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.contact-left-title h2 { color: var(--ink); font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0 0 10px; }
.contact-left-title::after { content: "Tell us what you need and our team will get back to you."; display: block; color: var(--ink-2); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
form label { color: var(--ink); font-size: 14px; font-weight: 700; margin-top: 18px; }
form input[type="text"], form input[type="email"], form input[type="password"], form select, form textarea, .contact-inputs {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: #fbfdfe;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
}
form textarea { min-height: 150px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { outline: 3px solid rgba(11,95,138,.10); border-color: var(--brand) !important; background: #fff; }
.contact-right { flex: .95; display: flex; align-items: center; justify-content: center; border-radius: 26px; background: linear-gradient(145deg, #eaf5f8, #fdf5f2); overflow: hidden; min-height: 500px; }
.contact-right img { width: min(430px, 88%); height: auto; object-fit: contain; }

/* Legal */
.page-legal > header { background: linear-gradient(135deg, var(--ink), var(--brand)); padding: 90px 20px; }
.page-legal > header h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4rem); }
.page-legal .policy-tabs { margin: 46px 0 30px; }
.page-legal .policy-tab { border: 1px solid var(--line); border-radius: 999px; color: var(--brand); background: #fff; }
.page-legal .policy-tab.active, .page-legal .policy-tab:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-legal .policy-content { border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.page-legal .policy-content h2 { color: var(--ink); }
.page-legal .policy-content h3 { color: var(--brand); }
.page-legal .policy-content p, .page-legal .policy-content li { color: var(--ink-2); line-height: 1.75; }

/* Success */
.page-success .success { min-height: 62vh; padding: 80px 20px; }
.page-success .success span { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: #eaf8ef; color: #2f9e5b; font-size: 3.7rem; }

/* Footer */
footer { padding: 68px 0 0; background: var(--ink); color: rgba(255,255,255,.78); }
footer .container { width: min(var(--max), calc(100% - 40px)); max-width: var(--max); padding: 0; }
.footer-content { gap: 38px; margin-bottom: 44px; }
.footer-column h3 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .09em; }
.footer-column ul li, .footer-column ul li a { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.55; }
.footer-column ul li a:hover { color: #fff; text-decoration: none; }
.footer-column .btn { background: var(--accent); min-height: 44px; padding-inline: 18px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.52); padding: 22px 0; }

/* Accessibility / polish */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(11,95,138,.28); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

@media (max-width: 900px) {
  nav { width: min(100% - 28px, var(--max)); min-height: 76px; }
  .header nav { width: calc(100% - 24px); }
  nav img { width: 145px; }
  .contact-container { flex-direction: column; }
  .contact-right { min-height: 360px; }
}

@media (max-width: 736px) {
  .container { width: min(100% - 28px, var(--max)); }
  .header { min-height: 760px; background-position: 62% center; }
  .header nav { padding-inline: 14px; }
  .text-box { width: calc(100% - 40px); top: 53%; }
  .text-box h1 { font-size: clamp(2.35rem, 11vw, 3.45rem); }
  .text-box h1 br { display: none; }
  .text-box p { font-size: 1rem; }
  nav .fa { display: block; color: var(--ink); margin: 8px; font-size: 24px; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -290px;
    width: min(290px, 84vw);
    height: 100vh;
    padding: 26px 18px;
    background: var(--ink);
    z-index: 100;
    text-align: left;
    box-shadow: -20px 0 60px rgba(0,0,0,.18);
    transition: right .3s ease;
  }
  .nav-links .fa { color: #fff; margin-left: auto; }
  .nav-links ul { display: block; padding: 24px 0 0; }
  .nav-links ul li { margin-bottom: 8px; }
  .nav-links ul li a, .nav-links ul li:last-child a { width: 100%; color: #fff; background: transparent; border-radius: 10px; padding: 0 14px; }
  .nav-links ul li a:hover, .nav-links ul li a[aria-current="page"], .nav-links ul li:last-child a:hover { color: #fff; background: rgba(255,255,255,.10); }
  .Banner { padding-top: 68px; }
  .card-wrapper { margin: 0 6px 28px; }
  .main-content, .CA-content, .DS-content { padding-inline: 14px; }
  .services-container, .process-container, .security-container { grid-template-columns: 1fr; }
  .service-container, .service-container:nth-child(odd), .service-container:nth-child(even) { flex-direction: column; }
  .service-image { order: -1; min-height: 250px; }
  .service-image img { min-height: 250px; max-height: 320px; }
  .page-about .hero, .section-light, .section-dark, .cta { padding: 64px 0; }
  .contact-left { padding: 28px 22px; }
  .page-contact #contactForm { padding-inline: 14px; }
  .footer-content { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-content { grid-template-columns: 1fr; }
  .hero-btn, .button { width: 100%; }
  .text-box h1::before { font-size: 10px; letter-spacing: .11em; }
  .page-legal .policy-tab { width: 100%; text-align: center; }
}
