/* ======================================================================
      ROOT VARIABLES (palette + breakpoints)
   ====================================================================== */
:root {
  /* Colours */
  --clr-nav-bg:       rgb(25, 38, 25);
  --clr-subnav-bg:    rgb(20, 41, 22);
  --clr-accent:       rgb(213, 218, 212);

  /* Breakpoints */
  --bp-md: 768px;
  --bp-lg: 992px;
}

/* ======================================================================
      GLOBAL BASE
   ====================================================================== */
body {
  /* offset for the fixed header */
  padding-top: var(--navbar-h);
}

.nav-link {
  text-transform: uppercase;
}

/* ================================================================
   NAVBAR HEIGHT VARIABLE, FIXED NAV + PAGE OFFSET + HERO TWEAKS
================================================================= */
:root {                      /* mobile default */
  --navbar-h: 90px;
}
@media (min-width: 768px){ :root{ --navbar-h: 80px; } }
@media (min-width: 992px){ :root{ --navbar-h: 96px; } }

.main-nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  min-height:var(--navbar-h);
  display:flex;             /* keeps your existing flex layout */
}

body{ padding-top:0rem; }

/* ======================================================================
      MAIN NAVBAR
   ====================================================================== */
.main-nav {
  /* adjustable paddings (mobile default) */
  --nav-pad-y: .75rem;
  --nav-pad-x: 1rem;

  background: var(--clr-nav-bg);
  padding: var(--nav-pad-y) var(--nav-pad-x);
  z-index: 1100;
  box-shadow: none !important;
  height: 120px;
}

/* shared typography for links & button */
.main-nav .nav-link,
.main-nav .btn-book {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--clr-accent);
}

/* links need a border; button does not */
.main-nav .nav-link { border-color: var(--clr-accent); }

/* logo */
.main-nav .navbar-brand img { height: 60px; }

/* hover / focus */
.main-nav .nav-link:hover,
.main-nav .btn-book:is(:hover, :focus) {
  color: #fff;
  background: transparent;
  border-color: #fff;
  text-decoration: none;
}

/* BOOK NOW button */
.btn-book {
  padding: .25rem 1.5rem;
  border-radius: 0;
  border: none;
  box-shadow: 0 0 0 .75px var(--clr-accent);
}

/* consistent horizontal padding */
.main-nav .nav-item,
.footer-nav .nav-item { padding: 0 .5rem; }


.calendar-section {
  background-image: url("/images/wainscoating.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  
  padding: 3rem 1.5rem 1.5rem 1.5rem;
}

/* FOOTER FOOTER FOOTER (INHERITS MUCH OF MAIN-NAV) */
.footer-nav {
  --nav-pad-x: 1rem;
  padding: 2.6rem var(--nav-pad-x);
}


.main-nav {
  transition: background-color 0.3s ease;
}

/* fully transparent background */
.main-nav.transparent {
  background-color: transparent !important;
}

/* solid background once you scroll past offset */
.main-nav.solid {
  background-color: rgba(33, 37, 41, 0.9) !important;
}
/* ======================================================================
      FOOTER
  --clr-nav-bg:       rgb(31, 42, 37);
  --clr-subnav-bg:    rgb(20, 41, 22);
  --clr-accent:       rgb(213, 218, 212);
   ====================================================================== */
  /* Container */
  .footer-bar {
    background: var(--clr-nav-bg);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
  }
  .footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  @media (min-width: 992px) {
    .footer-inner {
      flex-direction: row;
      align-items: center;
      padding: 2rem 1rem;
    }
    .footer-contact{
      margin-left: 2rem;
    }
  }

  /* Logo */
  .footer-logo {
    display: block;
    margin-right: 1.5rem;
  }

  /* Info blocks */
  .footer-info,
  .footer-contact {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: .03em;
    color: var(--clr-accent);
  }
  .footer-contact span,
  .footer-info span {
    display: block;
  }

  /* Social */
  .footer-social {
    margin-left: auto;
    display: flex;
    gap: 1.7rem;
  }
  .footer-social a img {
    display: block;
  }

  /* Legal strip */
.footer-legal{
  background: rgb(17,19,19);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.footer-legal a{
  color: rgb(85,92,87);
  text-decoration: none;
}

.footer-legal a:hover{
  text-decoration: underline;
}

.nav-link {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
  font-size: 19px;
}
.navbar-nav {
  margin-left: auto;
}
.nav-link:is(:hover, :focus) {
  color: #fff;
  background: transparent;
  border-color: #fff;
  text-decoration: none;
}

@media (min-width: 992px) {
  /* push CONTACT to the right */
  .footer-contact {
    order: 2;
    margin-left: auto;
  }
  /* keep socials after it */
  .footer-social {
    order: 3; 
    /* remove any auto-margin here if you added one before */
    margin-left: 1.5rem; /* or whatever gap you prefer */
  }
}

/* =========================================================================
      HERO CAROUSEL
   ========================================================================= */

/* Wrapper: keep the image’s native shape at any width */
.hero-banner {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 90vh;
  overflow: hidden;
}

/* Inner containers follow that ratio */
.hero-banner .carousel-inner,
.hero-banner .carousel-item {
  height: auto;
}

/* Images fill width and always show complete */
.hero-banner .carousel-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Hollow indicator dots (unchanged from last tweak) */
#heroCarousel .carousel-indicators{
  bottom: 1.25rem;
}

#heroCarousel .carousel-indicators [data-bs-target]{
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgb(255 255 255 / 75%);
  opacity: 0.8;
}
#heroCarousel .carousel-indicators .active{
  background: rgb(255 255 255);
  border-color: rgb(255 255 255);
}

/* =========================================================================
      UNIVERSAL HERO (all cottages + intro)
   ========================================================================= */
.first-section, .home-first-section {
  /* —— tweakables —— */
  --section-pad-top:   2rem;
  --section-pad-sides: 3rem;
  --section-pad-bot:   2rem;

  --title-info-gap:    1.5rem;
  --info-text-gap:     1rem;

  position:   relative;
  margin:     0;
  padding:
    var(--section-pad-top)
    var(--section-pad-sides)
    var(--section-pad-bot)
    var(--section-pad-sides);
  min-height: 7vh;
  text-align: center;
  color:      #fff;
  background:
    url("/images/wainscoating.withtoprail.png")
      top center/cover no-repeat;
}

/* —— Heading —— */
.first-section > h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 2.7rem;
  color: rgb(226,226,217);
  margin: 0 0 var(--title-info-gap) 0;
}

/* —— breakpoint tweaks —— */
@media (min-width: 768px) {
  .first-section, .home-first-section {
    --section-pad-top:   2.7rem;
    --section-pad-sides: 5rem;
  }
}

.wide-image img{
  display:block;
  width:100%;
  height:auto;
}

/* ===============================================================
      HOMEPAGE for Cottages
   =============================================================== */
.welcome-image{
  background: url("/images/Welcome.mobile.svg") top center / contain no-repeat;
  height: clamp(120px, 58vw, 200px); 
  margin-top: 20px;
  margin-bottom: 2rem;
}

.home-first-section h1 {
  text-align: center;
  margin: 0 auto 0.5rem auto;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  padding-bottom: 0rem;
}

.home-first-section p {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: #e2e2d9;
  margin: 0;
  text-align: left;
  letter-spacing: 0.03em;
  padding-bottom: 1.3rem;
  line-height: 2.3rem;
}

.link-style {
  color: rgb(200,123,57);
  text-decoration: none;
  font-weight: 500;
}

@media (min-width: 768px){
  .welcome-image{
    background-image: url("/images/Welcome.svg");
    height: clamp(360px, 13vw, 180px); 
    margin: 26px auto 60px auto;
  }
}

/* ===============================================================
      OPTIONAL MODIFIER for the second hero
   =============================================================== */
.alt-hero{
  --section-pad-top:4rem;
  background-image:url("/images/wainscoating.png");
}
.alt-hero > h3{
  text-align: left;
  margin: 0 auto 0.5rem auto;
  font-family: 'Athelas';
  font-weight: 400;
  font-size: 2.7rem;
  padding-bottom: 1.5rem;
  color: #e2e2d9;
}

/* ===============================================================
      IMAGE-SHARE SECTION
   =============================================================== */
.content .image-share {
  /* … your existing vars … */
  --share-img-w:       33.333%;
  --share-img-max-h:   30vh;
  --share-text-w:      66.666%;
  --share-text-align:  left;

  display:             flex;
  flex-wrap:           nowrap;
  background-color:    rgb(219,219,205);
  background-image: url("/images/contour.lines.svg");
  margin:              0;
}

.content .image-share .row {
  margin: 0;
  padding: 0;
}

/* —— TEXT COLUMN —— */
.content .image-share-text-col {
  flex:                0 0 var(--share-text-w);
  max-width:           var(--share-text-w);
  padding:             2rem 0 0 0;
  box-sizing:          border-box;
  text-align:          var(--share-text-align);
}

.content .image-share-text-col h3 {
  margin-bottom:       1rem;
  font-family:         'Athelas', sans-serif;
  font-weight:         600;
  font-size: 2.7rem;
  color:               rgb(67, 67, 75);
  padding: 0rem 3rem 0.5rem 1rem;
}

.content .image-share-text-col p {
  margin:              0 0 1rem;
  font-family:         'Raleway', sans-serif;
  font-weight:         400;
  font-size:           1.3rem;
  line-height:         2.3rem;
  color:               rgb(67, 67, 75);
  padding: 0rem 1rem;
}

/* —— IMAGE COLUMN —— */
.content .image-share-img-col {
  flex:          0 0 var(--share-img-w);
  max-width:     var(--share-img-w);
  overflow:      visible;
}

.content .image-share-img-col img {
  display:           block;
  width:             auto;
  height:            auto;
  max-height:        42rem;
  object-fit:        contain; 
  object-position:   center center;
  margin-left:       auto;
}


/* —— TABLET (≥768px) OVERRIDES —— */
@media (min-width: 768px) {
  .content .image-share {
    --share-img-w:     40%;
    --share-text-w:    60%;
  }
  .content .image-share-text-col h3 {
    padding: 0 1rem 0 3rem;
  }
  .content .image-share-text-col p {
    padding: 0 4rem 0 3rem;
  }
}

/* —— DESKTOP (≥992px) OVERRIDES —— */
@media (min-width: 2000px) {
  .content .image-share {
    --share-img-w:     35%;
    --share-text-w:    65%;

  }
  .content .image-share-text-col {
    padding: 3rem 0 0 0;
  }
}


@media (max-width: 991px) {
  .content .image-share-img-col {
    display: none;
  }
  .content .image-share-text-col {
    flex:       none;
    width:      100%;
    max-width:  100%;
    padding:    2rem;
  }
}


/* REVERSE OF IMAGE SHARE */

.content .image-share {
  display: flex;
  flex-wrap: nowrap;
  /* …your vars… */
  --share-img-w: 33.333%;
  --share-text-w: 66.666%;
  --share-text-align: left;
}

/* reversed */
.content .image-share--reverse {
  flex-direction: row-reverse;
  --share-text-align: right;
}

.content .image-share--reverse .image-share-img-col img {
  margin-left: 0;
  margin-right: auto;
}

.content .image-share-text-col {
  text-align: var(--share-text-align);
  padding-left: 30px;
}

.content .image-share--reverse {
  flex-direction: row-reverse; 
  --share-text-align: left;
}

.content .image-share--reverse .image-share-img-col img {
  margin-left: 0;
  margin-right: auto;
}

.content .image-share--reverse .image-share-img-col img {
  content: url('/images/Kildrummy-Aerial-cropped.jpg');
}

@media (min-width: 992px) {
  .content .image-share {
    display: flex;
    flex-wrap: nowrap;
  }

  .content .image-share-text-col {
    flex:      0 0 var(--share-text-w);
    max-width: var(--share-text-w);
  }

  .content .image-share-img-col {
    flex:        1 1 0;
    max-width:   none;
    overflow:    visible;
  }
}

/* =========================================================================
      Community Envolvment Logo
   ========================================================================= */

.cottage-gallery-title {
  position: relative;            
  width: 100%;
  height: 120px;
  background-color: rgb(25, 38, 25);

  /*background-image: url("/images/bracket.lines.svg");*/
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;

  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; 
}

/* Lettering sizing at various breakpoints */
.cottage-gallery-title .gallery-lettering {
  max-height: 60px;
  width: auto;
  display: block;
}

@media (min-width: 992px) {
  .cottage-gallery-title .gallery-lettering {
    max-height: 70px;
  }
}

@media (min-width: 1120px) {
  .cottage-gallery-title .gallery-lettering {
    max-height: 80px;
  }
}

@media (min-width: 1400px) {
  .cottage-gallery-title .gallery-lettering {
    max-height: 100px;
  }
}

/* ―― MOBILE LEAK (≤480px) ―― */
@media (max-width: 768px) {
  .cottage-gallery-title {
    /* remove the background SVG */
    background-image: none;
  }

  .cottage-gallery-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 130vw;
    height: 100%;
    /*background: url("/images/bracket.lines.svg")
                no-repeat center center;*/
    background-size: 100% auto;
    transform: translateX(-50%);
    z-index: 0;
  }

  .cottage-gallery-title .gallery-lettering {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 550px) {
  .cottage-gallery-title {
    /* remove the background SVG */
    background-image: none;
  }

  .cottage-gallery-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 150vw;
    height: 100%;
    /*background: url("/images/bracket.lines.svg")
                no-repeat center center; */
    background-size: 100% auto;
    transform: translateX(-50%)
    z-index: 0;
  }

  .cottage-gallery-title .gallery-lettering {
    position: relative;
    z-index: 1;
  }
}


/* =========================================================================
      Contact Page
   ========================================================================= */
.contact-hero-banner{
  width: 100%;
  overflow: hidden;
}

.contact-hero-banner img{
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 992px){
  .contact-hero-banner img{
    max-height: 70vh;
    object-fit: contain;
  }
}

.contact-intro {
  text-align: left;
  padding: 4rem 2rem;  /* more generous spacing */
  background-image: url("/images/wainscoating.withtoprail.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  font-family: 'Raleway', sans-serif;
  color: #e2e2d9;
  margin: 0;
  text-align: left;
  letter-spacing: 0.02em;
}

.contact-intro h1 {
  text-align: center;
  margin: 0 auto 1.5rem auto;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 2.7rem;

}
.contact-intro p {
  max-width: 1100px;
  margin: 0 auto 1.5rem auto;
}

.contact-title {
  margin-bottom: 3rem;
}


.contact-box {
  background-color: transparent;
  border-radius: 0rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0rem;
  color: white;
}

/* -------------------------------------------------------
   LEFT COLUMN – logo spacing, separator, social links
-------------------------------------------------------- */
.contact-left-column{
  padding-right: 20px;
}

.contact-logo {
  display: inline-block;
  margin-top: 2rem;
  margin-bottom: 0rem;
}

.contact-separator {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1.5rem 0;        
}

.contact-info {
  font-family: 'Raleway', sans-serif;
  color: #e2e2d9;
  margin-top:1rem;
}

.contact-desc {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  margin-top:1rem;
}

.contact-sub-desc {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  margin-top:2rem;
  font-size: 0.8rem;
}

.social-links a {
  display: inline-block;
  margin: 0 0.5rem;
}

/* -------------------------------------------------------
   RIGHT COLUMN – map border + shadow
-------------------------------------------------------- */

.map-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 0.5rem;
  border-radius: 0rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  margin: 0 5px;
}

.map-wrapper iframe {
  width: 100%;
  aspect-ratio: 12/9;        
  border: 0;
  border-radius: 0rem;
  display: block;
}


/* =========================================================================
      Green Title Strip home Page
   ========================================================================= */
.support-groups {
  position: relative;            
  width: 100%;
  height: 120px;
  background-color: rgb(25, 38, 25);
  color: #e2e2d9;
  padding: 2.4rem 0 0rem 0;
  font-weight: 300;
  font-size: 1.6rem;
}

.link-spot {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 72px;
  background-color: rgb(25, 38, 25);
  color: rgb(234,180,86);
  padding: 1rem 1rem;
  font-weight: 600;
  font-size: 1.6rem;
  box-sizing: border-box;
}

.link-spot a {
  display: block;
  color: rgb(230,183,97);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;       
}

.image-text-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 20px 50px;
  background-color:    rgb(219,219,205);
}

.image-text-section .image-col {
  flex: 0 0 33.333%; 
}

.image-text-section .image-col img {
  display: block;
  width: 100%;
  height: auto;
  padding-left: 30px;
}

.image-text-section .text-col {
  flex: 1;
}

.image-text-section {
  /* … your existing vars … */
  --share-img-w:       33.333%;
  --share-img-max-h:   30vh;
  --share-text-w:      66.666%;
  --share-text-align:  left;

  display:             flex;
  flex-wrap:           nowrap;
  background-color:    rgb(219,219,205);
  background-image: url("/images/contour.lines.svg");
  margin:              0;
}

.image-text-section h2 {
  margin-bottom:       1rem;
  font-family:         'Athelas', sans-serif;
  font-weight:         900;
  font-size: 2.7rem;
  color:               rgb(29, 33, 30);
  padding: 0rem 3rem 0rem 1rem;
  text-align:left;
}

.image-text-section p {
  margin:              0 0 1rem;
  font-family:         'Raleway', sans-serif;
  font-weight:         400;
  font-size:           1.7rem;
  line-height:         2.9rem;
  color:               rgb(29, 33, 30);
  /* color:               rgb(67, 67, 75); */
  padding: 0rem 1rem;
  text-align:left;
}

@media (max-width: 1000px) {
  .image-text-section {
    flex-direction: column;
    gap: 1.5rem;
  }
  .image-text-section .image-col,
  .image-text-section .text-col {
    flex: 0 0 100%;
    width: 100%;
  }

  .image-text-section .image-col img {
    /* never less than 200px, ideally 60vw, never more than 300px */
    width: clamp(400px, 60vw, 500px);
    height: auto;
    display: block;
    margin: 0 auto;
    padding-bottom: 20px;
  }
}

/* =========================================================================
      Community description section
   ========================================================================= */

.boxed-section {
  background-color: rgb(25, 38, 25);   
  padding: 1rem 3rem;          
}

@media (max-width: 600px) {
  .boxed-section {
    padding: 1rem 1rem; 
  }
}

/* inner container: box-bg */
.boxed-content {
  background-color: rgb(86, 98, 90);
  max-width: 1000px; 
  margin: 0 auto;         
  padding: 1.5rem;         
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
  border-radius: 4px;        
  text-align: center;        
  font-size: 1.7rem;
  text-align: center;
  font-family:         'Athelas', sans-serif;
  font-weight:         900;
  color: #e2e2d9;
}

.boxed-content p {
  text-align: center;          
  font-size: 1.3rem;
  text-align: center;
  font-family:         'Athelas', sans-serif;
  font-weight:         200;
  color: #e2e2d9;
  padding-top: 15px;
}

/* =========================================================================
      Logos Grid
   ========================================================================= */


* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: rgb(25, 38, 25);
  width: 100%;
  overflow-x: hidden;
}

.logo-grid-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
  background-color: rgb(25, 38, 25);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

/* universal square setup */
.square {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  transition: transform .2s;
  background-color: rgb(86, 98, 90);
  overflow: hidden;
}

.square:hover {
  background-color: rgb(60, 70, 65);
}

.square img {
  max-width: 60%;
  max-height: 60%;
  margin-bottom: 0.5rem;
  display: block;
  object-fit: contain;
}

/* titles */
.square .title {
  font-size: clamp(0.7rem, 2.5vw, 1.7rem);
  text-align: center;
  font-family: 'Athelas', sans-serif;
  font-weight: 900;
  color: #e2e2d9;
  word-break: break-word;
  width: 100%;
}

.square.no-image img {
  display: none;
}

.last-square {
  grid-column: 2 / 3;
}

@media (max-width: 600px) {

  .square .title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}
  .logo-grid-container {
    padding: 0 0px;
  }
  
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  
  .square {
    padding: 5px;
  }
  
  .square img {
    max-width: 50%;
    max-height: 50%;
    margin-bottom: 0.25rem;
  }
  
  .last-square {
    grid-column: auto;
  }
}

@media (max-width: 402px) {
.support-groups {
  height: 160px;
}
}