/*
 Theme Name:   Twenty Twenty-One Child
 Description:  Child theme for Twenty Twenty-One. No Gutenberg.
 Author:       Penelope Else
 Template:     twentytwentyone
 Version:      1.0.0
 Text Domain:  twentytwentyone-child
*/
/*============================ == All CSS is mobile-first =====*/

/*=============================================================*/
/*================================================== Base =====*/
/*=============================================================*/
:root {
  --responsive--aligndefault-width: 800px !important;
}

body {
	background-color: white !important;
}
body, h1, h2, h3, h4, h5 {
	font-family: calibri, sans-serif !important;
}

h1, h2, h3, h4, h5 {
	font-weight: bold !important;
}

h5 {margin-bottom: 10px !important}

html {
  font-size: 100%;
}

body p, body ul li, body ol li, .entry-content p {
	font-size: 1.15rem;
	font-weight:300;
	line-height:1.55;
	font-family: calibri, sans-serif !important;
	margin-bottom: 1rem;
	color: black;
}

body ul li, body ol li{
	line-height:1.3;
}
	
	
body h1 {
	font-size: 2rem;
	/*margin-bottom:0.5rem;*/
}
body h2 {
	font-size: 2rem;
	margin-bottom:0.5rem;
}
.gallery-columns-3 .gallery-item {
    max-width: 32.5% !important;
}
.gallery-columns-4 .gallery-item {
    max-width: 24% !important;
}
/*=============================================================*/
/*============================== Homepage layout sections =====*/
/*=============================================================*/
.home-header-section,
.home .home-hero-section,
.home .home-general-section {
    padding: 0;
	margin: 20px 0 0 0;
}
/*=======================================================================================*/
/*========================================================================== HEADER =====*/
/*=======================================================================================*/

.home-inner.wrap {
    max-width: none;
    margin: 0 auto;
}

/* Make the header inner row truly full-width, overriding TT1 */
body .custom-site-header > .header-inner.wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    box-sizing: border-box;
}

.home-header-section {
    background: #f5f5f5;
    text-align: center;
}

/* Make header fully full-width, no automatic inset */
body .site-header,
body .custom-site-header {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;  /* remove TT1's padding based on global vars */
}

/* Prevent TT1 from narrowing/centring header children */
body .site-header > * {
    max-width: none;
    margin: 0;
}

/* Base header layout (mobile-first) */
body .custom-site-header {
    position: relative;
    z-index: 2000;
    width: 100%;
}

/* Header row: single-column stack on mobile */
body .custom-site-header > .header-inner.wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;

    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
}

/* Left block: burger + logo + description */
body .site-header-left {
    display: flex;
    align-items: flex-start;
    gap: clamp(1rem, 3vw, 2rem);
}

/* Branding: logo + description vertical stack */
body .site-branding {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left !important;
}

/* Logo sizing */
body .site-branding .custom-logo-link,
body .site-branding img {
    display: block;
    width: 90%;
}

/* Description under logo */
body .site-description {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 6vw, 1.6rem);
    font-family: calibri, sans-serif;
    font-weight: 600;
	line-height: 1.1;
}

/* Middle block: flexible space / full-width on mobile */
body .site-header-middle {
    flex: 1 1 auto;
    width: 100%;
	display:none;
}

/* Right block: secondary logo sits below on mobile */
body .site-header-right {
    margin-top: 0;
    display: flex;
    align-items: center;
}

body .secondary-logo {
    display: block;
    max-width: 25vw;
    height: auto;
}

/*=============================================================*/
/*=== HEADER FLEX LAYOUT (DESKTOP – min-width: 768px) ========*/
/*=============================================================*/

@media (min-width: 768px) {

    /* Row layout with left/middle/right */
    body .custom-site-header > .header-inner.wrap {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        /*gap: 2rem;*/
        padding: 1.25rem 1.75rem;
    }
	
	
	/* === HEADER FLEX LAYOUT (DESKTOP) === */

    body .header-inner.wrap {
        display: flex;
        align-items: center;
        /* Important: this spreads left and right apart */
        justify-content: space-between;
        gap: 2rem;
        padding: 1.25rem 1.75rem;
        box-sizing: border-box;
    }

    body .site-header-left {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
        flex: 0 0 auto;
    }

    /* Middle column: takes up the flexible space, even if empty */
   body .site-header-middle {
        flex: 1 1 auto;
        width: auto;
    }

    /* Right column: sits at far right */
    body .site-header-right {
        flex: 0 0 auto;
        margin-left: auto;   /* ensures it hugs the right edge */
		margin-top: 0;
        display: flex;
        align-items: center;
    }

    body .secondary-logo {
        display: block;
        max-height: 5rem;
        height: auto;
    }
}


/*=============================================================*/
/*================================================ Burger =====*/
/*=============================================================*/

body .site-menu-toggle {
    background: none;
    background-color: transparent !important;
    border: none;
    padding: 0.3rem 0 0 0;
    cursor: pointer;
	margin-top: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;

    align-self: flex-start;
    z-index: 2001; /* above overlay nav */
}

/* Burger colour when menu is open */
body.menu-open .site-menu-toggle .burger-line {
    background-color: white;
}

/* Hide the screen-reader text visually but keep it accessible */
body .site-menu-toggle .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
}

/* Burger lines – base (mobile and default) */
body .site-menu-toggle .burger-line {
    display: block;
    width: 3rem;     /* line length */
    height: 0.35rem;     /* line thickness */
    background: black;
    border-radius: 0.5rem;
}
/*=============================================================*/
/*=========================================== Overlay Nav =====*/
/*=============================================================*/

body .overlay-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 20rem;
    max-width: 80%;
    background: #111;
    color: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 6rem;   /* leaves space visually above for the header/burger */
    padding-bottom: 2rem;
    overflow-y: auto;
    z-index: 1500;       /* under header/burger */
}

body .overlay-nav.overlay-nav-open {
    transform: translateX(0);
}

body .overlay-nav ul {
    list-style: none;
    margin: 2rem 0 0 0;
    padding: 1rem 1.5rem 2rem;
}
body .overlay-nav .sub-menu ul {
    list-style: none;
    margin: 0;
    padding: 1rem 1rem 1rem 0;
}

body .overlay-nav li {
    margin-bottom: 1rem;
}

body .overlay-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
}

/* Force hover/focus colour to win */
body .overlay-nav li:active > a,
body .overlay-nav li:focus-within > a,
body .overlay-nav a:hover,
body .overlay-nav a:focus {
    color: #23c1c3 !important;  
    text-decoration: underline;
	background-color:transparent !important;
}

/*=============================================================*/
/*============================================== Submenus =====*/
/*=============================================================*/
/* === Submenu toggle + caret === */

/* Button: clean, right-aligned, decent tap target */
#site-navigation .menu-item-has-children {
  position: relative;
}

#site-navigation .menu-item-has-children > a {
  padding-right: 48px; /* space for toggle, only for parent menu item */
}

#site-navigation .menu-item-has-children > .sub-menu-toggle {
  position: absolute;
  right: 0;
  top: 0;
  transform: none;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Hide the theme’s +/− SVG icons (we draw our own caret) */
#site-navigation .sub-menu-toggle .icon-plus,
#site-navigation .sub-menu-toggle .icon-minus {
  display: none !important;
}

/* Draw an up/down caret (▼ closed, ▲ open) */
#site-navigation .sub-menu-toggle::after {
  content: "";
  width: 16px;
  height: 16px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(-45deg);           /* ▼ */
  transition: transform 0.35s ease;
  display: inline-block;
  position: relative;
  top: -16px;                            /* raise a few pixels */
}

/* Open state = caret up */
#site-navigation .sub-menu-toggle[aria-expanded="true"]::after {
  transform: rotate(135deg);            /* ▲ */
}

/* Caret white on hover/focus */
#site-navigation .sub-menu-toggle:hover,
#site-navigation .sub-menu-toggle:focus-visible {
  color: #fff;
}

/* Focus styling: remove ugly default, keep keyboard accessibility */
#site-navigation .sub-menu-toggle:focus {
  outline: none;
}

#site-navigation .sub-menu-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 6px;
}

/* Submenu show/hide (simple, reliable) */
#site-navigation .sub-menu {
  display: none;
  padding: 1rem;
}

#site-navigation .sub-menu-toggle[aria-expanded="true"] + .sub-menu {
  display: block;
}

/* Block main scroll when menu open */
/*body.menu-open { overflow: hidden; }*/


/*=======================================================================================*/
/*================================================================== CONTENT=============*/
/*=======================================================================================*/

/*=============================================================*/
/*================================= Homepage Hero Section =====*/
/*=============================================================*/
/* === TWO RESPONSIVE BOXES === */

body .site-main {padding-top:0 !important} /*mobile only*/

.home-hero-section {
    background: white;
    color: black;
    padding: 4rem 1.5rem;
}

.home-hero-section .home-inner.wrap {
    max-width: 100%;
    margin: 0 0.6rem;
}

.hero-grid {
    grid-template-columns: 1fr;
}


/* Each hero card (box) */
.hero-card {
    background: #f9f9f9;
	border: 1px solid #cccccc;
    border-radius: 0;
    /*padding: 2rem;*/
	padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
	/*gap: 1.5rem;  Only for desktop not single column */
}

/* Title inside each box */
.hero-card-title {
    font-size: 1.4rem;
    margin: 0;
	padding: 0.6rem 0 0 0.6rem;
	letter-spacing: 0.2rem;
}

/* Slider wrapper – makes sure it behaves nicely */
.hero-card-slider {
    width: 100%;
    overflow: hidden;
}

/* Let Revolution Slider scale to the box */
.hero-card-slider .rev_slider,
.hero-card-slider iframe,
.hero-card-slider img {
    max-width: 100%;
    height: auto;
}

/* Text area inside the box */
.hero-card-text {
	display:none; /* Only show on desktop */
}

@media (min-width: 769px) {
	/* Two-column grid on larger screens, single column on smaller */
	.hero-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
	.hero-card-text {
		display:block; /* Only show on desktop */
		padding:2rem;
	}
	.hero-card-text p {
		font-size: 1.3rem;
		line-height: 1.6;
		color: black;
	}
}
/*=============================================================*/
/*============================== Homepage General Section =====*/
/*=============================================================*/

.home-general-section {
    background: #ffffff;
}
/*=============================================================*/
/*========================================== Post Content =====*/
/*=============================================================*/
.singular .entry-title, .page-title {
	font-size: clamp(1.8rem, 2.2vw, 3rem) !important;
	/*margin-left:5vw;*/
	font-weight:400 !important;
	padding: 1rem;
	background-color: #51a6a7b3;
}
.singular .entry-header {
	margin:0 auto !important;
	max-width:96%;
	border-bottom:none !important;
	padding-bottom: 30px !important;
}

.singular .entry-content {
	max-width:90% !important;
	margin:0 auto;
}

.singular h2 {
	font-size: clamp(2rem, 2vw, 3rem) !important;
	font-weight:400 !important;
	padding: 0.5rem 0 0.5rem 0.8rem !important;
	background-color: #51a6a7b3;
}

.event-hero-image img {
	display: block;
	width:100%;
}

/*=============================================================*/
/*================================== Two-Layouts Function =====*/
/*=============================================================*/
/* Will output a post's text-blocks according 
   to the sequence-selections on a post and 
   whether this is single or double column screen-size,
   only for category 'two-layouts' - see category description 
   & php includes */

.two-layouts--mobile {
	/* Default to single column, hide the two-column version */
    display: block;
}
.two-layouts--desktop {
	display: none;
}

@media (min-width: 769px) {
	/* If wide enough for two columns, display as grid and hide single-column version */
    .two-layouts--mobile {
        display: none;
    }
    .two-layouts--desktop {
        display: grid;
		grid-template-columns: 1fr 1fr;
		max-width:90% !important;
		gap: 2rem;
    }
    .singular .entry-content .two-layouts--desktop {
        max-width:100% !important;
        margin:0 auto;
	}
	
	.two-layouts__col--right {
		border-left: 1px solid #ddd;
		padding-left: 2rem;
	}

  /* vertical spacing within each column */
	.two-layouts__col > .piece {
		margin-bottom: 2rem;
	}
	.two-layouts__col > .piece:last-child {
		margin-bottom: 0;
	}
}
/*=========================================================*/
/*===================================== EVENT MANAGER =====*/
/*=========================================================*/
.em.em-event-booking-form h3.em-booking-section-title {
    display:none
}
.em.em-event-booking-form .em-booking-section {
    padding: 0 15px
}

.em .em-booking-form-summary.em-booking-section.no-booking {
    border-top: 3px solid #dddddd;
    padding-top: 30px;
}

.em.em-item.em-item-single .em-item-meta>section section {
    margin-bottom: 10px;
}
.em-event-bookings-meta, .em-event-when h3 {
    display:none;
}

.em-event-bookings {
    border: 2px solid #dddddd;
    padding: 30px !important;
    background-color:#efefef;
}

/*=======================================================================================*/
/*========================================================================== FOOTER =====*/
/*=======================================================================================*/

/* Footer wrapper */
.site-footer {
    background: white;
    padding: 0 !important;
	max-width:100% !important;
	margin:20px 0 0 0 !important;
	border-top: 2px solid #dddddd;
}

.site-footer .wrap {
    max-width: 100%;
    margin: 0 auto;
}

/* Four responsive boxes */
.footer-box-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-box {
    padding: 1.75rem;
    box-sizing: border-box;
	display: flex;
    flex-direction: column;
    gap: 1rem;
	border-left: 2px solid #dddddd;
}

.footer-box1 {
	border-left:none;
}

.footer-box img {
	background-color:grey;
	margin: 0 0 0 1px;
}


.footer-box:hover {
    background: #eeeeee;
}

h3.footer-box-title {
    font-size: clamp(1rem, 1.5vw, 3rem) !important;
	font-weight:400 !important;
    margin-top: 0;
    margin-bottom: 0.75rem;
	word-wrap: break-word;
}

.footer-box p {
    margin: 0;
	font-size: clamp(1rem, 1vw, 2rem) !important;
    line-height: 1.4;
    color: black;
}


/* Slight shrink on mid widths */
@media (max-width: 1300px) {
    .footer-box-grid {
        gap: 1.5rem;
    }
}

/* Medium: 2 columns */
@media (max-width: 900px) {
    .footer-box-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Small: single column */
@media (max-width: 600px) {
    .footer-box-grid {
        grid-template-columns: 1fr;
    }
	.footer-box {
        padding: 1.5rem;
    }
}

/* Footer credits (if used) */
.site-footer .site-info {
    font-size: 0.85rem;
    color: #aaa;
}

.site-footer .site-info a {
    color: #fff;
    text-decoration: none;
}

/*=========================================================*/
/*====================================== BOOKING FORM =====*/
/*=========================================================*/

.cart{
    max-width: 520px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    display: grid;
    gap: 12px;
}

.item{
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

.info .name{ 
    font-weight: 600; 
}

.info .meta{ 
    font-size: 0.9rem; color: #666; margin-top: 2px; 
}

.item input[type="number"]{
    width: 92px;
    padding: 10px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
}

.cart button{
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #51a6a7, #2f7d7e);
    color: #fff;
    cursor: pointer;
}

.cart button:hover{ 
    background: linear-gradient(135deg, #cf0686, #9b0564);
}

/*=========================================================*/
/*=================================== BOOK NOW BUTTON =====*/
/*=========================================================*/
.book-now-button {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #51a6a7, #2f7d7e);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px; /* pill shape */
  box-shadow: 0 8px 10px rgba(47, 125, 126, 0.35);
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover*/
.book-now-button:hover {
  background: linear-gradient(135deg, #cf0686, #9b0564);
  box-shadow: 0 8px 10px rgba(155, 5, 100, 0.35);
  transform: translateY(-2px);
}

/*=========================================================*/
/*=========================================== ARCHIVE =====*/
/*=========================================================*/

/* Category intro (“2025 in summary”) */
.archive-intro {
	margin-bottom: 3rem;
}

.archive-intro .archive-description {
	max-width: 60ch;
	margin-top: 1.25rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(0,0,0,.75);
}

/* Cards grid */
.cat-cards {
	display: grid;
	gap: 2rem 1.5rem;

	/* Cards won't get wider than 420px, and they'll centre nicely */
	grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
	justify-content: center;

	margin: 2rem auto 3rem;
}


.cat-card {
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 5px;
	overflow: hidden;
	background: #f9f9f9;
}

.cat-card__link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.cat-card__media {
	aspect-ratio: 711 / 516;
	overflow: hidden;
}

.cat-card__img {
	width: 100%;
	height: 100%;
	display: block;
}

.cat-card__body {
	padding: 1.6rem 1.8rem 1.2rem;
	max-width: 40ch;
}

.cat-card__title {
	margin: 0 0 .6rem;
	font-size: 1.05rem;
	line-height: 1.25;
	font-weight: 500;
}

.cat-card__excerpt p, .cat-card__excerpt ul li {
	font-size: 1.1rem;
	line-height: 1.55;
	color: rgba(0,0,0,.78);
}

.cat-card__excerpt ul {
    padding-left: 10% !important;
}
    
.cat-card__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}