html {
      scroll-behavior: smooth;
    }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    --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-image: url('./images/sailcascais.jpg');
    color: white;
     background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

body::before {
  content: '';
  position: fixed;    /* stays fixed while scrolling */
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.4),
    rgba(15, 23, 42, 0.3),
    rgba(15, 23, 42, 0.6)
  );  /* your original overlay stops */
  z-index: 0;         /* behind the content */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 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);
}

.main-grid{
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 2rem;
      align-items: start;
}

/* Table of Contents */
    .toc {
      position: sticky;
      top: 2rem;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border-radius: 1rem;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.2);
      overflow: hidden;
    }

    .toc-header {
      padding: 1rem 1.25rem;
      background: linear-gradient(to right, #fff7ed, #ffedd5);
      border-bottom: 1px solid #fed7aa;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: #7c2d12;
    }

    .toc-header h3 {
      font-size: 1rem;
      font-weight: 600;
    }

    .toc-nav {
      padding: 0.75rem 0;
    }

    .toc-link {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.625rem 1.25rem;
      color: #475569;
      text-decoration: none;
      transition: all 0.2s ease;
      font-size: 0.875rem;
      border: none;
      background: none;
      width: 100%;
      text-align: left;
      cursor: pointer;
    }

    .toc-link:hover {
      background: #fff7ed;
      color: #ea580c;
    }

    .toc-icon {
      width: 16px;
      height: 16px;
      stroke: #94a3b8;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: stroke 0.2s ease;
    }

    .toc-link:hover .toc-icon {
      color: #f97316;
    }


.top-bar {
  width: 100%;
  height: 32px;           /* Adjust height if needed */
  background-color: #2c2c2c;
  border-bottom-width: 1px;
  border-bottom-style:solid;
  border-bottom-color:#444444;	
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;          /* Above overlay, logo, everything */
}

.background-container {
  position: fixed;   /* background stays fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;       /* behind content */
}

.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 */
  );
  }
  
  .logo {
    max-width: 250px;
    height: auto;
    position: absolute;
    top: 30px;
    left: 20px;
    padding-top: 20px;
  }
  
  .main-content {
    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 4rem 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 */
  }
  
  footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);  /* optional translucent bg */
    padding: 10px 0;
  }

  footer a {
    color: #ff9800;       /* sailprofile orange */
    font-weight: 600;
    text-decoration: none;
  }
  
  footer a:hover {
    color: #e68900;       /* darker orange on hover */
    text-decoration: underline;
  }

.footer-contact {
  text-align: center;
}

.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);
  }
}
    
    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 3rem 1rem;
      position: relative;
      z-index: 1;
    }

    /* Hero Section */
    .hero {
      text-align: center;
      margin-bottom: 4rem;
      margin-top: 2rem;
    }

    .hero-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, #fb923c, #ea580c);
      border-radius: 1.5rem;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      margin-bottom: 1.5rem;
    }


    .hero-description {
      color: rgba(255, 255, 255, 0.9);
      font-size: 1.25rem;
      max-width: 48rem;
      margin: 0 auto 2rem;
      line-height: 1.7;
    }

    .hero-description strong {
      color: #fb923c;
    }

    .hero-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
      margin-top: 2rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1.5rem;
      border-radius: 0.75rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
      cursor: pointer;
      border: none;
      font-size: 1rem;
    }

    .btn-primary {
      background: #f97316;
      color: white;
      box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
    }

    .btn-primary:hover {
      background: #ea580c;
      transform: translateY(-2px);
      box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.4);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.1);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    /* Main Grid Layout */
    .main-grid {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 2rem;
      align-items: start;
    }

    @media (max-width: 1024px) {
      .main-grid {
        grid-template-columns: 1fr;
      }
      
      .toc {
        position: relative !important;
        top: auto !important;
      }
    }

    /* Table of Contents */
    .toc {
      position: sticky;
      top: 2rem;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border-radius: 1rem;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.2);
      overflow: hidden;
    }

    .toc-header {
      padding: 1rem 1.25rem;
      background: linear-gradient(to right, #fff7ed, #ffedd5);
      border-bottom: 1px solid #fed7aa;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: #7c2d12;
    }

    .toc-header h3 {
      font-size: 1rem;
      font-weight: 600;
    }

    .toc-nav {
      padding: 0.75rem 0;
    }

    .toc-link {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.625rem 1.25rem;
      color: #475569;
      text-decoration: none;
      transition: all 0.2s ease;
      font-size: 0.875rem;
      border: none;
      background: none;
      width: 100%;
      text-align: left;
      cursor: pointer;
    }

    .toc-link:hover {
      background: #fff7ed;
      color: #ea580c;
    }

    .toc-link:hover .toc-icon {
      color: #f97316;
    }

    /* Content Sections */
    .content {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .section {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border-radius: 1rem;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.2);
      overflow: hidden;
      scroll-margin-top: 2rem;
    }

    .section-header {
      padding: 1.5rem 2rem;
      border-bottom: 1px solid;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .section-icon {
      padding: 0.5rem;
      border-radius: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .section-title-group {
      flex: 1;
    }

    .section-kicker {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 600;
      margin-bottom: 0.25rem;
    }

    .section-title-group h2 {
      font-size: 1.5rem;
      font-weight: 600;
      color: #0f172a;
    }

    .section-content {
      padding: 2rem;
    }

    /* Color Themes for Sections */
    .theme-orange .section-header { background: linear-gradient(to right, #fff7ed, #ffedd5); border-bottom-color: #fed7aa; }
    .theme-orange .section-icon { background: #f97316; color: white; }
    .theme-orange .section-kicker { color: #ea580c; }

    .theme-blue .section-header { background: linear-gradient(to right, #eff6ff, #dbeafe); border-bottom-color: #bfdbfe; }
    .theme-blue .section-icon { background: #3b82f6; color: white; }
    .theme-blue .section-kicker { color: #2563eb; }

    .theme-purple .section-header { background: linear-gradient(to right, #faf5ff, #f3e8ff); border-bottom-color: #e9d5ff; }
    .theme-purple .section-icon { background: #a855f7; color: white; }
    .theme-purple .section-kicker { color: #9333ea; }

    .theme-cyan .section-header { background: linear-gradient(to right, #ecfeff, #cffafe); border-bottom-color: #a5f3fc; }
    .theme-cyan .section-icon { background: #06b6d4; color: white; }
    .theme-cyan .section-kicker { color: #0891b2; }

    .theme-indigo .section-header { background: linear-gradient(to right, #eef2ff, #e0e7ff); border-bottom-color: #c7d2fe; }
    .theme-indigo .section-icon { background: #6366f1; color: white; }
    .theme-indigo .section-kicker { color: #4f46e5; }

    .theme-pink .section-header { background: linear-gradient(to right, #fdf2f8, #fce7f3); border-bottom-color: #fbcfe8; }
    .theme-pink .section-icon { background: #ec4899; color: white; }
    .theme-pink .section-kicker { color: #db2777; }

    .theme-emerald .section-header { background: linear-gradient(to right, #ecfdf5, #d1fae5); border-bottom-color: #a7f3d0; }
    .theme-emerald .section-icon { background: #10b981; color: white; }
    .theme-emerald .section-kicker { color: #059669; }

    .theme-red .section-header { background: linear-gradient(to right, #fef2f2, #fee2e2); border-bottom-color: #fecaca; }
    .theme-red .section-icon { background: #ef4444; color: white; }
    .theme-red .section-kicker { color: #dc2626; }

    .theme-violet .section-header { background: linear-gradient(to right, #f5f3ff, #ede9fe); border-bottom-color: #ddd6fe; }
    .theme-violet .section-icon { background: #8b5cf6; color: white; }
    .theme-violet .section-kicker { color: #7c3aed; }

    .theme-teal .section-header { background: linear-gradient(to right, #f0fdfa, #ccfbf1); border-bottom-color: #99f6e4; }
    .theme-teal .section-icon { background: #14b8a6; color: white; }
    .theme-teal .section-kicker { color: #0d9488; }

    .theme-slate .section-header { background: linear-gradient(to right, #f8fafc, #f1f5f9); border-bottom-color: #e2e8f0; }
    .theme-slate .section-icon { background: #475569; color: white; }
    .theme-slate .section-kicker { color: #475569; }

    .toc-orange .toc-icon { color: #f97316; }
    .toc-blue   .toc-icon { color: #3b82f6; }
    .toc-green  .toc-icon { color: #22c55e; }
    .toc-purple .toc-icon { color: #a855f7; }


    /* Quick Start Cards */
    .step-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .step-card {
      background: linear-gradient(135deg, #f8fafc, white);
      border: 1px solid #e2e8f0;
      border-radius: 0.75rem;
      padding: 1.25rem;
      display: flex;
      gap: 1rem;
    }

    .step-number {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, #fb923c, #ea580c);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
    }

    .step-content h4 {
      color: #0f172a;
      font-weight: 600;
      margin-bottom: 0.5rem;
      font-size: 1rem;
    }

    .step-content p {
      color: #475569;
      font-size: 0.875rem;
      line-height: 1.6;
    }

    /* Callouts */
    .callout {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      padding: 1rem;
      border-radius: 0.75rem;
      border: 1px solid;
      font-size: 0.875rem;
    }

    .callout-success {
      background: #f0fdf4;
      border-color: #bbf7d0;
    }

    .callout-success .callout-icon { color: #16a34a; }
    .callout-success strong { color: #15803d; }
    .callout-success { color: #166534; }

    .callout-warning {
      background: #fffbeb;
      border-color: #fde68a;
    }

    .callout-warning .callout-icon { color: #d97706; }
    .callout-warning strong { color: #b45309; }
    .callout-warning { color: #92400e; }

    .callout-info {
      background: #eff6ff;
      border-color: #bfdbfe;
    }

    .callout-info .callout-icon { color: #2563eb; }
    .callout-info strong { color: #1e40af; }
    .callout-info { color: #1e3a8a; }

    .callout-icon {
      flex-shrink: 0;
      margin-top: 2px;
    }

    /* Lists */
    .icon-list {
      list-style: none;
      margin: 1rem 0;
    }

    .icon-list li {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
      color: #475569;
    }

    .icon-list .icon {
      flex-shrink: 0;
      margin-top: 4px;
    }

    .numbered-list {
      list-style: none;
      margin: 1rem 0;
    }

    .numbered-list > li {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 1rem;
      color: #475569;
    }

    .number-badge {
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.75rem;
      color: white;
      margin-top: 2px;
    }

    /* Two Column Grid */
    .two-col {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin: 1.5rem 0;
    }

    .two-col h3 {
      font-size: 1rem;
      font-weight: 600;
      color: #0f172a;
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* Tips Grid */
    .tips-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 0.75rem;
      margin: 1.5rem 0;
    }

    .tip-card {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      padding: 0.75rem;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 0.5rem;
      font-size: 0.75rem;
      color: #475569;
    }

    /* Glossary Items */
    .glossary-item {
      padding: 1rem;
      background: linear-gradient(to right, #f8fafc, white);
      border: 1px solid #e2e8f0;
      border-radius: 0.75rem;
      margin-bottom: 1rem;
    }

    .glossary-item h4 {
      color: #0f172a;
      font-weight: 600;
      margin-bottom: 0.25rem;
    }

    .glossary-item p {
      color: #475569;
      font-size: 0.875rem;
    }

    .glossary-item em {
      color: #8b5cf6;
      font-style: normal;
    }

    /* FAQ */
    details {
      background: linear-gradient(to right, #f8fafc, white);
      border: 1px solid #e2e8f0;
      border-radius: 0.75rem;
      margin-bottom: 1rem;
      overflow: hidden;
    }

    summary {
      padding: 1rem 1.25rem;
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 500;
      color: #0f172a;
      transition: background 0.2s ease;
    }

    summary:hover {
      background: #f8fafc;
    }

    summary::-webkit-details-marker {
      display: none;
    }

    details[open] summary .chevron {
      transform: rotate(90deg);
    }

    .chevron {
      transition: transform 0.2s ease;
      color: #94a3b8;
    }

    .faq-answer {
      padding: 0 1.25rem 1rem;
      color: #475569;
      font-size: 0.875rem;
      line-height: 1.6;
    }

    /* CTA Section */
    .cta-section {
      background: linear-gradient(135deg, #f97316, #ea580c, #c2410c);
      border-radius: 1rem;
      box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.4);
      padding: 3rem 2rem;
      text-align: center;
      color: white;
    }

    .cta-section h2 {
      font-size: clamp(1.5rem, 4vw, 2rem);
      margin-bottom: 1rem;
      color: white;
    }

    .cta-section p {
      font-size: 1.125rem;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 2rem;
      max-width: 40rem;
      margin-left: auto;
      margin-right: auto;
    }

    .cta-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
    }

    .btn-white {
      background: white;
      color: #ea580c;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    }

    .btn-white:hover {
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    }

    .btn-outline {
      background: rgba(255, 255, 255, 0.1);
      color: white;
      border: 2px solid rgba(255, 255, 255, 0.3);
      backdrop-filter: blur(10px);
    }

    .btn-outline:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    /* Icons - Simple SVG Icons */
    .icon {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .icon-sm {
      width: 16px;
      height: 16px;
    }

    .icon-lg {
      width: 40px;
      height: 40px;
    }

    code {
      padding: 0.125rem 0.375rem;
      background: #dbeafe;
      border-radius: 0.25rem;
      font-size: 0.75rem;
      font-family: 'Courier New', monospace;
    }

    strong {
      font-weight: 600;
      color: #0f172a;
    }

    em {
      font-style: italic;
    }

    a {
      color: #ea580c;
      text-decoration: underline;
      transition: color 0.2s ease;
    }

    a:hover {
      color: #c2410c;
    }

    p {
      margin-bottom: 1rem;
      color: #475569;
    }

    p:last-child {
      margin-bottom: 0;
    }