/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --navy: #0A2A4A;
  --navy-light: #123A60;
  --accent: #E84A2D;
  --accent-hover: #C93E24;
  --white: #FFFFFF;
  --off-white: #F4F6F9;
  --gray-100: #EDF0F4;
  --gray-200: #DDE1E7;
  --gray-400: #98A2B3;
  --gray-600: #5F6B7A;
  --gray-800: #2D3643;
  --text: #1A1A2E;
  --text-light: #5F6B7A;
  --shadow-sm: 0 1px 3px rgba(10, 42, 74, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 42, 74, 0.10);
  --shadow-lg: 0 10px 40px rgba(10, 42, 74, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --nav-height: 80px;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION SHARED ===== */
.section {
  padding: 100px 0;
}

.section__tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 74, 45, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--full { width: 100%; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 42, 74, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(10, 42, 74, 0.98);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  flex-shrink: 0;
  z-index: 1001;
}

.nav__logo img {
  height: 44px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 4px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav__phone {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav__phone:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.nav__phone-mobile { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,42,74,0.55) 0%, rgba(10,42,74,0.75) 100%),
    url('https://seasafe.co.uk/wp-content/uploads/2021/05/seasafe-history.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10,42,74,0.4) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 4px 20px rgba(232,74,45,0.4);
}

.about__badge span {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.about__badge small {
  font-size: 0.6875rem;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.about__text p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.about__certs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cert {
  background: var(--gray-100);
  color: var(--navy);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--gray-200);
}

/* ===== PRODUCTS ===== */
.products {
  background: var(--off-white);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}

.product-card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .product-card__img img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.product-card__body p {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.product-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
  align-self: flex-start;
}

.product-card__link:hover { color: var(--accent-hover); }

/* ===== SERVICES ===== */
.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}

.service-card__icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card ul li {
  font-size: 0.8125rem;
  color: var(--text-light);
  padding-left: 20px;
  position: relative;
}

.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== BRANDS ===== */
.brands {
  background: var(--off-white);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.brand-logo {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  min-height: 80px;
}

.brand-logo:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--gray-400);
  transform: translateY(-2px);
}

.brand-logo img {
  max-height: 36px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition);
}

.brand-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__card {
  background: var(--off-white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
}

.contact__card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact__card address,
.contact__card p {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: normal;
  line-height: 1.8;
}

.contact__card a {
  color: var(--accent);
  font-weight: 500;
}

.contact__card a:hover { text-decoration: underline; }

.contact__social {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  transition: all var(--transition);
}

.social-icon:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== FORM ===== */
.contact__form {
  background: var(--off-white);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 74, 45, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.contact__form .btn--full {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.6875rem;
  color: var(--gray-400);
  text-align: center;
  margin: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  margin-bottom: 16px;
  /* filter: brightness(0) invert(1); */
}

.footer__col--brand p {
  font-size: 0.8125rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__certs span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer__col h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col ul li a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer__col ul li a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__payments {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .brands__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }

  .section { padding: 72px 0; }

  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav__menu.active {
    opacity: 1;
    pointer-events: all;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .nav__link { font-size: 1.125rem; padding: 12px 24px; }

  .nav__phone { display: none; }

  .nav__phone-mobile {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--white);
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
  }

  .nav__toggle { display: flex; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about__image img { height: 320px; }

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

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

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

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

  .contact__form { grid-template-columns: 1fr; padding: 24px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .brand-logo { padding: 16px; }
  .brand-logo img { max-height: 28px; }
}
