:root {
  --bg: #ffffff;
  --fg: #454545;
  --muted: #9a9aa0;
  --accent: #ff7a45;
  --border-subtle: #dedede;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.site-title {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a:hover {
  color: var(--fg);
}

.site-main {
  max-width: 960px;
  padding: 32px;
  margin: 0 auto 64px auto;
}

/* Typography */

h1,
h2,
h3 {
  font-weight: 500;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.1rem;
  margin: 0.75rem 0 0.25rem;
}

p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Grid of works on home */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.work-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Work detail layout */

.work-detail {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0; /*1.5rem;*/
}

/* image + arrows row */
.work-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* main painting image */
.work-detail-image {
  display: block;
  max-width: min(80vw, 700px);
  max-height: 75vh; /* cap height to 75% of viewport */
  height: auto;
  margin: 0 auto;
}

/* side arrows (SVG icons) */
.work-arrow,
.work-arrow-placeholder {
  width: 2.4rem;
  text-align: center;

}

.work-arrow {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-arrow:hover {
    opacity: 0.85;
}

.work-arrow-placeholder {
  opacity: 0; /* keeps layout balanced at ends */
}

.arrow-icon {
  display: block;
  width: 1.8rem;   /* adjust size as needed */
  height: auto;
  opacity: 0.7;
}

/* rotate the left-hand arrow */
.arrow-icon-prev {
  transform: rotate(180deg);
}

/* text below image */

.work-info p,
.work-text p {
  margin: 0.15rem 0;
  margin-left: 0;
  padding-left: 0;
  text-indent: 0;
}


.work-info {
  margin-top: 1.5rem;
  text-align: left;
}

/* .work-info p{
  margin: 0.1rem 0 0.1rem 0;  /* consistent top/bottom, no left indent 
} */

.work-caption {
  margin: 0;
  display: block;
}

.work-caption h1 {
  display: block;
  margin: 0 0 0.3rem 0;
}

.work-caption p {
  display: block;
  margin: 0.15rem 0;
}

/* Series label */

.work-series {
  margin-top: 0.25rem;
}

.work-series-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-right: 0.4rem;
}

.work-text {
  margin-top: 1.2rem;
  text-align: left;
}

.tech-intro {
  margin-top: 2rem;
  font-size: 0.9rem;
}
.tech-intro a {
  text-decoration: underline;
}

/* ===========================
   Technical page
   =========================== */

.tech-intro {
  max-width: 680px;
  margin: 0 auto 3rem auto;
  text-align: left;
}

.tech-intro p {
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Installation images grid */
.tech-images {
  margin-bottom: 3.5rem;
}

.tech-images h2 {
  max-width: 960px;
  margin: 0 auto 1.5rem auto;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tech-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.tech-grid-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Services section */
.tech-services {
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.tech-services h2 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tech-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-services li {
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
  position: relative;
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tech-services li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* Experience section */
.tech-experience {
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.tech-experience h2 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tech-experience p {
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Call to action */
.tech-cta {
  max-width: 680px;
  margin: 2rem auto 0 auto;
  text-align: center;
}

.tech-cta p {
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-cta a {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .tech-intro,
  .tech-services,
  .tech-experience,
  .tech-cta {
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }
}


/* Contact Page */

.contact-panel-intro {
  margin-bottom: 1.5rem;
}

/* Intro line */
.contact-intro {
  max-width: 600px;
  margin: 1rem auto 2rem auto;
  text-align: center;
}

/* White panel, similar to work cards but larger */
.contact-panel {
  max-width: 720px;
  margin: 0 auto 4rem auto;
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem 2.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  color: var(#111);
}

@media (max-width: 720px) {
  .contact-panel {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.5rem 2rem;
  }
}

/* Left side info */

.contact-info p {
  margin-bottom: 1rem;
}

/* Form heading */
.contact-form h2 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Form layout */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 540px) {
  .form-row {
    flex-direction: column;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group-half {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--fg);
}

/* Force label colour inside the contact panel */
.contact-panel .form-group label {
  color: #333;
}

/* Fields */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

/* Button */
.btn-submit {
  background-color: #777;
  color: #fff;
  padding: 0.6rem 1.8rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: #555;
}




/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 32px 24px 32px;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: flex-end;
}

/* Responsive tweaks */

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-main {
    padding: 24px 16px;
  }

  .work-frame {
    gap: 0.75rem;
  }

  .arrow-icon{
    width: 1.5rem;
  }
}