/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Platypi:ital,wght@0,300..800;1,300..800&family=Sedan+SC&display=swap');

/* CSS variables */
:root {
  --woodland-green: #264f3d;
  --woodland-green-light: #527449;
  --woodland-green-light-trans: #528674;
  --pleasant-cream: #d6c4aade;
  --off-black: rgba(10, 10, 5, 1);
  --light-background: #f5f5dc;
  --dark-text: rgba(0, 0, 0, 0.9);
}

/* Global styles */
* {
  max-width: 100%;
}

/* ───────────── Anchor links ───────────── */

/* Base state */
a {
    color: #528674;                   /* heritage green */
    text-decoration: none;            /* we will draw our own underline */
    position: relative;               /* for the pseudo‑element */
    transition: color 0.3s ease;
}

/* Decorative underline created with a pseudo‑element */
a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.05em;                   /* sits just under the text */
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);             /* hidden by default */
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Hover and keyboard focus */
a:hover,
a:focus-visible {
    color: #2d554a;                   /* slightly darker for emphasis */
}

a:hover::after,
a:focus-visible::after {
    transform: scaleX(1);             /* underline animates in */
}

/* Active (mouse‑down) gives a bolder underline */
a:active::after {
    height: 3px;
}


body, html {
  margin: 0;
  padding: 0;
  height: 100%;

  background-size: cover;
  font-family: "Platypi", sans-serif;
  color: var(--woodland-green);
}


body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: url('fotos/bg1.jpg') center center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}
/* Container */
.container {
  max-width: 800px;
  margin: 25px auto;
  display: grid;
  grid-gap: 23px;
}

/* Title */
.title {
  background-color: var(--off-black);
  background-image: url('fotos/ivy.jpg');
  padding: 150px 25px;
  text-align: center;
  font-family: "Sedan SC", serif;
  background-blend-mode: overlay;
  border-radius: 20px;
  margin: 40px auto 50px;
  max-width: 60vw;
  border: 18px solid var(--light-background);
  background-position: center;
  background-size: cover;
}

.title h1 {
  color: var(--pleasant-cream);
  margin: 0;

}

.title img {
  max-width: 65vw;
  width: 300px;
}

/* Content row */
.content-row {
  background: var(--off-black);
  padding: 19px 120px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: #00000055 2px 2px 2px;
}

.content-row img {
  width: 200px;
  height: 360px;
  margin: 50px 0;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.content-row p {
  padding: 0 25px;
}

/* Split columns */
.split {
  display: grid;
  gap: 20px;
  background-color: rgba(0, 0, 0, 0);
  width: 100%;
  padding: 0;
  align-items: inherit;
}


.split .column {
    margin-bottom: 0;
    min-height: 427px;
}



@media (min-width: 600px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

.split .column {
    margin-bottom: 0;
    min-height: 530px;
    margin: 50px 10px 0px;
}
}

.split .column {
    min-height: 530px;
    margin: 50px 10px 0px;
}
/* About section */
.about {
    padding: 18px 50px 85px;
    flex-direction: column;
    color: var(--woodland-green-light);
    text-align: center;
    margin-top: -23px;
}

.about img {
    width: 300px;
    height: auto;
    box-shadow: none;
}

/* Text sections */
.text-1 {
  background-color: var(--light-background);
}

.text-1 .text-box {
  width: 320px;
  margin-bottom: 20px;
  object-fit: cover;
  color: var(--off-black);
  padding: 10px;
  text-align: left;
  z-index: 2;
  border-radius: 10px;
  margin: 50px 0;
}

.text-1 h2 {
  padding: 0 25px;
}
.text-1.content-row {
  align-items: flex-end;
  padding-bottom: 70px;
}
.text-2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: end;
}

.text-2 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.text-2 .text-box {
  width: 320px;
  margin-bottom: 20px;
  object-fit: cover;
  background-color: var(--woodland-green-light-trans);
  color: var(--off-black);
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 2;
  border-radius: 10px;
  margin: 50px 0;
}

/* ─────────────────────────────────────────────
   Alternate (second) instances – reversed layout
   Add class="reverse" to the second .text‑1 or .text‑2 row
   ──────────────────────────────────────────── */

/* TEXT‑1 REVERSED */
.content-row.text-1.reverse {
  display: flex;                 /* ensure flex for row control */
  flex-direction: row-reverse;   /* swap image / text‑box order */
  align-items: flex-end;
  justify-content: flex-start;   /* push image to the right edge */
}

.content-row.text-1.reverse .text-box {
  margin-left: 0;
  margin-right: 50px;            /* mirror original spacing */
  text-align: left;
}

/* TEXT‑2 REVERSED */
.content-row.text-2.reverse {
  justify-content: flex-start;   /* move text‑box to left side */
}

.content-row.text-2.reverse img {
  left: auto;
  right: 0;                      /* pin background image to right */
}

.content-row.text-2.reverse .text-box {
  text-align: center;            /* keep centred text inside box */
  margin-left: 50px;             /* mirror original spacing */
  margin-right: 0;
}

/* ─────────────────────────────────────────────
   Bullet‑point refinement (applies to all text rows)
   ──────────────────────────────────────────── */
/* Centred list items with dividers */
 ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-style: italic;
}
 li {
    text-align: center;
    padding: 0 0 12px 0;             /* space above divider */
    position: relative;
}
 li:not(:last-child)::after {
    content: "";
    display: block;
    width: 40px;                     /* length of divider */
    height: 1px;
    background: var(--off-black);    /* match text colour */
    margin: 12px auto 0;
}

/* Navbar */
.navbar {
  color: var(--woodland-green);
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  font-family: "Sedan SC", serif;
    font-size: clamp(12px,5vw,29px);
}
.navbar {
  text-shadow: #000 2px 2px 2px;
}
/* Column styles */
.column {
    /* border-radius: 10px; */
     padding: 0 10px 50px; 
    /* color: var(--off-black); */
    /* border: 18px solid var(--light-background); */
}

.column p {
  font-size: 12px;
  text-align: justify;
}

.column h2 {
  text-align: center;
}

/* Icon */
.icon {
  height: 120px;
  margin: 0 auto 62px;
  width: fit-content;
}

.icon img {
  max-height: 100%;
  box-shadow: none;
  object-fit: contain;
}

/* Footer */
.footer {
    /* height: 50px; */
    background: var(--off-black);
    color: var(--woodland-green-light);
    display: flex;
    justify-content: space-between;
    /* justify-items: self-end; */
    /* flex-direction: column; */
    padding: 10px 80px;
    margin: 70px 0 0;
}

/* Responsive styles */
@media (max-width: 800px) {
  .container {
    margin: 10px;
  }
.content-row.text-1.reverse {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

/* let the text boxes shrink to fit */
.text-1 .text-box, .text-2 .text-box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* kill the big side padding that originates from the desktop rule */
.content-row {
    padding-left: 19px;
    padding-right: 19px;
}

.content-row.text-2.reverse .text-box {

 margin-left: 0px;

}
.text-1 .text-box {
  color: var(--off-black);
  text-align: center;
}
.navbar h1 {
  margin-top:0px;
}
.navbar {
  height:auto;
}



/* make card widths respect their column padding/margins */
.card {
    width: 100%;
}

.title {
    padding: 85px 25px;
    border: 18px solid var(--light-background);
    border-radius: 20px;
    margin: 40px auto 50px;
    max-width: 60vw;
}

  .content-row {
    padding: 19px;
    flex-direction: column;
    align-items: center;
  }

  .content-row img {
    width: 100%;
    height: auto;
    margin: 20px 0;
  }

  .content-row p {
    padding: 0;
    text-align: center;
  }
.split {
    grid-template-columns: 1fr;
    max-width: 80vw;
    width: 100%;
    margin: auto;
    align-items: inherit;
}
.split .column {
    margin: 0 0 20px;
}

  .text-2 {
    flex-direction: column;
    align-items: center;
  }

  .text-2 img {
    position: relative;
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }

.text-2 .text-box {
    width: 100%;
    margin: 20px 0;
    background-color: transparent;
    color: var(--light-background);
}

  .about {
    padding: 50px 25px;
  }
.footer {
    display: flex;
    justify-content: flex-end;
    /* justify-items: self-end; */
    flex-direction: column;
    padding: 10px 10px;
    margin: 70px 0 0;
    text-align: center;
}
.content-row.text-1.reverse .text-box {
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

}

.social-media-links {
    display: flex;
    justify-content: center; /* Centers the icons in the container */
    align-items: center; /* Aligns icons vertically */
    padding: 10px 0;
}

.social-icon {
    text-decoration: none; /* Removes underline from links */
    color: #333; /* Icon color */
    font-size: 24px; /* Icon size */
    margin: 0 10px; /* Space between icons */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.social-icon:hover {
    color: #007bff; /* Color changes when hovered over */
}

.pricing {
  color: #f5f5dc;
  text-align: center;
  padding: 50px 10% 75px;
}
.card-face {
    width: inherit;
    height: calc(100% - 78px);
    position: absolute;
    backface-visibility: hidden;
    transition: transform 0.7s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0 10px 50px;
    color: var(--off-black);
    border: 18px solid var(--light-background);
    flex-direction: column;
}
.card {
    width: calc(100% - 28px);
    height: 100%;
    perspective: 1000px;
    margin: 0;
} 

.card-front {
    background-color: var(--off-black);
    color: var(--pleasant-cream);
}

.card-back {
    background-color: var(--light-background);
    transform: rotateY(180deg); 
}

.card.flipped .card-front {
    transform: rotateY(-180deg);
}

.card.flipped .card-back {
    transform: rotateY(0deg);
}

/* Contact Form Styling */
.content-row form {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 38px;
  background: beige;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(66, 66, 66, 0.1);
  font-size: 24px;
}

.content-row input, 
.content-row textarea {
    font-family: "Sedan SC", sans-serif; /* Consistent font usage */
    padding: 23px 40px; /* Padding inside input fields for better text visibility */
    border: 3px solid var(--woodland-green); /* Border color */
    border-radius: 5px; /* Rounded corners for inputs */
    background-color: var(--light-background); /* Light background for input fields */
    color: var(--dark-text); /* Text color */
        font-size:24px;
}

.content-row textarea {
    height: 100px; /* Fixed height for textarea */
    resize: none; /* Disabling resizing of textarea */
}

.content-row button {
    padding: 10px 20px; /* Padding inside button */
    font-family: "Sedan SC", serif; /* Stylish serif font for button text */
    background-color: var(--woodland-green); /* Button background color */
    color: var(--pleasant-cream); /* Button text color */
    border: none; /* No border for a cleaner look */
    border-radius: 5px; /* Rounded corners for the button */
    cursor: pointer; /* Cursor indicates clickable */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.content-row button:hover {
    background-color: var(--woodland-green-light); /* Lighter color on hover */
}

.form-row {
  background-color: #f5f5dceb;
}

.form-row h1 {
  padding: 0 25px;
}

.form-row .text-box {
  padding: 50px 0 70px;
}
/* one flexible column only */
.container {
    display: grid;
    grid-template-columns: 1fr;   /* prevents implicit-column auto sizing */
}

/* allow every direct child to shrink below its own min-content width */
.container > * {
    min-width: 0;                 /* crucial for images with a fixed width */
}

/* optional: if you want to keep the 23 px gap on large screens
   but drop it on phones, move the gap into a desktop MQ */
@media (min-width: 801px) {
    .container { grid-gap: 23px; }
}

/* ───────────── Navigation Bar ───────────── */
.main-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: #264f3d80;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z‑index: 100;
  font-family: "Sedan SC", serif;
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

/* completely reset inherited UL/LI styles */
.main-nav .nav-menu {
  list-style: none;
  margin: 0 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-style: normal;
}

.main-nav .nav-menu li {
  margin: 0;
  padding: 0;
  position: static;
}

.main-nav .nav-menu li::after {
  content: none;            /* remove your dividers */
}

.main-nav .nav-menu a {
  text-decoration: none;
  color: #f5f5dc;
  padding: 1rem 0;
  transition: color 0.2s ease;
}

.main-nav .nav-menu a:hover {
  color: var(--woodland-green-light);
}

/* hamburger toggle (desktop hidden) */
.main-nav .nav-toggle {
  display: none;
}

.main-nav .nav-toggle-label {
  display: none;
  margin-left: auto;
  cursor: pointer;
  padding: 1rem;
}
.main-nav .nav-toggle-label span,
.main-nav .nav-toggle-label span::before,
.main-nav .nav-toggle-label span::after {
  display: block;
  background: var(--woodland-green);
  height: 2px;
  width: 25px;
  border-radius: 1px;
  position: relative;
  transition: all 0.3s ease;
}
.main-nav .nav-toggle-label span::before {
  content: "";
  position: absolute;
  top: -8px;
}
.main-nav .nav-toggle-label span::after {
  content: "";
  position: absolute;
  top: 8px;
}

/* ───────────── Mobile ───────────── */
@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    padding-right: 0; /* room for hamburger */
    background-color: #00000000;
    box-shadow: none;
  }

  .main-nav .nav-toggle-label {
    display: block;

  }

  .main-nav .nav-menu {
    flex-direction: column;  /* now stack vertically */
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 4rem;
    margin-left: 0;
  }

  /* when checkbox is checked, expand menu */
  .main-nav .nav-toggle:checked ~ .nav-menu {
    max-height: 300px;
  }
}

/* ────────── Animate nav background on toggle ────────── */
.main-nav {
  /* transition your background */
  transition: background-color 0.3s ease;
}

/* when the checkbox inside .main-nav is checked… */
.main-nav:has(.nav-toggle:checked) {
  background-color: #264f3d80;
}

/* ───── Endorsements-page only scrollbars & name styling ───── */
.endorsements-page .endorsement-card .card-face {
  /* allow vertical scrolling if content overflows */
  overflow-y: auto;
  /* hide horizontal scrollbar */
  overflow-x: hidden;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* WebKit browsers */
.endorsements-page .endorsement-card .card-face::-webkit-scrollbar {
  width: 6px;
}

.endorsements-page .endorsement-card .card-face::-webkit-scrollbar-track {
  background: transparent;
}

.endorsements-page .endorsement-card .card-face::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  border: 1px solid transparent; /* padding around thumb */
  background-clip: content-box;
}

.endorsements-page .icon {
  height: 54px;
  margin: 0 auto 30px;
  width: fit-content;
}

/* endorser name (right-aligned, italic) */
.endorsements-page .endorser-name {
  text-align: right;
  font-style: italic;
  margin-top: 1em;
}
/* Scoped CSS for #hero-cta */
#hero-cta {
  background: url('fotos/ivy.jpg') no-repeat center/cover;
  padding: 4rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

#hero-cta .cta-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
}

#hero-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#hero-cta .btn-primary {
  display: inline-block;
  background-color: #6B3E26;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#hero-cta .btn-primary:hover {
  background-color: #55301F;
}
