:root {
  --ink: #202725;
  --muted: #65706d;
  --evergreen: #173f37;
  --evergreen-soft: #dfeae5;
  --gold: #c39b4b;
  --cream: #fbfaf6;
  --line: #e2ded2;
  --surface: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f5f7f4 0, #ebe7db 540px, #f7f5ef 100%);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: #7a5a14;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--evergreen); }

.site-header {
  position: relative;
  color: white;
  background:
    linear-gradient(90deg, rgba(12, 28, 24, .88), rgba(12, 28, 24, .38) 52%, rgba(12, 28, 24, .18)),
    url("assets/piper-paul-header-generated.png") center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 18px 42px rgba(23, 32, 29, .18);
}

.brand {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 52px max(24px, calc((100vw - 1080px) / 2)) 34px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

.brand a {
  display: block;
  max-width: 760px;
  color: white;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: .98;
  overflow-wrap: break-word;
}

.brand span {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(15, 35, 31, .58);
  font: 700 .78rem "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 max(18px, calc((100vw - 1080px) / 2)) 18px;
}

nav a {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(16, 35, 32, .76);
  color: #fff;
  text-decoration: none;
  padding: 9px 13px;
  font: 700 .8rem "Segoe UI", Arial, sans-serif;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

nav a.active,
nav a:hover {
  background: var(--gold);
  color: #1d241f;
  transform: translateY(-1px);
}

.page {
  width: min(1080px, calc(100% - 36px));
  max-width: 1080px;
  margin: 28px auto 0;
  padding: clamp(26px, 4vw, 56px);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(226, 222, 210, .85);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(31, 39, 35, .1);
  min-height: 60vh;
}

#wsite-content {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.wsite-content-title {
  color: var(--evergreen);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  margin: 0 0 .65em;
}

h2,
.wsite-content-title {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  overflow-wrap: anywhere;
}

h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p,
.paragraph {
  max-width: 100%;
  margin: 0 0 1.15em;
  font-size: 1rem;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

.paragraph *,
.wsite-content-title *,
h1 *,
h2 *,
h3 * {
  white-space: normal !important;
}

.paragraph font { font-size: inherit; }

strong { color: #26332f; }

hr.styled-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0;
}

.recovered-gallery,
.imageGallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.recovered-gallery:empty { display: none; }

.recovered-gallery img,
.page img {
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 8px;
  background: #f2f0e8;
  padding: 0;
  box-shadow: 0 10px 28px rgba(31, 39, 35, .13);
}

.imageGallery [id*="imageContainer"] {
  width: auto !important;
  float: none !important;
}

.imageGallery [id*="insideImageContainer"] {
  margin: 0 !important;
  padding: 0 !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

td,
th {
  vertical-align: top;
  padding: 10px;
}

.wsite-multicol-table td {
  padding: 0 18px 18px;
}

form {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.formlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wsite-form-field { margin: 0 0 16px !important; }

.wsite-form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--evergreen);
  font-weight: 700;
}

.wsite-form-sublabel,
.wsite-form-instructions {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .85rem;
}

.wsite-input,
.form-select,
textarea {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #cfc8b9;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 1rem "Segoe UI", Arial, sans-serif;
  padding: 10px 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.wsite-input:focus,
.form-select:focus,
textarea:focus {
  outline: none;
  border-color: var(--evergreen);
  box-shadow: 0 0 0 3px rgba(23, 63, 55, .16);
}

.wsite-form-left,
.wsite-form-right {
  width: calc(50% - 8px);
}

.wsite-form-left { float: left; }
.wsite-form-right { float: right; }

.wsite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  background: var(--evergreen);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 63, 55, .2);
}

.wsite-button:hover {
  background: #225f52;
  color: #fff;
}

.wsite-button-inner {
  display: block;
  padding: 10px 22px;
  font-weight: 700;
}

.service-intro,
.service-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  margin-bottom: 42px;
}

.service-section {
  grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
}

.service-intro img,
.service-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(31, 39, 35, .16);
}

.text-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--evergreen);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.text-cta:hover {
  background: #225f52;
  color: #fff;
}

.wedding-moments {
  margin: 18px 0 42px;
  padding-top: 8px;
}

.moment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.moment-grid div {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.moment-grid strong,
.moment-grid span {
  display: block;
}

.moment-grid strong {
  margin-bottom: 8px;
  color: var(--evergreen);
}

.moment-grid span {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

.quote-panel {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: var(--evergreen-soft);
  border: 1px solid rgba(23, 63, 55, .16);
}

.quote-panel p {
  max-width: 720px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1f8f4d;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(17, 24, 39, .28);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #176f3d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, .34);
}

.whatsapp-float svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: currentColor;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  margin: 26px 0 38px;
}

.photo-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 39, 35, .14);
}

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 42px;
  color: var(--muted);
  font: .86rem "Segoe UI", Arial, sans-serif;
}

@media (max-width: 820px) {
  .brand {
    min-height: 250px;
    padding-top: 38px;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  nav a {
    text-align: center;
    border-radius: 6px;
  }

  .page {
    width: 100%;
    margin-top: 0;
    max-width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 28px 18px 44px;
    overflow: hidden;
  }

  .page * {
    max-width: 100%;
  }

  .wsite-multicol-table,
  .wsite-multicol-tbody,
  .wsite-multicol-tr,
  .wsite-multicol-col {
    display: block;
    width: 100% !important;
  }

  table {
    display: block;
    max-width: 100%;
    overflow: hidden;
  }

  .wsite-multicol-table-wrap {
    margin: 0 !important;
  }

  .wsite-multicol-table td {
    padding: 0 0 18px;
  }

  .service-intro,
  .service-section {
    grid-template-columns: 1fr;
  }

  .service-section img {
    order: 2;
  }

  .moment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .photo-strip img {
    height: auto;
    max-height: 520px;
  }
}

@media (max-width: 520px) {
  .brand {
    min-height: 220px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand a {
    max-width: 100%;
    font-size: 1.78rem;
    line-height: 1.08;
  }

  h2,
  .wsite-content-title {
    font-size: 1.8rem;
  }

  p,
  .paragraph {
    font-size: .96rem;
  }

  nav {
    grid-template-columns: 1fr;
    padding-right: 12px;
    padding-left: 12px;
  }

  form {
    padding: 16px;
  }

  .wsite-form-left,
  .wsite-form-right {
    width: 100%;
    float: none;
  }

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

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 44px;
    padding: 0 14px;
    font-size: .92rem;
  }
}
