/* Virumaa Majad OÜ – Plaatvundamendid */
:root {
  --color-bg: #0f1419;
  --color-surface: #1a2332;
  --color-surface-2: #243044;
  --color-accent: #c9a227;
  --color-accent-hover: #dbb42e;
  --color-text: #e8ecf0;
  --color-text-muted: #9ca8b8;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-surface-2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 6.5rem;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-accent);
}

.phone {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .phone {
    font-size: 0.9rem;
  }
  .nav-toggle {
    display: block;
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 1rem;
    border-bottom: 1px solid var(--color-surface-2);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 50%, #1e2a3a 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Section titles */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--color-text);
  text-align: center;
}

/* Corners (3 nurgad) */
.corners {
  padding: 4rem 0;
  background: var(--color-surface);
}

.corners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.corner-card {
  background: var(--color-surface-2);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(201, 162, 39, 0.15);
  position: relative;
}

.corner-nr {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.corner-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.corner-card p + p {
  margin-top: 0.75rem;
}

/* Process */
.process {
  padding: 4rem 0;
  background: var(--color-bg);
}

.process-content {
  max-width: 720px;
  margin: 0 auto;
}

.process-content p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.process-summary {
  margin-top: 1.5rem !important;
  font-weight: 600;
  color: var(--color-accent) !important;
}

/* Gallery (Pildid) */
.gallery {
  padding: 4rem 0;
  background: var(--color-surface);
}

.gallery-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface-2);
  border: 1px solid rgba(201, 162, 39, 0.12);
  box-shadow: var(--shadow);
}

.gallery-item::before {
  content: '';
  display: block;
  padding-top: 65%;
}

.gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.04);
  filter: saturate(1);
}

.gallery-caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Lightbox (zoom) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* Inquiry form */
.inquiry {
  padding: 4rem 0;
  background: var(--color-surface);
}

.inquiry-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.inquiry-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inquiry-form label span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-surface-2);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.inquiry-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.success {
  color: #6ee7b7;
}

.form-status.error {
  color: #fca5a5;
}

.form-status.error a {
  color: #fcd34d;
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-surface-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-block h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.footer-block p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-block a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-block a:hover {
  text-decoration: underline;
}

/* Page: Hinnad */
.page-header {
  padding: 3rem 0 2rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-surface-2);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.breadcrumb {
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.prices {
  padding: 3rem 0 4rem;
}

.price-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-surface-2);
}

.price-card h2 {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.price-card .price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.price-card ul {
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.price-card .note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}
