@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

:root {
  --bg: #f7f7f7;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --brand: #c8a858;
  --brand-2: #b9963f;
  --brand-dark: #9f8547;
  --border: #e7e7e7;
  --shadow: 0 10px 38px rgba(0,0,0,.08);
  --footer-spacing: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lora', serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg) url('../img/tausta.jpg') center/cover no-repeat fixed;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 400px at 50% -200px, rgba(255,255,255,.85), rgba(255,255,255,.93)), repeating-linear-gradient(to bottom, rgba(201,171,93,.06), rgba(201,171,93,.06) 1px, transparent 1px, transparent 12px);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  font-weight: 400;
  letter-spacing: .015em;
  color: #1f232b;
}

h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 span, h2 span {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  color: #444;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

header {
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 60%, rgba(255, 255, 255, 0.8) 100%);
  transition: background 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
}

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

.nav a {
  color: #1f232b;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 14px;
  transition: all .2s ease;
}

.nav a.active, .nav a:hover {
  background: #fff;
  outline: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.cta {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.cta-golden {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: black;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 6px 18px rgba(201,171,93,.35);
}

.cta:hover {
  background: #f8f8f8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.cta-golden:hover {
  filter: brightness(.95);
}

.hero {
  padding: 90px 0 300px 0;
}

.hero .inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px,5vw,48px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.hero .cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 26px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 60%, rgba(252, 252, 255, 0.85));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 220px;
  width: 400px;
  margin: 0 auto;
  position: relative;
}

.services-page .card {
  height: 280px;
  justify-content: flex-start;
}

.testimonials-page .card {
  height: 200px;
}

.card h3 {
  margin: .3rem 0 .2rem;
  font-size: 1rem;
}

.card p {
  flex-grow: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  position: relative;
  height: 100%;
}

.services-page .card .card-content {
  justify-content: flex-start;
}

.testimonials-page .card .card-content {
  justify-content: center;
}

.card ul {
  margin: 0;
  padding-left: 20px;
  flex-grow: 1;
  font-size: 0.9rem;
}

.card li {
  margin-bottom: 6px;
}

.section {
  padding: var(--footer-spacing) 0;
}

.section h2 {
  font-size: clamp(24px,3.6vw,34px);
  margin: 0 0 8px;
}

.section p.lead {
  color: var(--muted);
  margin-top: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.icon {
  height: 28px;
  width: 28px;
  border: 2px solid var(--brand);
  border-radius: 9px;
  display: inline-block;
}

form {
  display: grid;
  gap: 12px;
}

input, textarea, select {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font: inherit;
}

button {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: #1f1f1f;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

button:hover {
  background: #f8f8f8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

@media (max-width: 900px) {
  .hero .inner {
    grid-template-columns: 1fr;
  }
  .hero .cards {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  .card {
    width: 400px;
    height: 200px;
  }
  .services-page .card {
    height: 240px;
  }
  .testimonials-page .card {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .nav ul {
    display: none;
  }
  .hero .cards {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    max-width: 350px;
  }
  .card {
    width: 320px;
    height: 180px;
  }
  .services-page .card {
    height: 200px;
  }
  .testimonials-page .card {
    height: 160px;
  }
}

.feature-box {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 14px;
  font-weight: 500;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
}

.social-link.instagram .social-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-link.facebook .social-icon {
  background: #1877f2;
  color: white;
}

.grid-3 h4 {
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}

.grid-3 p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.grid-3 a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.grid-3 a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* MODAL STYLES */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  transform: translateY(0);
  animation: modalIn .18s ease-out;
}

@keyframes modalIn {
  from {
    opacity: .5;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal header {
  position: unset;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #fcfcfc);
  text-align: center;
  border-radius: 26px 26px 0 0;
}

.modal header .nav {
  padding: 16px 20px;
  justify-content: center;
}

#modalTitle {
  font-family: 'Lora', serif;  font-weight: 400;  font-size: 1.45rem;
  letter-spacing: .02em;
  color: #1f1f1f;
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}

#modalTitle::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 3px;
  transform: translateX(-50%);
}

.modal .content {
  padding: 24px;
}

.modal .content form {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.modal .content label {
  text-align: left;
  display: block;
}

.modal input, .modal textarea, .modal select {
  width: 100%;
}

.modal textarea {
  resize: vertical;
}

.modal button[type="submit"] {
  width: 100%;
  display: block;
  margin-top: 6px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid var(--border);
}

.modal .close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.modal .close:hover {
  background: #f7f7f7;
}

.modal .grid-2 {
  grid-template-columns: 1fr;
}

.modal .success {
  color: var(--brand-dark);
  margin-top: 8px;
  text-align: center;
}

#formStatus {
  color: var(--brand-dark);
  text-align: center;
}


