/* ============================================================
   Hamilton Security Group — Master Stylesheet
   ============================================================ */

/* ---------- Self-Hosted Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lato-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700.woff2') format('woff2');
}

/* ---------- CSS Custom Properties ---------- */
:root {
  --hsg-black:       #0A0A0A;
  --hsg-dark:        #1A1A1A;
  --hsg-charcoal:    #2D2D2D;
  --hsg-grey:        #6B6B6B;
  --hsg-light:       #F5F5F5;
  --hsg-white:       #FFFFFF;
  --hsg-navy:        #1A2E4A;
  --hsg-navy-hover:  #142438;
  --hsg-overlay:     rgba(10,10,10,0.75);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', 'Source Sans Pro', Arial, sans-serif;

  --transition-base: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hsg-grey);
  background: var(--hsg-white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hsg-navy); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--hsg-navy-hover); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--hsg-black);
  line-height: 1.2;
  margin-bottom: 0.6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  margin-bottom: 0.5rem;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--hsg-navy);
  border: none;
  margin: 1rem auto 2rem;
}
.section-divider-left {
  width: 60px;
  height: 3px;
  background: var(--hsg-navy);
  border: none;
  margin: 1rem 0 2rem;
}

/* ---------- Utility ---------- */
.text-navy { color: var(--hsg-navy) !important; }
.bg-dark-section { background: var(--hsg-dark); }
.bg-light-section { background: var(--hsg-light); }
.bg-light-section + .bg-light-section { padding-top: 0; }
.bg-charcoal { background: var(--hsg-charcoal); }
.section-padding { padding: 6rem 0; }
.section-padding-sm { padding: 4rem 0; }
.letter-space { letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn-hsg {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-base);
}
.btn-hsg-navy {
  background: var(--hsg-navy);
  color: var(--hsg-white);
}
.btn-hsg-navy:hover {
  background: var(--hsg-navy-hover);
  color: var(--hsg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26,46,74,0.3);
}
.btn-hsg-outline {
  background: transparent;
  color: var(--hsg-white);
  border: 2px solid var(--hsg-white);
}
.btn-hsg-outline:hover {
  background: var(--hsg-white);
  color: var(--hsg-black);
  transform: translateY(-2px);
}
.btn-hsg-outline-dark {
  background: transparent;
  color: var(--hsg-navy);
  border: 2px solid var(--hsg-navy);
}
.btn-hsg-outline-dark:hover {
  background: var(--hsg-navy);
  color: var(--hsg-white);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar-hsg {
  padding: 1rem 0;
  transition: all 0.4s ease;
  z-index: 1050;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.navbar-hsg .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hsg-white) !important;
  text-decoration: none;
}
.navbar-hsg .navbar-brand .brand-logo {
  height: 105px;
  width: auto;
  filter: brightness(0) invert(1);
  margin: -20px 0;
}
.navbar-hsg .navbar-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}
.navbar-hsg .nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85) !important;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-base);
}
.navbar-hsg .nav-link:hover,
.navbar-hsg .nav-link.active {
  color: var(--hsg-white) !important;
}

/* Scrolled state */
.navbar-hsg.scrolled {
  background: var(--hsg-dark) !important;
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Hamburger */
.navbar-hsg .navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.6rem;
}
.navbar-hsg .navbar-toggler:focus {
  box-shadow: none;
  border-color: rgba(255,255,255,0.6);
}
.navbar-hsg .navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Mobile nav dropdown bg */
@media (max-width: 991.98px) {
  .navbar-hsg .navbar-collapse {
    background: var(--hsg-dark);
    padding: 1rem;
    margin-top: 0.5rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hsg-overlay);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-logo {
  width: 240px;
  height: auto;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
}
.hero h1 {
  color: var(--hsg-white);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero .section-subtitle {
  color: rgba(255,255,255,0.7);
}

/* Page hero (shorter) */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hsg-dark);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hsg-dark) 0%, var(--hsg-charcoal) 50%, var(--hsg-navy) 100%);
  opacity: 0.9;
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; text-align: center; padding-top: 5rem; }
.page-hero h1 { color: var(--hsg-white); }
.page-hero p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- FAQ / Accordion ---------- */
.faq-section { background: var(--hsg-light); }
.accordion-hsg .accordion-item {
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
}
.accordion-hsg .accordion-button {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hsg-black);
  background: transparent;
  padding: 1.25rem 0;
  box-shadow: none;
}
.accordion-hsg .accordion-button:not(.collapsed) {
  color: var(--hsg-navy);
  background: transparent;
}
.accordion-hsg .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231A2E4A' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3E%3C/svg%3E");
}
.accordion-hsg .accordion-body {
  padding: 0 0 1.25rem;
  color: var(--hsg-grey);
  line-height: 1.8;
}

/* ---------- Video Placeholder ---------- */
.video-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--hsg-charcoal);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all var(--transition-base);
}
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}
.video-placeholder:hover {
  border-color: var(--hsg-navy);
  box-shadow: 0 0 30px rgba(26,46,74,0.3);
}
.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(26,46,74,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  animation: pulse-play 2s ease-in-out infinite;
}
.video-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent var(--hsg-white);
  margin-left: 4px;
}
.video-placeholder:hover .video-play-btn {
  background: var(--hsg-navy);
  transform: translate(-50%, -50%) scale(1.1);
}
@keyframes pulse-play {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,46,74,0.4); }
  50% { box-shadow: 0 0 0 20px rgba(26,46,74,0); }
}
/* Audio variant — hides the CSS play triangle, shows FA icon instead */
.video-play-btn-audio::after { display: none; }
.video-play-btn-audio i {
  color: var(--hsg-white);
  font-size: 1.5rem;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}
.video-info .video-source {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hsg-white);
  background: var(--hsg-navy);
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.5rem;
}
.video-info .video-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hsg-white);
  margin: 0;
}

/* ---------- Coming Soon Badge ---------- */
.video-coming-soon {
  pointer-events: none;
  opacity: 0.7;
}
.video-coming-soon .video-play-btn {
  animation: none;
  opacity: 0.4;
}
.coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hsg-white);
  background: rgba(26,46,74,0.85);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  z-index: 3;
}

/* ---------- Press Category Toggle ---------- */
.press-hidden {
  display: none !important;
}
.btn-press-more {
  display: block;
  margin: 1.5rem auto 2.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  background: transparent;
  border: 1px solid var(--hsg-navy);
  padding: 0.5rem 1.5rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-base);
}
.btn-press-more:hover {
  background: var(--hsg-navy);
  color: var(--hsg-white);
}
.btn-press-more i {
  margin-left: 0.4rem;
  font-size: 0.75rem;
}

/* ---------- Blog Grid Toggle ---------- */
.blog-hidden {
  display: none !important;
}
.btn-blog-more {
  display: block;
  margin: 2rem auto 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  background: transparent;
  border: 1px solid var(--hsg-navy);
  padding: 0.5rem 1.5rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-base);
}
.btn-blog-more:hover {
  background: var(--hsg-navy);
  color: var(--hsg-white);
}

/* ---------- Video Card Text (below thumbnail) ---------- */
.video-card-source {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hsg-navy);
  margin-bottom: 0.25rem;
}
.video-full-link {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--hsg-navy);
  text-decoration: none;
  margin-left: 0.5rem;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}
.video-full-link:hover {
  opacity: 1;
  text-decoration: underline;
}
.video-full-link i {
  font-size: 0.6rem;
  margin-left: 0.15rem;
}
.video-card-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
}

/* ---------- Service Cards ---------- */
.service-card {
  padding: 2.5rem 2rem;
  background: var(--hsg-white);
  border: 1px solid #e8e8e8;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border-color: var(--hsg-navy);
}
.service-card .service-icon {
  font-size: 2rem;
  color: var(--hsg-navy);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--hsg-grey);
  margin-bottom: 1.5rem;
}
.service-card .card-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  margin-top: auto;
}
.service-card .card-link i {
  transition: transform var(--transition-base);
}
.service-card:hover .card-link i {
  transform: translateX(5px);
}

/* ---------- Results / Keywords ---------- */
.keyword-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  border: 1px solid var(--hsg-navy);
  padding: 0.4rem 1rem;
  margin: 0.25rem;
  transition: all var(--transition-base);
}
.keyword-badge:hover {
  background: var(--hsg-navy);
  color: var(--hsg-white);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  padding: 2rem;
  background: var(--hsg-white);
  border: 1px solid #e8e8e8;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-card .quote-icon {
  font-size: 1.5rem;
  color: var(--hsg-navy);
  opacity: 0.3;
  margin-bottom: 1rem;
}
.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--hsg-charcoal);
  line-height: 1.7;
  flex-grow: 1;
  margin: 0;
  padding: 0;
  border: none;
}
.testimonial-card .testimonial-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}
.testimonial-attribution {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hsg-black);
  margin-top: 1.5rem;
}

/* Expert quote block */
.expert-quote {
  border-left: 4px solid var(--hsg-navy);
  padding: 2rem 2rem 2rem 2.5rem;
  background: var(--hsg-light);
  margin: 2rem 0;
}
.expert-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--hsg-charcoal);
  line-height: 1.7;
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}
.expert-quote .attribution {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hsg-navy);
}

/* ---------- Article Cards ---------- */
.article-card {
  background: var(--hsg-white);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.article-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.article-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.article-card .card-source {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  margin-bottom: 0.5rem;
}
.article-card .card-date {
  font-size: 0.8rem;
  color: var(--hsg-grey);
  margin-bottom: 0.75rem;
}
.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.article-card p {
  font-size: 0.9rem;
  color: var(--hsg-grey);
  flex-grow: 1;
}
.article-card .read-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  margin-top: auto;
}
.article-card .read-link i {
  transition: transform var(--transition-base);
}
.article-card:hover .read-link i {
  transform: translateX(5px);
}

/* ---------- Blog Cards ---------- */
.blog-card {
  background: var(--hsg-white);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.blog-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card .card-date {
  font-size: 0.8rem;
  color: var(--hsg-grey);
  margin-bottom: 0.5rem;
}
.blog-card .card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.blog-card .card-categories span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  border: 1px solid var(--hsg-navy);
  padding: 0.2rem 0.6rem;
}
.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.blog-card p {
  font-size: 0.9rem;
  color: var(--hsg-grey);
  flex-grow: 1;
}
.blog-card .read-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  margin-top: 1rem;
}

/* ---------- Contact Form ---------- */
.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--hsg-black);
  transition: border-color var(--transition-base);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--hsg-navy);
  box-shadow: 0 0 0 0.2rem rgba(26,46,74,0.15);
}
.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hsg-charcoal);
  margin-bottom: 0.4rem;
}

/* Contact info sidebar */
.contact-info-card {
  background: var(--hsg-dark);
  color: var(--hsg-white);
  padding: 2.5rem;
}
.contact-info-card h3 {
  color: var(--hsg-white);
  font-size: 1.4rem;
  margin-bottom: 2rem;
}
.contact-info-card .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-card .info-item i {
  color: var(--hsg-navy);
  font-size: 1.1rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
  min-width: 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}
.contact-info-card .info-item a {
  color: rgba(255,255,255,0.85);
  overflow-wrap: break-word;
  word-break: break-all;
}
.contact-info-card .info-item a:hover {
  color: var(--hsg-white);
}
.contact-info-card .info-item span {
  color: rgba(255,255,255,0.85);
}

/* Social links */
.social-links {
  text-align: center;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  margin-right: 0.5rem;
  transition: all var(--transition-base);
}
.social-links a:hover {
  background: var(--hsg-navy);
  border-color: var(--hsg-navy);
  color: var(--hsg-white);
}

/* ---------- Service Detail (alternating) ---------- */
.service-detail {
  padding: 5rem 0;
}
.service-detail:nth-child(even) {
  background: var(--hsg-light);
}
.service-detail h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
}
.service-detail ul {
  padding-left: 1.2rem;
}
.service-detail ul li {
  margin-bottom: 0.5rem;
  color: var(--hsg-grey);
}
.service-detail .service-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ---------- Press Video Grid ---------- */
.press-category-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--hsg-navy);
}

/* ---------- About Page ---------- */
.bio-section .bio-portrait {
  width: 100%;
  max-width: 400px;
  object-fit: cover;
}
.bio-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.credential-category {
  margin-bottom: 2.5rem;
}
.credential-category h3 {
  font-size: 1.2rem;
  color: var(--hsg-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}
.credential-category ul {
  list-style: none;
  padding: 0;
}
.credential-category ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--hsg-grey);
  font-size: 0.95rem;
}
.credential-category ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--hsg-navy);
}

/* Certification badges */
.cert-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hsg-navy);
  border: 1px solid var(--hsg-navy);
  padding: 0.5rem 1.2rem;
  margin: 0.25rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--hsg-dark);
  color: rgba(255,255,255,0.6);
  padding: 5rem 0 2rem;
}
.footer .row { align-items: flex-start; }
.footer h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hsg-white);
  margin-bottom: 1.5rem;
}
.footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 1rem;
  margin-top: -20px;
}
.footer .footer-brand img {
  height: 120px;
  width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer .footer-brand-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--hsg-white);
  line-height: 1;
}
.footer .footer-brand-name span {
  display: block;
}
.footer .footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  max-width: 300px;
}
.footer .footer-links {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.footer .footer-links li {
  margin-bottom: 0.6rem;
}
.footer .footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}
.footer .footer-links a:hover {
  color: var(--hsg-white);
}
.footer .footer-contact .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.footer .footer-contact .info-item i {
  color: rgba(255,255,255,0.3);
  margin-right: 0.75rem;
  min-width: 16px;
  text-align: center;
}
.footer .footer-contact .info-item a,
.footer .footer-contact .info-item span {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  overflow-wrap: break-word;
  word-break: break-all;
}
.footer .footer-contact .info-item a:hover {
  color: var(--hsg-white);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  margin-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: #cccccc;
  margin-bottom: 0.5rem;
}
.footer-bottom .footer-legal {
  font-size: 0.8rem;
  color: #888888;
  margin-bottom: 0.5rem;
}
.footer-bottom .footer-legal a {
  color: #888888;
}
.footer-bottom .footer-legal a:hover {
  color: var(--hsg-white);
}
.footer-bottom .footer-credit {
  font-size: 0.75rem;
  color: #888888;
}
.footer-bottom a {
  color: #888888;
}
.footer-bottom a:hover {
  color: var(--hsg-white);
}
.footer .social-links {
  margin-top: 1rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--hsg-navy);
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 {
  color: var(--hsg-white);
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ---------- Hero button wrapper ---------- */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------- Responsive ---------- */

/* ---- Large Desktop (1200px+) ---- */
@media (min-width: 1200px) {
  .contact-info-card { margin-left: -30px; padding-right: calc(2.5rem + 30px); }
  .contact-info-card .info-item a { word-break: normal; }
}

/* ---- Small Desktop (992px - 1199px) ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-hsg .container { max-width: 100%; padding-left: 2rem; padding-right: 2rem; }
  .contact-info-card { padding: 2.5rem 1.5rem; margin-left: -20px; padding-right: calc(1.5rem + 20px); }
  .contact-info-card .info-item a,
  .contact-info-card .info-item span {
    font-size: calc(0.6rem + 0.5vw);
    word-break: normal;
  }
}

/* ---- Tablet (< 992px) ---- */
@media (max-width: 991.98px) {
  /* Navbar: solid bg so hamburger + brand are always visible */
  .navbar-hsg {
    background: var(--hsg-dark);
  }

  .hero { min-height: 80vh; }
  .hero .container { padding-top: 5rem; }
  .hero-logo { width: 180px; }
  .section-padding { padding: 4rem 0; }
  .service-detail .service-img { height: 300px; margin-bottom: 2rem; }


  /* Navbar: full width on tablet */
  .navbar-hsg .container { max-width: 100%; padding-left: 1.5rem; padding-right: 1.5rem; }
  .navbar-hsg .navbar-brand .brand-logo { height: 65px; margin: -10px 0; }
  .navbar-hsg .navbar-brand .brand-name { font-size: 1.3rem; }

  /* Footer: center on tablet */
  .footer { text-align: center; }
  .footer .footer-brand { justify-content: center; }
  .footer .footer-brand-name { font-size: 2rem; }
  .footer .footer-tagline { margin-left: auto; margin-right: auto; }
  .footer .footer-contact .info-item { justify-content: center; }
  .footer .social-links { text-align: center; }
}

/* ---- Mobile (< 768px) ---- */
@media (max-width: 767.98px) {
  /* Navbar: full width on mobile */
  .navbar-hsg .container { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
  .navbar-hsg .navbar-brand .brand-logo { height: 50px; margin: -8px 0; }
  .navbar-hsg .navbar-brand .brand-name { font-size: calc(-0.04rem + 4.28vw); }
  .navbar-hsg .navbar-toggler {
    flex-shrink: 0;
  }
  .navbar-hsg .navbar-collapse {
    max-width: 100%;
  }

  /* Hero: compact with background image + overlay */
  .hero {
    min-height: auto;
    padding: 4.5rem 0 3rem;
    background-position: center center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
  .hero .container { padding-top: 0; }
  .hero-logo { width: 180px; margin-bottom: 1.5rem; }
  .hero h1 { font-size: 1.8rem; margin-bottom: 0.75rem; }
  .hero p { font-size: 0.95rem; }
  .hero .section-subtitle { font-size: 0.8rem; }

  /* Stack hero buttons full-width */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-buttons .btn-hsg {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Page hero */
  .page-hero { min-height: 35vh; }
  .page-hero h1 { font-size: 1.6rem; }

  /* About bio */
  .bio-portrait { margin-bottom: 1.5rem; }

  /* Contact info: stack icon above text */
  .contact-info-card .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .contact-info-card .info-item i {
    margin-right: 0;
    font-size: 1.2rem;
  }
  .contact-info-card .info-item a,
  .contact-info-card .info-item span {
    font-size: 0.9rem;
    word-break: normal;
  }

  /* Sections */
  .section-padding { padding: 3rem 0; }
  .section-padding-sm { padding: 2.5rem 0; }

  /* Service cards */
  .service-card { padding: 2rem 1.5rem; }
  .service-detail .service-img { height: 250px; margin-bottom: 1.5rem; }

  /* Expert quote */
  .expert-quote { padding: 1.5rem; }

  /* Video */
  .video-play-btn { width: 60px; height: 60px; }

  /* Contact */
  .contact-info-card { margin-top: 2rem; }

  /* CTA */
  .cta-section { padding: 3rem 0; }
  .cta-section h2 { font-size: 1.6rem; }
  .cta-section p { font-size: 0.95rem; margin-bottom: 1.5rem; }

  /* Footer */
  .footer { padding: 3rem 0 1.5rem; text-align: center; }
  .footer .footer-brand { flex-direction: column; align-items: center; text-align: center; }
  .footer .footer-brand img { height: 105px; width: 105px; object-fit: contain; }
  .footer .footer-brand-name { font-size: 1.5rem; }
  .footer .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer .footer-tagline { margin-left: auto; margin-right: auto; }
  .footer .footer-contact .info-item { justify-content: center; }
  .footer .social-links { text-align: center; }
}

/* ---- Small phones (< 576px) ---- */
@media (max-width: 575.98px) {
  .navbar-hsg .navbar-brand .brand-logo { height: 44px; margin: -6px 0; }

  .hero { padding: 4rem 0 2.5rem; }
  .hero-logo { width: 160px; }
  .hero h1 { font-size: 1.6rem; }

  .page-hero h1 { font-size: 1.4rem; }
}

/* ---------- Video Modal ---------- */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.video-modal-overlay .modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  transition: opacity 0.3s ease;
}
.video-modal-overlay .modal-close:hover {
  opacity: 0.7;
}
.video-modal-overlay video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  margin-bottom: 30px;
}

/* ---------- AOS Overrides ---------- */
[data-aos]:not(img):not(video):not(canvas) { overflow: visible; }
section { overflow-x: clip; }

/* ---------- Skip Link (Accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--hsg-navy);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
