/*
 * THE CAKE LADY – BIRDSEDGE
 * Website styles
 *
 * Edit the colour variables below to change the overall palette.
 * Mobile header sizing is in section 16.
 * Keep responsive rules near the end so they override desktop styles.
 */


/* ============================================================
   01. COLOURS & GLOBAL RESET
   ============================================================ */

:root {
  --cream: #fffaf6;
  --paper: #fffdf9;
  --pink: #f7e7e7;
  --blush: #f2d5d8;
  --rose: #a75c69;
  --dark: #3c2a2d;
  --muted: #766469;
  --line: #eadcda;
  --sage: #819181;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--dark);
  font-family: "DM Sans",Arial,sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,h2,h3,p {
  margin-top: 0;
}

h1,h2,h3 {
  font-family: "Playfair Display",Georgia,serif;
  font-weight: 500;
  line-height: 1.14;
}

h1 {
  font-size: clamp(3.3rem,6.2vw,6rem);
  letter-spacing: -.045em;
  margin: 20px 0 23px;
}

h2 {
  font-size: clamp(2.35rem,4vw,3.8rem);
  letter-spacing: -.035em;
  margin: 10px 0 22px;
}

h3 {
  font-size: 1.6rem;
}


/* ============================================================
   02. CONTAINERS, TYPE & BUTTONS
   ============================================================ */

.container {
  max-width: 1190px;
  margin: auto;
  padding: 0 30px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--rose);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .015em;
  font-weight: 700;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--dark);
  border-radius: 100px;
  transition: transform .18s,background .18s;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill.primary {
  background: var(--dark);
  color: white;
}

.pill.light {
  border-color: #ddc0c4;
  background: #fffdfb;
}

.pill.rose {
  background: var(--rose);
  border-color: var(--rose);
  color: white;
}

.pill svg {
  width: 18px;
  height: 18px;
  flex: none;
}


/* ============================================================
   03. HEADER & NAVIGATION
   ============================================================ */

.header {
  background: #fffdf9e9;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #f0e6e0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  min-height: 89px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-family: "Playfair Display",Georgia,serif;
  font-size: 23px;
  line-height: 1.1;
}

.brand img {
  width: 59px;
  height: 59px;
  border-radius: 50%;
  object-fit: cover;
}

.brand small {
  display: block;
  font-family: "DM Sans",Arial,sans-serif;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: 4px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 34px;
}

.navlinks>a:not(.pill) {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.navlinks>a:not(.pill):hover {
  color: var(--rose);
}


/* ============================================================
   04. HERO SECTION
   ============================================================ */

.hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 26% 26%,#fffefd 0%,#fff6f2 68%,#f9e9e7 100%);
}

.hero-grid {
  min-height: 675px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
  padding-top: 64px;
  padding-bottom: 84px;
}

.hero-copy {
  max-width: 570px;
}

.hero-copy h1 em {
  color: var(--rose);
  font-weight: 400;
}

.hero-copy>p {
  font-size: 16px;
  max-width: 485px;
  color: #625458;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 33px;
}

.hero-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 27px;
}

.hero-visual {
  position: relative;
  min-height: 530px;
}

.hero-main {
  position: absolute;
  left: 12%;
  top: 2%;
  height: 91%;
  width: 74%;
  border-radius: 49% 49% 46% 46% / 39% 39% 26% 26%;
  object-fit: cover;
  object-position: center 40%;
  box-shadow: 0 22px 48px #7a494824;
}

.hero-small {
  position: absolute;
  bottom: 0;
  left: -3%;
  width: 38%;
  height: 44%;
  object-fit: cover;
  object-position: center 30%;
  border: 9px solid var(--cream);
  border-radius: 49% 49% 45% 45%;
  box-shadow: 0 15px 34px #7a494824;
}

.hero-sticker {
  position: absolute;
  right: 0;
  top: 8%;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: #f4e4dd;
  border: 1px solid #e0c8c4;
  color: #764e5a;
  font-family: "Playfair Display",Georgia,serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  transform: rotate(13deg);
}

.decor {
  position: absolute;
  color: var(--rose);
  opacity: .34;
  font-family: Georgia,serif;
  font-size: 80px;
  right: 6%;
  bottom: 3%;
}


/* ============================================================
   05. DIVIDER BAND
   ============================================================ */

.divider-band {
  background: var(--dark);
  color: #fff8f4;
  padding: 22px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.divider-band span {
  color: #e6bfc4;
  margin: 0 24px;
}


/* ============================================================
   06. GENERAL CONTENT SECTIONS
   ============================================================ */

.section {
  padding: 108px 0;
}

.section-intro {
  text-align: center;
  max-width: 690px;
  margin: 0 auto 45px;
}

.section-intro p {
  color: var(--muted);
}


/* ============================================================
   07. ABOUT SECTION
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 95px;
}

.about-photos {
  position: relative;
  padding: 0 45px 42px 0;
}

.about-photos>img {
  height: 495px;
  width: 100%;
  object-fit: cover;
  border-radius: 190px 190px 14px 14px;
  object-position: center 30%;
}

.about-photos .about-overlap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 43%;
  height: 49%;
  border: 9px solid var(--cream);
  border-radius: 180px 180px 8px 8px;
  object-fit: cover;
}

.about-text p {
  max-width: 470px;
  color: #67585c;
  font-size: 15px;
  line-height: 1.9;
}

.mini-rule {
  height: 1px;
  background: var(--line);
  max-width: 440px;
  margin: 27px 0;
}

.check {
  color: var(--rose);
  font-weight: 700;
}


/* ============================================================
   08. CAKE GALLERY
   ============================================================ */

.gallery-section {
  background: #f9efec;
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.gallery-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter {
  border: 1px solid #e7d1d0;
  background: transparent;
  border-radius: 30px;
  padding: 8px 17px;
  color: #6d565a;
  font: 600 12px "DM Sans",Arial,sans-serif;
  cursor: pointer;
}

.filter.active,.filter:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

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

.tile {
  border: 0;
  display: block;
  padding: 0;
  position: relative;
  aspect-ratio: 4/5;
  background: #eadcda;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
  text-align: left;
}

.tile[hidden] {
  display: none;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .38s;
}

.tile:hover img {
  transform: scale(1.05);
}

.tile>span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 15px 13px;
  background: linear-gradient(transparent,#231517a8);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.gallery-footer {
  text-align: center;
  margin-top: 33px;
}


/* ============================================================
   09. LOCATION SECTION
   ============================================================ */

.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.location-photo {
  height: 405px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.location p {
  max-width: 450px;
  color: #685a5e;
}

.address {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark) !important;
}


/* ============================================================
   10. SOCIAL SECTION
   ============================================================ */

.social-section {
  background: #f6e3e3;
  position: relative;
  overflow: hidden;
}

.social-card {
  padding: 60px 35px;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.social-card p {
  color: #6a565d;
  max-width: 560px;
  margin: 0 auto 29px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icons {
  display: flex;
  gap: 17px;
  justify-content: center;
  margin: 30px 0 0;
}

.social-icons a {
  border: 1px solid #d3b4bb;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}


/* ============================================================
   11. CONTACT SECTION
   ============================================================ */

.contact {
  background: #fffbf7;
  text-align: center;
}

.contact p {
  color: var(--muted);
  max-width: 550px;
  margin: 0 auto 27px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   12. FOOTER
   ============================================================ */

.footer {
  padding: 35px 0;
  border-top: 1px solid var(--line);
  background: #fffdf9;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--rose);
}


/* ============================================================
   13. GALLERY LIGHTBOX
   ============================================================ */

dialog {
  border: 0;
  background: transparent;
  padding: 0;
  max-width: min(92vw,940px);
  max-height: 92vh;
  overflow: visible;
}

dialog::backdrop {
  background: #261a1be8;
}

dialog img {
  max-height: 85vh;
  max-width: 92vw;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.close {
  position: absolute;
  right: -12px;
  top: -16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  color: #2b2122;
  border: 0;
  cursor: pointer;
  font-size: 24px;
}

.caption {
  position: absolute;
  bottom: -29px;
  left: 0;
  color: white;
  font-size: 12px;
}


/* ============================================================
   14. ACCESSIBILITY
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 3px solid #b76b79;
  outline-offset: 4px;
}


/* ============================================================
   15. TABLET STYLES (900px and below)
   ============================================================ */

@media (max-width:900px) {
  .navlinks {
    gap: 16px;
  }
  .hero-grid {
    gap: 20px;
    min-height: 580px;
  }
  .hero-visual {
    min-height: 475px;
  }
  .hero-sticker {
    right: -3%;
    width: 103px;
    height: 103px;
    font-size: 15px;
  }
  .about-grid {
    gap: 40px;
  }
  .gallery {
    grid-template-columns: repeat(3,1fr);
  }
  .location {
    gap: 36px;
  }
}


/* ============================================================
   16. MOBILE STYLES (650px and below)
   ============================================================ */

@media (max-width:650px) {
  .container {
    padding: 0 22px;
  }
  .nav {
    min-height: 76px;
    gap: 12px;
  }
  .brand {
    font-size: 19px;
    min-width: 0;
  }
  .brand img {
    width: 49px;
    height: 49px;
  }
  .navlinks>a:not(.pill) {
    display: none;
  }
  .navlinks .pill {
    font-size: 11px;
    min-height: 41px;
    padding: 10px 16px;
    white-space: nowrap;
    flex-shrink: 0;
    justify-content: center;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-top: 58px;
    padding-bottom: 52px;
  }
  .hero-copy>p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-note {
    margin: 21px 0;
  }
  .hero-visual {
    width: 100%;
    min-height: 430px;
    max-width: 420px;
  }
  .hero-main {
    left: 16%;
    width: 70%;
  }
  .hero-small {
    left: 0;
    width: 37%;
  }
  .hero-sticker {
    right: 3%;
  }
  .divider-band {
    font-size: 9px;
    letter-spacing: .09em;
  }
  .divider-band span {
    margin: 0 8px;
  }
  .section {
    padding: 72px 0;
  }
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }
  .about-photos {
    width: 100%;
    max-width: 430px;
  }
  .about-photos>img {
    height: 380px;
  }
  .about-text {
    text-align: center;
  }
  .about-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .mini-rule {
    margin: 25px auto;
  }
  .gallery-head {
    display: block;
    text-align: center;
  }
  .gallery {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px;
  }
  .tile {
    aspect-ratio: 4/5;
  }
  .filters {
    justify-content: center;
  }
  .location {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .location-photo {
    height: 320px;
  }
  .location p {
    margin-left: auto;
    margin-right: auto;
  }
  .social-card {
    padding: 20px 0;
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
  h1 {
    font-size: clamp(3rem,12vw,4.8rem);
  }
}


/* ============================================================
   17. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .tile img,.pill {
    transition: none;
  }
}


/* ============================================================
   18. ANCHOR SCROLLING & LOAD MORE
   ============================================================ */

html {
  scroll-padding-top: 110px;
}

section[id] {
  scroll-margin-top: 110px;
}

#loadMoreCakes {
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  margin-right: 9px;
}

#loadMoreCakes[hidden] {
  display: none;
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}


/* ============================================================
   16. MOBILE STYLES (650px and below)
   ============================================================ */

@media (max-width:650px) {
  html {
    scroll-padding-top: 90px;
  }
  section[id] {
    scroll-margin-top: 90px;
  }
}


/* ============================================================
   19. VECTOR ICON STYLING
   ============================================================ */

.arrow-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  flex-shrink: 0;
}

.pill .arrow-icon {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
}

.hero-visual .decor {
  position: absolute;
  right: 6%;
  bottom: 3%;
  width: 74px;
  height: 74px;
  opacity: .85;
  pointer-events: none;
  object-fit: contain;
}

.divider-band .band-star {
  display: inline-flex;
  margin: 0 24px;
  vertical-align: middle;
  align-items: center;
}

.divider-band .band-star img {
  width: 15px;
  height: 15px;
  display: block;
  filter: brightness(1.18);
}


/* ============================================================
   16. MOBILE STYLES (650px and below)
   ============================================================ */

@media (max-width:650px) {
  .hero-visual .decor {
    width: 58px;
    height: 58px;
    right: 5%;
    bottom: 5%;
  }
  .divider-band .band-star {
    margin: 0 8px;
  }
  .divider-band .band-star img {
    width: 11px;
    height: 11px;
  }
}
