/* =========================================================
   HOFFMAN WEB TECH
   Cassiopeia Child Template
   user.css
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
  --hwt-navy: #102f5e;
  --hwt-blue: #0759a7;
  --hwt-blue-dark: #073d78;
  --hwt-orange: #e95716;

  --hwt-text: #243142;
  --hwt-muted: #5f6d7c;

  --hwt-light: #f5f7fa;
  --hwt-light-blue: #edf3f9;
  --hwt-white: #ffffff;

  --hwt-border: #dfe5eb;

  --hwt-shadow:
    0 12px 32px rgba(16, 47, 94, 0.09);

  --hwt-radius: 8px;
  --hwt-max-width: 1200px;
}


/* =========================================================
   2. GLOBAL
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  color: var(--hwt-text);
  background: var(--hwt-white);
  line-height: 1.65;
}

a {
  color: var(--hwt-blue);
}

a:hover,
a:focus {
  color: var(--hwt-orange);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--hwt-navy);
  font-weight: 700;
  line-height: 1.15;
}

.hwt-wrap {
  width: min(100% - 40px, var(--hwt-max-width));
  margin-inline: auto;
}


/* =========================================================
   3. CASSIOPEIA HEADER
   ========================================================= */

.container-header {
  background: var(--hwt-white);
  background-image: none;
  box-shadow: 0 2px 12px rgba(16, 47, 94, 0.08);
  position: relative;
  z-index: 100;
}

.container-header .navbar-brand {
  margin: 0;
  padding: 8px 0;
}

.container-header .navbar-brand img {
  display: block;
  width: 460px;
  max-width: none;
  height: auto;
  max-height: none;
}


/* =========================================================
   4. DESKTOP HEADER + NAVIGATION
   Mobile MetisMenu remains untouched.
   ========================================================= */

@media (min-width: 992px) {

  .container-header {
    display: grid;
    grid-template-columns:
      minmax(20px, 1fr)
      500px
      minmax(600px, 700px)
      minmax(20px, 1fr);

    align-items: center;
  }

  /*
   * Cassiopeia places the brand and navigation in separate
   * header children. Put them on the same grid row.
   */

  .container-header .navbar-brand {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .container-header .container-nav {
    grid-column: 3;
    grid-row: 1;

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .container-header nav {
    margin: 0 0 0 auto;
  }

  .container-header .mod-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
  }

  .container-header .mod-menu > li > a {
    color: var(--hwt-navy);
    padding: 31px 14px 27px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;

    transition:
      color 0.2s ease,
      border-color 0.2s ease;
  }

  .container-header .mod-menu > li > a:hover,
  .container-header .mod-menu > li > a:focus {
    color: var(--hwt-orange);
    border-bottom-color: var(--hwt-orange);
  }

  .container-header .mod-menu > li.active > a,
  .container-header .mod-menu > li.current > a {
    color: var(--hwt-navy);
    border-bottom-color: var(--hwt-orange);
  }
}


/* =========================================================
   5. MAIN CONTENT / HOMEPAGE SHELL
   ========================================================= */

.site-grid {
  gap: 0;
}

.grid-child.container-component {
  max-width: none;
  padding: 0;
}

.com-content-article.item-page {
  max-width: none;
}

.hwt-home {
  width: 100%;
}


/* =========================================================
   6. HERO
   ========================================================= */

.hwt-hero {
  position: relative;
  min-height: 520px;

  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.96) 32%,
      rgba(255, 255, 255, 0.75) 48%,
      rgba(255, 255, 255, 0.10) 68%
    ),
    url("/images/hero/hoffman-home-hero.webp");

  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
}

.hwt-hero-content {
  width: min(620px, 100%);
  padding: 80px 0;
}

.hwt-eyebrow {
  margin: 0 0 16px;
  color: #526b8b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hwt-eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 3px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--hwt-orange);
}

.hwt-hero h1 {
  margin: 0;
  max-width: 610px;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  letter-spacing: -0.035em;
}

.hwt-hero-lead {
  max-width: 590px;
  margin: 24px 0 0;
  color: #46576a;
  font-size: 1.15rem;
  line-height: 1.7;
}

.hwt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}


/* =========================================================
   7. BUTTONS
   ========================================================= */

.hwt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 24px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.hwt-btn:hover,
.hwt-btn:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.hwt-btn-primary {
  color: var(--hwt-white);
  background: var(--hwt-orange);
  border-color: var(--hwt-orange);
}

.hwt-btn-primary:hover,
.hwt-btn-primary:focus {
  color: var(--hwt-white);
  background: #c9460c;
  border-color: #c9460c;
}

.hwt-btn-secondary {
  color: var(--hwt-navy);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--hwt-blue);
}

.hwt-btn-secondary:hover,
.hwt-btn-secondary:focus {
  color: var(--hwt-white);
  background: var(--hwt-blue);
}


/* =========================================================
   8. GENERAL HOME SECTIONS
   ========================================================= */

.hwt-section {
  padding: 80px 0;
}

.hwt-section-heading {
  max-width: 800px;
  margin-bottom: 38px;
}

.hwt-section-heading h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.025em;
}

.hwt-section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--hwt-muted);
  font-size: 1.05rem;
}


/* =========================================================
   9. SERVICES
   ========================================================= */

.hwt-services {
  background: var(--hwt-white);
}

.hwt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hwt-card {
  padding: 32px;
  background: var(--hwt-white);
  border: 1px solid var(--hwt-border);
  border-radius: var(--hwt-radius);
  box-shadow: var(--hwt-shadow);
}

.hwt-card h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.hwt-card p {
  margin: 0 0 22px;
  color: var(--hwt-muted);
}

.hwt-card a {
  font-weight: 700;
  text-decoration: none;
}

.hwt-card a::after {
  content: " →";
}

.hwt-card a:hover,
.hwt-card a:focus {
  color: var(--hwt-orange);
}


/* =========================================================
   10. PERSONAL SERVICE
   ========================================================= */

.hwt-personal {
  background: var(--hwt-light-blue);
}

.hwt-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  gap: 70px;
  align-items: center;
}

.hwt-personal-content {
  max-width: 720px;
}

.hwt-personal-content h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.025em;
}

.hwt-personal-content p:not(.hwt-eyebrow) {
  color: var(--hwt-muted);
  font-size: 1.05rem;
}

.hwt-text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  text-decoration: none;
}

.hwt-text-link::after {
  content: " →";
}

.hwt-personal-callout {
  position: relative;
  padding: 38px;
  background: var(--hwt-navy);
  border-radius: var(--hwt-radius);
  box-shadow: var(--hwt-shadow);
}

.hwt-personal-callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--hwt-orange);
  border-radius: var(--hwt-radius) 0 0 var(--hwt-radius);
}

.hwt-personal-callout p {
  margin: 0;
  color: var(--hwt-white);
  font-size: 1.25rem;
  line-height: 1.6;
}

.hwt-personal-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--hwt-white);
  font-size: 1.35rem;
}


/* =========================================================
   11. EXPERIENCE
   ========================================================= */

.hwt-experience {
  background: var(--hwt-white);
  text-align: center;
}

.hwt-experience-inner {
  max-width: 820px;
  margin-inline: auto;
}

.hwt-experience .hwt-eyebrow::before {
  display: none;
}

.hwt-experience h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.025em;
}

.hwt-experience-inner > p:last-child {
  margin: 0;
  color: var(--hwt-muted);
  font-size: 1.1rem;
}


/* =========================================================
   12. CTA
   ========================================================= */

.hwt-cta {
  background: var(--hwt-light);
}

.hwt-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 42px 48px;
  background: var(--hwt-navy);
  border-radius: var(--hwt-radius);
  box-shadow: var(--hwt-shadow);
}

.hwt-cta h2 {
  margin: 0 0 8px;
  color: var(--hwt-white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.hwt-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hwt-cta-action {
  flex: 0 0 auto;
}


/* =========================================================
   13. INTERIOR PAGES
   ========================================================= */

.hwt-page {
  width: 100%;
}

.hwt-page-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
}

.hwt-design-hero {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 32%, rgba(255,255,255,.76) 49%, rgba(255,255,255,.12) 70%),
    url("/images/hero/hoffman-design-hero.webp");
}

.hwt-support-hero {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 32%, rgba(255,255,255,.76) 49%, rgba(255,255,255,.12) 70%),
    url("/images/hero/hoffman-support-hero.webp");
}

.hwt-about-hero {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 32%, rgba(255,255,255,.76) 49%, rgba(255,255,255,.12) 70%),
    url("/images/hero/hoffman-about-hero.webp");
}

.hwt-contact-hero {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 32%, rgba(255,255,255,.76) 49%, rgba(255,255,255,.12) 70%),
    url("/images/hero/hoffman-contact-hero.webp");
}

.hwt-page-hero-content {
  width: min(620px, 100%);
  padding: 72px 0;
}

.hwt-page-hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(2.6rem, 4.6vw, 4.15rem);
  letter-spacing: -0.035em;
}

.hwt-page-hero-lead {
  max-width: 590px;
  margin: 22px 0 0;
  color: #46576a;
  font-size: 1.13rem;
  line-height: 1.7;
}

.hwt-page-feature {
  background: var(--hwt-light-blue);
}

.hwt-page-audience {
  background: var(--hwt-light);
}

.hwt-page .hwt-two-column h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.025em;
}

.hwt-page .hwt-two-column > div:first-child > p:not(.hwt-eyebrow) {
  color: var(--hwt-muted);
  font-size: 1.05rem;
}

.hwt-about-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hwt-person-card {
  padding: 34px;
  background: var(--hwt-white);
  border: 1px solid var(--hwt-border);
  border-radius: var(--hwt-radius);
  box-shadow: var(--hwt-shadow);
}

.hwt-person-card h3 {
  margin: 0 0 6px;
  font-size: 1.55rem;
}

.hwt-person-role {
  margin: 0 0 20px;
  color: var(--hwt-orange);
  font-weight: 700;
}

.hwt-person-card p:not(.hwt-person-role) {
  color: var(--hwt-muted);
}

.hwt-person-card p:last-child {
  margin-bottom: 0;
}

.hwt-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: 64px;
  align-items: start;
}

.hwt-contact-intro h2,
.hwt-contact-form h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 3vw, 2.65rem);
  letter-spacing: -0.025em;
}

.hwt-contact-intro > p:not(.hwt-eyebrow) {
  color: var(--hwt-muted);
  font-size: 1.05rem;
}

.hwt-contact-note {
  margin-top: 32px;
  padding: 26px 28px;
  background: var(--hwt-light-blue);
  border-left: 5px solid var(--hwt-orange);
  border-radius: var(--hwt-radius);
}

.hwt-contact-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--hwt-navy);
  font-size: 1.15rem;
}

.hwt-contact-note p {
  margin: 0;
  color: var(--hwt-muted);
}

.hwt-contact-form {
  padding: 34px;
  background: var(--hwt-white);
  border: 1px solid var(--hwt-border);
  border-radius: var(--hwt-radius);
  box-shadow: var(--hwt-shadow);
}


/* =========================================================
   14. CONTACT FORM COLLAPSE
   ========================================================= */

.hwt-form-details {
  margin-top: 24px;
}

.hwt-form-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  width: 100%;
  padding: 16px 20px;

  color: var(--hwt-white);
  background: var(--hwt-blue);
  border-radius: 4px;

  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;

  list-style: none;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.hwt-form-details > summary::-webkit-details-marker {
  display: none;
}

.hwt-form-details > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.hwt-form-details[open] > summary::after {
  content: "−";
}

.hwt-form-details > summary:hover,
.hwt-form-details > summary:focus {
  background: var(--hwt-blue-dark);
}

.hwt-form-details > .hwt-form-content {
  padding-top: 24px;
}

/* =========================================================
   15. FOOTER
   ========================================================= */

.container-footer {
  margin-top: 0;
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.85);
  background: var(--hwt-navy);
  background-image: none;
}

.container-footer a {
  color: var(--hwt-white);
}


/* =========================================================
   16. TABLET
   ========================================================= */

@media (max-width: 991.98px) {

  .container-header .navbar-brand img {
    max-width: 330px;
    max-height: 70px;
  }

  /*
   * Keep Cassiopeia's native mobile menu behavior.
   * Only make its toggler visible against our white header.
   */

  .container-header .navbar-toggler {
    color: var(--hwt-navy);
    border: 2px solid var(--hwt-navy);
    background: var(--hwt-white);
  }

  .container-header .navbar-toggler:hover,
  .container-header .navbar-toggler:focus {
    color: var(--hwt-orange);
    border-color: var(--hwt-orange);
    background: var(--hwt-white);
  }

  .container-header .navbar-toggler-icon {
    filter: none;
  }

  .hwt-hero {
    min-height: 500px;

    background-image:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.88) 48%,
        rgba(255, 255, 255, 0.30) 100%
      ),
      url("/images/hero/hoffman-home-hero.webp");

    background-position: 62% center;
  }

  .hwt-card-grid {
    grid-template-columns: 1fr;
  }

  .hwt-two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hwt-personal-callout {
    max-width: 600px;
  }

  .hwt-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hwt-page-hero {
    min-height: 410px;
    background-position: 62% center;
  }

  .hwt-page-hero-content {
    padding: 65px 0;
  }

  .hwt-about-people,
  .hwt-contact-grid {
    grid-template-columns: 1fr;
  }

  .hwt-contact-grid {
    gap: 42px;
  }
}


/* =========================================================
   17. MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

  .hwt-wrap {
    width: min(100% - 30px, var(--hwt-max-width));
  }

  .container-header .navbar-brand {
    padding: 10px 0;
  }

  .container-header .navbar-brand img {
    max-width: 260px;
    max-height: 62px;
  }

  /*
   * Mobile heroes:
   * retain a light overlay for readable dark text,
   * but allow the photograph to remain clearly visible.
   */

  .hwt-hero {
    min-height: auto;

    background-image:
      linear-gradient(
        rgba(255, 255, 255, 0.72),
        rgba(255, 255, 255, 0.72)
      ),
      url("/images/hero/hoffman-home-hero.webp");

    background-position: 70% center;
  }

  .hwt-hero-content {
    padding: 65px 0;
  }

  .hwt-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .hwt-hero-lead {
    color: #33465b;
    font-size: 1.05rem;
  }

  .hwt-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hwt-btn {
    width: 100%;
  }

  .hwt-section {
    padding: 60px 0;
  }

  .hwt-card {
    padding: 26px;
  }

  .hwt-personal-callout {
    padding: 30px;
  }

  .hwt-cta-inner {
    padding: 32px 26px;
  }

  .hwt-cta-action,
  .hwt-cta-action .hwt-btn {
    width: 100%;
  }

  .hwt-page-hero {
    min-height: auto;
    background-position: 68% center;
  }

  .hwt-design-hero {
    background-image:
      linear-gradient(
        rgba(255,255,255,.72),
        rgba(255,255,255,.72)
      ),
      url("/images/hero/hoffman-design-hero.webp");
  }

  .hwt-support-hero {
    background-image:
      linear-gradient(
        rgba(255,255,255,.72),
        rgba(255,255,255,.72)
      ),
      url("/images/hero/hoffman-support-hero.webp");
  }

  .hwt-about-hero {
    background-image:
      linear-gradient(
        rgba(255,255,255,.72),
        rgba(255,255,255,.72)
      ),
      url("/images/hero/hoffman-about-hero.webp");
  }

  .hwt-contact-hero {
    background-image:
      linear-gradient(
        rgba(255,255,255,.72),
        rgba(255,255,255,.72)
      ),
      url("/images/hero/hoffman-contact-hero.webp");
  }

  .hwt-page-hero-content {
    padding: 58px 0;
  }

  .hwt-page-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .hwt-page-hero-lead {
    color: #33465b;
    font-size: 1.05rem;
  }

  .hwt-person-card,
  .hwt-contact-form {
    padding: 26px;
  }


  
/* =========================================================
   MOBILE NAVIGATION TEXT
   ========================================================= */

@media (max-width: 991.98px) {

  .container-header .container-nav .mod-menu > li > a,
  .container-header .container-nav .mod-menu > li > span {
    color: var(--hwt-navy);
  }

  .container-header .container-nav .mod-menu > li > a:hover,
  .container-header .container-nav .mod-menu > li > a:focus,
  .container-header .container-nav .mod-menu > li.active > a,
  .container-header .container-nav .mod-menu > li.current > a {
    color: var(--hwt-orange);
  }
}