/* Palitech Construction — site styles */

:root {
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: rgba(194, 65, 12, 0.12);
  --border: #e7e5e4;
  --header-bg: rgba(28, 25, 23, 0.92);
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: #fafaf9;
  text-decoration: none;
}

.logo span {
  color: #fdba74;
  margin-left: 0.15em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  color: #e7e5e4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #fff;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin-inline: auto;
  background: #fafaf9;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #1c1917;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.5rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #fafaf9;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(12, 10, 9, 0.92) 0%,
    rgba(12, 10, 9, 0.45) 45%,
    rgba(12, 10, 9, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
  padding-top: 2rem;
}

.hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fdba74;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1.15rem;
  color: #d6d3d1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

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

.btn-ghost {
  background: transparent;
  color: #fafaf9;
  border-color: rgba(250, 250, 249, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.03em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card h3 {
  margin: 1rem 1.25rem 0.35rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Projects */
.project-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

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

.project {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.project img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project figcaption {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.project strong {
  font-size: 1.05rem;
}

.project span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About */
.about-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.about-copy .section-head {
  margin-bottom: 1.25rem;
}

.stats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.stats strong {
  color: var(--accent);
  margin-right: 0.35rem;
}

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* Contact */
.section--contact {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

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

.contact-block {
  font-style: normal;
  margin: 0;
}

.contact-block p {
  margin: 0 0 1rem;
}

.contact-block a {
  font-weight: 600;
}

.contact-form {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: #1c1917;
  color: #a8a29e;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: #fafaf9;
}

.footer-copy {
  margin: 0;
}
