/* Reset page margin so the strip touches the very top */
html, body {
  margin: 0;
  padding: 0;
}

/* Brand colour palette */
:root {
  --cns-blue-dark: #1e2f3b;
  --cns-blue-mid:  #88a6b0;
  --cns-red:       #ce3b10;
  --cns-mint:      #f2f9f7;
  --cns-white:     #ffffff;
  --cns-pink-light: #ffe2d8;

  --cns-border: 20px;
}


/* Optional: base font setup if you’ve already defined Gordita/Hermes */
body {
  font-family: "Gordita", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  padding: 0 20px;  /* 20px space from viewport edges */
}


/* Top header wrapper (if you later want to add more things in the header) */
.site-header {
  width: 100%;
}

/* The clickable strip */
.top-application-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  height: 50px;
  width: 100%;

  background: var(--cns-blue-dark);
  color: var(--cns-white);
  text-decoration: none;
	transition: background-color 0.6s ease;
}

/* Simple hover/focus state */
.top-application-strip:hover,
.top-application-strip:focus {
 background: var(--cns-red);
  color: var(--cns-white);
  cursor: pointer;
}


/* Brand header wrapper */
.brand-header {
  background: var(--cns-white, #ffffff);
}

/* Inner layout: logo | nav | badge */
.brand-header-inner {
  max-width: 1200px;       /* tweak to taste */
  margin: 0 auto;
  padding: 16px 24px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 32px;

  position: relative; 
}


/* Left logo and right badge */
.brand-logo img,
.anniversary-mark img {
  display: block;
  height: 100px;            /* adjust depending on your SVGs */
  width: auto;
}



/* Main nav */
.main-nav {
  justify-self: center;	/* keep it centred in the grid */
  display: inline-block; /* shrink to fit the links */
  border: 2px solid var(--cns-mint, #f2f9f7);
  border-radius: 999px; /* fully rounded ends */
  padding: 8px 2px;   /* space around the links */
  background: transparent; /* no fill, just outline */
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.main-nav a {
  text-decoration: none;
  font-family: "Gordita", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: var(--cns-blue-dark, #1e2f3b);

  padding: 7px 10px 6px;
  border-radius: 999px;

  background-color: #ffffff;  /* start from white */
  transition: background-color 0.6s ease; 
}


/* Hover/focus: fade to mint background, keep text colour */
.main-nav a:hover,
.main-nav a:focus {
  background-color: var(--cns-mint, #f2f9f7);
}

/* "On this page" state – same as hover, but persistent */
.main-nav a[aria-current="page"],
.main-nav a.is-current {
  background-color: var(--cns-mint, #f2f9f7);
}







/* Hero container – shared styles */
.hero {
  max-width: 1200px;
  margin: 0 auto;

  border-radius: var(--cns-border);
  overflow: hidden;
  position: relative;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--home {
  background-image: url("../img/img_hero_home.jpg");
}

.hero--services {
  background-image: url("../img/img_home_services.jpg");
}

.hero--recruitment {
  background-image: url("../img/img_home_recruitment.jpg");
}

.hero--contact {
  background-image: url("../img/img_home_contact.jpg");
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cns-blue-dark);
  opacity: 0.5; 
}


/* Inner layout */
.hero-inner {
  position: relative; /* sits above overlay */
  min-height: 320px;
  padding: 48px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  color: var(--cns-white, #ffffff);
}





/* Small title / kicker */
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.6rem;
  margin: 0 0 0.75rem;
  opacity: 0.9;
  font-family: "Hermes", system-ui, sans-serif;
  font-weight: 300; 
}

/* Main title (h1 already set to Hermes in your global styles) */
.hero-title {
  margin: 0 0 0.75rem;
  /* h1 already uses Hermes 300 from your global h1,h2,h3 rule */
  	font-size: 2rem;
	font-family: "Hermes", system-ui, sans-serif;
  	font-weight: 300; 
}

/* Body text */
.hero-text {
  max-width: 30rem;
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  font-family: "Gordita", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}


.intro {
  max-width: 1200px;
  margin: 0 auto;          /* auto on left/right = centred */
  display: flex;                   /* centres inner content */
  align-items: center;             /* vertical */
  justify-content: center;         /* horizontal */
}

.intro-inner {
  position: relative; /* sits above overlay */
  padding: 40px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.qcc img {
  display: block;
  height: 60px;            /* adjust depending on your SVGs */
  width: auto;
	margin-bottom: 10px;
}




/* Two-card row */
.cns-cards-row {
  max-width: 1200px;
  margin: 0 auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Base card / Scroll reveal base state */
.cns-card {
  border-radius: var(--cns-border);
  position: relative;
  min-height: 360px;

  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

/* Only image cards clip overflow */
.cns-card--image {
  overflow: hidden;
}

.cns-card-text {
  margin: 0;
  font-family: "Gordita", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;

  white-space: normal;
  overflow-wrap: break-word;
}


/* When card becomes visible */
.cns-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered delays for the row */
.cns-cards-row .cns-card:nth-child(1).is-visible {
  transition-delay: 0.25s;
}
.cns-cards-row .cns-card:nth-child(2).is-visible {
  transition-delay: 0.5s;
}
.cns-cards-row .cns-card:nth-child(3).is-visible {
  transition-delay: 0.75s;
}
.cns-cards-row .cns-card:nth-child(4).is-visible {
  transition-delay: 1.0s;
}
.cns-cards-row .cns-card:nth-child(4).is-visible {
  transition-delay: 1.25s;
}
.cns-cards-row .cns-card:nth-child(4).is-visible {
  transition-delay: 1.5s;
}

/* If you ever have 3+ cards, you can keep going:
.cns-cards-row .cns-card:nth-child(3).is-visible { transition-delay: 0.3s; }
*/


/* Image-only card */
.cns-card--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mint text card */
.cns-card--mint-text {
  background-color: var(--cns-mint, #f2f9f7);
  color: var(--cns-blue-dark, #1e2f3b);

  display: flex;
  align-items: center;
  justify-content: flex-start;  /* content at left */
  text-align: left;
}

/* Pink text card */
.cns-card--pink-text {
  background-color: var(--cns-pink-light);
  color: var(--cns-blue-dark, #1e2f3b);

  display: flex;
  align-items: center;
  justify-content: flex-start;  /* content at left */
  text-align: left;
}






/* Inner text wrapper */
.cns-card-inner {
  padding: 20px;
  max-width: 24rem;
  margin: 0;  
  width: 100%;    
}




.cns-card-title {
  margin: 0 0 0.6rem;
  font-family: "Hermes", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.4rem;
}

.cns-card-text {
  margin: 0;
  font-family: "Gordita", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}


/* Footer */

.site-footer {
  width: 100%;
}

.brand-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;

  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering if there’s a fixed height */
}

.cns-partners {
  background: var(--cns-white, #ffffff);   /* or var(--cns-mint) if you want a strip */
  padding: 20px 0;
}

.cns-partners-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;            /* row/column gaps */
  align-items: center;
  justify-content: center;   /* centre the row */
}

.cns-partner-logo {
  display: block;
  height: 60px;
  width: auto;
  transition: transform 0.2s ease;  /* smooth animation */
  transform: scale(1);              /* default size */
}

.cns-partner-link:hover .cns-partner-logo,
.cns-partner-link:focus-visible .cns-partner-logo {
  transform: scale(1.1);            /* 10% bigger on hover */
}


.cns-partner-link {
  display: inline-flex;   /* keeps logo clickable as a block */
  align-items: center;
}


/* ---------------------------------------- */
/* Application form layout                  */
/* ---------------------------------------- */

.application-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 32px 24px 40px;
  border-radius: var(--cns-border);
  background: var(--cns-mint, #f2f9f7);
}

/* Header text uses your global h2/body styles; we only touch spacing here */
.application-section-header {
  max-width: 40rem;
  margin: 0 0 24px;
  text-align: left;
}

.application-section-header h2 {
  margin: 10px 0;
}

.application-section-header p {
  margin: 0;
}

/* Form base */

.application-form {
  /* font: inherit;  use your site’s base font stack */
  color: var(--cns-blue-dark);
}

.application-form fieldset {
  border: 0;
  margin: 0 0 32px;
  padding: 0;
}

.application-form legend {
	max-width: 1200px;
  display: block;
  margin: 0 0 12px;
  padding: 0 0 8px;
  
    font-family: "Hermes", system-ui, sans-serif !important;
  font-weight: 300 !important;
	text-transform: uppercase;
	font-size: 0.6rem;
}

/* Grid helpers – use if/when you decide to put fields in columns */

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

.application-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}

/* Individual rows */

.form-row {
  margin-bottom: 16px;
}

/* Label styles – minimal, no extra bold/uppercase */

.form-row > label,
.form-row-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--cns-blue-dark);
}

/* Inputs, selects, textareas – generous paddings, no font override */

.application-form input[type="text"],
.application-form input[type="email"],
.application-form input[type="tel"],
.application-form input[type="number"],
.application-form input[type="date"],
.application-form select,
.application-form textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 13px 18px 11px;   /* more generous height + side padding */
  border-radius: 999px;
  border: 1px solid var(--cns-blue-mid, #88a6b0);
  background-color: var(--cns-white, #ffffff);

  font: inherit;
  line-height: 1.5;
}

/* Textareas: softer corners, taller */

.application-form textarea {
  border-radius: 18px;
  min-height: 130px;
  resize: vertical;
}

/* Focus state */

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  outline: none;
  border-color: var(--cns-red, #ce3b10);
  box-shadow: 0 0 0 2px rgba(206, 59, 16, 0.15);
}

/* Radios / checkboxes in inline rows – if you choose to use .form-row-inline */

.form-row-inline {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.form-row-inline .form-row-label {
  margin: 6px 0;
}

.form-row-inline input[type="radio"],
.form-row-inline input[type="checkbox"] {
  margin-right: 6px;
}

/* Extra spacing above radio (and checkbox) inputs */
.application-form .form-row input[type="radio"],
.application-form .form-row input[type="checkbox"] {
  margin-top: 6px;
}

input[type="radio"] {
	margin-top: 6px;
}

/* Helper text / small notes */

.form-help {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--cns-blue-mid, #88a6b0);
}

/* Submit row */

.application-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 8px;
}

/* Make the red button sit nicely in this context (if you use cns-btn) */
.application-actions .cns-btn {
  margin-top: 0;
}


#apply select {
  padding: 16px 18px;
	height: 40px;
	border-radius: 20px !important;
}










/* Misc. website objects */

.hero-dot {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 6px 0 0;
  background-color: #458f00;  /* your green */
  border-radius: 50%;
  vertical-align: middle;
}

.spacer-20 {
  height: 20px;
}



/* Red button */
.cns-btn {
  display: inline-block;
  padding: 7px 12px 6px;
  border-radius: 999px;

  background-color: var(--cns-red, #ce3b10);
  color: var(--cns-white);
  text-decoration: none;

  font-family: "Gordita", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;  
  font-size: 0.9rem;

  border: 2px solid transparent;
  transition: background-color 0.6s ease;
}

.cns-btn:hover,
.cns-btn:focus {
  background-color: var(--cns-blue-dark, #1e2f3b);
  color: var(--cns-white);           /* keep text white, just to be explicit */
}









/* Mobile view / Small screens – tighten things up a bit */
@media (max-width: 768px) {
	
.top-application-strip {
	
}
	
/* main { padding: 0 10px; } */
	
  .brand-header-inner {
    grid-template-columns: 1fr;       /* single column */
    grid-template-rows: auto auto auto;
    row-gap: 12px;
    padding: 12px 16px;
    justify-items: center;            /* centre all children horizontally */
  }

  .brand-logo img { height: 80px; }
  .main-nav { justify-self: center; margin-top: 4px; }
  .main-nav ul { flex-wrap: wrap; gap: 0.5rem; }
  .anniversary-mark { position: absolute; top: 8px; right: 20px; }
  .anniversary-mark img { height: 80px;  width: auto; }

  .hero-inner { padding: 32px 20px; min-height: 260px; }
  .hero-title { font-size: 1.7rem; }
  .hero-text { font-size: 0.95rem; }	
	
  .cns-cards-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 0; /* match your general page padding if you like */
  }

  .cns-card { min-height: 200px; }
	

.cns-card-text {

  padding-right: 30px; /* <- adds right-hand gap to text only */
}


  .application-section {
    margin: 24px 16px 60px;
    padding: 24px 18px 30px;
  }

  .application-grid-2,
  .application-grid-3 { grid-template-columns: 1fr; }	
	
.brand-footer-inner { padding: 16px 16px; }	
	
}



/* Large display view */
@media (min-width: 1200px) {
	
	.main-nav { padding: 10px 3px; }
	.main-nav a { font-size: 1.2rem; padding: 8px 12px 8px; }
	
	.hero-title { margin: 0 0 0.75rem; font-size: 2.4rem; }

	.hero-text {
	  max-width: 40rem;
	  margin: 0 0 1.75rem;
	  font-size: 1.4rem;
	  line-height: 2rem;
	}	
	
	.cns-card-title { margin: 0 0 0.75rem; font-size: 2.4rem; }

	.cns-card-text {
	  max-width: 40rem;
	  margin: 0 20px 0 0;
	  font-size: 1.4rem;
	  line-height: 2rem;
	}

	.cns-btn {
	  padding: 12px 17px 9px;
	  font-size: 1.4rem;
	}	
	
	.spacer-20 { height: 2px; }
	
.application-section { padding: 40px 40px 48px; }
	
}
