/* OCAYA CONSTRUCTION — design tokens */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Palette — warm concrete surfaces, graphite ink, safety orange */
  --color-bg: #f6f4f0;
  --color-surface: #fbfaf8;
  --color-surface-offset: #edeae3;
  --color-divider: #ddd9d1;
  --color-border: #d0ccc3;

  --color-text: #23262b;
  --color-text-muted: #60646b;
  --color-text-faint: #9ba0a7;
  --color-text-inverse: #f7f5f1;

  --color-primary: #b34a0e;
  --color-primary-hover: #933c08;
  --color-primary-active: #7a3106;
  --color-primary-soft: #f3e2d5;

  --color-ink: #22262d;
  --color-ink-2: #2b3038;
  --color-ink-text: #f0efec;
  --color-ink-text-muted: #a9adb4;
  --color-ink-accent: #f0964f;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgb(35 38 43 / 0.06);
  --shadow-md: 0 4px 12px rgb(35 38 43 / 0.08);
  --shadow-lg: 0 12px 32px rgb(35 38 43 / 0.12);

  --content-default: 1100px;
  --content-narrow: 720px;

  --font-display: 'Clash Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* ---------- Layout helpers ---------- */
.skip-link {
  position: fixed;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-ink);
  color: var(--color-text-inverse);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.service-link { color: var(--color-primary); font-weight: 700; text-underline-offset: .2em; }
.service-link:hover { color: var(--color-primary-hover); }
.footer__services { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
.service-hero { background: var(--color-surface-offset); }
.service-hero .section-kicker { color: var(--color-primary-hover); }
.section--ink .section-kicker { color: var(--color-ink-accent); }
.service-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--space-12); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-8); }
.breadcrumbs a { color: var(--color-text); text-underline-offset: .2em; }
.service-hero h1 { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.1; margin-bottom: var(--space-6); }
.service-hero h1 em { color: var(--color-primary); font-style: normal; }
.service-hero__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.service-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.service-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.service-details h3 { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-3); }
.service-details p { color: var(--color-text-muted); max-width: 65ch; }
.service-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); margin-block: var(--space-8); }
.service-images img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); }
.service-images figcaption { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); }
.service-copy { max-width: 65ch; }
.service-copy p + p { margin-top: var(--space-4); }
.service-copy a { color: inherit; text-underline-offset: .2em; }
@media (max-width: 860px) {
  .service-hero__grid, .service-details { grid-template-columns: 1fr; gap: var(--space-8); }
  .service-hero__photo { max-height: 520px; }
}
@media (max-width: 520px) {
  .service-images { grid-template-columns: 1fr; }
}
.container {
  width: min(var(--content-default), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.section-kicker {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section-lede {
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-8);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 244 240 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

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

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-md);
}

.header__cta:hover {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: 0 var(--space-4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
  }

  .nav[data-open='true'] {
    max-height: 400px;
  }

  .nav a {
    padding: var(--space-4) var(--space-2);
    border-bottom: 1px solid var(--color-divider);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header__cta span {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--color-text-inverse);
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to top,
      rgb(15 17 20 / 0.88) 0%,
      rgb(15 17 20 / 0.55) 45%,
      rgb(15 17 20 / 0.35) 100%
    );
}

.hero__content {
  padding-block: var(--space-24);
  max-width: 46rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: #f0964f;
}

.hero__lede {
  font-size: var(--text-lg);
  color: #d9d8d3;
  max-width: 34ch;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
}

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

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

.btn--ghost {
  border: 1.5px solid rgb(255 255 255 / 0.7);
  color: #fff;
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: #fff;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.service-card__list {
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full, 999px);
  padding: var(--space-1) var(--space-3);
}

/* ---------- Real project gallery ---------- */
.projects-section { border-top: 1px solid var(--color-divider); }
.project-entry + .project-entry { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--color-divider); }
.project-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-8); margin-top: var(--space-8); margin-bottom: var(--space-6); }
.project-intro h3 { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-3); }
.project-intro p { color: var(--color-text-muted); max-width: 65ch; }
.project-intro .btn { flex-shrink: 0; }
.project-hint { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.project-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 255px); gap: var(--space-4); }
.project-photo { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--color-ink); text-align: left; }
.project-photo--featured { grid-row: span 2; }
.project-gallery--four > :last-child { grid-column: 2 / -1; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.project-photo > span { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: var(--space-2); padding: var(--space-8) var(--space-4) var(--space-4); color: #fff; font-size: var(--text-sm); font-weight: 700; background: linear-gradient(transparent, rgb(0 0 0 / .85)); }
.project-photo:hover > span { color: #ffd5b4; }
.photo-viewer { position: fixed; inset: 0; margin: auto; width: min(100% - 2rem, 1000px); max-height: calc(100dvh - 2rem); padding: var(--space-4); border: 1px solid var(--color-ink-2); border-radius: var(--radius-lg); background: var(--color-ink); color: var(--color-ink-text); }
.photo-viewer::backdrop { background: rgb(0 0 0 / .88); }
.photo-viewer__toolbar, .photo-viewer__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.photo-viewer__toolbar { margin-bottom: var(--space-3); }
.photo-viewer__toolbar p { font-size: var(--text-sm); }
.photo-viewer button { min-width: 44px; min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-ink-text-muted); border-radius: var(--radius-sm); color: var(--color-ink-text); }
.photo-viewer button:hover { background: var(--color-ink-2); }
.photo-viewer > img { width: 100%; height: min(70dvh, 760px); object-fit: contain; }
.photo-viewer__footer { margin-top: var(--space-3); }
.photo-viewer__footer p { font-size: var(--text-sm); text-align: center; }
@media (max-width: 900px) {
  .project-intro { flex-direction: column; gap: var(--space-4); }
  .project-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .project-photo { aspect-ratio: 4 / 5; }
  .project-photo--featured { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .project-gallery--four > :last-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .project-photo > span { padding-inline: var(--space-3); font-size: var(--text-xs); }
  .photo-viewer { padding: var(--space-3); }
}

/* ---------- Why us (ink section) ---------- */
.section--ink {
  background: var(--color-ink);
  color: var(--color-ink-text);
}

.section--ink .section-title {
  color: var(--color-ink-text);
}

.section--ink .section-lede {
  color: var(--color-ink-text-muted);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

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

.why-points {
  display: grid;
  gap: var(--space-6);
}

.why-point {
  display: flex;
  gap: var(--space-4);
}

.why-point svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #f0964f;
  margin-top: var(--space-1);
}

.why-point h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.why-point p {
  color: var(--color-ink-text-muted);
  font-size: var(--text-base);
}

.why-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

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

.process-step {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-3);
}

.process-step h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.process-step p {
  color: var(--color-text-muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
}

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

.contact-info {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.contact-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-row svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: var(--space-1);
}

.contact-row h3 {
  font-size: var(--text-base);
  font-weight: 700;
}

.contact-row a,
.contact-row p {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-base);
}

.contact-row a:hover {
  color: var(--color-primary);
}

.quote-form {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}

.quote-form h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.form-field {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.btn--full {
  width: 100%;
  justify-content: center;
  padding-block: var(--space-4);
}

.form-success {
  display: none;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-success[data-visible='true'] {
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
}

.cta-band .section-title {
  color: #fff;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.cta-band p {
  color: #f6e3d8;
  font-size: var(--text-lg);
  max-width: 30ch;
}

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

.btn--light:hover {
  background: #f6e3d8;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-ink);
  color: var(--color-ink-text-muted);
  padding-block: var(--space-12);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: center;
}

.footer .brand__name {
  color: var(--color-ink-text);
}

.footer .brand__tag {
  color: var(--color-ink-text-muted);
}

.footer a {
  color: var(--color-ink-text);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer a:hover {
  color: #f0964f;
}

.footer__meta {
  font-size: var(--text-xs);
}

/* Single-photo project: retain the full portrait on every screen size. */
.project-gallery--single { grid-template-columns: minmax(0, 588px); grid-template-rows: auto; }
.project-gallery--single .project-photo { aspect-ratio: 3 / 4; }

/* Two-photo project: portrait + landscape side by side. */
.project-gallery--two { grid-template-columns: 3fr 4fr; grid-template-rows: 460px; }
@media (max-width: 900px) {
  .project-gallery--two { grid-template-columns: 1fr; grid-template-rows: auto; }
  .project-gallery--two .project-photo:first-child { aspect-ratio: 3 / 4; }
  .project-gallery--two .project-photo:last-child { aspect-ratio: 4 / 3; }
}
