body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: url('./images/sailcascais.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
  }

/* BODY & BACKGROUND */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* no scroll on large screens */
}

/* HEADER */
.sp-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.sp-nav {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.sp-logo img {
  height: 48px;
  display: block;
}

/* LINKS */
.sp-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.sp-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 400;
}

.sp-links a:hover {
  color: #ffffff;
}

/* SIGN IN BUTTON */
.sp-signin {
  padding: 8px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;      /* behind all content */
  overflow: hidden;
  pointer-events: none;  /* <-- ignore mouse clicks */
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* Keeps aspect ratio, fills screen */
  object-position: center; /* Center the focal point */
}
  
  .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
    rgba(15, 23, 42, 0.4),    /* Top - 40% opacity */
    rgba(15, 23, 42, 0.3),    /* Middle - 30% opacity */
    rgba(15, 23, 42, 0.6)     /* Bottom - 60% opacity */
  );
  }
  
  /* Content styling */
.main-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

  .hero h1 {
    font-size: 4.5rem;       /* increased */
    font-weight: 400;
    margin-bottom: 20px;     /* more spacing */
    margin-top: 40px;        /* added vertical offset */
  }
  
  .hero p {
    font-size: 1.5rem;       /* increased */
    color: #f0f0f0;
    max-width: 672px;
    margin: 0 auto 2rem auto;
  }
  
.cards-container {
   display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 2rem auto;
  padding: 0 1.5rem;  
}

  .card {
    background-color: #fffffff2;
    color: #333;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    position:relative;
    transition: all 300ms ease-in-out;
  }

.card:hover {
  transform: translateY(-0.25rem); /* Moves UP by 4px */
}  

 /* clean, modern icon placement */
.card-icon {
  width: 32px;
  height: 32px;
  stroke: oklch(.705 .213 47.604);;
  margin-bottom: 10px;   /* simple spacing */
  display: block;
  transition: transform 300ms ease;
}

.card:hover .card-icon {
  transform: scale(1.5); /* 110% size */
  transform: translate(-20px);
}

  .card h3 {
    margin-bottom: 10px;
    text-align:left;
    font-weight: 400;
    color: black;
    font-size: 24px;
  }
  
  .card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align:left;
  }
  
  .card button {
    padding: 16px 30px;        /* wider and taller button */
    background: linear-gradient(to right, oklch(.705 .213 47.604), #ea580c);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;         /* larger font */
    width: 100%;               /* full width button */
    box-sizing: border-box;
    font-family: var(--font-sans);
  }
  
  .card button:hover {
   background: linear-gradient(to right, #ea580c, #c2410c);
  }

.lucide-arrow-right {
  transition: transform 50ms linear;
}

.card button:hover .lucide-arrow-right {
  transform: translate(3px);
}
  
  .learn-more {
    margin-top: 20px;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 6px;
  }
  
  .card .learn-more a {
    color: oklch(.705 .213 47.604);                  
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .card .learn-more a:hover {
    color: oklch(.646 .222 41.116);                    /* slightly darker orange */
  }
  
  .card .learn-more a:hover .lucide-arrow-right {
     transform: translate(3px);                    /* slightly darker orange */
  }

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  margin-bottom:20px;
}

.contact-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.contact-chip svg {
  display: block;
}

@media (min-width: 768px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Scroll only on short screens */
@media screen and (max-height: 1080px) {
  html, body {
    overflow-y: auto; /* enable scrollbar */
    min-height: 100%; /* allow body to expand */
  }

  /* Let content overflow naturally */
  .main-content {
    min-height: auto; /* do not force 100vh, allow scrolling */
  }
}