/*
Theme Name: Colchester Pathways
Description: A responsive supported-accommodation and housing-support website.
Version: 1.0.0
Text Domain: colchester-pathways
*/

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-SemiBold.otf") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Thin.otf") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Regular.otf") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Medium.otf") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Bold.otf") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


:root {
  --navy:  #0D47A1;
  --teal: #287568;
  --cream: #f7f6f1;
  --ink: #4E586E;
  --muted: #5e6d6d;
  --white: #fff;
  --font-main: Metropolis-Thin;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.site-name {
  color: #193b69;
  font-family: Metropolis-Thin;
  font-size: 25px;
  font-weight: 600;
		
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.5;

}

h1 {
	font-size: 2em;
	padding-bottom: 0.5em;
}

a {
  color: var(--teal);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid #e6e6e6;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #193b69;
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand img.custom-logo,
.brand img.brand-logo {
  display: block;
  width: 35px !important;
  height: 35px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: contain;
}

.primary-menu {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  color: #333;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 300;
  text-decoration: none;
}

.primary-menu li:first-child a,
.primary-menu a:hover {
  color: darkblue;
}

.menu-toggle {
  display: none;
}

/* Hero banner */
.hero {
  min-height: 350px;
  display: grid;
  place-items: center;
  padding: 30px 20px;
  background-color: #526352;
  background-position: center calc(20% - 60px) !important;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
}

.hero-content h1 {
  margin: 0 0 6px;
 font-family: Metropolis-Thin !important;
  font-weight: 300;
  font-size: clamp(75px, 4vw, 42px);
  line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  margin: 0;
 font-family: Metropolis-Thin !important;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Page content and sections */

.page-content h1 {
  color: var(--navy);
  font-family: var(--font-main);
  line-height: 1.3;
}

.section {
  padding: 30px 0;
}



.intro-section {
  text-align: center;
}

.section h2 {
  margin: 0 0 12px;
  color: #173b70;
  font-family: var(--font-main);
  font-size: 21px;
  font-weight: 400;
  text-transform: uppercase;
}

.intro-section p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
}

.section-tint {
  background: var(--cream);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 20px;
  border: 1px solid #e6e6e6;
  background: var(--white);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  text-align: center;
}

.button {
  display: inline-block;
  padding: 9px 16px;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}

.button:hover {
  background: var(--navy);
  color: var(--white);
}

/* Footer */
.site-footer {
  padding: 18px 0;
  background: #102d35;
  color: #dce8e4;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}



.content-narrow {
  width: min(80%, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.content-narrower {
  width: min(60%, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.service-button .wp-block-button__link {
  display: flex;
  width: 158px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid #858585;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 0 #d1d1d1;
  color: #4e586e;
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
	margin-left: 30px;
	margin-right: 30px;
	margin-top: 30px;
	margin-bottom: 30px;
}

.service-button .wp-block-button__link:hover {
  background: #0D47A1;
  color: #FFFF;
}

.feature-image img {
  border-radius: 20px;
}

/*Background*/
.offer-section {

  background-color: #f5f6f7 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='360' viewBox='0 0 520 360'%3E%3Cg fill='none' stroke='%23d9d7d1' stroke-width='.8'%3E%3Cpath d='M-30 85 C45 25 90 130 165 72 S280 20 345 76 450 130 550 55'/%3E%3Cpath d='M-35 95 C40 35 95 140 170 82 S285 30 350 86 455 140 555 65'/%3E%3Cpath d='M-40 105 C35 45 100 150 175 92 S290 40 355 96 460 150 560 75'/%3E%3Cpath d='M-45 115 C30 55 105 160 180 102 S295 50 360 106 465 160 565 85'/%3E%3Cpath d='M20 250 C85 190 140 285 215 230 S335 175 390 230 475 280 540 220'/%3E%3Cpath d='M15 260 C80 200 145 295 220 240 S340 185 395 240 480 290 545 230'/%3E%3Cpath d='M10 270 C75 210 150 305 225 250 S345 195 400 250 485 300 550 240'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
	 background-attachment: fixed;

}
@media (max-width: 1200px) {
	

	 .service-button .wp-block-button__link {
    margin: 20px 0;
    font-size: 16px;
		
  }
	
.hero {
    background-attachment: scroll !important;
    background-position: center !important;
	background-color: #0D47A1;
	background-size: cover;
  }
  .wp-block-columns {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 24px !important;
	        gap: 0 !important;
        margin-block-end: 0 !important;
  }
	

   

    .wp-block-columns > .wp-block-column > *:last-child {
        margin-block-end: 0 !important;
    }

  .wp-block-columns > .wp-block-column {
	          margin-block-end: 0 !important;
        min-height: 0 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  .offer-section {
    background-attachment: scroll;
  }
  .offer-section {
    background-attachment: scroll;
  }
	
	 body {
    font-size: 17px;
  }

  .brand {
    font-size: 18px;
  }



  .primary-menu a {
    font-size: 15px;
  }



  .page-content h1 {
    font-size: 30px
  }

  .section h2 {
    font-size: 19px;
  }

  .card h3 {
    font-size: 15px;
  }

  .card p {
    font-size: 16px;
  }

  .service-button .wp-block-button__link {
    font-size: 16px;
  }
	
	.content-narrower {
  width: min(80%, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
	
}
/*End of Background*/

/*Learn more button*/
.wp-block-button.learn-more .wp-block-button__link {
  background: transparent;
  border: none;
	
  box-shadow: none;
  color: #0D47A1;
  padding: 10px;
  text-decoration: underline;
}

.wp-block-button.learn-more .wp-block-button__link:hover {
  background: transparent;
  color: #0a3578;
  text-decoration: underline;
}
/*End of Learn more*/
	/* Button layout */
.wp-block-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: center;
  gap: 15px !important;
}

.wp-block-buttons .wp-block-button {
  flex: 1 1 0;
  min-width: 0;
}
	
/* Tablet */
@media (max-width: 768px) {
	
		.site-name {
    font-size: 16px !important;
  }
	  
 .wp-block-buttons {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .wp-block-buttons .wp-block-button {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 !important;
  }

  .wp-block-buttons .wp-block-button__link {
    width: 100%;
    text-align: center;
  }



  .wp-block-buttons .service-button .wp-block-button__link,
  .wp-block-buttons .wp-block-button.service-button .wp-block-button__link {
    margin: 0 !important;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }



  .offer-section {
    background-attachment: scroll;
  }
	
	 body {
    font-size: 17px;
  }

  .brand {
    font-size: 18px;
  }

  .site-name {
    font-size: 21px;
  }

  .primary-menu a {
    font-size: 15px;
  }

  .hero-content h1 {
    font-size: 45px;
  }

  .hero-content p {
    font-size: 19px;
  }

  .page-content h1 {
    font-size: 30px;
  }

  .section h2 {
    font-size: 19px;
  }

  .card h3 {
    font-size: 15px;
  }

  .card p {
    font-size: 16px;
  }

  .service-button .wp-block-button__link {
    font-size: 16px;
  }
	
}

/* Phone */
@media (max-width: 600px) {

	  .hero-content h1 {
    font-size: 35px;
  }

  .hero-content p {
    font-size: 16px;
  }
	
  .container {
    width: calc(100% - 28px);
  }

  .header-inner {
    min-height: 52px;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .brand {
    font-size: 18px;
  }

 

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
    padding: 5px 9px;
    border: 1px solid #ddd;
    background: var(--white);
    color: var(--navy);
    font-size: 12px;
  }

  .primary-menu {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  .primary-menu.is-open {
    display: block;
  }

  .primary-menu ul {
    display: block;
    padding: 5px 0;
  }

  .primary-menu li {
    padding: 5px 0;
  }

  .hero {
    min-height: 220px;
    padding: 24px 16px;
    background-position: center;
   'background-size: cover;
    'background-attachment: scroll;
  }


	
 

  .content-narrow {
    width: calc(100% - 28px);
  }

  .service-button .wp-block-button__link {
    margin: 20px 0;
    font-size: 16px;
  }
	
	.service-button {
  display: block;
  margin-bottom: 12px;
}

  .offer-section {
    background-attachment: scroll;
  }
	body {
    font-size: 16px;
  }

  .brand {
    font-size: 16px;
  }

  

  .primary-menu a {
    font-size: 15px;
  }

  .menu-toggle {
    font-size: 12px;
  }



  .page-content h1,
  h1 {
    font-size: 24px;
  }

  .section h2 {
    font-size: 17px;
  }

	
	
}
	

/*Footer*/


/* =================================
   CONTACT FOOTER - COMPLETE STYLING
================================= */

.site-footer.contact-footer {
    display: block;
    width: 100%;
    padding: 38px 0 55px !important;
    background: #164da5 !important;
    color: #ffffff !important;
    font-family: "Metropolis", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5;
}

.site-footer.contact-footer .footer-content {
    width: min(1120px, calc(100% - 40px));
    max-width: 1120px;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Heading */

.contact-footer h2 {
    margin: 0 0 26px !important;
    color: #ffffff !important;
    font-family: Georgia, serif !important;
    font-size: 44px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

/* Introductory text */

.contact-footer .footer-intro {
    max-width: 740px;
    margin: 0 0 36px !important;
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1.55 !important;
}

/* Contact list */

.contact-footer .footer-contact-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.contact-footer .footer-contact-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    color: #ffffff !important;
}

/* Icons */

.contact-footer .footer-icon {
    display: flex !important;
    flex: 0 0 27px !important;
    width: 27px !important;
    height: 27px !important;
    align-items: center !important;
    justify-content: center !important;
}

.contact-footer .footer-icon svg {
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Contact details */

.contact-footer .footer-contact-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-footer .footer-contact-item strong,
.contact-footer .footer-contact-item a {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.contact-footer .footer-contact-item span:not(.footer-icon) {
    color: #ffffff !important;
    font-size: 17px !important;
}

.contact-footer .footer-contact-item a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Mobile */

@media (max-width: 768px) {

    .site-footer.contact-footer {
        padding: 30px 0 40px !important;
    }

    .contact-footer h2 {
        font-size: 36px !important;
    }

    .contact-footer .footer-intro {
        font-size: 15px !important;
        margin-bottom: 28px !important;
    }

    .contact-footer .footer-contact-item {
        gap: 15px !important;
    }

    .contact-footer .footer-contact-item strong,
    .contact-footer .footer-contact-item a {
        font-size: 15px !important;
        overflow-wrap: anywhere;
    }

    .contact-footer .footer-contact-item span:not(.footer-icon) {
        font-size: 14px !important;
    }

    .contact-footer .footer-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
}


	