/* =====================================================
   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;
}

/* ---------- Email ---------- */

.email-link {
    color: #0077cc;
    text-decoration: underline;
    font-weight: bold;
}

.email-link:hover {
    color: #005599;
    text-decoration: none;
}

/* ---------- 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;
}

/* ---------- BOXES ---------- */

.box {
  background: #fff;
  border: 2px solid var(--harbour-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: var(--fs-box);
}

.box li {
    margin-left: 1rem;
}

.box video {
  width: 100%;
  max-height: 25rem;
  object-fit: cover;
}

.cd-image {
  width: 100%;
  max-width: 300px;
  height: auto; 
}

/* ---------- HERO IMAGE ---------- */

.hero-image {
  display: block;
  margin: 0 auto 30px;
  width: clamp(150px, 50vw, 400px);
  border-radius: 15px;
  box-shadow: var(--shadow-strong);
}

/* ---------- CONTACT ---------- */

.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
}


.contact-info,
.contact-container {
    width: min(60%, 900px);
    margin: 0 auto;
}


button {
  width: 100%;
  padding: 14px;
  font-size: 1.3rem;
  background: var(--lobster-red);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- HISTORY ---------- */

.history-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  backdrop-filter: blur(10px);
  border-radius: 4px;
  box-shadow: var(--shadow-strong);
  font-size: 1.25rem;
  font-weight: bold;
}

.history-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;

  overflow-wrap: break-word; /* only breaks if necessary */
  word-break: normal;        /* keep words intact */

  background: #ffffff;
  border-radius: 4px;
  box-shadow: var(--shadow-strong);
  font-size: 1.25rem;
  font-weight: bold;
}

.history-container h1,
.history-section h1 {
  text-align: center;
}

.history-section h2 {
  margin-top: 40px;
  border-bottom: 2px solid rgba(255,255,255,.3);
  padding-bottom: 10px;
}

/* ---------- MERCH ---------- */

.merch-intro {
  max-width: 80%;
  margin: 24px auto;
  padding: 20px;

  background: var(--brass);

  border: 2px solid var(--harbour-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);

  text-align: center;
}

.merch-intro a {
  color: var(--navy);
  font-weight: bold;
}

.products {
  display: grid;
  grid-template-columns:
      repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 24px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--harbour-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.product-card h2 {
  min-height: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card h3 {
    min-height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.price {
  font-size: 1.4rem;
  color: var(--lobster-red);
  font-weight: bold;
}

.price-box {
  margin-top: auto;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: bold;
}

.sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;

  background: #e63946;
  color: white;

  padding: 6px 10px;
  border-radius: 20px;

  font-size: .8rem;
  font-weight: bold;
}

.contact-container {
    width: min(60%, 900px);
    margin: 0 auto;
    background: #fff;
    border: 2px solid var(--harbour-blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    color: var(--charcoal);
}


.contact-container input,
.contact-container select,
.contact-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

fieldset {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 15px;
}

/* ---------- 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;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {

  .contact-info,
  .contact-container {
    width: 95%;
    min-width: 0;
    margin: 0 auto;
  }

  .social-icons {
    display: none;
  }

  .box {
    padding: 15px;
  }
}

@media (max-width: 480px) {

  .box {
    font-size: .85rem;
  }

  .products {
    grid-template-columns: 1fr;
  }
.social-icons {
    display: none;
}

@media (max-width: 480px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .main-content {
        padding: 10px;
    }

    .box {
        min-width: 0;
    }
}

}