/* ============================================================
   PinVerk.is — static website styles
   Design mirrors the original Namecheap Website Builder site.
   Colors: brand teal #00454b, text #1f1f1f
   Fonts:  Raleway (headings/body), Roboto (contact info)
   ============================================================ */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 18px;
  line-height: 27px;
  color: #1f1f1f;
  background: #fff;
}

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header { width: 100%; background: #fff; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo img { height: 56px; width: auto; display: block; }

.site-nav { margin-left: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: #00454b; }
.site-nav li.active a { color: #00454b; border-bottom-color: #00454b; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #333;
  margin: 4px 0;
}

/* ---------- Hero / page title ---------- */

.hero { text-align: center; padding: 40px 0 10px; }

.hero h1,
.page-title h1 {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 38px;
  color: #00454b;
  margin: 0 0 20px;
}

.hero-img { display: block; width: 100%; margin: 0 auto; }

.intro {
  text-align: center;
  color: #00454b;
  font-size: 16px;
  line-height: 26px;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
}

.hero-video {
  display: block;
  margin: 30px auto;
  width: 100%;
  max-width: 900px;
}

.section-title {
  text-align: center;
  font-weight: 400;
  font-size: 28px;
  color: #00454b;
  margin: 50px 0 30px;
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 30px auto 20px;
}

/* Cards with only a few items — keep them centered instead of left-aligned */
.cards-center {
  grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
  justify-content: center;
}

/* ---------- Project list (Projects page) ---------- */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px auto 20px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.project-card:hover { background: #f5f5f5; }

.project-thumb { width: 280px; flex-shrink: 0; }

.project-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.project-info { flex: 1 1 auto; min-width: 0; }

.project-info h3 {
  font-weight: 400;
  font-size: 26px;
  line-height: 29px;
  color: #00454b;
  margin: 0 0 10px;
}

.project-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-details li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  color: #333;
}

.project-details svg {
  width: 18px;
  height: 18px;
  color: #00454b;
  flex-shrink: 0;
}

.card { display: block; text-decoration: none; color: inherit; }

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.card h3 {
  font-weight: 400;
  font-size: 26px;
  line-height: 29px;
  color: #00454b;
  margin: 12px 0 0;
}

/* ---------- Service page description ---------- */

.page-desc {
  color: #00454b;
  max-width: 1000px;
  margin: 30px auto 10px;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
  margin: 20px 0 40px;
}

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}

/* ---------- Contact section ---------- */

.contact { margin: 60px 0 40px; }

.contact h2 {
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
  color: #00454b;
  text-align: center;
  margin: 0 0 25px;
}

.contact-logo {
  display: block;
  margin: 0 auto 25px;
  max-width: 260px;
}

.contact-info { text-align: center; }

.kt {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #00454b;
  margin: 0 0 15px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0;
}

.contact-row svg { width: 26px; height: 26px; color: #00454b; }

.contact-row span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 24px;
  line-height: 36px;
  color: #00454b;
}

.contact-text {
  text-align: center;
  font-size: 18px;
  color: #00454b;
  margin: 25px 0;
}

/* ---------- Contact form ---------- */

.contact-form { max-width: 700px; margin: 0 auto 30px; }

.form-row { margin-bottom: 16px; }

.form-row label {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
}

.form-row .req { color: #a94442; }

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 16px;
  color: #555;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.form-row textarea { resize: vertical; }

.btn {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 22px;
  cursor: pointer;
}

.btn:hover { background: #00454b; border-color: #00454b; color: #fff; }

.form-status { text-align: center; font-size: 16px; }
.form-status.ok { color: #3c763d; }
.form-status.err { color: #a94442; }

/* Honeypot — hidden from humans, bots fill it in */
.hpc {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* ---------- Language switcher ---------- */

.lang-switch { position: relative; margin-left: 0; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
}

.lang-btn:hover { border-color: #00454b; color: #00454b; }

.lang-btn .flag,
.lang-menu .flag {
  width: 20px;
  height: 14px;
  display: inline-block;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn .flag svg,
.lang-menu .flag svg { width: 100%; height: 100%; display: block; }

.caret { font-size: 10px; line-height: 1; }

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

.lang-switch.open .lang-menu { display: block; }

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.lang-menu a:hover { background: #f5f5f5; color: #00454b; }

.lang-menu a.current { color: #00454b; font-weight: 700; pointer-events: none; }

@media (max-width: 768px) {
  .lang-switch { margin-left: 0; }
}

/* ---------- Footer ---------- */

.site-footer { padding: 25px 0 30px; text-align: center; }

.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-icons a,
.social-icons .social-icon { display: inline-flex; }

.social-icons svg { width: 30px; height: 30px; color: #000; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.open { display: flex; }

.lightbox img { max-width: 92vw; max-height: 88vh; }

.lightbox .lb-btn {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 18px;
}

.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-close { top: 8px; right: 14px; font-size: 34px; }

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-inner { position: relative; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 36px; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; }
  .site-nav.open {
    display: block;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    z-index: 300;
  }
  .site-nav.open ul { flex-direction: column; gap: 0; padding: 0; }
  .site-nav.open a { display: block; padding: 10px 16px; border-bottom: none; }
  .site-nav.open li.active a { border-bottom: none; background: #f5f5f5; }
  .contact h2 { font-size: 32px; line-height: 40px; }
  .card img { height: 190px; }
  .gallery img { height: 240px; }
  .project-card { flex-direction: column; align-items: flex-start; }
  .project-thumb { width: 100%; }
  .project-thumb img { height: 200px; }
}

@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .logo img { height: 30px; }
}
