/* Pushing Petals - Duffy's Flower Bed Service
   Palette and type taken from the business card and flyers.
   Change colors in one place: the :root variables below. */

:root {
  --parchment: #ecd9a8;
  --parchment-light: #f5e8c6;
  --parchment-deep: #d6bb80;
  --forest: #27361c;
  --burgundy: #4a1a24;
  --amber: #b9782a;
  --bark: #2e1c10;

  --font-display: "Playball", "Brush Script MT", cursive;
  --font-body: "Alegreya", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--bark);
  background-color: var(--parchment);
  background-image: linear-gradient(180deg, var(--parchment-light) 0, var(--parchment) 900px);
  background-repeat: no-repeat;
  background-size: 100% 900px;
}

img { max-width: 100%; }

a { color: var(--burgundy); }

:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--parchment-light);
  padding: .5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  color: var(--forest);
}

h2 { font-size: clamp(2.25rem, 6vw, 3.25rem); }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--forest);
  object-fit: cover;
}

.site-header nav {
  display: flex;
  gap: clamp(.75rem, 3vw, 1.75rem);
}
.site-header nav a {
  color: var(--forest);
  font-weight: 500;
  text-decoration: none;
  padding-block: .5rem;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { border-bottom-color: var(--burgundy); }

@media (max-width: 560px) {
  .brand span { display: none; }
  .site-header nav { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5.5rem);
}

.hero-text { order: -1; text-align: center; }

.portrait {
  margin: 0 auto;
  padding: 12px;
  width: min(100%, 320px);
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--forest);
  box-shadow:
    0 0 0 7px var(--parchment-light),
    0 0 0 9px var(--forest),
    0 22px 32px -14px rgba(46, 28, 16, .55);
}

.hero h1 {
  font-size: clamp(3.4rem, 15vw, 6.25rem);
}

.ribbon {
  display: inline-block;
  margin: .9rem 0 0;
  padding: .45rem 2.1rem;
  background: var(--burgundy);
  color: var(--parchment-light);
  font-size: clamp(1.2rem, 4.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
}

.tagline {
  margin: 1rem 0 0;
  color: var(--burgundy);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-caps: all-small-caps;
  letter-spacing: .08em;
}

.lead {
  max-width: 34ch;
  margin: 1.1rem auto 0;
  font-size: 1.35rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .55rem 1.5rem;
  border: 2px solid var(--burgundy);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--burgundy); color: var(--parchment-light); }
.btn-primary:hover { background: var(--bark); border-color: var(--bark); }
.btn-secondary { background: transparent; color: var(--burgundy); }
.btn-secondary:hover { background: var(--burgundy); color: var(--parchment-light); }

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: clamp(2.5rem, 6vw, 4.5rem);
  }
  .hero-text { order: 0; text-align: left; }
  .portrait { width: 100%; margin: 0; }
  .lead { margin-inline: 0; }
  .actions { justify-content: flex-start; }
}

/* ---------- Services ---------- */

.section-ruled {
  border-top: 3px double var(--forest);
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.service-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: .9rem 2.5rem;
}
@media (min-width: 640px) {
  .service-list { grid-template-columns: 1fr 1fr; }
}

.service-list li {
  position: relative;
  padding-left: 2.4rem;
  font-size: 1.4rem;
  line-height: 1.3;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1em;
  width: 1.6rem;
  height: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%234a1a24'%3E%3Ccircle cx='12' cy='5.5' r='4.2'/%3E%3Ccircle cx='18.2' cy='10' r='4.2'/%3E%3Ccircle cx='15.8' cy='17.4' r='4.2'/%3E%3Ccircle cx='8.2' cy='17.4' r='4.2'/%3E%3Ccircle cx='5.8' cy='10' r='4.2'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='3.4' fill='%23b9782a'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Bands ---------- */

.band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--parchment-light);
}

.quote-band {
  background: var(--forest);
  color: var(--parchment-light);
  padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.5rem, 6vw, 3rem);
  text-align: center;
  clip-path: polygon(0 5%, 3% 0, 97% 4%, 100% 0, 100% 95%, 97% 100%, 3% 96%, 0 100%);
}
.quote-band p {
  margin: 0 auto;
  max-width: 28ch;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-style: italic;
  line-height: 1.25;
}

/* ---------- Gallery ---------- */

.gallery-section {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.section-intro {
  margin: .75rem 0 1.75rem;
  max-width: 48ch;
}

.project-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
@media (min-width: 700px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
  }
}
.project-grid li { display: flex; }
.project-card {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 2px solid var(--forest);
  border-radius: 2px;
  background: var(--parchment-light);
  color: var(--bark);
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
}
.project-card:hover { border-color: var(--burgundy); }
.project-cover {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--parchment-deep);
  overflow: hidden;
}
.project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-name {
  display: block;
  padding: .7rem .8rem 0;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
}
.project-meta {
  display: block;
  padding: .25rem .8rem .8rem;
  font-size: 1rem;
}

.project-head { margin: 0 0 1.25rem; }
.project-head h3 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  color: var(--forest);
}
.project-head p { margin: .35rem 0 0; }
.back-btn {
  min-height: 3rem;
  padding: .5rem 1.25rem;
  border: 2px solid var(--burgundy);
  border-radius: 2px;
  background: transparent;
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.back-btn:hover { background: var(--burgundy); color: var(--parchment-light); }

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0 0 1.25rem;
}
.stage-tab {
  min-height: 3rem;
  padding: .5rem 1.25rem;
  border: 2px solid var(--burgundy);
  border-radius: 2px;
  background: transparent;
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.stage-tab:hover { background: rgba(74, 26, 36, .1); }
.stage-tab[aria-pressed="true"] {
  background: var(--burgundy);
  color: var(--parchment-light);
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: var(--parchment-deep);
  cursor: zoom-in;
  overflow: hidden;
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-empty {
  margin: 0;
  padding: 2rem 1.5rem;
  border: 2px dashed var(--forest);
  text-align: center;
}

.gallery-footer {
  margin-top: 1.75rem;
  text-align: center;
}
.gallery-footer p { margin: 0 0 .9rem; }

/* ---------- Contact ---------- */

.contact-band {
  background: var(--burgundy);
  color: var(--parchment-light);
  padding-block: clamp(3rem, 8vw, 5rem);
}
.contact { text-align: center; }
.contact h2 { color: var(--parchment-light); }
.contact p { margin: 0; }
.contact a { color: var(--parchment-light); }

.contact-lead { margin-top: .75rem !important; }
.contact-phone {
  margin-top: 1.5rem !important;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
}
.contact-email {
  margin-top: .75rem !important;
  font-size: clamp(1.15rem, 4.4vw, 1.7rem);
  overflow-wrap: anywhere;
}
.contact-place { margin-top: 1rem !important; font-style: italic; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bark);
  color: var(--parchment-light);
  text-align: center;
  padding: 2.25rem 1rem 2.5rem;
}
.footer-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
}
.footer-small { margin: .6rem 0 0; font-size: 1rem; opacity: .85; }

/* ---------- Lightbox ---------- */

dialog#lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
dialog#lightbox[open] { display: flex; }
dialog#lightbox::backdrop { background: rgba(20, 12, 6, .93); }

.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0 3rem;
  touch-action: pan-y pinch-zoom;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity .15s ease;
}
.lb-stage img.is-loading { opacity: .3; }

.lb-btn {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 232, 198, .16);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(245, 232, 198, .32); }
dialog#lightbox :focus-visible { outline-color: var(--parchment-light); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }

.lb-count {
  position: absolute;
  bottom: .9rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 1rem;
}

@media (max-width: 560px) {
  .lb-prev, .lb-next { top: auto; bottom: .5rem; transform: none; }
  .lb-prev { left: .75rem; }
  .lb-next { right: .75rem; }
}
