/* =========================================================
   DC Bookkeeping & Accountancy Ltd
   Updated homepage stylesheet
   ========================================================= */

:root {
  --purple: #5b337d;
  --purple-dark: #3d2358;
  --purple-light: #eee7f4;

  --green: #23ad4f;
  --green-dark: #168f3d;
  --green-light: #e2f5e7;

  --charcoal: #292a3d;
  --text: #555a6d;
  --muted: #73788a;

  --white: #ffffff;
  --off-white: #fbfbfc;
  --light-grey: #f5f6f8;
  --border: #e4e6eb;

  --shadow: 0 12px 30px rgba(40, 36, 52, 0.1);
  --shadow-large: 0 18px 44px rgba(40, 36, 52, 0.15);

  --radius: 14px;
  --radius-large: 20px;
  --transition: 0.25s ease;
}

/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--white);
  color: var(--charcoal);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ---------------------------------------------------------
   General layout
   --------------------------------------------------------- */

.container {
  width: min(1180px, 90%);
  margin-inline: auto;
}

section {
  padding: 74px 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--text);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 9px 22px rgba(35, 173, 79, 0.2);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(35, 173, 79, 0.28);
}

.button.secondary {
  border-color: var(--purple);
  background: transparent;
  color: var(--purple);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--purple);
  color: var(--white);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 18px rgba(20, 20, 30, 0.04);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.site-logo {
  width: 180px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.main-navigation a {
  position: relative;
  display: block;
  padding: 34px 0;
  color: var(--charcoal);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color var(--transition);
}

.main-navigation a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 23px;
  width: 0;
  height: 2px;
  border-radius: 10px;
  background: var(--green);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--green);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
  width: 100%;
}

.header-button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 86px 0 80px;
  background:
    radial-gradient(
      circle at -4% 38%,
      rgba(100, 49, 145, 0.27) 0,
      rgba(100, 49, 145, 0.13) 15%,
      transparent 35%
    ),
    radial-gradient(
      circle at 105% 16%,
      rgba(35, 173, 79, 0.34) 0,
      rgba(35, 173, 79, 0.18) 25%,
      transparent 52%
    ),
    linear-gradient(
      110deg,
      #f6effb 0%,
      #fdfcfd 43%,
      #edf5f0 70%,
      #ccefd5 100%
    );
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.6;
  background:
    radial-gradient(
      ellipse at 46% 0%,
      rgba(255, 255, 255, 0.9),
      transparent 48%
    ),
    linear-gradient(
      125deg,
      transparent 34%,
      rgba(91, 51, 125, 0.05) 35%,
      transparent 61%
    );
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -150px;
  bottom: -300px;
  width: 700px;
  height: 700px;
  border: 120px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  align-items: center;
  gap: 82px;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--purple-dark);
}

.hero h1 span {
  display: inline;
  color: var(--green);
}

.hero-intro {
  max-width: 680px;
  color: #4f5368;
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.hero-buttons .button {
  min-width: 186px;
}

/* ---------------------------------------------------------
   Why Choose card
   --------------------------------------------------------- */

.hero-card {
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-large);
  backdrop-filter: blur(8px);
}

.hero-card h2 {
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 1.45rem;
}

.hero-card ul {
  display: grid;
}

.hero-card li {
  position: relative;
  padding: 13px 0 13px 34px;
  border-bottom: 1px solid var(--border);
  color: #33364a;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-card li:last-child {
  border-bottom: 0;
}

.hero-card li::before {
  content: "✓";
  position: absolute;
  top: 12px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.73rem;
  font-weight: 800;
}

/* ---------------------------------------------------------
   Section headings
   --------------------------------------------------------- */

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  color: var(--purple);
  font-size: 2rem;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 66px;
  height: 3px;
  margin: 12px auto 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--purple), var(--green));
}

.section-heading p {
  color: var(--text);
}

/* ---------------------------------------------------------
   Services
   --------------------------------------------------------- */

.services {
  padding: 48px 0 26px;
  background: var(--white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 225px;
  padding: 20px 18px 24px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(35, 173, 79, 0.35);
  transform: translateY(-7px);
  box-shadow: var(--shadow-large);
}

.service-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 1.7rem;
  font-weight: 800;
}

.vat-icon {
  font-size: 0.8rem;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--purple);
  font-size: 1.03rem;
}

.card p {
  color: #595d6e;
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   Feature panels
   --------------------------------------------------------- */

.feature-panels {
  padding: 0 0 36px;
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}

.about-panel,
.cta-panel {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  padding: 34px 48px;
  border-radius: var(--radius);
}

.about-panel {
  background:
    linear-gradient(
      120deg,
      rgba(83, 44, 113, 0.99),
      rgba(63, 34, 91, 0.99)
    );
  color: var(--white);
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      transparent 35%,
      rgba(255, 255, 255, 0.03) 36%,
      transparent 60%
    );
}

.panel-content {
  position: relative;
  z-index: 2;
}

.about-panel h2,
.cta-panel h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.about-panel h2 {
  color: var(--white);
}

.about-panel p {
  max-width: 560px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.91rem;
  line-height: 1.5;
}

.panel-button {
  min-height: 40px;
  padding: 9px 22px;
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
  box-shadow: none;
}

.panel-button:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--purple);
}

.panel-watermark {
  position: absolute;
  right: 24px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.07);
  font-size: 10rem;
  line-height: 1;
}

.cta-panel {
  background:
    radial-gradient(
      circle at 100% 100%,
      rgba(255, 255, 255, 0.11),
      transparent 42%
    ),
    linear-gradient(130deg, var(--green-dark), #29bd59);
  color: var(--white);
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 45px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-panel h2 {
  color: var(--white);
}

.cta-panel p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.cta-button {
  min-height: 40px;
  padding: 9px 24px;
  border-color: var(--white);
  background: var(--white);
  color: var(--green-dark);
  box-shadow: none;
}

.cta-button:hover {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
}

/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */

.testimonials {
  background: var(--light-grey);
}

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

.testimonial-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.testimonial-card p {
  margin-bottom: 18px;
  color: var(--charcoal);
  font-size: 1rem;
  font-style: italic;
}

.testimonial-card footer {
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */

.contact-section {
  background:
    linear-gradient(
      120deg,
      rgba(91, 51, 125, 0.05),
      rgba(35, 173, 79, 0.07)
    );
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.contact-grid h2 {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--purple-dark);
}

.contact-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--white);
  box-shadow: var(--shadow-large);
}

.contact-card p {
  margin-bottom: 18px;
}

.contact-card strong {
  color: var(--purple);
}

.contact-card a:not(.button):hover {
  color: var(--green-dark);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  padding-top: 52px;
  background:
    linear-gradient(
      115deg,
      #24132e,
      #392048 50%,
      #201129
    );
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 42px;
}

.footer-logo {
  width: 270px;
  max-height: 90px;
  margin-bottom: 14px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.08);
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--green);
}

.copyright {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 0.82rem;
}

/* ---------------------------------------------------------
   Accessibility
   --------------------------------------------------------- */

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(35, 173, 79, 0.4);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   Responsive: laptops
   --------------------------------------------------------- */

@media (max-width: 1120px) {
  .site-logo {
    width: 260px;
  }

  .header-inner {
    gap: 20px;
  }

  .main-navigation ul {
    gap: 20px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ---------------------------------------------------------
   Responsive: tablets
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 15px 0;
  }

  .main-navigation {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--border);
  }

  .main-navigation ul {
    justify-content: center;
  }

  .main-navigation a {
    padding: 18px 0;
  }

  .main-navigation a::after {
    bottom: 10px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-card {
    max-width: 620px;
  }

  .feature-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

/* ---------------------------------------------------------
   Responsive: mobile
   --------------------------------------------------------- */

@media (max-width: 680px) {
  section {
    padding: 60px 0;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    align-items: flex-start;
  }

  .logo {
    width: 100%;
  }

  .site-logo {
    width: 245px;
  }

  .header-button {
    width: 100%;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .main-navigation a::after {
    display: none;
  }

  .hero {
    padding: 68px 0;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .hero-card {
    padding: 24px 22px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 190px;
  }

  .about-panel,
  .cta-panel {
    padding: 30px 25px;
  }

  .contact-grid {
    gap: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}