/*
 * Hughes Team Directory Static Styles
 *
 * This stylesheet defines the look and feel of the Hughes Team static directory.
 * It recreates the cream, teal and amber colour palette of the WordPress
 * directory page and applies modern responsive layouts. Root variables hold
 * colours so they can be tweaked in a single place. Panels and cards are
 * arranged in a responsive grid that collapses gracefully on smaller screens.
 */

/* Colour palette and sizing variables */
:root {
  --ht-cream: #F1EBDC;
  --ht-teal: #184D52;
  --ht-amber: #D69A2D;
  --ht-ink: #0E2A2C;
  --ht-panel: #15464B;
  --ht-radius: 28px;
}

/* Global styles */
html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--ht-cream);
  color: #102628;
}

/* Main wrapper */
.ht-wrap {
  padding: 24px 16px;
}

/* Header layout */
.ht-header {
  max-width: 1140px;
  margin: 0 auto 12px auto;
  text-align: center;
}

/* Icons row */
.ht-icons {
  display: flex;
  justify-content: center;
  gap: 28px;
  align-items: center;
  margin: 10px 0 12px;
}

/* Individual icon tiles */
.ht-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ht-teal);
  color: var(--ht-amber);
  text-decoration: none;
  font-size: 30px;
  border: 4px solid #203f41;
  box-shadow: 0 2px 0 #0f2a2c;
  transition: transform 0.1s ease;
}
.ht-icon:hover {
  transform: translateY(-2px);
}

/* Logo in the centre */
.ht-logo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #1e5c61, var(--ht-teal));
  color: var(--ht-amber);
  text-align: center;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 1px;
  text-decoration: none;
  border: 6px double #c46d2b;
  box-shadow: 0 3px 0 #0f2a2c;
  font-size: 20px;
}

/* Search form */
.ht-search {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 8px;
  max-width: 560px;
}
.ht-search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #203f41;
  background: #ffffff;
  font-size: 16px;
}
.ht-search button {
  padding: 12px 18px;
  border-radius: 12px;
  border: 2px solid #203f41;
  background: var(--ht-teal);
  color: var(--ht-amber);
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  transition: filter 0.1s ease;
}
.ht-search button:hover {
  filter: brightness(1.05);
}

/* Quick link bar */
.ht-quicklinks {
  color: #274e52;
  margin: 6px 0 18px;
}
.ht-quicklinks a {
  color: #274e52;
  text-decoration: none;
}
.ht-quicklinks a:hover {
  text-decoration: underline;
}

/* Panels grid */
.ht-panels {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 24px;
}

/* Panel containers */
.ht-panel {
  background: var(--ht-panel);
  border-radius: var(--ht-radius);
  padding: 18px 20px;
  color: var(--ht-amber);
  min-height: 360px;
  box-shadow: 0 4px 0 var(--ht-ink);
  display: flex;
  flex-direction: column;
}
.ht-panel h2 {
  margin: 6px 0 12px;
  font-size: 22px;
  color: var(--ht-amber);
}

/* Make the middle panel wider */
.ht-panel-wide {
  grid-column: 2 / 3;
}

/* Links list styling */
.ht-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.ht-links a {
  color: var(--ht-amber);
  text-decoration: none;
}
.ht-links a:hover {
  text-decoration: underline;
}

/* Directory grid inside the wide panel */
.ht-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Category cards */
.ht-card {
  background: #0f3c40;
  color: #e9d8b5;
  border-radius: 18px;
  padding: 14px 14px 10px;
  border: 2px solid #0e2a2c;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ht-card h3 {
  color: #ffd082;
  margin: 2px 0 8px;
  font-size: 18px;
}
.ht-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ht-card a {
  color: #ffd082;
  text-decoration: none;
}
.ht-card a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 990px) {
  .ht-panels {
    grid-template-columns: 1fr;
  }
  .ht-panel,
  .ht-panel-wide {
    grid-column: auto;
  }
  .ht-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .ht-grid {
    grid-template-columns: 1fr;
  }
  .ht-icons {
    gap: 16px;
  }
  .ht-icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
  .ht-logo {
    width: 92px;
    height: 92px;
    font-size: 14px;
  }
}