:root {
  --green: #075b25;
  --green-dark: #034319;
  --blue: #0b3975;
  --orange: #ff8c00;
  --cream: #fff8e7;
  --ink: #173126;
  --muted: #617068;
  --white: #fff;
  --shadow: 0 18px 45px rgba(15, 52, 35, .12);
  --container: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Poppins, Arial, sans-serif; font-size: 15px; line-height: 1.75; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px; background: var(--blue); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; color: white; background: linear-gradient(180deg, rgba(2,20,12,.62), rgba(2,20,12,.28) 72%, transparent); }
.contact-bar { min-height: 118px; display: grid; grid-template-columns: 1fr 280px 1fr; align-items: center; gap: 28px; }
.brand { justify-self: center; width: 250px; height: 108px; padding-inline: 8px; }
.brand img, .mobile-brand img { width: 100%; height: 100%; object-fit: contain; }
.contact-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: white; width: max-content; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.contact-email { justify-self: end; }
.contact-item small { display: block; color: rgba(255,255,255,.75); text-transform: uppercase; font-size: 10px; letter-spacing: .12em; line-height: 1.4; }
.contact-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: white; display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.main-nav { background: rgba(1,25,13,.22); border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.15); }
.main-nav.is-sticky { position: fixed; z-index: 1000; top: 0; right: 0; left: 0; background: rgba(2,40,54,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nav-inner { min-height: 58px; display: flex; align-items: center; justify-content: center; position: relative; }
.nav-links { list-style: none; display: flex; align-items: stretch; justify-content: center; padding: 0; margin: 0; min-height: 58px; }
.nav-links a { position: relative; display: flex; align-items: center; min-height: 58px; padding: 0 34px; color: white; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.nav-links a::after { content: ''; position: absolute; left: 34px; right: 34px; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transition: transform .25s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a.active::after { transform: scaleX(1); }
.mobile-brand, .menu-toggle { display: none; }

.hero { position: relative; height: clamp(540px, 49vw, 700px); display: grid; place-items: center; overflow: hidden; background: #0b3975; }
.slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1s cubic-bezier(.4, 0, .2, 1), transform 2s ease-out;
  will-change: opacity, transform;
}
.slide.active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,30,16,.42), rgba(5,30,49,.23), rgba(1,30,16,.42)); }
.hero-content { z-index: 2; max-width: 760px; padding: 165px 24px 24px; text-align: center; color: white; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.hero-content h1 { margin: 2px 0 8px; font-size: clamp(38px, 5vw, 66px); line-height: 1.12; letter-spacing: .045em; text-transform: uppercase; }
.hero-content > p:last-child { margin: 0; font-size: clamp(15px, 1.5vw, 20px); }
.eyebrow { margin: 0; color: #ffbd69; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.memories-hero { height: clamp(520px, 45vw, 650px); background: url('../assets/AboutBackground/Image4.png') center 58%/cover no-repeat; }

.section-space { padding: 100px 0; }
.profile-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(46px, 6vw, 84px); align-items: center; }
.profile-visual { position: relative; }
.profile-visual::before { content: ''; position: absolute; inset: -18px 54% 45% -18px; z-index: -1; background: var(--cream); border-radius: 22px; }
.profile-visual img { width: 100%; height: 610px; object-fit: cover; object-position: 58% center; border-radius: 8px 80px 8px 8px; box-shadow: var(--shadow); }
.since-badge {
  position: absolute;
  right: -34px;
  bottom: 20px;
  width: min(195px, 48%);
  min-height: 110px;
  padding: 15px 17px 14px 27px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  background:
    radial-gradient(circle at 8% 12%, rgba(81,213,239,.34), transparent 25%),
    linear-gradient(135deg, #0b6f9f 0%, #075b91 48%, #063f71 100%);
  color: white;
  border: 0;
  border-radius: 4px 4px 19px 4px;
  clip-path: polygon(8% 2%, 100% 0, 100% 100%, 5% 98%, 0 88%, 4% 77%, 0 66%, 5% 55%, 1% 43%, 6% 30%, 2% 18%);
  box-shadow:
    0 9px 18px rgba(6,45,72,.32),
    inset 0 1px 0 rgba(255,255,255,.2);
  transform: rotate(-1deg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.since-badge::after {
  content: '';
  position: absolute;
  inset: 10px 12px 21px 21px;
  border: 1px dashed rgba(255,255,255,.72);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(8deg);
  pointer-events: none;
}
.since-badge:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 23px 40px rgba(6,45,72,.38), inset 0 1px 0 rgba(255,255,255,.24);
}
.since-badge strong, .since-badge span { position: relative; z-index: 1; display: block; }
.since-badge strong { margin: -1px 0 1px; font-size: clamp(31px, 3.5vw, 46px); font-style: italic; font-weight: 700; line-height: .95; letter-spacing: -.06em; text-shadow: 2px 3px 0 rgba(0,37,68,.28); }
.since-kicker { margin-left: 2px; color: #82e5f4; font-size: 6px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.since-kicker b { display: inline-grid; width: 13px; height: 13px; margin-right: 4px; place-items: center; border-radius: 50%; background: #42c7e8; color: white; font-size: 7px; }
.since-caption { align-self: stretch; margin-left: -6px; padding: 4px 9px 4px 11px; background: #42c7e8; color: #063f71; clip-path: polygon(3% 8%, 100% 0, 96% 48%, 100% 88%, 2% 100%, 0 55%); font-size: 7px; font-weight: 700; line-height: 1.3; letter-spacing: .09em; text-align: center; text-transform: uppercase; }
.section-kicker { margin: 0 0 7px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.profile-copy > h2, .section-heading h2 { margin: 0; color: var(--green); font-size: clamp(28px, 3vw, 40px); line-height: 1.25; font-weight: 600; }
.title-rule { width: 72px; height: 3px; margin: 20px 0 26px; background: linear-gradient(90deg, var(--orange) 65%, var(--green) 65%); }
.profile-copy h3 { margin: 0; color: var(--blue); font-size: 18px; }
.profile-copy .subheading { margin: 0 0 16px; color: var(--muted); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.profile-copy .subheading span { color: var(--orange); }
.profile-copy > p { color: var(--muted); }
.promise-block { margin-top: 24px; padding-left: 20px; border-left: 3px solid #e7eee9; }
.promise-block h3 { font-size: 16px; }
.promise-block p { margin: 6px 0 0; color: var(--muted); }

.highlights { padding: 38px 0; background: var(--cream); border-block: 1px solid #f1e8d0; }
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.highlight-grid article { display: flex; gap: 15px; align-items: center; padding: 12px 32px; border-right: 1px solid #e5dabe; }
.highlight-grid article:last-child { border: 0; }
.highlight-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--green); font-size: 22px; box-shadow: 0 5px 15px rgba(7,91,37,.1); }
.highlight-grid h3 { margin: 0; color: var(--blue); font-size: 15px; }
.highlight-grid p { margin: 1px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.gallery-section { background: linear-gradient(180deg, #fff, #fffaf0); }
.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading .title-rule { margin-inline: auto; }
.section-heading > p:last-child { color: var(--muted); margin-bottom: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item { position: relative; height: 285px; padding: 0; border: 0; border-radius: 12px; background: #e8eee9; cursor: zoom-in; overflow: hidden; box-shadow: 0 10px 28px rgba(21,53,35,.11); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.gallery-item::after { content: 'View'; position: absolute; inset: auto 16px 16px auto; padding: 7px 13px; border-radius: 20px; background: rgba(255,255,255,.9); color: var(--green); font-size: 11px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: .3s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.045); filter: brightness(.82); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }
.gallery-item:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.lightbox { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 58px 100px 35px; background: rgba(2,15,9,.95); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; justify-items: center; }
.lightbox-image { max-width: min(1200px, 100%); max-height: calc(100vh - 120px); object-fit: contain; box-shadow: 0 15px 50px rgba(0,0,0,.38); }
.lightbox-count { margin-top: 10px; color: rgba(255,255,255,.8); font-size: 13px; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.08); color: white; cursor: pointer; line-height: 1; transition: background .2s ease; }
.lightbox-close:hover, .lightbox-nav:hover, .lightbox button:focus-visible { background: var(--orange); outline: none; }
.lightbox-close { top: 18px; right: 22px; font-size: 34px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 42px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-open { overflow: hidden; }

.site-footer { padding-top: 62px; background: #167eac; color: rgba(255,255,255,.9); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .7fr 1fr .7fr; gap: 46px; padding-bottom: 54px; }
.site-footer h2, .site-footer h3 { color: white; }
.site-footer h2 { margin: 0; font-size: 25px; text-transform: uppercase; letter-spacing: .05em; }
.site-footer h3 { margin: 4px 0 16px; font-size: 14px; }
.site-footer p { margin: 4px 0; }
.site-footer a { display: block; width: fit-content; margin: 7px 0; font-size: 13px; overflow-wrap: anywhere; }
.site-footer a:hover, .site-footer a:focus-visible { color: #ffc066; }
.footer-brand p { color: #ffc066; font-weight: 500; }
.footer-brand span { font-size: 12px; }
.footer-bottom { padding: 17px 0; background: #0b5f8c; text-align: center; font-size: 12px; }

@media (max-width: 900px) {
  .contact-bar { grid-template-columns: 1fr 220px 1fr; gap: 12px; }
  .brand { width: 210px; height: 96px; }
  .contact-item { font-size: 12px; }
  .contact-icon { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-visual { max-width: 680px; }
  .profile-visual img { height: 470px; }
  .since-badge { right: 12px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { height: 270px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .highlight-grid article { border-right: 0; border-bottom: 1px solid #e5dabe; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 30px, 680px); }
  .contact-bar { display: none; }
  .site-header { background: linear-gradient(180deg, rgba(2,20,12,.7), rgba(2,20,12,.3)); }
  .main-nav { background: rgba(1,25,13,.32); border-top: 0; }
  .nav-inner { min-height: 68px; justify-content: space-between; }
  .mobile-brand { display: block; width: 116px; height: 58px; }
  .menu-toggle { display: flex; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 4px; background: rgba(255,255,255,.1); cursor: pointer; }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: white; }
  .nav-links { position: absolute; top: 100%; left: 15px; right: 15px; display: block; min-height: 0; padding: 8px; background: white; border-radius: 0 0 8px 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s ease; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { min-height: 50px; padding: 0 17px; color: #111; border-radius: 0; text-shadow: none; }
  .nav-links a.active { background: transparent; color: #111; }
  .nav-links a:hover, .nav-links a:focus-visible { background: transparent; color: #000; }
  .nav-links a::after { display: none; }
  .hero { height: 500px; }
  .memories-hero { height: 480px; }
  .hero-content { padding-top: 80px; }
  .section-space { padding: 72px 0; }
  .profile-visual img { height: 410px; border-radius: 8px 55px 8px 8px; }
  .gallery-item { height: 250px; }
  .lightbox { padding: 65px 18px 80px; }
  .lightbox-nav { top: auto; bottom: 18px; transform: none; }
  .lightbox-prev { left: calc(50% - 62px); }
  .lightbox-next { right: calc(50% - 62px); }
}

@media (max-width: 560px) {
  .hero { height: 460px; }
  .hero-content h1 { font-size: 38px; }
  .profile-visual img { height: 330px; }
  .since-badge { right: 8px; bottom: 14px; width: min(170px, 50%); min-height: 98px; padding: 13px 14px 12px 23px; }
  .gallery { grid-template-columns: 1fr; gap: 18px; }
  .gallery-item { height: min(75vw, 340px); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-top: 48px; }
}

@media (max-width: 360px) {
  :root { --container: calc(100% - 24px); }
  .hero { height: 430px; }
  .hero-content { padding-inline: 12px; }
  .hero-content h1 { font-size: 32px; }
  .profile-visual img { height: 290px; }
  .since-badge { position: relative; right: auto; bottom: auto; width: 150px; min-height: 90px; margin: -30px 8px 0 auto; padding: 11px 12px 11px 21px; transform: rotate(-1deg); }
  .section-space { padding: 60px 0; }
  .profile-copy > h2, .section-heading h2 { font-size: 26px; }
  .highlight-grid article { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
