/*
 * United Group Website V9
 * Final typography, responsive header, deadline and official-source components.
 */

:root {
  --fs-hero: clamp(2.35rem, 3vw, 3rem);
  --fs-landing: clamp(2.15rem, 2.7vw, 2.65rem);
  --fs-landing-long: clamp(1.92rem, 2.35vw, 2.35rem);
  --fs-page-title: clamp(1.75rem, 2.15vw, 2.25rem);
  --fs-functional-title: clamp(1.58rem, 1.95vw, 2rem);
  --fs-h2: clamp(1.5rem, 2vw, 2.1rem);
  --fs-h3: clamp(1rem, 1.2vw, 1.24rem);
}

body {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.section {
  padding: clamp(3.5rem, 5.3vw, 5.5rem) 0;
}

.section-head,
.ug-section-title {
  max-width: 660px;
  margin-bottom: 1.85rem;
}

.hero-grid {
  padding-block: 3.65rem;
}

.page-hero {
  padding: 3.6rem 0 2.75rem;
}

.page-hero .lead,
.hero-copy .lead {
  max-width: 67ch;
}

.landing-hero {
  min-height: 600px;
}

.landing-section {
  padding: 4.5rem 0;
}

.service-card,
.card,
.related-card {
  min-width: 0;
}

.service-card h3,
.card h3,
.related-card h3 {
  font-size: var(--fs-h3);
  line-height: 1.55;
}

.service-card p,
.card p,
.related-card p {
  line-height: 1.75;
}

.phone-number,
.landing-quick-label {
  white-space: nowrap;
}

/* Keep the public top contact strip readable on intermediate widths. */
.topbar-inner,
.topbar-group {
  min-width: 0;
}

.topbar-inner {
  gap: 1rem;
}

.topbar-group {
  flex-wrap: nowrap;
}

.topbar a {
  white-space: nowrap;
}

/* Landing-page header: separate phone, social, WhatsApp and booking controls. */
.landing-brand-header {
  min-height: 74px;
  height: auto;
  position: relative;
  z-index: 120;
}

.landing-brand-inner {
  min-width: 0;
  gap: 1rem;
  padding-block: .62rem;
}

.landing-brand-inner .brand {
  min-width: 0;
  flex: 0 1 auto;
}

.landing-brand-actions {
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: .42rem;
}

.landing-brand-actions .landing-quick-action {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  padding: .45rem .68rem;
  border: 1px solid var(--white-line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .018);
  color: #c9c7c0;
}

.landing-brand-actions .landing-quick-action:hover,
.landing-brand-actions .landing-quick-action:focus-visible {
  border-color: var(--gold-deep);
  color: var(--gold-2);
  background: rgba(200, 169, 92, .06);
}

.landing-quick-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.landing-brand-actions .btn {
  min-height: 42px;
  padding-inline: .9rem;
}

html[data-theme="light"] .landing-brand-actions .landing-quick-action {
  border-color: rgba(23, 27, 34, .13);
  background: rgba(255, 255, 255, .45);
  color: #3f4650;
}

/* Tax calendar and professional process components. */
.deadline-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.deadline-card,
.process-card {
  position: relative;
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
}

.deadline-card {
  border-top-color: var(--gold-deep);
}

.deadline-badge,
.process-no {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .25rem .58rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--gold-2);
  font-family: var(--display-en);
  font-size: .72rem;
  letter-spacing: .02em;
}

.deadline-card h3,
.process-card h3 {
  margin: .85rem 0 .55rem;
  font-size: var(--fs-h3);
  line-height: 1.55;
}

.deadline-card p,
.process-card p {
  margin-bottom: 0;
  font-size: .88rem;
  line-height: 1.8;
}

.deadline-card small {
  display: block;
  margin-top: .75rem;
  color: var(--muted-2);
  line-height: 1.7;
}

.note-panel,
.official-source-list {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(200, 169, 92, .045);
}

.note-panel strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--gold-2);
}

.note-panel p:last-child {
  margin-bottom: 0;
}

.official-source-list {
  display: grid;
  gap: .7rem;
  background: rgba(255, 255, 255, .014);
}

.official-source-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--white-line);
  color: #dad6cb;
  font-size: .84rem;
}

.official-source-list a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.official-source-list a::after {
  content: "↗";
  flex: 0 0 auto;
  color: var(--gold-2);
}

.updated-stamp {
  display: inline-flex;
  margin-top: 1rem;
  padding: .3rem .62rem;
  border: 1px solid var(--white-line);
  border-radius: var(--radius-pill);
  color: var(--muted-2);
  font-size: .72rem;
}

@media (max-width: 1280px) {
  .landing-social {
    display: none;
  }

  .landing-brand-actions .landing-quick-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .landing-brand-actions .landing-quick-action {
    width: 40px;
    padding: 0;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  :root {
    --fs-hero: clamp(2.2rem, 3.5vw, 2.7rem);
  }

  .topbar [data-email-link] {
    display: none;
  }

  .topbar-group {
    gap: .62rem;
  }
}

@media (max-width: 980px) {
  :root {
    --fs-hero: clamp(2.05rem, 4.5vw, 2.45rem);
    --fs-landing: clamp(1.92rem, 4.25vw, 2.3rem);
    --fs-landing-long: clamp(1.78rem, 3.9vw, 2.12rem);
    --fs-page-title: clamp(1.7rem, 3.7vw, 2.08rem);
    --fs-functional-title: clamp(1.55rem, 3.4vw, 1.92rem);
    --fs-h2: clamp(1.45rem, 3.6vw, 1.92rem);
  }

  .deadline-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-brand-inner .brand-copy small {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --fs-hero: clamp(1.8rem, 7.2vw, 2.1rem);
    --fs-landing: clamp(1.72rem, 6.8vw, 2rem);
    --fs-landing-long: clamp(1.62rem, 6.2vw, 1.88rem);
    --fs-page-title: clamp(1.58rem, 6.1vw, 1.9rem);
    --fs-functional-title: clamp(1.48rem, 5.7vw, 1.78rem);
    --fs-h2: clamp(1.35rem, 5.6vw, 1.72rem);
  }

  .section {
    padding: 3.3rem 0;
  }

  .hero-grid,
  .landing-hero .hero-grid {
    padding-block: 2.1rem 1.45rem;
  }

  .page-hero {
    padding: 2.8rem 0 2.15rem;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-section {
    padding: 3.4rem 0;
  }

  .landing-brand-actions a.landing-quick-action {
    display: inline-grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  .landing-brand-actions .btn {
    min-height: 38px;
    padding-inline: .72rem;
    font-size: .72rem;
  }
}

@media (max-width: 620px) {
  .landing-brand-header .brand-copy {
    display: none;
  }

  .landing-brand-inner {
    gap: .45rem;
  }

  .landing-brand-actions {
    gap: .3rem;
  }
}

@media (max-width: 560px) {
  .deadline-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero:not(.landing-hero) .hero-copy h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .landing-brand-actions a.landing-quick-action {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .landing-brand-actions .btn {
    min-height: 36px;
    padding-inline: .62rem;
  }

  .landing-brand-header .brand-plate,
  .landing-brand-header .brand-plate img {
    width: 40px;
    height: 40px;
  }
}
