* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f3ee;
  color: #1f1f1f;
  font-family: 'Inter', Arial, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
}

.center {
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(247, 243, 238, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wrap {
  min-height: 82px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.main-nav {
  display: flex;
  gap: 34px;
  color: rgba(0, 0, 0, 0.68);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.footer-links a:hover {
  color: #000;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-dark {
  background: #000;
  color: #fff;
}

.btn-dark:hover {
  background: rgba(0, 0, 0, 0.82);
}

.btn-light {
  background: rgba(255, 255, 255, 0.55);
}

.btn-light:hover,
.btn-outline:hover {
  background: #fff;
}

.btn-outline {
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.35);
}

.btn-large {
  min-height: 58px;
  padding: 0 32px;
  font-size: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 60px;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(216, 185, 140, 0.35);
  filter: blur(70px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;
  align-items: center;
  padding: 110px 0 120px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  margin-bottom: 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  padding: 11px 18px;
  color: rgba(0, 0, 0, 0.68);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
}

h1,
h2 {
  font-family: 'Playfair Display', Georgia, serif;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}

h3 {
  font-size: 25px;
}

.hero-content p,
.dark-section p,
.events-content p,
.join-box p {
  color: rgba(0, 0, 0, 0.62);
  font-size: 18px;
  line-height: 1.75;
}

.hero-content p {
  max-width: 620px;
  margin: 28px 0 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero-image-wrap {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.5);
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.hero-image {
  min-height: 520px;
  border-radius: 26px;
  background-image: url('https://beach-fun.co.uk/assets/images/aberlady.webp');
  background-size: cover;
  background-position: center;
}

.event-card {
  position: absolute;
  left: 34px;
  bottom: -34px;
  display: flex;
  gap: 14px;
  align-items: center;
  width: 280px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  padding: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
}

.event-card span {
  display: block;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 14px;
}

.event-icon,
.feature-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #ead8c1;
  font-size: 24px;
}

.dark-section {
  background: #050505;
  color: #fff;
  padding: 105px 0;
}

.dark-section .section-label {
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.34em;
}

.dark-section p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 760px;
  margin: 26px auto 0;
}

.features-section {
  padding: 105px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  min-height: 310px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.6);
  padding: 34px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.feature-card h3 {
  margin-top: 36px;
}

.feature-card p {
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.7;
}

.events-section {
  padding-bottom: 105px;
}

.events-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.events-image {
  min-height: 440px;
  background-image: url('https://beach-fun.co.uk/assets/images/together.png');
  background-size: cover;
  background-position: center;
}

.events-content {
  padding: 58px;
}

.dark-label {
  margin-bottom: 18px;
  color: rgba(0, 0, 0, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.tick-list {
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 32px;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 600;
}

.tick-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
}

.join-section {
  padding-bottom: 105px;
}

.join-box {
  border-radius: 34px;
  background: #d8b98c;
  padding: 76px 40px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.join-box p {
  max-width: 660px;
  margin: 24px auto 34px;
}

.lock-icon {
  margin-bottom: 24px;
  font-size: 40px;
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 30px 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .events-panel,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 70px 0 90px;
  }

  .hero-image {
    min-height: 380px;
  }

  .events-content {
    padding: 38px;
  }
}

@media (max-width: 620px) {
  .nav-actions .btn-light {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .event-card {
    position: static;
    width: auto;
    margin-top: 16px;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
}


.auth-page {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 70px 20px;
  background: radial-gradient(circle at top, rgba(216, 185, 140, 0.35), transparent 35%), #f7f3ee;
}

.auth-card {
  width: min(620px, 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  padding: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.11);
}

.auth-card h1 {
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1;
}

.auth-intro {
  margin: 18px 0 30px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 17px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  background: #fff;
  padding: 15px 16px;
  font: inherit;
}

.field-help {
  color: rgba(0, 0, 0, 0.52);
  font-size: 14px;
  font-weight: 600;
}

.field-help.available {
  color: #176b38;
}

.field-help.taken {
  color: #8a1f1f;
}

.checkbox-row {
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start;
  line-height: 1.5;
}

.checkbox-row input {
  margin-top: 5px;
}

.checkbox-row a,
.auth-link a {
  text-decoration: underline;
  font-weight: 800;
}

.form-errors {
  margin-bottom: 24px;
  border-radius: 18px;
  background: #f4d8d8;
  color: #8a1f1f;
  padding: 16px 18px;
  font-weight: 700;
}

.form-errors p {
  margin: 6px 0;
}

.auth-link {
  margin: 24px 0 0;
  color: rgba(0, 0, 0, 0.62);
  text-align: center;
}

.content-page {
  padding: 80px 0;
}

.content-page h1 {
  margin-bottom: 28px;
}

.content-page h2 {
  margin-top: 34px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 28px;
}

.content-page p {
  color: rgba(0, 0, 0, 0.65);
  font-size: 17px;
  line-height: 1.8;
}
.auth-page {
  min-height: calc(100vh - 160px);
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #f7f3ee;
}

.auth-card {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  padding: 45px;
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.12);
}

.auth-card h1 {
  font-size: 42px;
  margin: 10px 0 15px;
  line-height: 1.1;
}

.auth-intro {
  color: #666;
  line-height: 1.7;
  margin-bottom: 30px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label {
  font-weight: 700;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 15px;
  box-sizing: border-box;
}

.checkbox-row {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500 !important;
}

.checkbox-row input {
  margin-top: 4px;
}

.field-help {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}

.field-help.available {
  color: green;
}

.field-help.taken {
  color: #b00020;
}

.form-errors {
  background: #ffe1e1;
  color: #a40000;
  padding: 15px;
  border-radius: 14px;
  margin-bottom: 25px;
}

.form-errors p {
  margin: 5px 0;
}

.auth-link {
  text-align: center;
  margin-top: 25px;
}

.auth-link a,
.checkbox-row a {
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .auth-card {
    padding: 30px 22px;
  }

  .auth-card h1 {
    font-size: 34px;
  }
}