/* AN3 site tweaks per latest instructions */
:root {
  --bg: #fff;
  --fg: #0a0a0a;
  --muted: #5f5f5f;
  --border: #eaeaea;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Splash */
.splash {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 24px;
}
.splash-logo {
  width: min(70vw, 820px);
  height: auto;
  object-fit: contain;
}
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
}
.scroll-cue .arrow {
  width: 18px; height: 18px;
  border-right: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
  display: block;
}
@keyframes bob {
  0%,100% { transform: translate(-2px, 0) rotate(45deg); opacity: .5; }
  50% { transform: translate(-2px, 6px) rotate(45deg); opacity: 1; }
}

/* Sections */
main { display: block; }
.section, .hero { padding: 72px 16px; text-align: center; }
.hero { padding-top: 64px; padding-bottom: 80px; }
.hero-inner { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.2; margin: 0 0 10px 0; font-weight: 800; }
h2 { font-size: clamp(24px, 3.5vw, 36px); line-height: 1.2; margin: 0 0 24px 0; font-weight: 700; }
h3 { font-size: 18px; margin: 0 0 8px 0; }
p { margin: 0 0 12px 0; color: var(--fg); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; justify-content: center; }
.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  color: var(--bg);
  background: var(--fg);
  font-weight: 700;
  font-size: 1.1rem; /* Increased font size */
  text-decoration: none;
}
.button:hover { filter: brightness(0.9); }
.link { align-self: center; font-weight: 600; text-decoration: underline; color: var(--fg); }

/* Grids */
.grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: 1fr; }
@media (min-width: 880px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}

.card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); }

/* Mockups */
.mockups .mockup {
  display: grid; gap: 8px; justify-items: center;
}
.mockups img {
  width: 100%; height: auto;
  max-width: 420px;
}
.mockups figcaption { color: var(--muted); font-size: 14px; }

/* Process */
.process { max-width: 900px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: step; text-align: center; }
.process li { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.process li strong { display: block; margin-bottom: 4px; }

/* Contact */
.contact-form { max-width: 700px; margin: 0 auto; display: grid; gap: 12px; text-align: left; }
.contact-form .row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }
label span { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--fg); border-radius: 12px;
  background: #fff; color: var(--fg); font: inherit;
}
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px #00000010; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 16px 48px; text-align: center; color: var(--muted); }


/* Project detail pages */
.project-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px;
  border-bottom:1px solid var(--border);
}
.back-link {
  text-decoration:none;
  font-size:18px;
  color:var(--fg);
}
.logo-small {
  height: clamp(28px,4vw,40px);
  width:auto;
}
.project-main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
  text-align: center;
}


/* Project page header */
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.logo-small { height: clamp(24px, 4vw, 40px); width: auto; object-fit: contain; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
}
.back-link:hover .back-text { text-decoration: underline; }
.back-icon {
  width: 10px; height: 10px;
  border-left: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  transform: rotate(45deg);
  margin-top: 2px;
}

/* Project content */
.project-main { max-width: 960px; margin: 32px auto 80px; padding: 0 16px; text-align: center; }
.project-main .lead { color: var(--muted); }
.project-media { margin: 24px auto; max-width: 720px; }
.project-media img { width: 100%; height: auto; }
.project-details { text-align: left; max-width: 760px; margin: 24px auto; }
.project-details h2 { margin-top: 24px; }
.project-details ul { padding-left: 20px; }


/* Center project page content */
.project-main { text-align: center; }
.project-details { text-align: center; }
.project-details ul { list-style-position: inside; padding-left: 0; display: inline-block; text-align: left; }


.project-cta { margin: 16px 0 8px; display: grid; place-items: center; }
.floating-contact {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.9rem 1.6rem;
  background: #000;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 999;
  letter-spacing: 0.03em;
}

.floating-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
