/* =======================================
   RESET & BASE STYLES
   ======================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =======================================
   COLOUR PALETTE VARIABLES
   ======================================= */

:root {
  --color-primary: #5A6E8A;      /* base blue-grey */
  --color-secondary: #7C93A6;    /* soft misty blue */
  --color-accent1: #A3B9A4;      /* sage green */
  --color-accent2: #DDE6DD;      /* pale eucalyptus */
  --color-dark: #36485A;         /* deep slate */
  --color-light: #F6F8F7;        /* off-white */
  --color-bg-gray: #F4F5F3;      /* page background */

  /* Hero-specific color, semantically named, based on existing variable */
  --color-hero-text: var(--color-light);
}


//* ===========================
   Typography
   =========================== */

/* Default body text: EB Garamond (serif) */
body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-primary);
}

/* Headings & navigation: Lato (sans-serif) */
h1, h2, h3, h4, h5, h6,
.navbar, .menu, .section-title {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Main content area consistency */
.content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-primary);
}

/* Headings */
h1 {
  font-size: 2.5rem;        /* ≈ 40px */
  font-weight: 500;
  color: var(--color-dark);   /* Slightly deeper tone for visual hierarchy */
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;        /* ≈ 22px */
  font-weight: 300;
  color: var(--color-light);   /* For hero sections on dark backgrounds */
  font-style: italic;
  margin-bottom: 0.8rem;
}

/* Subheadings inside body copy */
h3 {
  font-size: 1.3rem;        /* ≈ 21px */
  font-weight: 500;
  color: var(--color-dark);     
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

/* Paragraphs */
p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--color-primary);        /* Matches body text */
}

/* Lists inside main content — bullets removed completely */
.content ul,
.content ol {
  list-style: none;       /* removes bullets */
  padding-left: 0;        /* removes default indentation */
  margin-left: 0;         /* aligns list with text */
  line-height: 1.7;
  color: var(--color-primary);
}


/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  body {
    font-size: 1rem;        /* ≈ 16px */
    line-height: 1.6;
  }

  h1 {
    font-size: 2rem;        /* ≈ 32px */
  }

  h2 {
    font-size: 1.2rem;      /* ≈ 19px */
  }

  h3 {
    font-size: 1.1rem;      /* ≈ 17.6px */
  }
}

/* =========================
   HERO TYPOGRAPHY: ITALIANNO
   ========================= */
.hero .hero-content h1,
.hero .hero-content h2 {
  font-family: 'Italianno', cursive;
  font-weight: normal;
  margin: 0; /* reset spacing, adjust below */
}

/* Hero main heading */
.hero .hero-content h1 {
  font-family: 'Italianno', cursive;
  font-weight: normal;
  font-size: 6rem;
  line-height: 1.1;
  color: var(--color-hero-text); /* use the variable instead of hex */
  margin-bottom: 0.2em;
}

/* Hero subheading */
.hero .hero-content h2 {
  font-size: 3rem;           /* proportionally smaller */
  line-height: 1.2;
  color: var(--color-light);
  margin-top: 0.2em;
}

/* Responsive adjustments for tablets and mobile */
@media (max-width: 1024px) {
  .hero .hero-content h1 {
    font-size: 4.5rem;
  }
  .hero .hero-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero .hero-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero .hero-content h2 {
    font-size: 1.8rem;
  }
}




/* === Link Styles === */
/* Default links in body content */
.content a {
  color: var(--color-dark);             
  text-decoration: underline;
  text-underline-offset: 3px;  /* modern underline spacing */
  transition: color 0.2s ease;
}

.content a:hover {
  color: var(--color-secondary);           
}

/* Keep navbar links white */
.nav-links a {
  color: white;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--color-secondary);   /* subtle, softer hover tone */
}

a {
  text-decoration: none;
  color: white;
}
/* HERO SECTION */
.hero {
  position: relative;
  height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-repeat: no-repeat;
}



/* Subtle dark background just behind hero text */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.35) 0%, 
    rgba(0, 0, 0, 0.15) 100%
  ); /* top slightly darker, bottom lighter */
  padding: 2.5rem 1rem;
  text-align: center;
}





/* Soft rounded images with a natural shadow*/
body img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(54, 72, 90, 0.4);
  max-width: 100%;
  height: auto;
}

/* Hero images excluded (in case any exist as <img> tags) */
.hero img {
  border-radius: 0;
  box-shadow: none;
}


/* ========================= */
/* PAGE-SPECIFIC HERO IMAGES */
/* ========================= */

/* Home page */
.home-hero {
  background-image: url('../images/home-hero.jpg');
    background-position: center 30%;

}

/* Ceremonies page */
.ceremonies-hero {
  background-image: url('../images/mourners at a ceremony.jpg');
    background-position: center 50%;

}

/* Planning page */
.planning-hero {
  background-image: url('../images/book and pen.jpg');
    background-position: center 70%;

}

/* Costs page */
.costs-hero {
  background-image: url('../images/horizontal spray.jpg');
    background-position: center center;

}

/* Contact page */
.contact-hero {
  background-image: url('../images/wye new 4 resize.jpg');
    background-position: center 40%;


}
/*.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(54, 72, 90, 0.4); /* subtle dark overlay */
}
.hero-content {
  position: relative;
  z-index: 1;
}


/* NAVBAR STYLES */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*padding: 20px 40px;*/
  padding: 10px 30px;
  background: rgba(54, 72, 90, 0.3); /* Transparent */
  backdrop-filter: blur(8px); /* Optional: nice glassy effect */
  color: white;
}

/* === NAVBAR LINK STYLES === */
.nav-links {
  display: flex;
  gap: 20px;
}

/* Normal links */
.nav-links a {
  color: rgba(255, 255, 255, 0.9);     /* soft white */
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  padding-bottom: 2px;
}

/* Hover effect — subtle fade */
.nav-links a:hover {
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.9;
}

/* Active page highlight — brighter white, no underline */
.nav-links a.active {
  color: var(--color-light);          /* full bright white */
  font-weight: 500;                    /* gentle emphasis */
  opacity: 1;                          /* ensure full brightness */
}



.logo {
  font-size: 1.5rem;
  /*font-weight: bold;*/
}

/* HERO TEXT */
.hero-content {
  text-align: center;
  margin-top: auto;
  margin-bottom: 5vh;
}


.hero-content p {
  font-size: 1.5rem;
}

/* HAMBURGER MENU */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(54, 72, 90, 0.5);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
  padding: 15px 0;

    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

/* Main content */
.content {
  width: 100%;
  padding: 20px 20px 0;
  background-color: var(--color-bg-gray); /* light gray full width */
}


.content img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* --------------------------------------
   PHOTO CREDIT (inline image)
-------------------------------------- */
.photo-credit {
  display: inline-block;
  text-align: right;       /* aligns credit to the edge of the image */
  margin: 0 20px 20px 0;   /* match your existing float spacing */
}

.photo-credit img {
  max-width: 300px;
  height: auto;
  display: block;
}

.photo-credit figcaption {
  font-size: 0.75rem;      /* small, discreet text */
  color: var(--color-secondary);  /* light grey */
  font-style: italic;      /* optional subtle tone */
  margin-top: 4px;         /* small gap below image */
}

/* Footer */
footer {
  text-align: center;
  padding: 15px 10px;
  background-color: rgba(54, 72, 90, 0.8);  /* var(--color-dark) tone with transparency */
  color: var(--color-light);
  margin-top: 0; /* remove gap above footer */
}

footer, footer p {
  color: var(--color-light);
}


/* === Alternating Image & Text Grid Section === */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem;
  color: var(--color-dark);
font-family: "EB Garamond", "Georgia", serif;
}

.grid-item {
  display: grid;
  grid-template-columns: 48% 48%; /* leaves ~4% gutter between columns */
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

/* Slightly smaller, centered images */
.grid-item img {
  width: 85%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  justify-self: center;
}

/* Text styling with narrower column */
.grid-item .text {
  max-width: 95%; /* prevents text from stretching too wide */
  justify-self: center;
}

.grid-item .text h3 {
  font-size: 1.8rem;
  color: #4b6c97;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.grid-item .text p {
  font-size: 1.2rem;
  line-height: 1.7;
}

/* Alternate layout for image on right */
.image-right img {
  order: 2;
}

.image-right .text {
  order: 1;
}

/* Smooth hover transition */
.grid-item .text,
.grid-item img {
  transition: all 0.4s ease;
}

.grid-item:hover img {
  transform: scale(1.01);
}

/* Responsive stacking for smaller screens */
@media (max-width: 768px) {
  .grid-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Default mobile order: text first, image second */
  .grid-item img {
    order: 2;
    width: 90%;
    margin: 1rem auto 0;
  }

  .grid-item .text {
    order: 1;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .grid-item .text h3 {
    font-size: 1.4rem;
  }

  .grid-item .text p {
    font-size: 1rem;
  }

  /* Explicitly set for clarity (both left and right behave the same on mobile) */
  .grid-item.image-left img,
  .grid-item.image-right img {
    order: 2;
  }

  .grid-item.image-left .text,
  .grid-item.image-right .text {
    order: 1;
  }
}



/* ===== Testimonial (wrapper + frame + arrows) ===== */
.testimonial-slider {
  background-color: var(--color-bg-page); /* continues the page gray */
  padding: 60px 20px;
}

.testimonial-wrapper {
  position: relative;       /* wrapper is positioning context for arrows */
  display: flex;
  align-items: center;
  justify-content: center;  /* frame stays centered */
  max-width: 800px;         /* limit wrapper to the frame's max-width */
  width: 100%;              /* let it be responsive up to max-width */
  margin: 0 auto;           /* center wrapper on page */
}


/* white frame */
.testimonial-frame {
  position: relative;      /* keeps internal stacking / measurements stable */
  background-color: var(--color-light);
  padding: 36px 48px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  width: 100%;
  overflow: visible;
  min-height: 200px;
  box-sizing: border-box;
}

/* stacked testimonial panes (absolute inside frame) — remain as before */
.testimonial {
  position: absolute;
  inset: 0;                /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;              /* padding lives in .testimonial-inner */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  box-sizing: border-box;
}

.testimonial.active {
  opacity: 1;
  pointer-events: auto;
}

/* === Testimonial Frame & Inner Content === */
.testimonial-frame {
  position: relative;
  background-color: var(--color-light);
  padding: 40px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  width: 100%;
  overflow: visible; /* allow quotes to extend beyond */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Inner content */
.testimonial-inner {
  position: relative;
  padding: 90px 50px 50px; /* extra top padding to clear quote */
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-dark);
  text-align: left;
  box-sizing: border-box;
  z-index: 2;
}

/* Citation */
.testimonial-inner cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-dark);
}

/* Decorative quote marks */
.testimonial-inner::before,
.testimonial-inner::after {
  position: absolute;
  font-size: 4.6rem;
  color: var(--color-secondary);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.testimonial-inner::before {
  content: "“";
  top: 25px;   /* moved inside the padding */
  left: 18px;  /* more centered */
}

.testimonial-inner::after {
  content: "”";
  bottom: 12px; /* lifted up slightly */
  right: 18px;  /* moved inward */
}


/* Mobile tweaks */
@media (max-width: 600px) {
  .testimonial-inner {
    padding: 100px 30px 60px; /* add more top space */
    font-size: 1rem;
    
  }

  .testimonial-inner::before {
    font-size: 2.6rem;
    top: 45px;   /* moves quote mark further down inside padding area */
    left: 20px;
  }

  .testimonial-inner::after {
    font-size: 2.6rem;
    bottom: 25px;
    right: 20px;
  }
}

/* === Static Testimonial Grid (larger boxes) === */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* wider boxes */
  gap: 3rem; /* more breathing space between boxes */
  max-width: 1200px; /* slightly wider overall grid */
  margin: 5rem auto;
  padding: 0 2rem;
}

.testimonial-box {
  position: relative;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 1.4rem;
  padding: 3rem 2.5rem; /* more internal space = visually larger */
  font-style: italic;
  color: var(--color-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.testimonial-box.offset {
  transform: translateY(50px);
}

.testimonial-box p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  font-size: 1.15rem; /* slightly larger font */
}

.testimonial-box cite {
  display: block;
  text-align: right;
  font-style: normal;
  font-weight: 500;
  color: var(--color-dark);
  margin-top: 1.2rem;
}

/* Quotation mark decoration */
.testimonial-box .quote-mark {
  position: absolute;
  top: -28px;
  left: 30px;
  font-family: Georgia, serif;
  font-size: 6rem; /* larger quote mark to match bigger box */
  color: var(--color-accent1);
  opacity: 0.25;
  line-height: 1;
  pointer-events: none;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .testimonial-grid {
    gap: 2rem;
    margin: 3rem auto;
    padding: 0 1.2rem;
  }

  .testimonial-box,
  .testimonial-box.offset {
    transform: none;
  }
}



/* === Accreditation Section === */
.accreditation {
  background-color: var(--color-bg-gray);
  padding: 4rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.accreditation-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.accreditation-badge {
  width: 140px;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(54, 72, 90, 0.15);
}

.accreditation-text {
  max-width: 720px;
  color: var(--color-dark);
}

.accreditation-text h3 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.accreditation-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* On wider screens, let the badge sit beside the text */
@media (min-width: 900px) {
  .accreditation-inner {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 2.5rem;
  }

  .accreditation-badge {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 160px;
  }

  .accreditation-text {
    max-width: 650px;
  }
}



/* ===== Arrows (inline, sibling to the frame) ===== */
.arrow {
  background: none;
  border: none;
  color: var(--color-dark);          /* same as body text colour */
  font-size: 2.4rem;
  cursor: pointer;
  padding: 8px;            /* larger clickable area, no visible box */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  transition: color 0.15s ease, transform 0.15s ease;
}
/* Desktop: absolute-position arrows (about 0.5 cm from the frame) */
.arrow.left {
  position: absolute;
  left: -36px;          /* ~0.5 cm from the frame edge */
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;           /* sit above the frame/shadow */
}

.arrow.right {
  position: absolute;
  right: -36px;         /* ~0.5 cm from the frame edge */
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;           /* sit above the frame/shadow */
}

//* Hover effect: keep vertical centering */
.arrow.left:hover,
.arrow.right:hover {
  color: #36507a;
  transform: translateY(-50%) scale(1.06);
}

@media (max-width: 640px) {
  .testimonial-wrapper {
    flex-direction: row;             /* horizontal layout */
    justify-content: center;         /* center horizontally */
    align-items: center;
    gap: 16px;                       /* space between arrows and frame */
  }

  .arrow.left,
  .arrow.right {
    position: static;                /* stay inline in flow */
    margin: 0;                       /* remove top/bottom margin */
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .testimonial-frame {
    max-width: 80%;                  /* optional: narrower for spacing */
  }
}


/* ============================================
   FLOATED IMAGES + LIST SPACING (LEFT & RIGHT)
   ============================================ */

/* Float styles for larger screens */
.float-left {
  float: left;
  margin: 0 20px 20px 0;
  max-width: 300px;
  height: auto;
}

.float-right {
  float: right;
  margin: 0 0 20px 20px;
  max-width: 300px;
  height: auto;
}

/* Add soft corners + shadow to floated images */
.float-left,
.float-right {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* === Figure + caption styling === */
figure.photo-credit {
  display: inline-block;
  margin: 0 20px 20px 0;
  text-align: center;
  background: none;         /* ensure no background on the figure */
  border: none;             /* ensure no border around figure */
  box-shadow: none;         /* ensure shadow only applies to img */
}

figure.photo-credit img {
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 6px;       /* create small space between image and caption */
}

figure.photo-credit figcaption {
  font-size: 0.8rem;
  color: var(--color-secondary);
  font-style: italic;
  line-height: 1.3;
  margin: 0;                /* remove extra spacing */
}

/* List item spacing */
.content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* -----------------------------
   LIST STYLES — indent next to floated images
--------------------------------*/

/* Base list styling
.content ul {
  list-style-type: disc;
  list-style-position: outside;
  margin-left: 1rem;        
  padding-left: 1.5rem;     
  color: #4b6c97;
}*/

/* === LEFT-FLOATED IMAGE === */
@media (min-width: 769px) {
  /* Push list away from left image */
  .float-left + ul,
  .float-left + p + ul,
  .float-left ~ ul {
    margin-left: 320px;     /* image width (300px) + margin (20px) */
  }
}

/* === RIGHT-FLOATED IMAGE === */
@media (min-width: 769px) {
  /* Push list away from right image */
  .float-right + ul,
  .float-right + p + ul,
  .float-right ~ ul {
    margin-right: 320px;    /* image width (300px) + margin (20px) */
  }
}

/* === MOBILE LAYOUT === */
@media (max-width: 768px) {
  /* Stack images above text */
  .float-left,
  .float-right {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
  }

  /* Reset list margins */
  .content ul {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.5rem;
  }

  /* Clear floats when needed */
  .clearfix::after {
    content: "";
    display: table;
    clear: both;
  }

}



/* === END OF FLOAT + LIST RESPONSIVE SECTION === */


/* Ensure gradient overlay behind hero text */
.hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
  padding: 2.5rem 1rem;
  text-align: center;
}


}
