/* =====================================================
   The Selsey Shantymen - Responsive CSS
===================================================== */

/* ---------- THEME VARIABLES ---------- */
:root {
  --navy: #1F3F73;
  --harbour-blue: #4F78A8;
  --lobster-red: #C53A3A;
  --sailcloth: #F7F3EC;
  --weathered-sand: #E9E2D5;
  --charcoal: #2C3238;
  --brass: #C89A4A;

  --page-max: 75rem;
  --container-padding: clamp(0.75rem, 3vw, 1.5rem);
  --content-gap: clamp(0.75rem, 2vw, 1.25rem);

  --radius: 0.75rem;

  --shadow-soft: 0 4px 15px rgba(0,0,0,.12);
  --shadow-strong: 0 6px 20px rgba(0,0,0,.25);

  --fs-body: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  --fs-box: clamp(1rem, 0.9rem + 0.65vw, 1.35rem);
  --fs-menu: clamp(1rem, 1.3vw + 0.65rem, 1.75rem);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--charcoal);
  background: linear-gradient(
      180deg,
      var(--sailcloth),
      var(--weathered-sand)
  );
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding-left: 1.25rem;
}

/* ---------- HEADINGS ---------- */

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.black-heading {
  color: #000;
}

/* ---------- HEADER ---------- */

.site-header {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--lobster-red);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  gap: 10px;
}

/* ---------- MENU ---------- */

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.menu li {
  margin: 0;
}

.menu a {
  font-weight: bold;
  color: var(--sailcloth);
  font-size: clamp(0.75rem, 1vw + 0.4rem, 1.5rem);
}

/* ---------- BANNER ---------- */

.banner {
  position: relative;
  padding: 10px;
}

.banner > img {
  width: clamp(220px, 35vw, 520px);
  border: 4px solid var(--navy);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* ---------- SOCIAL ICONS ---------- */

.social-icons {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.25rem);
  right: var(--container-padding);

  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 15px;
}

.social-icons a {
  text-align: center;
  color: #000;
  font-weight: 700;
}

.social-icons img {
    width: clamp(2.1rem, 6vw, 4.375rem);
    height: clamp(2.1rem, 6vw, 4.375rem);
    object-fit: contain;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* ---------- MAIN GRID ---------- */

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
      "box1 box2"
      "box3 box4";

  gap: 15px;
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Crew Grid */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 1.5rem;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Crew Card */
.crew-card {
    background: white;
    border: 0.125rem solid var(--harbour-blue);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

/* Crew Image */
.crew-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Mobile adjustments */
@media (max-width: 480px) {
.crew-grid {
        padding: 1rem;
        gap: 1rem;
    }

.crew-card {
        padding: 0.75rem;
    }

.box {
    font-size: .85rem;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .social-icons {
    display: none;
}
}


/* ---------- TABLET ---------- */

@media (max-width: 900px) {

  .main-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "box1"
      "box2"
      "box3"
      "box4";
  }

  .social-icons a span {
    display: none;
  }

  .box {
    font-size: .95rem;
    padding: 1rem;
  }
}


