:root {
  --bg: #0c0f14;
  --bg-2: #11151c;
  --surface: #161b23;
  --border: #232a35;
  --border-strong: #2f3744;
  --text: #ecedf0;
  --text-muted: #9aa3b2;
  --muted: #6b7384;
  --accent: #f0a83c;
  --accent-hover: #f5bd5e;
  --accent-soft: rgba(240, 168, 60, 0.12);
  --success: #2ecc71;
  --error: #e74c3c;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #1a1200; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #1a1200;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-primary:disabled {
  background: #6b5828;
  color: #2a2107;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(12, 15, 20, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  background: var(--accent);
  color: #1a1200;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}
.logo-text { color: var(--text); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #1a1200!important;
  font-weight: 600!important;
  padding: 8px 18px!important;
}
.nav-cta:hover { background: var(--accent-hover); color: #1a1200!important; }
.nav-cta.active { box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 90vh;
  max-height: 820px;
  overflow: hidden;
  text-align: center;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(12,15,20,0.85) 100%);
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px 56px;
  width: 100%;
}
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 auto 22px;
  max-width: 18ch;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.7);
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: #fff;
  max-width: 60ch;
  margin: 0 auto;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* ---------- Section header ---------- */
.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.section-header h2,
.about-text h2,
.contact-form h2,
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- Services ---------- */
.services {
  padding: 120px 0;
  background: var(--bg-2);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 800px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--surface);
  padding: 38px 32px;
  transition: background 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
}
.service-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease, background 0.25s ease; }
.service-card:hover { background: #1a212c; }
.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-card p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Projects ---------- */
.projects { padding: 120px 0; }
.project-index {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.project-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.project-card.is-open {
  grid-column: 1 / -1;
  transform: none;
  border-color: var(--accent);
}
.project-toggle {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.project-cover {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--bg-2);
}
.project-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(12,15,20,0.92) 100%);
  pointer-events: none;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-cover img { transform: scale(1.04); }
.project-card.is-open .project-cover { display: none; }
.project-meta-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.project-meta-bar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
  line-height: 1.2;
  color: #fff;
}
.project-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.project-sub em {
  font-style: italic;
  color: var(--muted);
}
.project-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.25s ease, color 0.25s ease;
}
.project-chevron svg { width: 16px; height: 16px; }
.project-toggle[aria-expanded="true"] .project-chevron {
  transform: rotate(180deg);
  background: var(--accent);
  color: #1a1200;
  border-color: var(--accent);
}
.project-photos {
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  animation: fadeUp 0.4s ease;
}
.project-photos[hidden] { display: none; }
.project-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-2);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* ---------- CTA Side ---------- */
.cta-side { padding: 120px 0; }
.cta-side-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.cta-side-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 14px 0 20px;
}
.cta-side-text h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.cta-side-text p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
}
.cta-side-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.cta-side-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.cta-side-photo:hover img { transform: scale(1.03); }

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: #1a1200;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(240, 168, 60, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.floating-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(240, 168, 60, 0.22);
}
.floating-cta svg {
  width: 18px;
  height: 18px;
}

/* ---------- About ---------- */
.about { padding: 120px 0; background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.about-images {
  position: relative;
  height: 520px;
}
.about-img {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.about-img-1 {
  top: 0;
  left: 0;
  width: 75%;
  height: 65%;
}
.about-img-2 {
  bottom: 0;
  right: 0;
  width: 65%;
  height: 55%;
}
.about-text h2 { margin-bottom: 24px; }
.about-text h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.about-meta {
  display: flex;
  gap: 36px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.about-meta div { display: flex; flex-direction: column; }
.about-meta strong {
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.about-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 4px;
}
.contact-line {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}
.contact-line strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.contact-line a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  background: #07090c;
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.footer p, .footer span { color: var(--text-muted); }
.footer h4 { margin-bottom: 16px; font-size: 0.95rem; }
.footer a, .footer span {
  display: block;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color 0.2s;
  font-size: 0.95rem;
}
.footer a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.footer-social svg { flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Page header (contact) ---------- */
.page-header {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}
.page-header p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.08rem;
}
.page-header a { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-section { padding: 60px 0 120px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.contact-form h2 { margin-bottom: 28px; font-size: 1.8rem; }
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #0a0d12;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.recaptcha-row { display: flex; justify-content: flex-start; }
.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius);
  display: none;
  font-size: 0.95rem;
}
.form-status.success {
  display: block;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid var(--success);
  color: var(--success);
}
.form-status.error {
  display: block;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid var(--error);
  color: var(--error);
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.info-card h3 { margin-bottom: 22px; font-size: 1.25rem; letter-spacing: -0.01em; }
.info-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.55;
}
.info-card strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.info-card a:hover { color: var(--accent); }
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 280px;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; }
  .about-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .about-images { height: 340px; }
  .about-meta { gap: 24px; margin: 24px 0; }
  .about-meta strong { font-size: 1.4rem; }
  .cta-side { padding: 80px 0; }
  .cta-side-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-side-photo img { height: 300px; }
  .floating-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 0.9rem; }
  .services, .projects, .about { padding: 80px 0; }
  .contact-form { padding: 28px; }
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-cover { height: 180px; }
  .project-meta-bar { padding: 18px 20px; }
  .project-photos { padding: 0 14px 14px; gap: 8px; grid-template-columns: 1fr; }
  .project-photos img { height: 220px; }
}
