/* ============================================
   TEKUK PLAT - Main Styles
   Layout, components, slider, navigation
   ============================================ */

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Variables (overridden by themes.css) */
:root {
  --color-bg: #f5f5f0;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-accent: #c45c26;
  --color-accent-hover: #a34a1e;
  --color-border: #e0e0dc;
  --color-header-bg: rgba(255,255,255,0.92);
  --color-shadow: rgba(0,0,0,0.08);
  --font-heading: 'DM Sans', sans-serif;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s, border-color 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
  background: var(--color-shadow);
}

.theme-switcher {
  display: flex;
  gap: 0.25rem;
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: transform 0.2s, background 0.2s;
}

.theme-btn:hover {
  transform: scale(1.08);
  background: var(--color-shadow);
}

.theme-btn.active {
  background: var(--color-accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
}

/* Slider */
.slider-section {
  position: relative;
  margin-top: 72px;
  min-height: 420px;
}

.slider {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-out;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-border);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.75rem;
  line-height: 1;
  box-shadow: 0 4px 16px var(--color-shadow);
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.slider-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-surface);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.slider-dot.active {
  opacity: 1;
  transform: scale(1.2);
  background: var(--color-accent);
}

.slider-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 3.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  pointer-events: none;
}

.slider-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.slider-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  opacity: 0.95;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-desc {
  color: var(--color-text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* Narrative blocks */
.narrative {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.narrative:last-child {
  margin-bottom: 0;
}

.narrative-left {
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text image";
}

.narrative-right {
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "image text";
}

.narrative-text {
  grid-area: text;
}

.narrative-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.narrative-text p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.narrative-image {
  grid-area: image;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--color-shadow);
}

.narrative-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--color-border);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--color-shadow);
  aspect-ratio: 4/3;
  background: var(--color-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.contact-card:hover {
  box-shadow: 0 8px 24px var(--color-shadow);
}

.contact-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  width: 100%;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav,
  .theme-switcher {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .slider-section {
    min-height: 320px;
  }

  .slider,
  .slider-section {
    height: 320px;
  }

  .narrative-left,
  .narrative-right {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "text";
  }

  .narrative-image img {
    height: 220px;
  }

  .section {
    padding: 3rem 0;
  }
}
