@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;500;600;700&family=Noto+Serif+Armenian:wght@600;700&display=swap');

:root {
  --primary-blue: #2c3e50;
  --secondary-purple: #8e44ad;
  --accent-blue: #3498db;
  --light-bg: #f4f6f8;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --border-color: #d5d8dc;
  --radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans Armenian", "Noto Sans", system-ui, -apple-system,
    "Segoe UI", "Helvetica Neue", Arial, "Sylfaen", "Arial Armenian",
    "DejaVu Sans", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Armenian typography: Noto Sans Armenian needs taller line-height and
   neutral letter-spacing. Segoe UI / Tahoma render Armenian glyphs with
   cramped baselines, so we override whenever <html lang="hy"> is active. */
html[lang="hy"] body {
  font-family: "Noto Sans Armenian", "Noto Sans", system-ui, -apple-system,
    "Segoe UI", Arial, "Sylfaen", "Arial Armenian", "DejaVu Sans", sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
  word-spacing: normal;
  font-kerning: normal;
  overflow-wrap: break-word;
}

html[lang="hy"] h1,
html[lang="hy"] h2,
html[lang="hy"] h3,
html[lang="hy"] h4 {
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 700;
  overflow-wrap: break-word;
  text-wrap: balance;
}

html[lang="hy"] p,
html[lang="hy"] li,
html[lang="hy"] span,
html[lang="hy"] a {
  letter-spacing: 0;
}

/* Form controls must inherit the Armenian-capable font (they don't by default) */
button,
input,
textarea,
select {
  font: inherit;
}

html[lang="hy"] input,
html[lang="hy"] textarea,
html[lang="hy"] button {
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header removed by design — hero photo carries the page title.
   Footer + floating language button provide navigation. */
main {
  min-height: 70vh;
  display: block;
}

/* Floating language switch (no top header by design) */
.lang-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 200;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.lang-fab button {
  background: rgba(44, 62, 80, 0.92);
  border: none;
  color: white;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lang-fab button.active {
  background-color: var(--accent-blue);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/placeholder-hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 20px;
}

/* Homepage hero with AutoCAD-style photo and overlaid page name */
.hero-photo {
  min-height: 82vh;
  background: linear-gradient(rgba(20, 30, 48, 0.62), rgba(20, 30, 48, 0.55)), url('/hero-autocad.jpg');
  background-size: cover;
  background-position: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero-content p {
  font-size: 1.2rem;
  color: #ecf0f1;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-blue);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #2980b9;
}

/* Services Section */
.services {
  padding: 4rem 0;
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: var(--primary-blue);
  color: white;
}

.about h2 {
  margin-bottom: 1rem;
}

.about p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Projects Section */
.projects {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.projects h2 {
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card .info {
  padding: 1.5rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background-color: var(--primary-blue);
  color: white;
}

.contact h2 {
  margin-bottom: 2rem;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #bdc3c7;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  background: white;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group button {
  width: 100%;
  padding: 1rem;
  background-color: var(--accent-blue);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-group button:hover {
  background-color: #2980b9;
}

/* Stats row (general information) */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: bold;
  color: white;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #dfe6ec;
}

/* Two service cards side by side */
.services-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact page spacing */
.contact-page {
  padding: 4rem 0;
}

.contact-page h1 {
  margin-bottom: 1rem;
  text-align: center;
}

.contact-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: #dfe6ec;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-hint {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #bdc3c7;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
  min-height: 1.5em;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: #bdc3c7;
  padding: 2rem 0;
  text-align: center;
  margin-top: 0;
}

.footer-contact {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  color: #ecf0f1;
}

.footer-contact a {
  color: #ecf0f1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact a:hover {
  color: white;
}

.footer-sep {
  margin: 0 0.35rem;
  color: #7f8c8d;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}