/*
Theme Name: Blue Jay Writings
Theme URI: https://thefreewebsiteguys.com
Author: The Free Website Guys
Author URI: https://thefreewebsiteguys.com
Description: WordPress theme generated to match the original Blue Jay Writings Lovable frontend.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: blue-jay-writings
*/

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-400italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
}

p {
  margin: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bjw-site {
  min-height: 100vh;
  background: var(--background);
}

.bjw-container {
  width: min(100%, 1152px);
  margin: 0 auto;
}

.bjw-section-label {
  color: var(--primary);
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
}

.bjw-section-title {
  color: var(--foreground);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: 1;
}

.bjw-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bjw-hero__content,
.bjw-hero__media {
  flex: 1 1 50%;
}

.bjw-hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--background);
}

.bjw-hero__inner {
  width: min(100%, 36rem);
}

.bjw-hero__eyebrow {
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.bjw-hero__title {
  margin-bottom: 2rem;
  color: var(--foreground);
  font-size: clamp(3.75rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.bjw-hero__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.bjw-hero__logo {
  width: auto;
  height: 2.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.3));
}

.bjw-hero__brand-text {
  color: var(--muted-foreground);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.04em;
}

.bjw-hero__tagline {
  margin-bottom: 2.5rem;
  padding-left: 0.25rem;
  color: rgba(var(--muted-foreground-rgb), 0.7);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.bjw-hero__line {
  width: 5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(var(--primary-rgb), 0) 100%);
}

.bjw-hero__media {
  position: relative;
  min-height: 60vh;
}

.bjw-hero__image {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  object-fit: cover;
  object-position: top;
}

.bjw-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--background) 0%, rgba(var(--background-rgb), 0) 58%, rgba(var(--background-rgb), 0) 100%);
  opacity: 0.6;
}

.bjw-scroll-indicator {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  transform: translateX(-50%);
  cursor: pointer;
  transition: color 0.25s ease;
  animation: bjw-bounce 2s infinite;
}

.bjw-scroll-indicator:hover {
  color: var(--foreground);
}

.bjw-scroll-indicator--desktop {
  display: none;
  bottom: 2.5rem;
}

.bjw-scroll-indicator--mobile {
  bottom: 1.5rem;
  z-index: 20;
}

.bjw-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
}

.bjw-icon svg {
  width: 100%;
  height: 100%;
}

.bjw-about {
  padding: 6rem 1.5rem;
}

.bjw-about__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.bjw-about__media {
  position: relative;
}

.bjw-about__image-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.bjw-about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.7s ease;
}

.bjw-about__media:hover .bjw-about__image {
  filter: grayscale(0);
}

.bjw-about__border {
  position: absolute;
  inset: auto -1rem -1rem auto;
  width: 100%;
  height: 100%;
  border: 1px solid var(--primary);
  z-index: -1;
}

.bjw-about__content .bjw-section-title {
  margin: 0 0 2rem;
}

.bjw-about__content .bjw-section-label {
  display: inline-block;
  margin-bottom: 1rem;
}

.bjw-about__text {
  display: grid;
  gap: 1.5rem;
  color: var(--muted-foreground);
  font-weight: 300;
  line-height: 1.8;
}

.bjw-about__text-strong {
  color: var(--foreground);
  font-weight: 400;
}

.bjw-writing {
  padding: 6rem 1.5rem;
  background: var(--card);
}

.bjw-writing__header {
  margin-bottom: 4rem;
  text-align: center;
}

.bjw-writing__header .bjw-section-label {
  display: inline-block;
  margin-bottom: 1rem;
}

.bjw-writing__items {
  display: grid;
  gap: 2rem;
}

.bjw-writing__item--customize-hidden {
  display: none;
}

.bjw-writing__item {
  padding: 1rem 0 1rem 2rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.3s ease;
}

.bjw-writing__item:hover {
  border-left-color: var(--primary);
}

.bjw-writing__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bjw-writing__icon-wrap {
  flex: 0 0 auto;
}

.bjw-writing__icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  transition: all 0.5s ease;
}

.bjw-writing__item:hover .bjw-writing__icon-box {
  border-color: var(--primary);
  background: var(--primary);
}

.bjw-writing__icon-box .bjw-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  transition: color 0.5s ease;
}

.bjw-writing__item:hover .bjw-writing__icon-box .bjw-icon {
  color: var(--primary-foreground);
}

.bjw-writing__title {
  margin-bottom: 0.5rem;
  color: var(--foreground);
  font-size: clamp(1.75rem, 2.5vw, 2rem);
  transition: color 0.3s ease;
}

.bjw-writing__item:hover .bjw-writing__title {
  color: var(--primary);
}

.bjw-writing__description {
  color: var(--muted-foreground);
  font-weight: 300;
  line-height: 1.8;
}

.bjw-portfolio {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
}

.bjw-portfolio__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--secondary-rgb), 0.3) 0%, var(--background) 62%, var(--background) 100%);
}

.bjw-portfolio__inner {
  position: relative;
  z-index: 10;
}

.bjw-portfolio__header {
  margin-bottom: 5rem;
  text-align: center;
}

.bjw-portfolio__header .bjw-section-label {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}

.bjw-portfolio__header .bjw-section-title {
  margin-bottom: 1.5rem;
}

.bjw-portfolio__divider {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.bjw-portfolio__divider-line {
  width: 3rem;
  height: 1px;
  background: rgba(var(--primary-rgb), 0.4);
}

.bjw-portfolio__divider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.6);
}

.bjw-portfolio__grid {
  display: grid;
  gap: 1.5rem;
}

.bjw-card--customize-hidden {
  display: none;
}

.bjw-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--border-rgb), 0.6);
  border-radius: 0.75rem;
  background: var(--card);
  transition: all 0.5s ease;
}

.bjw-card:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 8px 40px -12px rgba(var(--primary-rgb), 0.2);
}

.bjw-card__media {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

.bjw-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.bjw-card:hover .bjw-card__image {
  transform: scale(1.05);
}

.bjw-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--card) 0%, rgba(var(--card-rgb), 0.4) 45%, rgba(var(--card-rgb), 0) 100%);
}

.bjw-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.9);
  color: var(--primary-foreground);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bjw-card__body {
  padding: 0.5rem 1.5rem 1.5rem;
}

.bjw-card__type {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: rgba(var(--primary-rgb), 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bjw-card__title {
  margin-bottom: 0.75rem;
  color: var(--foreground);
  font-size: clamp(1.75rem, 2vw, 2rem);
  transition: color 0.3s ease;
}

.bjw-card:hover .bjw-card__title {
  color: var(--primary);
}

.bjw-card__description {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.bjw-contact {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
}

.bjw-contact__background,
.bjw-contact__background-image,
.bjw-contact__background-overlay {
  position: absolute;
  inset: 0;
}

.bjw-contact__background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bjw-contact__background-overlay {
  background: rgba(var(--background-rgb), 0.7);
}

.bjw-contact__inner {
  position: relative;
  text-align: center;
}

.bjw-contact__logo {
  width: auto;
  height: 3rem;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.3));
}

.bjw-contact__label {
  display: inline-block;
  margin-bottom: 1rem;
}

.bjw-contact__title {
  margin-bottom: 2rem;
  color: var(--foreground);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.bjw-contact__description {
  width: min(100%, 36rem);
  margin: 0 auto 3rem;
  color: rgba(var(--foreground-rgb), 0.7);
  font-weight: 300;
  line-height: 1.8;
}

.bjw-contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.bjw-contact__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 13rem;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  overflow: hidden;
}

.bjw-contact__button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
}

.bjw-contact__button--primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(var(--primary-rgb), 0.6);
}

.bjw-contact__button--secondary {
  border: 2px solid rgba(var(--primary-rgb), 0.6);
  color: var(--primary);
  background: rgba(var(--background-rgb), 0.1);
  backdrop-filter: blur(8px);
}

.bjw-contact__button--secondary:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.2);
}

.bjw-contact__button-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.bjw-contact__button--primary:hover .bjw-contact__button-shine {
  transform: translateX(100%);
}

.bjw-contact__button-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.bjw-contact__button--secondary:hover .bjw-contact__button-icon--phone {
  animation: bjw-pulse 1.2s infinite;
}

.bjw-contact__address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  color: rgba(var(--foreground-rgb), 0.6);
  font-size: 0.875rem;
}

.bjw-contact__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.bjw-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(var(--foreground-rgb), 0.3);
  border-radius: 999px;
  color: rgba(var(--foreground-rgb), 0.5);
  transition: all 0.3s ease;
}

.bjw-social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.3);
  transform: scale(1.1);
}

.bjw-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.bjw-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

.bjw-footer__text,
.bjw-footer__nav-link {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.bjw-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.bjw-footer__nav-link,
.bjw-footer__link {
  transition: color 0.25s ease;
}

.bjw-footer__nav-link:hover,
.bjw-footer__link:hover {
  color: var(--primary);
}

.bjw-footer__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bjw-not-found {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--muted);
}

.bjw-not-found__inner {
  text-align: center;
}

.bjw-not-found__title {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.bjw-not-found__text {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  font-size: 1.25rem;
}

.bjw-not-found__link {
  color: var(--primary);
  text-decoration: underline;
}

.bjw-animate-fade-in {
  opacity: 0;
  animation: bjw-fade-in 0.8s ease-out forwards;
}

.bjw-animate-slide-up {
  opacity: 0;
  animation: bjw-slide-up 0.8s ease-out forwards;
}

@keyframes bjw-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bjw-slide-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bjw-bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(-50%, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(-50%, -10px, 0);
  }

  70% {
    transform: translate3d(-50%, -5px, 0);
  }

  90% {
    transform: translate3d(-50%, -2px, 0);
  }
}

@keyframes bjw-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@media (min-width: 640px) {
  .bjw-contact__actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .bjw-about {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .bjw-about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
  }

  .bjw-writing,
  .bjw-contact {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .bjw-writing__row {
    flex-direction: row;
    gap: 2rem;
  }

  .bjw-writing__content {
    flex: 1 1 auto;
  }

  .bjw-portfolio__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bjw-footer__inner {
    flex-direction: row;
    text-align: left;
  }

  .bjw-footer__copy,
  .bjw-footer__credit {
    flex: 1 1 0;
  }

  .bjw-footer__credit {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .bjw-hero {
    flex-direction: row;
  }

  .bjw-hero__content {
    padding: 0 5rem;
  }

  .bjw-hero__inner {
    margin-left: auto;
    margin-right: 4rem;
    margin-top: -4rem;
  }

  .bjw-hero__media,
  .bjw-hero__image {
    min-height: 100vh;
  }

  .bjw-hero__overlay {
    opacity: 0.4;
  }

  .bjw-scroll-indicator--desktop {
    display: inline-flex;
  }

  .bjw-scroll-indicator--mobile {
    display: none;
  }
}
