/* =========================================================================
   Living REIT — Base / Foundation stylesheet
   Prototype build. Brand tokens from Figma-Designs/Styles.png,
   layout rules from Living-REIT-Instructions.md.

   NOTE: Euclid Square is the licensed brand typeface. This prototype uses
   "Manrope" as a close geometric fallback — swap the @font-face / font-family
   for Euclid Square web files when available.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Brand palette ----------------------------------------------------- */
  --live-green-1: #001F1D;   /* darkest */
  --live-green-2: #213630;   /* body text + dark sections */
  --live-green-3: #5C7861;   /* primary button / accents */
  --light:        #C3CCC8;   /* "light" section bg */
  --grey:         #F0F2F1;   /* "grey" section bg */
  --grey-55:      #E1E5E3;   /* cards on grey */
  --white:        #FFFFFF;
  --black:        #222222;

  /* Secondary / sector accents --------------------------------------- */
  --sec-orange: #DE673B;   /* Supported Housing */
  --sec-purple: #6B5B8D;   /* Care Homes */
  --sec-blue:   #6394C4;   /* Senior Living */
  --sec-yellow: #CF9B46;   /* Thriving People */
  --sec-pink:   #C66F95;   /* Engaged Governance */
  --sec-teal:   #6CAEA6;   /* Sustainable Homes */

  /* Typography -------------------------------------------------------- */
  --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid type scale (px values are the Figma desktop targets)
     clamp(min @375, fluid, max @1280+) */
  --fs-display: clamp(2.1875rem, 1.0rem + 5vw, 4.375rem);   /* 35 -> 70 */
  --fs-h1:      clamp(2.1875rem, 1.4rem + 3.3vw, 3.5rem);/* 35 -> 45 */
  --fs-h2:      clamp(2.1875rem, 1.4rem + 3.3vw, 2.8125rem);/* 35 -> 45 */
  --fs-h3:      clamp(1.5rem, 1.1rem + 1.7vw, 2rem);        /* 24 -> 32 */
  --fs-figure:  clamp(3.5rem, 1.4rem + 3.3vw, 3.25rem);       /* 52 -> 80 */
  --fs-body:    clamp(1.125rem, 1.0rem + 0.5vw, 1.375rem);  /* 18 -> 22 */
  --fs-body-2:  clamp(1rem, 0.95rem + 0.2vw, 1.25rem);      /* 16 -> 20 */
  --fs-body-3:  1rem;                                       /* 16 */
  --fs-button:  clamp(1rem, 0.95rem + 0.2vw, 1.125rem);     /* 16 -> 18 */

  --lh-heading: 1.2;
  --lh-body:    1.6;
  --ls-heading: -0.03em;

  /* Layout ------------------------------------------------------------ */
  --container-max: 1200px;
  --section-pad-y: clamp(3rem, 1.5rem + 5vw, 5.5rem);  /* 48 -> 88 */
  --section-pad-x: 40px;
  --section-pad-x-mobile: 20px;
  --grid-gap: 20px;
  --grid-row-gap: 48px;

  /* Effects ----------------------------------------------------------- */
  --radius-button: 6px;
  --radius-card: 8px;
  --transition: 1s ease;     /* brand standard — all transitions 1s ease */
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--live-green-2);
  background-color: var(--white);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: inherit;
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }

.display { font-size: var(--fs-display); line-height: 1.05; font-weight: 600; letter-spacing: var(--ls-heading); margin: 0 0 0.4em; }

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

a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
}
a:hover { color: var(--live-green-3); }

/* Link states from Styles.png (passive / hover / active) */
.link-text { text-decoration: underline; text-underline-offset: 4px; }

/* -------------------------------------------------------------------------
   4. Section + container architecture
      section = full width, holds bg + padding
      container = max-width, centred, holds content
   ------------------------------------------------------------------------- */
.body-section {
  position: relative;
  width: 100%;
  padding: var(--section-pad-y) var(--section-pad-x);
  overflow: hidden;
  background-color: var(--white);
}

/* Background variants */
.body-section.grey  { background-color: var(--grey); }
.body-section.light { background-color: var(--light); }
.body-section.dark  { background-color: var(--live-green-2); color: var(--white); }
.body-section.dark a:not(.button):hover { color: var(--light); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   5. Buttons
      NOTE: Instructions.md states padding 4px/6px, but the Figma screenshots
      show noticeably taller buttons. Using a visually-matched padding here.
      >>> Confirm exact button padding with the designer. <<<
   ------------------------------------------------------------------------- */
.button-holder {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 120px;
  width: auto;
  padding: 12px 22px;            /* visually matched — see note above */
  font-family: var(--font-primary);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;  /* transparent border avoids hover layout shift */
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.button.main {
  color: var(--white);
  background-color: var(--live-green-3);
}
/* Universal button hover: white fill, 1px dark border, dark text/icon */
.button.main:hover {
  background-color: var(--white);
  border-color: var(--live-green-2);
  color: var(--live-green-2);
}

.button .button-icon { width: 18px; height: 18px; flex-shrink: 0; }
.button .button-icon svg { width: 100%; height: 100%; display: block; }

/* -------------------------------------------------------------------------
   6. Grids (shared)
      3-col cards: 387px / 20px col gap / 48px row gap (standard)
      Stack on mobile, left column first.
   ------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--grid-gap);
  row-gap: var(--grid-row-gap);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--grid-gap);
  row-gap: 26px;
}

.grid-2.contact-grid { grid-template-columns: 0.6fr 1.2fr;
padding-top: var(--section-pad-y);
    padding-bottom: var(--section-pad-y);
border-bottom: 1px solid #C3CCC8;}
.grid-2.contact-grid.last {
    border-bottom: 0px;
    padding-bottom: 0px;
	border-bottom: 0px;
}
.contact-details {
    font-size: var(--fs-h3);
}
.contact-stuff {
    padding-top: 0px;
}

/* -------------------------------------------------------------------------
   7. Section header (title left / link right)
   ------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.section-head h2 { margin: 0; }
.section-head .head-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* matches H3: size, weight and colour */
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--ls-heading);
  color: var(--live-green-2);
  white-space: nowrap;
}
.section-head .head-link svg { width: 1em; height: 1em; }
.section-head .head-link:hover { color: var(--live-green-3); }

/* -------------------------------------------------------------------------
   8. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .body-section { padding-inline: var(--section-pad-x-mobile); }
  .grid-3, .grid-2, .grid-2.contact-grid { grid-template-columns: 1fr; }

  .button-holder { flex-direction: column; align-items: flex-start; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
