@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e4e2dd;
  --accent: #8a7a63;
}

* { box-sizing: border-box; }

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

body {
  font-family: 'Jost', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  mix-blend-mode: difference;
}

.site-header, .site-header a {
  color: #fff;
}

.menu-toggle {
  width: 32px; height: 22px;
  background: none; border: none;
  cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0;
  z-index: 210;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
.menu-toggle.open { mix-blend-mode: normal; }
.menu-toggle.open span { background: #1a1a1a; }

.header-logo {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.header-logo span { font-weight: 300; opacity: 0.8; }

.lang-toggle {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.lang-toggle a { opacity: 0.55; }
.lang-toggle a.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Overlay nav */
.overlay-nav {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
}

.overlay-nav.open { transform: translateY(0); }

.overlay-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  text-align: center;
}

.overlay-nav li { margin: 1.1rem 0; }

.overlay-nav a {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.overlay-nav a:hover { opacity: 0.5; }

.overlay-nav .sub-nav {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.2rem;
}

.overlay-nav .sub-nav li { margin: 0.3rem 0; }

.overlay-nav .sub-nav a {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
}

.overlay-nav .sub-nav a:hover { opacity: 1; }

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

.hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.32);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-content p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  opacity: 0.7;
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Intro section */
.intro {
  padding: 7rem 0;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2rem;
}

.intro p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

/* Section heading */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  padding: 0 2rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading p {
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Projects grid */
.projects-section { padding: 6rem 0; }

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

.project-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #111;
}

.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover img { transform: scale(1.06); }

.project-card-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent 55%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .project-card-label { opacity: 1; }

.project-card-label .cat {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.project-card-label h3 {
  font-size: 1.3rem;
  margin-top: 0.3rem;
}

.projects-cta { text-align: center; margin-top: 3.5rem; }

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover { background: var(--text); color: #fff; }

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* Project detail */
.project-hero {
  height: 70vh; min-height: 420px;
  position: relative;
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }

.project-detail-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.project-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.project-meta div { font-size: 0.85rem; }
.project-meta span { display: block; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; margin-bottom: 0.3rem; }

.project-detail-body h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.project-detail-body p { color: var(--text-muted); font-size: 1.05rem; }

.back-link { display: inline-block; margin-top: 3rem; font-size: 0.85rem; letter-spacing: 0.05em; border-bottom: 1px solid var(--text); }

/* About */
.about-hero { padding: 9rem 0 3rem; text-align: center; }
.about-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.06em; }

.about-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  text-align: center;
}
.about-body p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.2rem; }

.about-image { max-height: 520px; overflow: hidden; margin-bottom: 4rem; }
.about-image img { width: 100%; object-fit: cover; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 5rem auto 6rem;
  padding: 0 2rem;
  text-align: center;
}
.values-grid h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7rem; }
.values-grid p { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
}

.faq-list {
  max-width: 780px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}
.faq-item { padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.faq-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Contact */
.contact-section {
  padding: 9rem 0 6rem;
  max-width: 640px;
  margin: 0 auto;
  padding-inline: 2rem;
}
.contact-section h1 { font-size: clamp(2rem, 5vw, 2.8rem); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; }
.contact-section > p { text-align: center; color: var(--text-muted); margin-top: 0.75rem; margin-bottom: 3rem; }

.contact-info {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  margin-bottom: 3.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form input, .contact-form textarea {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0.2rem;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--text);
}

.contact-form button {
  margin-top: 1rem;
  align-self: center;
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
  padding: 0.9rem 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:hover { opacity: 0.85; }

#formStatus { text-align: center; font-size: 0.9rem; margin-top: 1rem; display: none; }
#formStatus.show { display: block; }

/* Blog */
.blog-section { padding: 9rem 0 6rem; max-width: 900px; margin: 0 auto; padding-inline: 2rem; }
.blog-list { display: flex; flex-direction: column; gap: 3rem; }
.blog-card { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: center; }
.blog-card img { aspect-ratio: 4/3; object-fit: cover; }
.blog-card .cat { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.blog-card h2 { font-size: 1.4rem; margin: 0.4rem 0 0.6rem; }
.blog-card p { color: var(--text-muted); font-size: 0.95rem; }
.blog-card .meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.6rem; }

@media (max-width: 700px) {
  .blog-card { grid-template-columns: 1fr; }
}

.blog-post-hero { height: 50vh; min-height: 320px; }
.blog-post-hero img { width: 100%; height: 100%; object-fit: cover; }
.blog-post-body { max-width: 720px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.blog-post-body h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.blog-post-body .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2.5rem; }
.blog-post-body p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.3rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; text-align: center; }
.footer-logo { font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
.footer-logo span { font-weight: 300; opacity: 0.7; }
.site-footer p { color: var(--text-muted); font-size: 0.85rem; margin: 0.3rem 0; }
.footer-rights { font-size: 0.75rem; opacity: 0.7; }
.footer-rights a { text-decoration: underline; text-underline-offset: 2px; opacity: 0.85; }
.footer-rights a:hover { opacity: 1; }

/* RTL */
html[dir="rtl"] .project-card-label { text-align: right; }
html[dir="rtl"] .contact-form input, html[dir="rtl"] .contact-form textarea { text-align: right; }
