/* ======================
   JOHN'S CONSTRUCTION
   main.css
   ====================== */

/* 1. Custom Properties
   ====================== */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg:           #ffffff;
  --bg-2:         #f8f7fb;
  --bg-3:         #efedf7;
  --surface:      #e8e5f2;
  --amber:        #b4272f;
  --amber-bright: #cf303b;
  --amber-dim:    rgba(180, 39, 47, 0.10);
  --text:         #56517f;
  --text-muted:   #6b668f;
  --text-faint:   #9b95b6;
  --border:       #e2dfec;
  --border-mid:   #bbb5d2;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --section-pad:    120px;
  --container-max:  1320px;
  --container-pad:  28px;

  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
}

/* 2. Reset
   ====================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* 3. Layout
   ====================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* 4. Navigation
   ====================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: background 0.45s var(--ease), padding 0.35s var(--ease);
}

.nav.scrolled {
  background: rgba(13, 12, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__logo-mark {
  width: 42px;
  height: 42px;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.nav__logo-text em {
  font-style: normal;
  color: var(--amber);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber);
  transition: width 0.35s var(--ease);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--text);
  transform-origin: center;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 5. Mobile Menu
   ====================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-2);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s var(--ease);
}

.mobile-menu.open {
  clip-path: inset(0 0 0% 0);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--amber);
}

/* 6. Buttons
   ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

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

.btn--primary:hover {
  background: var(--amber-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(240, 160, 0, 0.30);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-mid);
}

.btn--ghost:hover {
  border-color: rgba(237, 232, 220, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber);
}

.btn--outline:hover {
  background: var(--amber);
  color: var(--bg);
}

.btn--full {
  width: 100%;
}

/* 7. Image Templates
   ====================== */
/* ┌──────────────────────────────────────────────────────────────────┐
   │  HOW TO ADD YOUR PHOTOS                                         │
   │  Replace any .img-template div with:                            │
   │  <img src="your-photo.jpg" alt="description" class="photo">     │
   │  Then add:  .photo { width: 100%; height: 100%; object-fit: cover; } │
   └──────────────────────────────────────────────────────────────────┘ */

.img-template {
  position: relative;
  background: var(--bg-3);
  border: 1.5px dashed var(--border-mid);
  overflow: hidden;
  transition: border-color 0.3s;
}

.img-template:hover {
  border-color: rgba(240, 160, 0, 0.45);
}

.img-template__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.img-template__inner svg {
  color: var(--text-faint);
  opacity: 0.55;
  transition: color 0.3s, opacity 0.3s;
  flex-shrink: 0;
}

.img-template:hover .img-template__inner svg {
  color: var(--amber);
  opacity: 0.9;
}

.img-template__inner p {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.img-template__inner span {
  font-size: 0.6875rem;
  color: var(--text-faint);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.img-template--hero    { aspect-ratio: 4 / 3; width: 100%; }
.img-template--service { aspect-ratio: 16 / 11; width: 100%; }
.img-template--project-lg { aspect-ratio: 3 / 4; width: 100%; }
.img-template--project-sm { aspect-ratio: 4 / 3; width: 100%; }
.img-template--project-wide { aspect-ratio: 21 / 9; width: 100%; }

/* 8. Section Headers
   ====================== */
.section-header {
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--amber);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.025em;
  line-height: 0.93;
  color: var(--text);
  text-transform: uppercase;
}

/* 9. Hero
   ====================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse at 60% 40%, rgba(240, 160, 0, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber) 0%, transparent 55%);
}

.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 120px var(--container-pad) 80px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
}

.hero__label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--amber);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 9.5vw, 9.5rem);
  line-height: 0.875;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.hero__title-line { display: block; }
.hero__title-line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.hero__title-line--accent { color: var(--amber); }

.hero__desc {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 52px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__visual::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border-top: 1.5px solid var(--amber);
  border-right: 1.5px solid var(--amber);
  pointer-events: none;
  z-index: -1;
}

.hero__visual::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 40%;
  height: 40%;
  border-bottom: 1.5px solid var(--border-mid);
  border-left: 1.5px solid var(--border-mid);
  pointer-events: none;
  z-index: -1;
}

/* 10. About Strip
   ====================== */
.about-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  overflow: hidden;
}

.about-strip__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 56px;
  align-items: center;
}

.about-strip__badge {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
  font-weight: 500;
}

.about-strip__text {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-strip__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.about-strip__tags span {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 7px 13px;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 400;
  transition: color 0.2s, border-color 0.2s;
}

.about-strip__tags span:hover {
  color: var(--text-muted);
  border-color: var(--border-mid);
}

/* 11. Services
   ====================== */
.services {
  padding: var(--section-pad) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.service-card {
  background: var(--bg);
  transition: background 0.3s;
  overflow: hidden;
}

.service-card:hover {
  background: var(--bg-2);
}

.service-card__body {
  padding: 28px 32px 36px;
}

.service-card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 18px;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--text);
  text-transform: uppercase;
}

.service-card__desc {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
}

/* 12. Projects
   ====================== */
.projects {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.project-card {
  position: relative;
  background: var(--bg-3);
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card--large {
  grid-row: span 2;
}

.project-card--wide {
  grid-column: 1 / -1;
}

.project-card__info {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.project-card__tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--amber);
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: uppercase;
}

.project-card__loc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* 14. Footer
   ====================== */
.footer {
  padding: 80px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 72px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__brand p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 300px;
}

.footer__col h4 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--amber);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-weight: 300;
}

/* 15. Page Hero (inner pages)
   ====================== */
.page-hero {
  padding-top: 168px;
  padding-bottom: 80px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 35%;
  height: 3px;
  background: var(--amber);
}

.page-hero__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero__label::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--amber);
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 7.5vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}

.page-hero__subtitle {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 540px;
}

/* 16. Form Styles
   ====================== */
.form-section {
  padding: var(--section-pad) 0;
}

.form-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: start;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 15px 18px;
  transition: border-color 0.25s, background 0.25s;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border-radius: 0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--amber);
  background: var(--bg-3);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-faint);
}

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

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c8272' stroke-width='1.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.form-select option {
  background: var(--bg-2);
  color: var(--text);
}

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

.form-submit {
  margin-top: 6px;
}

.form-success {
  display: none;
  padding: 20px;
  background: var(--amber-dim);
  border: 1px solid rgba(240, 160, 0, 0.3);
  color: var(--text);
  font-size: 0.9375rem;
  margin-top: 16px;
  text-align: center;
}

/* Form sidebar / info panel */
.form-sidebar {
  position: sticky;
  top: 100px;
}

.form-sidebar__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text);
}

.form-sidebar__desc {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-item {
  margin-bottom: 28px;
}

.contact-item__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 7px;
}

.contact-item__value {
  font-size: 1.0625rem;
  color: var(--text);
  transition: color 0.2s;
}

.contact-item__value a {
  color: var(--text);
  transition: color 0.2s;
}

.contact-item__value a:hover {
  color: var(--amber);
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 36px 0;
}

/* 17. Contact Page - Info Grid
   ====================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-bottom: 80px;
}

.contact-box {
  background: var(--bg-2);
  padding: 44px 40px;
}

.contact-box__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--amber);
}

.contact-box__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}

.contact-box__value {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-box__value a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-box__value a:hover {
  color: var(--amber);
}

/* 18. Scroll Reveal
   ====================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* 19. Media Queries
   ====================== */
@media (max-width: 1100px) {
  :root { --section-pad: 90px; }

  .about-strip__container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-strip__tags { justify-content: flex-start; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .footer__brand { grid-column: 1 / -1; }

  .form-layout { grid-template-columns: 1fr; gap: 56px; }
  .form-sidebar { position: static; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px; --container-pad: 20px; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 120px var(--container-pad) 60px;
  }
  .hero__visual { order: -1; }

  .projects__grid {
    grid-template-columns: 1fr;
  }
  .project-card--large,
  .project-card--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero__title { font-size: clamp(3.5rem, 14vw, 5rem); }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
  .footer__bottom { flex-direction: column; text-align: center; }
}



/* =========================================================
   Local preview fixes + logo colour scheme
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f7f6fb;
  --bg-3: #eeedf6;
  --surface: #e7e4f1;
  --amber: #b4272f;        /* logo red */
  --amber-bright: #cc3038;
  --amber-dim: rgba(180, 39, 47, 0.10);
  --text: #55507f;         /* logo purple-blue */
  --text-muted: #6d6892;
  --text-faint: #9b96b7;
  --border: #e1deec;
  --border-mid: #b9b4d2;
}

body {
  background: var(--bg);
  color: var(--text);
}

.nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(85, 80, 127, 0.08);
}

.nav__logo {
  gap: 0;
}

.nav__logo-img {
  display: block;
  width: min(360px, 48vw);
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.footer__logo-img {
  display: block;
  width: min(340px, 100%);
  height: auto;
  object-fit: contain;
}

.hero,
.footer {
  background: #ffffff;
}

.page-hero,
.about-strip,
.projects,
.contact-box,
.form-input,
.form-select,
.form-textarea {
  background: var(--bg-2);
}

.hero::before {
  background: radial-gradient(ellipse at 60% 40%, rgba(85, 80, 127, 0.08) 0%, transparent 65%);
}

.hero__title {
  color: var(--text);
}

.hero__title--single {
  font-size: clamp(3.8rem, 8vw, 8rem);
  line-height: 0.95;
  max-width: 920px;
}

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

.btn--primary:hover {
  background: var(--amber-bright);
  box-shadow: 0 10px 32px rgba(180, 39, 47, 0.24);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--border-mid);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(85, 80, 127, 0.06);
}

.btn--outline {
  color: var(--amber);
  border-color: var(--amber);
}

.btn--outline:hover {
  background: var(--amber);
  color: #ffffff;
}

.img-template:hover,
.contact-box__icon {
  border-color: rgba(180, 39, 47, 0.45);
}

.img-template:hover .img-template__inner svg,
.contact-box__icon,
.section-label,
.hero__label,
.about-strip__badge,
.service-card__num,
.project-card__tag,
.footer__col a:hover,
.contact-item__value a:hover,
.contact-box__value a:hover,
.nav__logo-text em,
.nav__link::after,
.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--amber);
}

.section-label::before,
.hero__label::before,
.page-hero::before,
.hero::after {
  background: var(--amber);
}

.nav__link:hover,
.nav__link.active,
.section-title,
.service-card__title,
.project-card__title,
.form-sidebar__title,
.contact-box__title {
  color: var(--text);
}

@media (max-width: 720px) {
  .nav__logo-img {
    width: min(250px, 64vw);
  }

  .hero__title--single {
    font-size: clamp(3rem, 15vw, 5rem);
  }
}

/* Text-only service cards
   ====================== */
.services__grid--text-only {
  align-items: stretch;
}

.service-card--text {
  min-height: 245px;
  position: relative;
}

.service-card--text::before {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: var(--amber);
  opacity: 0.9;
}

.service-card--text .service-card__body {
  padding: 34px 34px 42px;
}

.service-card--text .service-card__desc {
  max-width: 420px;
}

/* Hero carousel
   ====================== */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-carousel__slide.active {
  opacity: 1;
  visibility: visible;
}

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

.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-carousel__dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(86, 81, 127, 0.35);
}

.hero-carousel__dots span.active {
  background: var(--amber);
  border-color: var(--amber);
}

/* Hero carousel
   ====================== */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
  border: 3px solid var(--amber);
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-carousel__slide.active {
  opacity: 1;
  visibility: visible;
}

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

.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-carousel__dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(86, 81, 127, 0.45);
  padding: 0;
  cursor: pointer;
}

.hero-carousel__dots button.active {
  background: var(--amber);
  border-color: var(--amber);
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid rgba(86, 81, 127, 0.25);
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-carousel__arrow:hover {
  background: var(--amber);
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.hero-carousel__arrow--prev {
  left: 16px;
}

.hero-carousel__arrow--next {
  right: 16px;
}

.hero-carousel {
  border: 3px solid var(--text);
}

.project-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Four square project cards
   ====================== */
.projects__grid--four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-card--square {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-card--square .project-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.project-card--square .project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Make sure old large/wide project styles do not affect these cards */
.project-card--square {
  grid-column: auto;
  grid-row: auto;
}

@media (max-width: 1100px) {
  .projects__grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .projects__grid--four {
    grid-template-columns: 1fr;
  }
}

/* Stacked homepage hero
   ====================== */
.hero--stacked {
  padding-top: 160px;
}

.hero__container--stacked {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero__content--stacked {
  max-width: none;
  width: 100%;
  text-align: center;
}

.hero__title--wide {
  width: 100%;
  max-width: none;
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
}

.hero__desc--center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions--center {
  justify-content: center;
}

.hero__visual--wide {
  width: 100%;
  max-width: none;
}

.hero__visual--wide .hero-carousel {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 3px solid var(--text);
}

@media (max-width: 900px) {
  .hero__title--wide {
    font-size: clamp(3rem, 15vw, 6rem);
    white-space: normal;
  }

  .hero__visual--wide .hero-carousel {
    aspect-ratio: 4 / 3;
  }
}

/* Background image hero slider
   ====================== */
.hero--background-slider {
  position: relative;
  min-height: 780px;
  padding: 180px 0 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-bg-carousel__slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      rgba(20, 18, 35, 0.55),
      rgba(20, 18, 35, 0.55)
    );
}

.hero__container--background {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
}

.hero__content--background {
  max-width: none;
  width: 100%;
  text-align: center;
  color: #ffffff;
}

.hero__content--background .hero__label {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.hero__title--background {
  width: 100%;
  max-width: none;
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
  color: #ffffff;
}

.hero__desc--background {
  max-width: 760px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions--center {
  justify-content: center;
}

.hero-bg-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.hero-bg-carousel__dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
}

.hero-bg-carousel__dots button.active {
  background: var(--amber);
  border-color: var(--amber);
}

@media (max-width: 900px) {
  .hero--background-slider {
    min-height: 680px;
    padding: 150px 0 80px;
  }

  .hero__title--background {
    font-size: clamp(3rem, 13vw, 6rem);
    white-space: normal;
  }
}

.btn--secondary {
  background: #ffffff;
  color: var(--text);
  border: 2px solid #ffffff;
}

.btn--secondary:hover {
  background: var(--amber);
  color: #ffffff;
  border-color: var(--amber);
}

.hero__actions .btn {
  min-width: 180px;
  text-align: center;
  justify-content: center;
}

.hero__content--background .hero__label {
  font-size: 1rem;
  padding: 10px 18px;
}

/* More space between hero text and buttons */
.hero__actions {
  margin-top: 36px;
}

/* Make homepage navbar background white */
.nav {
  background: #ffffff;
}