/*
Theme Name: VanaFoto Theme
Theme URI: https://www.vanafoto.ee/
Author: Rait Tõnnori
Author URI: https://www.vanafoto.ee/
Description: Kohandatud WordPressi teema VanaFoto.ee jaoks.
Version: 1.0
Text Domain: vanafoto
*/


:root{
  --bg:#fff;
  --ink:#161616;
  --muted:#6b7280;
  --line:rgba(0,0,0,.08);
  --card:#fff;
  --paper:#f6efe6;
  --accent:#b7791f;
  --accent2:#2f6f8f;
  --shadow:0 18px 55px rgba(0,0,0,.08);
  --shadow-soft:0 10px 30px rgba(0,0,0,.06);
  --radius:18px;
  --radius-lg:26px;
}

*{box-sizing:border-box;}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  overflow-x:hidden;
}

.vf-heading{
  font-family:"Playfair Display",serif;
  letter-spacing:.2px;
}

.vf-muted{
  color:var(--muted);
}

.vf-nav{
  backdrop-filter:blur(10px);
  background:rgba(255,255,255,.86);
  border-bottom:1px solid var(--line);
}

.vf-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
  text-decoration:none;
}

.vf-logo{
  width:38px;
  height:38px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--paper),rgba(183,121,31,.18));
  display:grid;
  place-items:center;
  border:1px solid rgba(183,121,31,.22);
}

.vf-logo-sm{
  width:42px;
  height:42px;
}

.vf-logo-contact{
  width:44px;
  height:44px;
}

.vf-pill{
  border:1px solid var(--line);
  border-radius:999px;
  padding:.55rem .9rem;
  background:rgba(255,255,255,.8);
}

.vf-btn{
  border-radius:999px;
  padding:.75rem 1.05rem;
  font-weight:650;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:var(--shadow-soft);
}

.vf-btn-primary{
  background:linear-gradient(135deg,rgba(183,121,31,.95),rgba(183,121,31,.78));
  border:1px solid rgba(183,121,31,.35);
  color:#fff;
}

.vf-btn-primary:hover{
  filter:brightness(.98);
  color:#fff;
}

.vf-btn-ghost{
  background:#fff;
}

.vf-btn-ghost:hover{
  background:rgba(0,0,0,.02);
}

.vf-hero{
  position:relative;
  padding:92px 0 34px;
}

.vf-hero::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-120px;
  height:560px;
  background:
    radial-gradient(650px 260px at 20% 35%, rgba(183,121,31,.15), transparent 60%),
    radial-gradient(560px 240px at 80% 42%, rgba(47,111,143,.13), transparent 62%),
    radial-gradient(980px 420px at 50% 0%, rgba(0,0,0,.06), transparent 70%);
  pointer-events:none;
  z-index:0;
}

.vf-hero .container{
  position:relative;
  z-index:1;
}

.vf-hero-card{
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(255,255,255,.74));
  box-shadow:var(--shadow);
  overflow:hidden;
}

.vf-hero-title{
  font-size:clamp(30px,4.2vw,52px);
  line-height:1.05;
  margin:16px 0 12px;
}

.vf-hero-sub{
  font-size:1.05rem;
  color:var(--muted);
  max-width:60ch;
}

.vf-kpi{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.vf-kpi .vf-pill{
  display:flex;
  align-items:center;
  gap:10px;
  padding:.65rem .9rem;
}

.vf-kpi i{
  color:var(--accent);
}

.vf-hero-right{
  padding:22px;
  height:100%;
  background:
    radial-gradient(500px 200px at 70% 30%, rgba(183,121,31,.10), transparent 60%),
    radial-gradient(520px 220px at 30% 55%, rgba(47,111,143,.10), transparent 65%);
  border-left:1px solid var(--line);
}

.vf-section{
  padding:58px 0;
}

.vf-section-soft{
  background:rgba(246,239,230,.35);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.vf-section-blue{
  background:rgba(47,111,143,.05);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.vf-section-title{
  font-size:clamp(24px,3vw,34px);
  margin:0 0 10px;
}

.vf-card{
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:var(--card);
  box-shadow:var(--shadow-soft);
}

.vf-card-header{
  padding:16px 16px 0;
}

.vf-card-body{
  padding:16px;
}

.vf-ba{
  --pos:50%;
  position:relative;
  width:100%;
  height:320px;
  border-radius:16px;
  overflow:hidden;
  background:#f6f6f6;
  border:1px solid rgba(0,0,0,.06);
  user-select:none;
  cursor:ew-resize;
  touch-action:pan-y;
}

.vf-ba img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  pointer-events:none;
  -webkit-user-drag:none;
  user-drag:none;
}

.vf-ba .vf-ba-before-img{
  z-index:1;
}

.vf-ba .vf-ba-after-img{
  z-index:2;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.vf-ba .vf-ba-label{
  position:absolute;
  top:12px;
  padding:.35rem .6rem;
  border-radius:999px;
  font-weight:800;
  font-size:.8rem;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.88);
  z-index:6;
  color:#000;
  pointer-events:none;
}

.vf-ba .vf-ba-label.before{
  left:12px;
}

.vf-ba .vf-ba-label.after{
  right:12px;
}

.vf-ba .vf-ba-handle{
  position:absolute;
  top:0;
  bottom:0;
  left:var(--pos);
  width:2px;
  background:rgba(255,255,255,.90);
  box-shadow:0 0 0 1px rgba(0,0,0,.18);
  transform:translateX(-1px);
  z-index:5;
  pointer-events:none;
}

.vf-ba .vf-ba-knob{
  position:absolute;
  top:50%;
  left:var(--pos);
  transform:translate(-50%,-50%);
  width:46px;
  height:46px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(0,0,0,.14);
  display:grid;
  place-items:center;
  box-shadow:var(--shadow-soft);
  z-index:6;
  pointer-events:none;
}

.vf-ba .vf-ba-open{
  position:absolute;
  right:12px;
  bottom:12px;
  border-radius:999px;
  padding:.55rem .75rem;
  background:rgba(0,0,0,.74);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  font-weight:650;
  display:flex;
  align-items:center;
  gap:8px;
  z-index:7;
  pointer-events:auto;
  cursor:pointer;
}

.vf-ba .vf-ba-open:hover{
  background:rgba(0,0,0,.82);
}

.vf-tile{
  height:100%;
  padding:18px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:linear-gradient(180deg,#fff,rgba(246,239,230,.35));
  box-shadow:var(--shadow-soft);
}

.vf-tile i{
  font-size:1.25rem;
  color:var(--accent2);
  width:42px;
  height:42px;
  border-radius:14px;
  background:rgba(47,111,143,.10);
  display:grid;
  place-items:center;
  border:1px solid rgba(47,111,143,.20);
  margin-bottom:10px;
}

.vf-price{
  padding:20px;
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
  height:100%;
}

.vf-price .tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  font-size:.8rem;
  padding:.35rem .6rem;
  border-radius:999px;
  border:1px solid rgba(183,121,31,.25);
  background:rgba(246,239,230,.6);
  color:#3a2a22;
}

.vf-price .amount{
  font-size:2rem;
  font-weight:850;
  letter-spacing:-.5px;
  margin:10px 0 2px;
}

.vf-price ul{
  margin:12px 0 0;
  padding-left:0;
  list-style:none;
}

.vf-price li{
  display:flex;
  gap:10px;
  padding:6px 0;
  color:var(--muted);
}

.vf-price li i{
  color:var(--accent);
}

.accordion-item{
  border:1px solid var(--line);
  border-radius:16px !important;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  background:#fff;
}

.accordion-button:focus{
  box-shadow:0 0 0 .2rem rgba(183,121,31,.12);
  border-color:rgba(183,121,31,.45);
}

.vf-contact{
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  background:
    radial-gradient(520px 220px at 18% 40%, rgba(183,121,31,.10), transparent 65%),
    radial-gradient(520px 240px at 85% 25%, rgba(47,111,143,.10), transparent 70%),
    #fff;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.vf-contact-side{
  border-left:1px solid var(--line);
  background:rgba(255,255,255,.7);
}

.vf-input{
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  padding:.85rem .95rem;
}

.vf-input:focus{
  border-color:rgba(183,121,31,.45);
  box-shadow:0 0 0 .2rem rgba(183,121,31,.12);
}

.vf-profile-img{
  width:78px;
  height:78px;
  object-fit:cover;
  border-radius:50%;
  border:1px solid var(--line);
}

.vf-profile-name{
  font-size:1.08rem;
}

.vf-footer{
  border-top:1px solid var(--line);
  background:rgba(246,239,230,.35);
  padding:34px 0;
}

.vf-footer a{
  color:inherit;
  text-decoration:none;
}

.vf-footer a:hover{
  text-decoration:underline;
}

.vf-modal .modal-content{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:#0b0b0c;
  color:#fff;
}

.vf-modal .vf-modal-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  gap:10px;
  flex-wrap:wrap;
}

.vf-modal .vf-navbtn{
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:.55rem .8rem;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:650;
  cursor:pointer;
}

.vf-modal .vf-navbtn:hover{
  background:rgba(255,255,255,.10);
}

.vf-ba.vf-ba--modal{
  height:88vh;
  border-radius:0;
  border:0;
  cursor:ew-resize;
  touch-action:pan-y;
}

.vf-ba.vf-ba--modal img{
  object-fit:contain;
  background:#0b0b0c;
}

#vfModalTitle,
.vf-modal-help{
  color:rgba(255,255,255,.75);
}

.vf-modal-bottom{
  border-top:1px solid rgba(255,255,255,.08);
}

@media (max-width: 991px){
  .vf-hero{
    padding-top:78px;
  }

  .vf-hero-right{
    border-left:0;
    border-top:1px solid var(--line);
  }

  .vf-ba{
    height:260px;
  }

  .vf-ba.vf-ba--modal{
    height:72vh;
  }

  .vf-contact-side{
    border-left:0;
    border-top:1px solid var(--line);
  }
}


/* Tehtud tööd archive */
.post-type-archive-vf_work .vf-card img,
.tax-vf_work_category .vf-card img{
  max-width:100%;
  height:auto;
}

.manage-column.column-before_image img,
.manage-column.column-after_image img{
  border-radius:8px;
  border:1px solid #ddd;
  background:#fff;
  padding:2px;
}



/* Teenused landing */
.vf-hero-sm{
  padding-bottom:24px;
}

.vf-service-card{
  position:relative;
  height:100%;
  padding:22px;
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  background:linear-gradient(180deg,#fff,rgba(246,239,230,.35));
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.vf-service-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}

.vf-service-card.is-featured{
  border-color:rgba(183,121,31,.28);
  background:
    radial-gradient(340px 140px at 80% 15%, rgba(183,121,31,.10), transparent 60%),
    linear-gradient(180deg,#fff,rgba(246,239,230,.55));
}

.vf-service-badge{
  position:absolute;
  top:16px;
  right:16px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:.35rem .65rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
  background:rgba(183,121,31,.10);
  border:1px solid rgba(183,121,31,.22);
  color:#6b4a13;
}

.vf-service-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:rgba(47,111,143,.10);
  border:1px solid rgba(47,111,143,.18);
  font-size:1.45rem;
  color:var(--accent2);
  margin-bottom:14px;
}

.vf-service-title{
  font-size:1.35rem;
  font-weight:700;
  margin:0 0 6px;
}

.vf-service-subtitle{
  color:var(--accent);
  font-weight:600;
  margin-bottom:10px;
}

.vf-service-text{
  color:var(--muted);
  line-height:1.55;
  font-size:.96rem;
}

.vf-service-bottom{
  margin-top:auto;
  padding-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.vf-service-price{
  font-size:1.2rem;
  font-weight:800;
  color:var(--ink);
}

/* Teenuste tabelvaade */
.vf-services-table-wrap{
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}

.vf-services-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:0;
}

.vf-services-table thead th{
  background:rgba(246,239,230,.65);
  color:var(--ink);
  font-size:.92rem;
  font-weight:700;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}

.vf-services-table tbody td{
  padding:20px;
  vertical-align:middle;
  border-bottom:1px solid rgba(0,0,0,.06);
  background:#fff;
}

.vf-services-table tbody tr:last-child td{
  border-bottom:0;
}

.vf-services-table tbody tr.is-featured td{
  background:
    radial-gradient(260px 120px at 100% 0%, rgba(183,121,31,.06), transparent 60%),
    #fff;
}

.vf-services-table-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:rgba(47,111,143,.10);
  border:1px solid rgba(47,111,143,.18);
  color:var(--accent2);
  font-size:1.2rem;
}

.vf-services-table-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:4px;
}

.vf-services-table-title{
  font-size:1.1rem;
  font-weight:700;
  margin:0;
  line-height:1.25;
}

.vf-services-table-title a{
  color:var(--ink);
  text-decoration:none;
}

.vf-services-table-title a:hover{
  color:var(--accent);
}

.vf-services-table-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:.28rem .58rem;
  border-radius:999px;
  font-size:.74rem;
  font-weight:700;
  color:#6b4a13;
  background:rgba(183,121,31,.10);
  border:1px solid rgba(183,121,31,.22);
}

.vf-services-table-subtitle{
  color:var(--accent);
  font-weight:600;
  margin-bottom:4px;
  font-size:.95rem;
}

.vf-services-table-category{
  color:var(--muted);
  font-size:.82rem;
}

.vf-services-table-description{
  color:var(--muted);
  line-height:1.55;
  font-size:.95rem;
  max-width:560px;
}

.vf-services-table-price{
  font-size:1.05rem;
  font-weight:800;
  color:var(--ink);
  white-space:nowrap;
}

.vf-services-table-btn{
  white-space:nowrap;
}

@media (max-width: 991px){
  .vf-services-table thead{
    display:none;
  }

  .vf-services-table,
  .vf-services-table tbody,
  .vf-services-table tr,
  .vf-services-table td{
    display:block;
    width:100%;
  }

  .vf-services-table tbody tr{
    border-bottom:1px solid rgba(0,0,0,.06);
  }

  .vf-services-table tbody tr:last-child{
    border-bottom:0;
  }

  .vf-services-table tbody td{
    border-bottom:0;
    padding:12px 16px;
  }

  .vf-services-table tbody td:first-child{
    padding-top:18px;
  }

  .vf-services-table tbody td:last-child{
    padding-bottom:18px;
  }

  .vf-services-table-description{
    max-width:none;
  }

  .vf-services-table-price{
    font-size:1rem;
  }

  .vf-services-table-btn{
    width:100%;
    justify-content:center;
  }
}