/* ============================================================
   SKYWINGS — Custom Stylesheet

   Bootstrap  → handles layout, grid, components, and spacing
   This file  → adds brand identity: colours, fonts, effects
   ============================================================ */


/* --- 1. VARIABLES ---
   Define once, reuse everywhere with var(--name).
   To rebrand: change values in this block only.        ---------- */

:root {

  /* PRIMARY — navbars, buttons, page headers */
  --color-brand-primary:    #500648;   /* Deep plum — main brand */
  --color-brand-dark:       #3a0434;   /* Darker plum — hover/pressed */
  --color-brand-heading:    #6a023d;   /* Rich maroon — h3, card titles */

  /* SECONDARY — borders, badges, accents */
  --color-secondary:        #b54361;   /* Rose pink */
  --color-secondary-vivid:  #f40096;   /* Hot pink — active/clicked */

  /* ACCENT — backgrounds only, never use as text colour */
  --color-accent-blush:     #fad8ef;   /* Pale blush */
  --color-accent-border:    #d4a0bc;   /* Soft rose — card borders */

  /* NEUTRALS */
  --color-white:            #ffffff;
  --color-offwhite:         #f8f4f7;   /* Warm off-white */
  --color-light:            #f0eef0;   /* Light grey — dividers */
  --color-mid-grey:         #888888;   /* Muted text */
  --color-dark:             #212529;   /* Near black — body text */

  /* LEGACY ALIASES — old pages using --corePink etc. still work */
  --corePink:     var(--color-brand-primary);
  --corePinkFade: var(--color-secondary-vivid);
  --corePinkSoft: var(--color-accent-blush);
  --coreMidPink:  var(--color-secondary);
  --coreDarkPink: var(--color-brand-heading);
  --coreWhite:    var(--color-white);

  /* FONTS — system fonts, no download needed
     sans-serif = clean UI text | serif = elegant headings | mono = prices/data */
  --font-sans:  system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-mono:  "Courier New", Courier, monospace;

}


/* --- 2. TYPOGRAPHY ---------------------------------------- */

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
}

/* clamp(min, preferred, max) = responsive size with no media queries */
h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Serif for h2 creates contrast against the bold sans-serif h1 */
h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-brand-heading);
}

h4 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; }
h5 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; }

.lead       { font-size: 1.15rem; line-height: 1.7; }
.price-text { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; }

/* Serif italic — editorial feel for card headings and pull quotes */
.cardheading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-brand-heading);
}

/* Bootstrap .display-* — light weight looks refined at large sizes */
.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: -0.02em;
}

a { color: var(--color-brand-primary); }


/* --- 3. BUTTONS -------------------------------------------

   Bootstrap .btn provides cursor, padding, and focus ring.
   Our classes add colour, shape, and hover animations.

   .btn-brand / .btn-outline  Type 1: filled pill, scale-forward on hover
   .btn-ghost                 Type 2a: transparent, white outline (dark/image backgrounds)
   .btn-ghost-brand           Type 2b: transparent, brand outline (light backgrounds)
   .btn-arrow                 Type 3: text + animated arrow, no border
   ---------------------------------------------------------- */

/* Type 1 — filled pill (btn-outline = identical, for backward compat with inner pages) */
.btn-brand,
.btn-outline {
  background-color: var(--color-brand-primary);
  color: var(--color-white);
  border: 2px solid var(--color-brand-primary);
  border-radius: 50px;                /* pill shape */
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-brand:hover,
.btn-outline:hover {
  transform: scale(1.06);             /* lifts forward symmetrically — grows from centre */
  box-shadow: 0 8px 24px rgba(80, 6, 72, 0.4);
  background-color: var(--color-brand-dark);
  color: var(--color-white);
  border-color: var(--color-brand-dark);
}
.btn-brand:active,
.btn-outline:active {
  transform: scale(1);
  box-shadow: none;
  background-color: var(--color-secondary-vivid);
  border-color: var(--color-secondary-vivid);
  color: var(--color-white);
}

/* Shared base for ghost buttons (Types 2a and 2b) */
.btn-ghost,
.btn-ghost-brand {
  background-color: transparent;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Type 2a: white outline for dark/image backgrounds */
.btn-ghost         { color: var(--color-white); border: 2px solid rgba(255, 255, 255, 0.75); }
.btn-ghost:hover   { background-color: rgba(255, 255, 255, 0.15); border-color: var(--color-white); color: var(--color-white); }

/* Type 2b: brand outline for light/coloured backgrounds */
.btn-ghost-brand       { color: var(--color-brand-primary); border: 2px solid var(--color-brand-primary); }
.btn-ghost-brand:hover { background-color: var(--color-brand-primary); color: var(--color-white); }

/* Type 3: text + arrow, gap animates on hover */
.btn-arrow {
  background: none;
  border: none;
  padding: 0.25rem 0;
  color: var(--color-brand-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: gap 0.2s ease, color 0.2s ease;
}
.btn-arrow:hover             { gap: 0.8em; color: var(--color-brand-dark); }
.btn-arrow.text-light        { color: rgba(255, 255, 255, 0.85); }
.btn-arrow.text-light:hover  { color: var(--color-accent-blush); }

/* Fallback border for any unclassed .btn */
.btn:hover { border-color: var(--color-secondary); }


/* --- 4. NAVIGATION ---------------------------------------- */

/* Active link: underline marks the current page */
.navbar .nav-link.active {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}


/* --- 5. HERO ----------------------------------------------
   .navImage: full-height div with background image.
   Flexbox used here (not Bootstrap grid) because we need a
   full-height column — Bootstrap grid works inside containers.
   ::before: gradient overlay improves text readability over any photo.
   ---------------------------------------------------------- */

.navImage {
  height: 100vh;
  position: relative;              /* required for ::before to position inside */
  display: flex;
  flex-direction: column;          /* stack navbar above hero text */
  background-image: url(/images/01\ pexels-recal-media-60217.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;    /* parallax */
  background-repeat: no-repeat;
}

/* Dark gradient overlay — keeps text readable over any background image */
.navImage::before {
  content: '';
  position: absolute;
  inset: 0;                        /* shorthand for top/right/bottom/left: 0 */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(40, 4, 40, 0.60) 100%);
  z-index: 0;
}

.navImage > * { position: relative; z-index: 1; } /* children sit above the overlay */

/* Hero text block: fills remaining height, centres content */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 520px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}


/* --- 6. RESORT CARDS -------------------------------------- */

.resort-card-img { height: 220px; object-fit: cover; }

.resort-card {
  border: 1px solid transparent;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.resort-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 48px rgba(80, 6, 72, 0.22) !important;
  border-color: var(--color-accent-border);
}

.resort-card-footer {
  background-color: var(--color-offwhite);
  border-top: 1px solid var(--color-light);
  padding: 0.85rem 1.25rem;
}


/* --- 7. CAROUSEL ------------------------------------------ */

.carousel-control-prev,
.carousel-control-next          { width: 64px; opacity: 1; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(80, 6, 72, 0.72);
  border-radius: 50%;
  padding: 7px;
}

.carousel-item img {
  height: 600px;
  object-fit: cover;
  object-position: center;
}

/* Caption: left-aligned on a gradient scrim */
.carousel-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 5rem 3rem 2.5rem;
  text-align: left;
}

/* Override base h2 (serif, light) inside carousel — bold sans-serif for impact */
.carousel-caption h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-bottom: 1.25rem;
}


/* --- 8. BACKGROUNDS --------------------------------------- */

.cardpink   { background-color: var(--color-accent-blush); }
.pageHeader { background-color: var(--color-brand-primary); }


/* --- 9. FOOTER -------------------------------------------- */

/* Column headings: serif italic — linked (.footer-heading-link) and non-linked (.h4-footer) */
.footer-heading-link,
.h4-footer {
  color: var(--color-accent-blush);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  text-decoration: none;
}
.footer-heading-link:hover { color: var(--color-white); }

.h5-footer {
  color: var(--color-accent-blush);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.footerlinksCol       { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.footerlinksCol:hover { color: var(--color-accent-blush); }

.footer-legal-link       { color: rgba(255, 255, 255, 0.38); font-size: 0.8rem; text-decoration: none; }
.footer-legal-link:hover { color: var(--color-accent-blush); }

/* Email input-group rounding (Bootstrap removes border-radius inside input-groups by default) */
.input-group .form-control { border-radius: 20px 0 0 20px; }
.input-group .btn           { border-radius: 0 20px 20px 0; }


/* --- 10. INNER PAGES -------------------------------------- */

.contactImage     { object-fit: cover; width: 600px; clip-path: circle(35% at center); }
.contactBannerImg { object-fit: cover; width: 100vw; height: 400px; }


/* --- 11. UTILITIES ---------------------------------------- */

.vacant   { color: green; }
.divider2 { height: 70px; background-color: var(--color-light); }

.team-member       { transition: transform 0.3s ease; }
.team-member:hover { transform: scale(1.05); }

.member     { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
.member img { width: 100%; height: 100%; object-fit: cover; }
