
:root {
  --brand: #2f6f73;
  --brand-dark: #244f52;
  --text: #24323a;
  --muted: #5f6e76;
  --bg: #f6f7f5;
  --panel: #ffffff;
  --line: #d9e1e4;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  --radius: 16px;
 --hsmc-teal: #1b8a8f;

}

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--brand-dark);
  font-weight: 600;
}

.home-hero {
  min-height: 62vh;
  background-image: url('../img/home-hero-beach.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  min-height: 62vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(0,0,0,0.35), rgba(0,0,0,0.12));
}

.hero-text-panel {
  max-width: 540px;
  background: rgba(28, 46, 52, 0.62);
  color: #ffffff;
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-text-panel h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.hero-text-panel p {
  margin: 0;
  font-size: 1.1rem;
}

.section {
  padding: 2rem 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.site-footer {
  background: #eaf0f1;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .hero-overlay {
    min-height: 48vh;
  }
}

.page-banner {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, #eef4f5, #f8fbfb);
  border-bottom: 1px solid var(--line);
}

.page-banner h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brand-dark);
}

.page-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 700px;
}

/* .split-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
} */

.split-section.reverse .split-image {
  order: 2;
}

.split-section.reverse .split-text {
  order: 1;
}

/* .split-image img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: var(--shadow);
} */

.split-text h2 {
  margin-top: 0;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-image,
  .split-section.reverse .split-text {
    order: initial;
  }
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.tableish {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tableish th,
.tableish td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--line);
}

.tableish th {
  width: 140px;
  color: var(--brand-dark);
}

.button {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: var(--brand-dark);
  color: #fff;
}

.button.secondary {
  background: #e7eff0;
  color: var(--brand-dark);
}

.map {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 12px;
  display: block;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.feature-image {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: var(--shadow);
}


/* .split-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: stretch;   /* ← key change */
} */

.split-section {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: stretch;
  padding: 2.5rem 0;
}


/* .split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   
  border-radius: 16px;
  box-shadow: var(--shadow);
} */

.split-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: var(--shadow);
}


.split-text .panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertically centre text */
}
.notice {
  background: #fff8e8;
  border: 1px solid #ecd9a0;
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.card-image {
    width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0 1rem 0;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form label {
  font-weight: 600;
  margin-top: 0.4rem;
}


.contact-text,
.contact-text .panel {
  justify-content: flex-start !important;
}

.panel a.external-link,
.card a.external-link,
.notice a.external-link {
  color: var(--hsmc-teal);
  font-weight: 300;
  text-decoration: underline;
}

.panel a.external-link,
.card a.external-link:hover,
.notice a.external-link:hover {
  text-decoration: underline;
/* opacity: 0.85; */
}

.form-help {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.right-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.side-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .form-grid,
  .side-cards {
    grid-template-columns: 1fr;
  }
}


.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* @media (max-width: 900px) {
  .split-image img {
    height: auto;
  }
} */

/* @media (max-width: 900px) {
  .split-image img {
    max-height: 260px;
    object-fit: cover;
  }
} */

@media (max-width: 900px) {
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-image,
  .split-section.reverse .split-text {
    order: initial;
  }

  .split-image img {
    max-height: 260px;
    object-fit: cover;
  }
}

