:root {
  --hero-bg: url(/img/hero-image/bgn-gradient1.jpg);
  --primary-color: #235675;
  --accent-color: #ffffff;
  --max-width: 1200px;
  --overlay: rgba(10, 20, 30, 0.15);
  --pad-vertical: 6rem;
  --bg: #f4f5f5;
  --accent: #0e707f;
  /* teal-ish used in image */
  --accent-2: #153f45;
  --card-bg: #fff;
  --max-width: 980px;
  --gutter: 28px;
  --radius: 6px;
}

.hero-section {
  position: relative;
  /* overflow: hidden; */
  /* keeps decoration contained */
  background-image: url('https://taxdeskservice.com/img/hero-image/bgn-gradient1.jpg') !important;
  /* background-position: center center; */
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--accent-color);
  text-align: center;
  padding: var(--pad-vertical) 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* optional translucent overlay to improve text contrast */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

/* Top slanted decoration image — absolute so it sits above the section top */
.hero-top-triangle {
  position: absolute;
  top: -2px;
  /* tweak if needed */
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  z-index: 2;
  pointer-events: none;
}

/* content wrapper with a centered max width so lines don't get too long */
.hero-inner {
  position: relative;
  /* above overlay */
  z-index: 3;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* headline */
.hero-title {
  margin: 0 0 1rem 0;
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(1.6rem, 4.2vw, 3.0rem);
  letter-spacing: -0.02em;
  color: #eee;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

/* subheadline */
.hero-sub {
  margin: 0 0 1.8rem 0;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  opacity: 0.95;
}

/* CTA */
.hero-cta {
  display: inline-block;
  text-decoration: none;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(35, 86, 117, 0.12);
  transition: transform .15s ease, box-shadow .15s ease;
  border: 2px solid rgba(255, 255, 255, 0.12);
  /* subtle edge on light bg */
}

/* CTA hover */
.hero-cta:hover,
.hero-cta:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(35, 86, 117, 0.18);
  outline: none;
}

/* --- Larger screens tweaks --- */

/* Tablet-ish */
@media (min-width: 600px) {
  :root {
    --pad-vertical: 8rem;
  }

  /* taller vertical padding */

  .hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
  }

  .hero-sub {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  }

  .hero-inner {
    padding: 3rem 2rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --pad-vertical: 9.5rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 3.2vw, 4.2rem);
    /* big bold heading */
  }

  .hero-sub {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
  }

  .hero-inner {
    padding: 4rem 2.5rem;
  }
}

/* Extra polish: keep hero smaller on very short viewports */
@media (max-height: 420px) {
  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Accessibility focus styles for keyboard users */
.hero-cta:focus {
  box-shadow: 0 0 0 4px rgba(35, 86, 117, 0.18);
}

/* ===== SOFTWARE SECTION ===== */
.sw-section {
  padding: 3.5rem 1rem;
  background: #fff;
  color: #111;
}

.sw-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.sw-title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.sw-title strong {
  color: #0f5f77;
  font-weight: 700;
}

/* === GRID LAYOUT === */
.sw-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-items: center;
  align-items: stretch;
}

/* === CARD === */
.sw-card {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 250px;
  min-height: 200px;
  /* equal height for all boxes */
  padding: 1.2rem 1rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.sw-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* === LOGO === */
.sw-logo {
  width: 100%;
  height: 80px;
  /* fixed visual height */
  object-fit: contain;
  /* keeps logo proportions */
  object-position: center;
  /* centers it vertically */
  margin-bottom: 0.9rem;
  display: block;
}

/* === CAPTION === */
.sw-card figcaption {
  font-size: 0.95rem;
  color: #111;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* === RESPONSIVE BREAKPOINTS === */

/* Tablet */
@media (max-width: 900px) {
  .sw-card {
    min-height: 180px;
    max-width: 200px;
  }

  .sw-logo {
    height: 70px;
  }
}

/* Phone */
@media (max-width: 600px) {
  .sw-card {
    min-height: 160px;
    max-width: 180px;
    padding: 1rem;
  }

  .sw-logo {
    height: 60px;
  }

  .sw-card figcaption {
    font-size: 0.9rem;
  }
}


/* CONTACT SECTION */
.contact-section {
  background: #ffffff;
  color: #111;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* Inner container */
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px;
  box-sizing: border-box;
  text-align: left;
}

/* Heading + lead */
.contact-title {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.contact-lead {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 28px 0;
}

/* Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* Card */
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 18px;
  border-top: 3px solid rgba(15, 95, 119, 0.06);
  border-bottom: 6px solid rgba(15, 95, 119, 0.03);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 250, 250, 1));
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(8, 33, 43, 0.04);
}

/* Icon circle */
.cc-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.cc-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

/* Card body */
.cc-body {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-title {
  margin: 0 0 6px 0;
  font-size: 1rem;
  color: #153d40;
  /* dark teal accent */
  font-weight: 700;
}

.cc-text {
  margin: 0;
  color: #606060;
  font-size: 0.95rem;
}

.cc-text a {
  color: #153d40;
  text-decoration: none;
}

.cc-text a:hover,
.cc-text a:focus {
  text-decoration: underline;
}

/* Map - full width */
.contact-map {
  width: 100%;
  height: 420px;
  /* default height on desktop */
  overflow: hidden;
  margin-top: 12px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- RESPONSIVE --- */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .contact-inner {
    padding: 36px 18px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .contact-map {
    height: 360px;
  }
}

/* Phone: single column */
@media (max-width: 600px) {
  .contact-inner {
    padding: 28px 14px;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 14px;
  }

  .cc-body {
    text-align: left;
  }

  .contact-map {
    height: 300px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .cc-icon {
    width: 48px;
    height: 48px;
  }

  .cc-icon img {
    width: 24px;
    height: 24px;
  }

  .contact-map {
    height: 240px;
  }
}

/* About US page CSS */
/* ===== Profile Section ===== */
.profile-section {
  background: #ffffff;
  padding: 48px 16px;
  color: #111;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.profile-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  /* desktop: fixed photo column + flexible content */
  gap: 48px;
  align-items: start;
  box-sizing: border-box;
}

/* Media column (photo + decorative corners) */
.profile-media {
  display: flex;
  align-items: start;
  justify-content: center;
  position: relative;
}

/* photo container ensures consistent size and cropping */
.profile-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  /* keep square */
  background: #f6f6f6;
  position: relative;
  overflow: visible;
  /* show decorative pseudo elements */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* actual image */
.profile-photo img {
  width: 92%;
  height: 92%;
  object-fit: cover;
  object-position: center;
  display: block;
  box-shadow: 0 8px 30px rgba(8, 33, 43, 0.06);
  border-radius: 2px;
  background: #fff;
}

/* decorative corner lines around the image */
/* drawn using pseudo elements on the .profile-media container */
.profile-media::before,
/* .profile-media::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border: 4px solid #0f5f77;
  border-color: #0f5f77 transparent transparent #0f5f77;
  transform: translate(-12px, -12px);
  z-index: 0;
  border-radius: 2px;
  box-sizing: border-box;
} */

/* bottom-right corner version */
/* .profile-media::after {
  right: 0;
  bottom: 0;
  left: auto;
  top: auto;
  transform: translate(12px, 12px) rotate(180deg);
} */

/* ensure the pseudo elements align outside the photo */
.profile-media::before {
  left: 0;
  top: 0;
}

/* .profile-media::after {
  right: 0;
  bottom: 0;
} */

/* Content side */
.profile-content {
  padding-top: 6px;
}

/* Heading */
.profile-name {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 300;
  margin: 6px 0 16px 0;
  letter-spacing: -0.02em;
  color: #111;
}

.profile-name .accent {
  color: #0f5f77;
  font-weight: 700;
  margin-left: 6px;
}

/* Text body */
.profile-text p {
  color: #444;
  line-height: 1.65;
  margin: 0 0 1rem 0;
  font-size: clamp(0.95rem, 1.2vw, 1rem);
}

/* responsive tweaks */

/* Tablet: make columns narrower and reduce gap */
@media (max-width: 992px) {
  .profile-inner {
    grid-template-columns: 360px 1fr;
    gap: 36px;
  }

  .profile-photo {
    max-width: 360px;
  }

  /* .profile-media::before, */
  /* .profile-media::after {
    width: 56px;
    height: 56px;
    border-width: 3px;
  } */
}

/* Small tablets / large phones: stack but show image above text */
@media (max-width: 700px) {
  .profile-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-media {
    order: 0;
    /* image on top */
    justify-content: center;
  }

  .profile-photo {
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1.05 / 1;
    /* slightly taller if you want */
  }

  .profile-content {
    text-align: left;
    F
  }

  /* .profile-media::before,
  .profile-media::after {
    display: none;
  } */

  .profile-name {
    text-align: center;
  }

  .profile-text p {
    font-size: 0.96rem;
  }
}

/* Phone: tighten spacing */
@media (max-width: 420px) {
  .profile-section {
    padding: 28px 12px;
  }

  .profile-photo {
    max-width: 260px;
  }

  .profile-name {
    font-size: 1.6rem;
  }

  .profile-text p {
    font-size: 0.94rem;
  }
}

/* Outer container keeps the content centered and narrow */
.wrap {
  max-width: calc(var(--max-width));
  margin: 70px auto;
  padding: 0 20px;
}

/* Title */
.section-head {
  text-align: center;
  margin-bottom: 32px;
  margin-top: 12px;
}

.section-head h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1f2630;
}

.section-head h1 .us {
  color: var(--accent);
  font-weight: 800;
}

/* Grid of cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* default desktop: two columns */
  gap: 24px;
}

/* Card */
.card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(16, 24, 32, 0.06);
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  margin-bottom: 14px;
  flex-shrink: 0;
  box-shadow: 0 6px 12px rgba(14, 112, 127, 0.08);
}

/* svg inside icon should be white-ish */
.icon svg {
  width: 46px;
  height: 46px;
  fill: #fff;
  display: block
}

.card-title {
  font-weight: 700;
  font-size: 16px;
  margin: 6px 0 8px;
  color: #182026;
}

.card-desc {
  font-size: 12px;
  color: #6b6f73;
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
  flex-grow: 1;
  /* push bottom spacing for even card heights */
}

/* -- Responsive adjustments -- */

/* Tablet: keep two columns but narrow container */
@media (max-width: 900px) {
  .wrap {
    padding: 0 20px;
  }

  .cards {
    gap: 20px;
  }

  .card {
    padding: 22px;
    min-height: 260px;
  }

  .icon {
    width: 76px;
    height: 76px
  }

  .icon svg {
    width: 40px;
    height: 40px
  }

  .card-desc {
    max-width: 260px;
    font-size: 12px
  }
}

/* Mobile: 1 column layout */
@media (max-width: 620px) {
  .section-head h1 {
    font-size: 28px
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 20px;
    min-height: unset;
  }

  .icon {
    width: 68px;
    height: 68px
  }

  .icon svg {
    width: 34px;
    height: 34px
  }

  .card-desc {
    max-width: 100%;
    font-size: 13px;
    text-align: center
  }
}

/* Very wide screens: center content with narrower cards area */
@media (min-width: 1200px) {
  .wrap {
    max-width: 1120px;
  }
}


/* Heading */
.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-head h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #222;
}

.section-head h1 .accent {
  color: var(--accent);
}

/* Grid for steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 40px;
  align-items: start;
}

/* Each step wrapper holds the number and content card */
.step {
  position: relative;
  padding-top: 28px;
  /* space for number circle */
}

/* Number circle */
.step-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(14, 106, 117, 0.18);
  font-size: 20px;
  z-index: 2;
}

/* Card */
.card {
  background: var(--card-bg);
  padding: 28px 26px;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(16, 24, 32, 0.04);
  text-align: center;
  min-height: 170px;
}

.card h3 {
  margin: 12px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.card p {
  margin: 0;
  color: #5b5f62;
  font-size: 13px;
  line-height: 1.5;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* Make step numbers slightly larger on wide screens */
@media(min-width:1200px) {
  .step-num {
    width: 74px;
    height: 74px;
    font-size: 22px
  }
}

/* Step 5 (last) should span full width on wide screens and be centered */
.step--full {
  grid-column: 1 / -1;
  /* span both columns */
  display: flex;
  justify-content: center;
}

.step--full .card {
  max-width: 760px;
  text-align: center
}

/* Responsive breakpoints */
@media(max-width:900px) {
  .wrap {
    padding: 0 20px;
  }

  .steps {
    gap: 22px 20px;
  }

  .card {
    padding: 22px 18px;
  }

  .card p {
    max-width: 300px;
    font-size: 13px
  }

  .step-num {
    width: 60px;
    height: 60px;
    font-size: 18px
  }
}

@media(max-width:620px) {
  .section-head h1 {
    font-size: 28px
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .step {
    padding-top: 36px
  }

  /* a bit more space for the circle */
  /* In single column, center the step number horizontally */
  .step-num {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .step--full {
    grid-column: auto;
  }

  .card {
    padding: 20px;
    min-height: auto
  }

  .card p {
    max-width: 100%;
    font-size: 14px
  }
}

/* small visual polish: subtle top border bar like screenshot */
.page-topbar {
  height: 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--page-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}
