:root{
  --bg:#f3f5f0;
  --text:#1c1f1a;
  --muted:#5a6357;
  --accent:#2c4a33;
  --accent2:#3c6245;
  --overlay: rgba(140, 156, 120, 0.18);
  --overlay-strong: rgba(140, 156, 120, 0.26);
  --card: rgba(255,255,255,0.78);
  --border: rgba(28,31,26,0.10);
  --shadow: 0 10px 30px rgba(0,0,0,0.10);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
}
a{color:inherit}
.container{width:min(1100px,92%); margin:0 auto}
.muted{color:var(--muted)}

.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(243,245,240,0.7);
  border-bottom:1px solid var(--border);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; gap:10px; align-items:baseline; text-decoration:none}
.brand__name{font-weight:700; color:var(--accent)}
.brand__sep{color:var(--muted)}
.brand__tag{color:var(--muted)}
.tel{font-weight:600; text-decoration:none}
.tel:hover{text-decoration:underline}

/* Tap-friendly header */
.topbar__inner{padding:16px 0}
.brand{padding:6px 8px; border-radius:10px}
.brand:active{background: rgba(140,156,120,0.18)}
.tel{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(44,74,51,0.18);
  background: rgba(255,255,255,0.65);
}
.tel:active{background: rgba(255,255,255,0.85)}

.hero{
  position:relative;
  min-height: 560px;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero__bg{
  pointer-events:none;
  position:absolute; inset:0;
  background-image:url("hero.png");
  background-size:cover;
  background-position:center;
  filter: saturate(0.95) contrast(0.95);
  transform: scale(1.02);
}
.hero__overlay{
  pointer-events:none;
  position:absolute; inset:0;
  background: linear-gradient(90deg, var(--overlay-strong) 0%, var(--overlay) 55%, rgba(255,255,255,0.0) 100%);
}
.hero__content{
  position:relative;
  padding:60px 0;
  max-width: 820px;
}
.hero h1{
  margin:0 0 14px 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height:1.05;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.hero__text p{
  margin:10px 0;
  color: rgba(255,255,255,0.92);
  font-size: 16.5px;
  text-shadow: 0 6px 16px rgba(0,0,0,0.20);
}
.hero__cta{margin-top:18px; display:flex; gap:10px; flex-wrap:wrap}

.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:10px;
  background: rgba(44,74,51,0.85);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  border:1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}
.btn:hover{background: rgba(44,74,51,0.95)}
.btn--ghost{
  background: rgba(255,255,255,0.70);
  color: var(--accent);
  border:1px solid rgba(44,74,51,0.30);
}
.btn--ghost:hover{background: rgba(255,255,255,0.85)}

.section{padding:54px 0}
.section--alt{background: rgba(140,156,120,0.12)}
h2{
  margin:0 0 18px 0;
  font-size: 28px;
  color: var(--accent);
}
h3{margin:18px 0 10px; color:var(--accent)}

.cards{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
  gap:16px;
}

.card{
  text-align:left;
  width:100%;
  border:1px solid var(--border);
  background: var(--card);
  border-radius:14px;
  padding:16px 16px 12px;
  box-shadow: var(--shadow);
  cursor:pointer;
}
.card:hover{transform: translateY(-1px)}
.card__title{font-weight:800; margin-bottom:8px; color: var(--accent)}
.card__text ul{margin:0; padding-left:18px; color: var(--text)}
.card__text li{margin:6px 0}
.card__hint{margin-top:10px; color: var(--muted); font-size:13px}

.about{
  display:grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap:20px;
  align-items:start;
}
.about__text p{margin:0 0 10px 0}
.photo-placeholder{
  height: 220px;
  border-radius:14px;
  border:1px dashed rgba(28,31,26,0.25);
  background: rgba(255,255,255,0.60);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
}

.contact{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:18px;
  align-items:start;
}
.contact__line{margin:0 0 10px 0}
.contact__form{
  border:1px solid var(--border);
  background: rgba(255,255,255,0.75);
  border-radius:14px;
  padding:14px;
}
.contact__note p{margin:0 0 10px 0}

.footer{
  padding:22px 0;
  background: rgba(140,156,120,0.18);
  border-top:1px solid var(--border);
}
.footer__inner{display:flex; flex-direction:column; gap:10px}
.footer__nav a{color: var(--accent); text-decoration:none; font-weight:700}
.footer__nav a:hover{text-decoration:underline}
.sep{margin:0 10px; color: rgba(28,31,26,0.35)}
.footer__copy{color: var(--muted); font-size:13.5px}

/* Gallery page */
.gallery-controls{
  display:flex;
  gap:12px;
  align-items:end;
  justify-content:space-between;
  flex-wrap:wrap;
  margin: 10px 0 18px;
}
.select{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 260px;
}
.select__label{font-weight:800; color:var(--accent)}
select{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.75);
  font-weight:700;
}
.gallery-actions{display:flex; gap:10px; flex-wrap:wrap}
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
}
.gthumb{
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(255,255,255,0.75);
  box-shadow: var(--shadow);
  padding:0;
  cursor:pointer;
  overflow:hidden;
}
.gthumb img{
  display:block;
  width:100%;
  height:160px;
  object-fit:cover;
}

/* MODAL */
.modal{position:fixed; inset:0; display:none; z-index:50}
.modal.is-open{display:block}
.modal__backdrop{position:absolute; inset:0; background: rgba(0,0,0,0.45)}
.modal__panel{
  position:relative;
  width:min(980px, 92%);
  margin:5vh auto;
  background: rgba(255,255,255,0.92);
  border-radius:16px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.35);
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.12);
}
.modal__close{
  position:absolute; top:10px; right:12px;
  width:38px; height:38px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.85);
  cursor:pointer;
  font-size:22px;
}
.modal__head{
  padding:14px 16px;
  display:flex; justify-content:space-between; align-items:center;
  border-bottom:1px solid rgba(0,0,0,0.10);
}
.modal__title{font-weight:900; color: var(--accent)}
.modal__counter{color: var(--muted); font-weight:700}
.modal__body{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(140,156,120,0.10);
  min-height: 420px;
}
.modal__img{
  max-width: 100%;
  max-height: 78vh;
  object-fit:contain;
  padding:10px;
}
.modal__nav{
  position:absolute; top:50%;
  transform:translateY(-50%);
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  cursor:pointer;
  font-size:28px;
  line-height:1;
}
.modal__nav--prev{left:10px}
.modal__nav--next{right:10px}

.modal__thumbs{
  display:flex;
  gap:10px;
  padding:12px 12px 14px;
  overflow:auto;
  border-top:1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.70);
}
.thumb{
  width:96px; height:62px;
  border-radius:10px;
  border:2px solid transparent;
  object-fit:cover;
  cursor:pointer;
  background:#fff;
}
.thumb.is-active{border-color: var(--accent2)}

@media (max-width: 860px){
  .about, .contact{grid-template-columns: 1fr}
  .hero{min-height: 520px}
  .hero__overlay{
  pointer-events:none;background: linear-gradient(180deg, var(--overlay-strong) 0%, var(--overlay) 62%, rgba(255,255,255,0.0) 100%)}
}


@media (max-width: 520px){
  .topbar__inner{gap:10px; flex-wrap:wrap}
  .topbar__right{width:100%}
  .tel{width:100%; text-align:center}
}


/* === Mobile polish (Chrome + Samsung Internet) === */

/* Stronger header background for contrast */
.topbar{
  background: rgba(245,247,240,0.96);
  backdrop-filter: blur(6px);
}

/* Ensure hero content never sits under browser UI */
.hero__content{padding-top: clamp(90px, 18vw, 140px)}

/* Improve footer link contrast on hero area */
.hero .footer__nav a,
.hero a.footer-link{
  color: #1f3a26;
  font-weight: 500;
}

/* Footer links on mobile: bigger tap targets */
.footer__nav a{
  padding: 8px 6px;
  display: inline-block;
}

/* Avoid overlap with browser UI elements */
@media (max-width: 520px){
  .hero__cta{margin-bottom: 24px}
}

/* Make all links clearly tappable */
a{ -webkit-tap-highlight-color: rgba(46,74,51,0.25); }

/* Modal helpers */
.modal__empty{
  margin: 10px auto 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(44,74,51,0.18);
  text-align: center;
  max-width: 520px;
}
.modal__footer{
  display:flex;
  justify-content:center;
  padding: 12px 0 4px;
}

/* About photo */
.about__img{
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  border: 1px solid rgba(44,74,51,0.16);
  background: rgba(255,255,255,0.55);
  object-fit: cover;
}
@media (max-width: 520px){
  .about__img{max-width: 100%;}
}


/* Fullscreen toggle for modal image */
.modal.is-fullscreen .modal__panel{
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
}
.modal.is-fullscreen .modal__body{
  height: calc(100vh - 170px);
}
.modal.is-fullscreen .modal__img{
  max-width: 100vw;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.modal__img{ cursor: zoom-in; }
.modal.is-fullscreen .modal__img{ cursor: zoom-out; }


/* Fullscreen fix (true edge-to-edge) */
.modal.is-fullscreen .modal__panel{
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
}
.modal.is-fullscreen .modal__body{
  height: calc(100vh - 170px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal.is-fullscreen .modal__img{
  max-width: 100vw;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
