/* ==========================================================================
   Alma Media Studio - Main CSS Stylesheet
   ========================================================================== */

/* Blog / Page template wrapper & pagination (used in page.php, single.php, archive.php, index.php) */
.site-main {
  min-height: 60vh;
}
.page-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.2);
  font-size: 0.875rem;
  color: #CBD5E1;
}
.page-links a {
  color: #E2E8F0;
  text-decoration: underline;
  margin: 0 0.25rem;
}

/* Base & Typography Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background-color: #121212;
  color: #F8F9FA;
  font-family: 'Outfit', 'Josefin Sans', 'Cormorant Garamond', sans-serif;
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #E2E8F0;
  color: #000000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #121212;
}
::-webkit-scrollbar-thumb {
  background: #1C1C1E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E2E8F0;
}

/* Typography Headings */
.font-garamond {
  font-family: 'Cormorant Garamond', serif;
}
.font-josefin {
  font-family: 'Josefin Sans', sans-serif;
}
.font-outfit {
  font-family: 'Outfit', sans-serif;
}

.hero-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 40%, #E2E8F0 75%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.silver-gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 30%, #E2E8F0 70%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .site-header {
    padding: 0.75rem 2rem;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .site-header {
    flex-wrap: nowrap;
  }
}

.brand-logo-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.brand-logo-btn:hover {
  transform: scale(1.05);
}

.brand-logo-svg {
  width: 2rem;
  height: 2rem;
  color: #FFFFFF;
  transition: color 0.3s ease;
}
@media (min-width: 640px) {
  .brand-logo-svg {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.brand-logo-btn:hover .brand-logo-svg {
  color: #E2E8F0;
}

.brand-logo-text {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: #F8F9FA;
  text-transform: uppercase;
  margin-top: 0.25rem;
  transition: color 0.3s ease;
}
@media (min-width: 640px) {
  .brand-logo-text {
    font-size: 10px;
  }
}

.nav-links-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  order: 3;
}
@media (min-width: 640px) {
  .nav-links-container {
    gap: 1.5rem;
  }
}
@media (min-width: 768px) {
  .nav-links-container {
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  .nav-links-container {
    width: auto;
    order: 2;
    margin: 0;
  }
}

.nav-links-container ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 640px) {
  .nav-links-container ul {
    gap: 1.5rem;
  }
}
@media (min-width: 768px) {
  .nav-links-container ul {
    gap: 2rem;
  }
}

.nav-link-item a,
.nav-link-item button,
.nav-action-link {
  color: #F8F9FA;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}
@media (min-width: 640px) {
  .nav-link-item a,
  .nav-link-item button,
  .nav-action-link {
    letter-spacing: 0.18em;
    font-size: 12px;
  }
}
@media (min-width: 768px) {
  .nav-link-item a,
  .nav-link-item button,
  .nav-action-link {
    font-size: 14px;
  }
}

.nav-link-item a:hover,
.nav-link-item button:hover,
.nav-action-link:hover {
  color: #CBD5E1;
}

/* Floating Fixed Contact Button */
.floating-fixed-btn {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  pointer-events: auto;
}
@media (min-width: 640px) {
  .floating-fixed-btn {
    top: 1.5rem;
    right: 2rem;
  }
}

.contact-btn-silver {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.5rem 1rem;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(24, 26, 32, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #F1F5F9;
  border: 1px solid rgba(203, 213, 225, 0.3);
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.4), inset 0px 1px 1px rgba(255, 255, 255, 0.15);
  text-decoration: none;
}
@media (min-width: 640px) {
  .contact-btn-silver {
    padding: 0.625rem 1.25rem;
    font-size: 12px;
  }
}
.contact-btn-silver:hover {
  color: #FFFFFF;
  border-color: rgba(248, 250, 252, 0.6);
  background: #222630;
  transform: scale(1.05);
}
.contact-btn-silver:active {
  transform: scale(0.95);
}

.contact-btn-silver .btn-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #CBD5E1;
  transition: transform 0.3s ease, color 0.2s ease;
}
.contact-btn-silver:hover .btn-icon {
  color: #FFFFFF;
  transform: translate(2px, 2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: clip;
  background-color: #121212;
  user-select: none;
  padding-bottom: 2.5rem;
  padding-top: 6rem;
}
@media (min-width: 640px) {
  .hero-section {
    padding-bottom: 4rem;
    padding-top: 8rem;
  }
}

.hero-headline-container {
  width: 100%;
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  margin-top: 3rem;
  z-index: 20;
}
@media (min-width: 640px) {
  .hero-headline-container {
    padding: 0 1.5rem;
    margin-top: 4rem;
  }
}
@media (min-width: 768px) {
  .hero-headline-container {
    margin-top: 5rem;
  }
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: #F8F9FA;
  font-size: 2.25rem;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
@media (min-width: 640px) {
  .hero-title { font-size: 3.75rem; }
}
@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 6rem; }
}

.hero-title-italic {
  font-weight: 400;
  font-style: italic;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(to right, #FFFFFF, #E2E8F0, #94A3B8);
}

.hero-subtitle {
  margin-top: 1.5rem;
  color: #CBD5E1;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  max-width: 42rem;
  padding: 0 0.5rem;
}
@media (min-width: 640px) {
  .hero-subtitle {
    margin-top: 2rem;
    font-size: 1rem;
  }
}
@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Marquee Section */
.marquee-section {
  background-color: #121212;
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
  width: 100%;
}
@media (min-width: 640px) {
  .marquee-section { padding-top: 1.5rem; }
}
@media (min-width: 768px) {
  .marquee-section { padding-top: 2rem; }
}

.marquee-row {
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
  transition: transform 0.1s linear;
}

.marquee-item {
  width: 300px;
  height: 190px;
  flex-shrink: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.25);
  background-color: #1C1C1E;
  transition: border-color 0.3s ease;
}
@media (min-width: 640px) {
  .marquee-item {
    width: 420px;
    height: 270px;
  }
}
.marquee-item:hover {
  border-color: #E2E8F0;
}
.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.5s ease;
}
.marquee-item:hover img {
  transform: scale(1.05);
}

/* About Section */
.about-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-color: #121212;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .about-section { padding: 6rem 2rem; }
}
@media (min-width: 768px) {
  .about-section { padding: 6rem 2.5rem; }
}

.about-subhead {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #CBD5E1;
  font-weight: 300;
  display: block;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .about-subhead { font-size: 0.875rem; }
}

.about-title {
  font-size: clamp(2.5rem, 9vw, 120px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.animated-text-para {
  color: #F5F2EB;
  font-weight: 300;
  letter-spacing: 0.025em;
  text-align: center;
  line-height: 1.625;
  max-width: 580px;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.char-span {
  display: inline-block;
  transition: opacity 0.2s ease;
}

/* Expectation Cards Grid */
.expectations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
}
@media (min-width: 768px) {
  .expectations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.expectation-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background-color: #1C1C1E;
  border: 1px solid rgba(226, 232, 240, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
@media (min-width: 640px) {
  .expectation-card {
    padding: 2rem;
  }
}
.expectation-card:hover {
  border-color: rgba(226, 232, 240, 0.6);
}

.icon-wrapper {
  padding: 0.75rem;
  border-radius: 1rem;
  background-color: rgba(226, 232, 240, 0.15);
  color: #E2E8F0;
  border: 1px solid rgba(226, 232, 240, 0.3);
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expectation-card:hover .icon-wrapper {
  background-color: #E2E8F0;
  color: #000000;
}

/* Contact Info Banner */
.contact-banner {
  width: 100%;
  margin-top: 4rem;
  padding: 2rem;
  border-radius: 36px;
  background-color: #1C1C1E;
  border: 2px solid rgba(226, 232, 240, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
@media (min-width: 640px) {
  .contact-banner { padding: 2.5rem; }
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .banner-grid {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

/* Services Section */
.services-section {
  position: relative;
  z-index: 0;
  width: 100%;
  background-color: #F8F9FA;
  color: #121212;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 5rem 1.25rem;
}
@media (min-width: 640px) {
  .services-section {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    padding: 6rem 2rem;
  }
}
@media (min-width: 768px) {
  .services-section {
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    padding: 8rem 2.5rem;
  }
}

.services-title {
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 300;
  text-transform: uppercase;
  color: #121212;
  line-height: 1;
  letter-spacing: 0.025em;
  margin-bottom: 3rem;
  text-align: center;
}
@media (min-width: 640px) {
  .services-title { margin-bottom: 4rem; }
}
@media (min-width: 768px) {
  .services-title { margin-bottom: 5rem; }
}

.services-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid rgba(18, 18, 18, 0.15);
  border-radius: 1.5rem;
  background-color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) {
  .service-card { padding: 2rem; }
}
.service-card:hover {
  border-color: rgba(18, 18, 18, 0.4);
  background-color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-num {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 200;
  color: #64748B;
  line-height: 1;
  transition: color 0.3s ease;
}
.service-card:hover .service-num {
  color: #121212;
}

.service-icon-box {
  padding: 0.75rem;
  border-radius: 1rem;
  background-color: #E2E8F0;
  color: #121212;
  border: 1px solid #CBD5E1;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card:hover .service-icon-box {
  background-color: #121212;
  color: #F8F9FA;
}

/* Projects / Portfolio Stacking Section */
.projects-section {
  position: relative;
  z-index: 10;
  width: 100%;
  background-color: #121212;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -2.5rem;
  padding: 5rem 1.25rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .projects-section {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: -3rem;
    padding: 6rem 2rem;
  }
}
@media (min-width: 768px) {
  .projects-section {
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: -3.5rem;
    padding: 8rem 2.5rem;
  }
}

.projects-title {
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 4rem;
}
@media (min-width: 640px) {
  .projects-title { margin-bottom: 5rem; }
}
@media (min-width: 768px) {
  .projects-title { margin-bottom: 6rem; }
}

.project-card-sticky {
  position: sticky;
  top: 6rem;
  height: auto;
  margin-bottom: 3rem;
  will-change: transform;
  transition: transform 0.2s ease-out;
}
@media (min-width: 640px) {
  .project-card-sticky { margin-bottom: 5rem; }
}
@media (min-width: 768px) {
  .project-card-sticky { top: 8rem; }
}

.project-card-inner {
  width: 100%;
  background-color: #1C1C1E;
  border: 2px solid rgba(226, 232, 240, 0.4);
  border-radius: 40px;
  padding: 1rem;
  color: #F8F9FA;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transition: border-color 0.3s ease;
}
@media (min-width: 640px) {
  .project-card-inner {
    border-radius: 50px;
    padding: 1.5rem;
  }
}
@media (min-width: 768px) {
  .project-card-inner {
    border-radius: 60px;
    padding: 2rem;
  }
}
.project-card-inner:hover {
  border-color: rgba(226, 232, 240, 0.7);
}

.project-top-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.2);
}
@media (min-width: 768px) {
  .project-top-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
  }
}

.project-num {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 200;
  color: #E2E8F0;
  line-height: 1;
}

.project-badge {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.3);
  font-size: 0.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #CBD5E1;
}

.project-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .project-image-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 1.5rem;
  }
}

.project-col-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .project-col-left {
    grid-column: span 4 / span 4;
    gap: 1.5rem;
  }
}

.project-col-right {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  background-color: #121212;
  cursor: pointer;
  position: relative;
  min-height: 280px;
}
@media (min-width: 640px) {
  .project-col-right { border-radius: 40px; }
}
@media (min-width: 768px) {
  .project-col-right {
    grid-column: span 6 / span 6;
    min-height: 0;
  }
}

.project-img-wrapper {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  background-color: #121212;
  cursor: pointer;
}
@media (min-width: 640px) {
  .project-img-wrapper { border-radius: 40px; }
}

.project-img-wrapper img,
.project-col-right img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-img-wrapper:hover img,
.project-col-right:hover img {
  transform: scale(1.05);
}

/* Footer Section */
.site-footer {
  position: relative;
  z-index: 20;
  width: 100%;
  background-color: #121212;
  border-top: 1px solid rgba(226, 232, 240, 0.2);
  padding: 4rem 1.5rem;
  color: #F8F9FA;
}
@media (min-width: 640px) {
  .site-footer { padding: 6rem 2.5rem; }
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 42rem;
  background-color: #1C1C1E;
  border: 2px solid rgba(226, 232, 240, 0.5);
  border-radius: 30px;
  padding: 1.5rem;
  color: #F8F9FA;
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  margin: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}
@media (min-width: 640px) {
  .modal-card {
    border-radius: 40px;
    padding: 2.5rem;
  }
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  padding: 0.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.3);
  background: none;
  color: #F8F9FA;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  border-color: #E2E8F0;
  background-color: rgba(226, 232, 240, 0.15);
}

/* Lightbox Image Preview Modal */
.image-lightbox-img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

/* Fade-In Observer Animation Utility */
[data-animate="fade-in"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-animate="fade-in"].is-visible {
  opacity: 1;
  transform: translateY(0);
}
