/*
====================================
BASE STYLES & RESET
====================================
*/
html {
  box-sizing: border-box;
  font-size: 100%;
}

*,
:after,
:before {
  box-sizing: inherit;
}

body {
  /* Background Fallback: Added a light pink color in case the image is missing */
  background-color: #fce7f0;
  /*background-image: url(./assets/images/background.png);*/
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  max-width: 100%;
  min-height: 100vh;
  height: auto;
  letter-spacing: 0.1em;
}

/* Styles to hide the H1 tag for SEO/Accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.logo {
  /* MODIFIED: Logo size reduced to 250px */
  width: 250px;
  display: block;
  margin: 20px auto 10px;
}

h2 {
  color: #024873;
}

/*
====================================
SOCIAL ICONS & LOYALTY MARKER
====================================
*/
.channels {
  display: flex;
  max-width: 500px;
  /* Top margin is implicitly created by the .links margin-bottom now */
  margin: 0 auto 20px; 
  justify-content: center;
}

.channels__item {
  flex: 0 0 auto;
  margin: 0 10px;
  transition: transform 0.2s;
  color: #333; /* Default icon color */
}

/* Font Awesome Icons */
.channels__item i {
    font-size: 30px;
    transition: color 0.2s;
}

.channels__item:hover {
  transform: scale(1.2);
}

/* Loyalty Card Marker Container (Right-of-Icon Layout) */
.loyalty-container {
    position: relative;
    display: flex; 
    align-items: flex-start; 
    gap: 5px; 
}

/* Marker (Text and Arrow) Positioning */
.loyalty-marker {
    position: static;
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 5px;
    /* MODIFIED: Increased margin to pull the marker block up higher */
    margin-top: -25px; 
    padding: 0;
    background: none;
    border: none;
}

/* Handwritten, Blinking Text */
.blinking-text {
    font-family: 'Caveat', cursive; 
    font-size: 0.9rem;
    font-weight: 700;
    color: #0000FF; 
    animation: blinker 1s ease-in-out infinite;
    /* Allows text to wrap onto two lines (needs <br> in HTML) */
    white-space: normal; 
    line-height: 1.1; 
    text-align: left; 
}

/* Handwritten Arrow (Targets the Font Awesome icon element) */
.handwritten-arrow {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
    margin-top: 0;
    /* MODIFIED: Adjusted rotation for a more direct aim toward the icon */
    transform: rotate(45deg); 
    animation: blinker 1s ease-in-out infinite;
    order: -1; 
}

/* Keyframe Animation for Blinking */
@keyframes blinker {
    50% {
        opacity: 0.2; /* Blinking smoothly */
    }
}


/*
====================================
LINK BUTTONS (FIXED SELECTORS)
====================================
*/
/* NEW: Rule to increase space below the last link button and before the icons */
.links {
    margin-bottom: 30px; 
}

/* Base style for all link containers (the outer DIV) */
.links__item {
  display: block;
  max-width: 550px;
  margin: 0 auto; /* Centering */
  /* MODIFIED: Vertical space between buttons doubled from 5px to 10px */
  margin-bottom: 10px;
  text-align: center;
}

/* Base style for the actual anchor tag (the inner A) */
.links__item a {
  display: block; /* Makes the link fill the container */
  padding: 10px 10px;
  font-size: 0.95rem;
  line-height: 1.0;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  color: black;
  border-radius: 25px; /* Apply border-radius here */
  border: 2px solid transparent; /* Default border */
}

/* Hover styles for ALL links (Target the inner anchor tag) */
.links__item a:hover {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}


/* Link Color Styles - Targetting the inner anchor tag classes directly */

.links__item--past-event {
  border-bottom: 3px solid #bedde8;
  box-shadow: inset 0 -4px 0 #bedde8;
  border: 2px solid #bedde8;
  background-color: #bedde8;
}

.links__item--product {
  border-bottom: 3px solid #ffc15e;
  box-shadow: inset 0 -4px 0 #ffc15e;
  border: 2px solid #ffc15e;
  background-color: #ffc15e;
}

.links__item--promo {
  border-bottom: 3px solid #80d6ff;
  box-shadow: inset 0 -4px 0 #80d6ff;
  border: 2px solid #80d6ff;
  background-color: #80d6ff;
}

.links__item--featured {
  border-bottom: 3px solid #73e2a7;
  box-shadow: inset 0 -4px 0 #73e2a7;
  border: 2px solid #73e2a7;
  background-color: #73e2a7;
}

.links__item--upcoming {
  border-bottom: 3px solid #ffa093;
  box-shadow: inset 0 -4px 0 #ffa093;
  border: 2px solid #ffa093;
  background-color: #ffa093;
}

.links__item--alumni {
  border-bottom: 3px solid #fed766;
  box-shadow: inset 0 -4px 0 #fed766;
  border: 2px solid #fed766;
  background-color: #fed766;
}

.links__item--blog {
  border-bottom: 3px solid #fd8176;
  box-shadow: inset 0 -4px 0 #fd8176;
  border: 2px solid #fd8176;
  background-color: #fd8176;
}


/*
====================================
LINK BUTTONS (TRIPLE ROW)
====================================
*/

/* Container to make the three links side-by-side */
.links__triple-row {
    display: flex;
    justify-content: space-between; /* Evenly space the buttons */
    gap: 5px; /* Small space between the 3 buttons */
    padding: 0 5px; /* Small horizontal padding inside the main link area */
}

/* Individual styles for the new smaller links (UNIFIED COLOR) */
.triple-link {
    flex: 1 1 0; /* Ensures all three links take up equal space */
    
    /* Unified Color Styling (Original featured green) */
    background-color: #73e2a7; 
    border: 2px solid #73e2a7;
    
    /* Inherit base link styles */
    display: block;
    padding: 8px 5px; 
    font-size: 0.85rem; 
    line-height: 1.1;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    color: black;
    border-radius: 25px; 
}

.links__triple-row a:hover {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Styling for the platform name within the triple link buttons */
.triple-link__platform {
    font-size: 85%; /* Makes the text slightly smaller than the "Livraison" text */
    font-weight: 500; 
}


/*
====================================
MOBILE RESPONSIVENESS (max-width: 600px)
====================================
*/
@media (max-width: 600px) {
    /* Logo sizing */
    .logo {
        width: 200px; /* Reduced further for very small screens */
        margin: 15px auto 10px;
    }

    /* Social icon container adjustments */
    .channels {
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .channels__item i {
        font-size: 24px;
    }
    
    /* Link button sizing */
    .links__item a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    /* TRIPLE ROW: Remains horizontal on mobile due to removal of flex-direction: column rule */
}
