/* =========================================================
   John Milane Portfolio
   ========================================================= */

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

button, input, select, optgroup, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  border-radius: 0;
  background-color: transparent;
}

button {
  cursor: pointer;
}

ol, ul, menu {
  list-style: none;
}

/* Functional utility kept for JS/Flowbite toggling (mobile menu) */
.hidden {
  display: none !important;
}

/* ---------------------------------------------------------
   2. Design tokens & base styles
   --------------------------------------------------------- */
:root {
  --color-primary: #f2f4f7;
  --color-secondary: #0c0e0f;
  --color-white: #ffffff;
  --text-white: #ffffff;
  --text-black: #262626;
  --text-gray: #6f7984;
  --color-gray-500: oklch(55.1% 0.027 264.364); /* ~ #6a7282 */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--text-black);
  background-color: #fff;
}

/* ---------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------- */
.page-container {
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

#work {
  scroll-margin-top: 160px;
}

/* =========================================================
   4. Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background-color: var(--color-white);
  padding-top: 18px;
  padding-bottom: 18px;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.site-logo {
  font-weight: 400;
  font-size: 1.875rem;
  line-height: calc(2.25 / 1.875);
  text-decoration: none;
  color: inherit;
}

.main-nav {
  display: none;
  align-items: center;
  justify-content: center;
  column-gap: 4rem;
}
@media (min-width: 48rem) {
  .main-nav {
    display: flex;
  }
}
.main-nav .nav-link {
  font-weight: 500;
  font-size: 1.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Reserves its layout space on mobile but stays invisible;
   only becomes visible at the desktop breakpoint. */
.header-cta {
  visibility: hidden;
  font-weight: 500;
  font-size: 1.25rem;
}
@media (min-width: 48rem) {
  .header-cta {
    visibility: visible;
  }
}

.mobile-menu-toggle {
  display: inline-flex;
}
@media (min-width: 48rem) {
  .mobile-menu-toggle {
    display: none;
  }
}

.icon-menu {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* also swap this — white-on-white border was invisible */
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}
@media (min-width: 48rem) {
  .mobile-menu-panel {
    display: none !important;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-nav-link {
  display: block;
  padding-block: 1rem;
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
  border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent);
  text-decoration: none;
  color: inherit;
}

.mobile-nav-cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   5. Buttons & animated links
   ========================================================= */
.nav-link {
  position: relative;
  text-decoration: none;
  color: inherit;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #242424;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #242424;
  color: #fff;
  border-radius: 999px;
  border: 1px solid #242424;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 400;
  font-size: 1.25rem;
}
.nav-button:hover {
  background: #fff;
  border: 1px solid #242424;
  color: #242424;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.arrow {
  width: 48px;
  height: 16px;
  overflow: visible;
}
.arrow-line,
.arrow-head {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow-line {
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.arrow-head {
  transition: transform 0.3s ease;
}
.learn-more:hover .arrow-line {
  transform: scaleX(1.4);
}
.learn-more:hover .arrow-head {
  transform: translateX(12px);
}

.contact-link {
  position: relative;
  display: inline-block;
  color: #000;
  text-decoration: none;
}
.contact-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #b2b8c2;
}
.contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #000;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.contact-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.contact-email {
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  font-weight: 500;
}

/* Footer links (final effective rule — see conversion notes) */
.footer-link {
  text-decoration: none;
  color: var(--text-black);
  position: relative;
  display: inline-block;
}
.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: #b2b8c2;
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: #262626;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Email copy widget */
.email-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.copy-button {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.copy-button:active {
  transform: scale(0.95);
}
.copy-button svg {
  width: 26px;
  height: 26px;
  stroke: var(--text-black);
  fill: none;
  stroke-width: 2;
}
.copied {
  color: var(--text-black);
  font-size: 14px;
  margin-top: 12px;
  height: 18px;
}

/* =========================================================
   6. Home page
   ========================================================= */
.home-hero {
  padding-block: 6rem;
}
.home-feature-img {
  border-radius: 20px;
}
@media (min-width: 48rem) {
  .home-hero {
    padding-block: 4.5rem;
  }
}
.home-hero-inner {
  margin-top: 8rem;
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}
@media (min-width: 64rem) {
  .home-hero-inner {
    flex-direction: row;
  }
}
.home-hero-content {
  width: 100%;
}
.home-hero-title {
  font-weight: 600;
  font-size: 6rem;
  line-height: 1;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}
.home-hero-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 3.5rem;
}

.home-feature {
  padding-top: 0;
  padding-bottom: 0;
}
.home-feature-body {
  padding-block: 1.5rem;
}
.home-feature-title {
  font-size: 2.25rem;
  line-height: calc(2.5 / 2.25);
  font-weight: 500;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}
.home-feature-desc {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-black);
}
.home-feature-meta {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-gray-500);
}

.home-projects {
  padding-top: 10rem;
  margin-bottom: 7.5rem;
}
.project-grid {
  display: grid;
  gap: 5rem;
}
@media (min-width: 48rem) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.project-card {
  overflow: hidden;
}
.project-card-img {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  border-radius: 20px;
}
.project-card-body {
  padding-block: 1.5rem;
}
.project-card-title {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.project-card-desc {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-black);
}
.project-card-meta {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-gray-500);
}
.project-card-meta--tight {
  margin-bottom: 0.75rem;
}

.about-band {
  background-color: var(--color-secondary);
  width: 100%;
  margin-inline: auto;
}
.about-band-inner {
  padding-top: 10rem;
  padding-bottom: 10rem;
}
.about-band-title {
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  color: var(--text-white);
  margin-bottom: 3.5rem;
  text-align: center;
}
.about-band-text {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--text-white);
}

.services-band {
  width: 100%;
  margin-inline: auto;
}
.services-band-title-wrap {
  padding-top: 12.5rem;
  padding-bottom: 6rem;
  text-align: center;
}
.services-band-title {
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 3.5rem;
}
.service-block {
  padding-top: 0;
  padding-bottom: 6rem;
}
.service-block--spaced {
  padding-top: 0;
}
@media (min-width: 64rem) {
  .service-block--spaced {
    padding-top: 8rem;
  }
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.service-name {
  padding-bottom: 1rem;
  font-size: 2.25rem;
  line-height: calc(2.5 / 2.25);
  font-weight: 500;
}
.service-desc {
  padding-right: 1rem;
  font-size: 1.25rem;
  line-height: 1.625;
}
@media (min-width: 64rem) {
  .service-desc {
    padding-left: 2rem;
  }
}
@media (min-width: 64rem) {
  .service-list-wrap {
    padding-left: 5rem;
  }
}
.service-list {
  font-size: 1.25rem;
  font-weight: 600;
}
.service-list-item {
  padding-bottom: 0.5rem;
}

.contact-section {
  padding-top: 8rem;
  padding-bottom: 6rem;
  text-align: center;
}
.contact-title {
  font-weight: 600;
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 4rem;
}
.contact-subtitle {
  font-weight: 400;
  font-size: 2.25rem;
  line-height: calc(2.5 / 2.25);
  margin-bottom: 1rem;
}
.contact-text {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 7.5rem;
}
.contact-label {
  font-weight: 400;
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  margin-bottom: 1rem;
  color: var(--color-gray-500);
}

/* =========================================================
   7. Footer
   ========================================================= */
.site-footer {
  padding: 1.5rem 0;
}
.footer-inner {
  margin-bottom: 3rem;
}
.footer-quote-box {
  text-align: center;
  letter-spacing: 0.1em;
  padding: 5rem;
  margin-bottom: 7.5rem;
  background-color: var(--color-primary);
  border-radius: 0.75rem;
}
.footer-quote {
  font-size: 2.25rem;
  line-height: calc(2.5 / 2.25);
}
.footer-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  font-size: 1rem;
  line-height: 1.5;
}
@media (min-width: 64rem) {
  .footer-row {
    flex-direction: row;
  }
}
.footer-col {
  width: 100%;
}
@media (min-width: 64rem) {
  .footer-col {
    width: 50%;
  }
  .footer-col--right {
    text-align: right;
  }
}
.footer-copyright {
  margin-bottom: 1rem;
}
.footer-links {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
@media (min-width: 64rem) {
  .footer-links {
    justify-content: flex-end;
  }
}

/* =========================================================
   8. Case study pages (hirten, catholic-art-creations)
   ========================================================= */
.case-hero {
  padding-block: 6rem;
}
@media (min-width: 48rem) {
  .case-hero {
    padding-block: 5rem;
  }
}
.case-hero-inner {
  margin-top: 7.5rem;
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 64rem) {
  .case-hero-inner {
    flex-direction: row;
  }
}
.case-hero-content {
  width: 100%;
}
.case-hero-title {
  font-size: 3rem;
  line-height: 1;
  font-weight: 500;
  margin-bottom: 3rem;
}

.case-info {
  width: 100%;
  padding-inline: 1.5rem;
  padding-block: 5rem;
}
.case-info-card {
  margin-inline: auto;
  display: grid;
  width: 100%;
  max-width: 80rem;
  gap: 3.5rem;
  border-radius: 1rem;
  background-color: var(--color-primary);
  padding-inline: 1.75rem;
  padding-block: 2.25rem;
}
@media (min-width: 48rem) {
  .case-info-card {
    padding-inline: 3rem;
    padding-block: 3rem;
  }
}
@media (min-width: 64rem) {
  .case-info-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: 5rem;
    padding-inline: 63px;
    padding-block: 62px;
  }
}

/* Info card content (originally from the site's "About Section" block) */
.about-content h1 {
  margin: 0 0 27px;
  font-size: 42px;
  font-weight: 500;
}
.about-content p {
  max-width: 770px;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}
.details {
  padding-top: 4px;
}
.meta {
  display: grid;
  gap: 40px;
}
.meta-item h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}
.meta-item p,
.meta-item a {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}
.meta-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-overview {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.case-overview-title {
  font-weight: 600;
  font-size: 2.25rem;
  line-height: calc(2.5 / 2.25);
  margin-bottom: 3.5rem;
}
.case-overview-text {
  margin-bottom: 1.5rem;
}
.case-overview-subhead {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.case-overview-tags {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 3rem;
}
.case-overview-link {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.case-overview-link:hover {
  text-decoration: underline;
}

.case-gallery {
  margin-bottom: 5rem;
}
.case-gallery--top {
  margin-top: 5rem;
}
.case-gallery-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}
