/* JT CAD Consulting — rebuilt from the original Squarespace design */

:root {
  --accent: hsl(17, 50%, 66%);          /* terracotta */
  --accent-dark: hsl(17, 45%, 56%);
  --ink: hsl(180, 6%, 20%);             /* near-black teal-gray */
  --ink-soft: hsl(173, 10%, 32%);       /* dark accent */
  --cream: hsl(47, 15%, 88%);           /* light section background */
  --card: hsl(47, 13%, 90%);
  --white: #fffefb;
  --heading-font: 'Marcellus', serif;
  --body-font: 'PT Serif', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* scale typography up with the viewport so big screens don't feel zoomed out */
  font-size: clamp(16px, 0.4vw + 11px, 21px);
}

body {
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

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

h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 400; }

section { scroll-margin-top: 72px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4vw;
  background: var(--white);
  border-bottom: 1px solid hsl(47, 15%, 90%);
}

.header-logo img { height: 44px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--heading-font);
  font-size: 1rem;
  letter-spacing: .02em;
}

.header-nav a:hover { color: var(--accent-dark); }

.linkedin-link { display: inline-flex; align-items: center; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero { background: var(--white); overflow: hidden; }

.hero-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 4vw 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
}

.hero-art { position: relative; }

.hero-towers {
  width: 100%;
  /* bottom edge trimmed along a large circular arc, like the original */
  clip-path: circle(86% at 82% 4%);
}

.hero-portrait {
  position: absolute;
  left: 53%;
  transform: translateX(-50%);
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.hero-copy { text-align: center; }

.hero-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  white-space: nowrap;
  letter-spacing: .04em;
  color: var(--ink);
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 22px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--heading-font);
  font-size: 1rem;
  letter-spacing: .03em;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 12px 34px;
  cursor: pointer;
  transition: background .2s ease;
}

.btn:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 56px;
}

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

/* ---------- Services ---------- */

.services {
  background: var(--cream);
  padding: 72px 4vw 88px;
}

.services-heading {
  max-width: 1600px;
  margin: 0 auto 40px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--ink);
}

.services-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.service-image {
  background: #fff;
  border: 1px solid hsl(47, 10%, 78%);
  padding: 10px;
  margin-bottom: 26px;
}

.service h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.service ul { list-style: none; }

.service li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
}

.service li::before {
  content: "\2022";
  position: absolute;
  left: 2px;
  color: var(--ink-soft);
}

/* ---------- Portfolio ---------- */

.portfolio {
  background: var(--white);
  padding: 80px 0 64px;
}

.portfolio-heading {
  text-align: center;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-bottom: 56px;
  padding: 0 4vw;
}

.carousel { overflow: hidden; }

/* The track is wider than the screen; .carousel clips it and script.js
   slides it with a transform, wrapping cards around for an endless loop. */
.carousel-track {
  display: flex;
  gap: 24px;
  padding: 0 4vw 8px;
}

.project-card {
  flex: 0 0 clamp(312px, 21vw, 416px);
  scroll-snap-align: start;
  background: var(--card);
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 18px;
}

.project-card h3 {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.project-card p {
  font-size: .88rem;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-location {
  font-size: .85rem;
  border-top: 1px solid hsl(47, 10%, 80%);
  padding: 12px 0 14px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .2s ease;
}

.carousel-arrow:hover { background: var(--accent-dark); }

/* ---------- About ---------- */

.about {
  background: var(--cream);
  padding: 72px 4vw;
}

.about-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 480px;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  margin-bottom: 24px;
}

.about-copy p {
  font-size: 1.06rem;
  margin-bottom: 18px;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--white);
  padding: 80px 4vw 56px;
}

.contact-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-copy h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  margin-bottom: 20px;
}

.contact-copy p { font-size: 1.06rem; margin-bottom: 18px; }

.contact-details a {
  color: var(--ink);
  text-decoration: none;
}

.contact-details a:hover { color: var(--accent-dark); }

.contact-form label {
  display: block;
  font-size: .95rem;
  margin-bottom: 16px;
}

.contact-form .req {
  font-size: .78rem;
  color: hsl(180, 4%, 45%);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid hsl(47, 10%, 78%);
  border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-form .btn { margin-top: 6px; }

.form-status {
  margin-top: 14px;
  color: var(--ink-soft);
  font-weight: 700;
}

.up-wrap {
  text-align: center;
  margin-top: 72px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream);
  padding: 56px 4vw 64px;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  letter-spacing: .02em;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-cols h4 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.footer-cols p, .footer-cols a {
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}

.footer-cols a:hover { color: var(--accent-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-title { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  .hero-copy { order: 2; }
  .hero-art { order: 1; max-width: 520px; margin: 0 auto; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .services-grid { grid-template-columns: 1fr; max-width: 480px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-image { max-height: 360px; }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid hsl(47, 15%, 88%);
    padding: 20px 4vw;
    gap: 18px;
  }

  .header-nav.open { display: flex; }
  .menu-toggle { display: flex; }
}
