/* ios-theme.css — iOS look + Masonry + opacity hover + responsive mobile fixes */
:root{
  --ios-bg: #f5f5f7;
  --ios-card-bg: #ffffff;
  --ios-radius: 20px;
  --ios-shadow: 0 8px 24px rgba(0,0,0,.06);
}

*{box-sizing:border-box}

html, body{ height: auto; min-height: 100%; }
body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--ios-bg);
  color:#111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a.link-simple{ color: #111; text-decoration: none; opacity:.85; }
a.link-simple:hover{ opacity:1; }

/* Sticky header */
.ios-header{
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Hero */
.hero-parallax{
  height: 500px;
  position: relative;
  background-color: #dfe3ea;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* JS parallax handles motion */
  filter: saturate(.95) contrast(.98) brightness(.98);
  will-change: background-position;
}
/* Small phones: slightly lower hero height */
@media (max-width: 480px){
  .hero-parallax{ height: 380px; }
}

.hero-parallax::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.70), rgba(255,255,255,.50));
}
.hero-inner{
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
}
.hero-title{
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(42px, 9vw, 110px);
  line-height: 1;
  color: #111;
  text-shadow: 0 1px 2px rgba(255,255,255,.35), 0 10px 30px rgba(0,0,0,.15);
  margin: 0;
}

/* Hero logo (PNG) */
.hero-logo{
  max-height: 120px;
  width: auto;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.18));
  image-rendering: auto;
}
@media (min-width: 576px){
  .hero-logo{ max-height: 150px; }
}
@media (min-width: 992px){
  .hero-logo{ max-height: 200px; }
}

/* Gallery section */
.gallery-ios{
  padding: 24px 0 40px;
  background: var(--ios-bg);
}
.gallery-ios .container{
  max-width: 1100px;
}

/* Filter pills — mobile friendly (scrollable when many) */
.ios-pillbar{
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: .5rem;
  padding-bottom: .25rem;
  scrollbar-width: thin;
}
.ios-pillbar::-webkit-scrollbar{ height: 6px; }
.ios-pillbar::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.15); border-radius: 999px; }
.ios-pillbar .btn{
  flex: 0 0 auto;
  border-radius: 999px !important;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  padding: .4rem .9rem;
  transition: background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.ios-pillbar .btn.active,
.ios-pillbar .btn:hover{
  background: #f0f0f2;
  border-color: rgba(0,0,0,.12);
}

/* Cards */
.ios-card{
  background: var(--ios-card-bg);
  border-radius: var(--ios-radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.shadow-soft{ box-shadow: var(--ios-shadow); }
.ios-card:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.09); }

/* Images */
.ios-img{
  display:block; width:100%; height:auto;
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
.ios-card:hover .ios-img{
  opacity: 1;
  transform: scale(1.01);
}

/* Masonry via CSS columns */
.masonry{
  column-gap: 1rem;
  column-count: 1;
}
@media (min-width: 576px){ .masonry{ column-count: 2; } }
@media (min-width: 992px){ .masonry{ column-count: 3; } }

.masonry-item{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
}

/* Neutralize harsh Mobirise defaults if present */
[class^="cid-"], [class*=" cid-"]{
  background-color: transparent !important;
}
