/* ==========================================================================
   Loom Workz — Replica Stylesheet
   ========================================================================== */

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

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

html,
body {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Homepage scroll lock */
body.home-page {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* 2. Background Canvas Layer */
#bubble-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
  /* Click pops bubbles, hover repels them */
}

/* 3. Replica Layout (Overlaid on Canvas) */
.replica-container {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-block: clamp(2rem, 4vh, 6rem);
  padding-inline: 1.5rem;
  pointer-events: none;
  /* Let pointer events fall through to background canvas, except interactive elements */
}

/* Enable pointer events only for interactive items */
.top-nav,
.center-content,
.bottom-footer {
  pointer-events: auto;
}

/* Top Nav / ABOUT Us button */
.top-nav {
  text-align: center;
}

.about-btn {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0.5rem 1rem;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.about-btn:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.about-btn:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

/* Center Content / Logo Placement */
.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin-block: auto;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInLogo 1.5s ease-out;
}

.replica-logo {
  width: 100%;
  max-width: clamp(280px, 80vw, 1050px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bottom Footer / Address */
.bottom-footer {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.replica-address {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.75rem, 0.65rem + 0.6vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 4. Elegant Glassmorphic Modal */
.about-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.about-modal-content {
  background: rgba(13, 14, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 90%;
  max-width: 660px;
  max-height: 80vh;
  position: relative;
  padding: 3rem 2rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-modal-overlay.active .about-modal-content {
  transform: scale(1);
}

/* Custom Scroll Container inside Modal */
.modal-body-scroll {
  overflow-y: auto;
  max-height: 65vh;
  padding-right: 1rem;
}

/* Custom Scrollbar for Modal Scroll */
.modal-body-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-body-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.modal-body-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.modal-body-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Close Button */
.close-modal-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.close-modal-btn:hover {
  color: #ffffff;
  transform: rotate(90deg);
}

.close-modal-btn:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

/* Modal Text Styling */
.modal-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-text-content p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  text-align: justify;
}

.about-lead {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  color: #ffffff !important;
  font-weight: 400;
}

.about-footer-text {
  font-size: 1.02rem !important;
  color: #ffffff !important;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
  margin-top: 0.8rem;
}

/* ==========================================================================
   5. Light-Themed Pages (About & Contact - Background #fbf4ea)
   ========================================================================== */

.light-page {
  background-color: #fbf4ea;
  color: #0c0d12;
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
}

.light-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* Light Header Nav */
.light-header {
  width: 100%;
  height: 8.5rem; /* Scaled up to fit 135px logo */
  background-color: #fbf4ea;
  border-bottom: 1.5px solid rgba(12, 13, 18, 0.06);
  position: sticky;
  top: 0;
  z-index: 500;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  color: #0c0d12;
  letter-spacing: -0.01em;
}

.light-nav {
  display: flex;
  gap: 2.5rem;
}

.light-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(12, 13, 18, 0.6);
  transition: color 0.25s ease;
  position: relative;
  padding-block: 0.4rem;
}

.light-nav-link:hover {
  color: #0c0d12;
}

.light-nav-link.active {
  color: #0c0d12;
  font-weight: 600;
}

/* Black Logo Image Styles */
.brand-logo-link {
  display: flex;
  align-items: center;
  outline: none;
}

.brand-logo-img {
  height: 135px; /* 1.5x bigger (90px * 1.5) */
  width: auto;
  object-fit: contain;
  filter: invert(1) brightness(0);
  /* Dynamic white-to-black color filter */
  transition: opacity 0.25s ease;
}

.brand-logo-link:hover .brand-logo-img {
  opacity: 0.7;
}

.brand-logo-link:focus-visible {
  outline: 1px solid rgba(12, 13, 18, 0.3);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Light Main Content Sections */
.light-main {
  min-height: calc(100vh - 14rem);
  /* Fills screen height minus header/footer */
  padding-bottom: 6rem;
}

/* About Section Specifics */
.about-hero-section {
  padding-top: 4rem;
}

.light-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(12, 13, 18, 0.4);
  display: inline-block;
  margin-bottom: 0.8rem;
}

.light-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(2.8rem, 2rem + 4vw, 5.5rem);
  font-weight: 400;
  color: #0c0d12;
  line-height: 1.05;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

.about-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .about-layout-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
  }
}

.about-hero-left {
  position: static !important;
}

@media (min-width: 992px) {
  .about-hero-left {
    position: sticky !important;
    top: 10rem;
  }
}

.about-hero-italic-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
  line-height: 1.35;
  color: #0c0d12;
  margin-bottom: 2.5rem;
}

.about-hero-info-stamp {
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
  border-left: 3px solid #0c0d12;
}

.stamp-year {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0c0d12;
}

.stamp-loc {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(12, 13, 18, 0.5);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.about-hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.about-hero-right p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(12, 13, 18, 0.8);
  text-align: justify;
}

.about-hero-bold-footer {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #0c0d12 !important;
  border-top: 1.5px solid rgba(12, 13, 18, 0.08);
  padding-top: 2rem;
  margin-top: 1rem;
}

/* Contact Section Specifics */
.contact-page-section {
  padding-top: 4rem;
}

.contact-hero-header {
  margin-bottom: 5rem;
  max-width: 1000px;
}

.contact-hero-bold-title {
  font-size: clamp(2rem, 1.4rem + 3.3vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0c0d12;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .contact-layout-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
  }
}

.contact-form-elements {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  width: 100%;
}

.form-field-wrapper {
  position: relative;
  width: 100%;
}

.light-input-field {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(12, 13, 18, 0.12);
  background: transparent;
  padding: 1.2rem 0;
  font-family: inherit;
  font-size: 1.15rem;
  color: #0c0d12;
  transition: border-color 0.3s;
  outline: none;
  border-radius: 0;
}

.light-input-field::placeholder {
  color: rgba(12, 13, 18, 0.4);
}

.light-input-field:focus {
  border-color: #0c0d12;
}

/* Custom Accordion Dropdown Subject Field */
.accordion-subject-field {
  position: relative;
  width: 100%;
}

.accordion-select-btn {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(12, 13, 18, 0.12);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  font-family: inherit;
  font-size: 1.15rem;
  color: #0c0d12;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s;
}

.accordion-select-btn:focus {
  border-color: #0c0d12;
}

.btn-label-title {
  color: rgba(12, 13, 18, 0.4);
}

.btn-selected-value {
  font-weight: 500;
  position: relative;
  padding-right: 1.5rem;
}

/* Arrow indicator inside dropdown button */
.btn-selected-value::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-40%);
  border: 5px solid transparent;
  border-top-color: #0c0d12;
  transition: transform 0.3s ease;
}

.accordion-select-btn[aria-expanded="true"] .btn-selected-value::after {
  transform: translateY(-60%) rotate(180deg);
}

/* Collapsible Panel */
.accordion-collapse-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fbf4ea;
  border: 1.5px solid rgba(12, 13, 18, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 0.5rem;
  z-index: 100;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.accordion-collapse-panel.show {
  max-height: 350px;
  opacity: 1;
}

.accordion-options-list {
  padding: 0.5rem;
}

.radio-option {
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: block;
  padding: 0.9rem 1.2rem;
  font-size: 1.05rem;
  color: rgba(12, 13, 18, 0.7);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.radio-option label:hover {
  background-color: rgba(12, 13, 18, 0.04);
  color: #0c0d12;
}

.radio-option input[type="radio"]:checked+label {
  background-color: rgba(12, 13, 18, 0.08);
  color: #0c0d12;
  font-weight: 500;
}

/* Left Column Bottom Address Details */
.desktop-details-wrapper {
  margin-top: 4.5rem;
  border-top: 1.5px solid rgba(12, 13, 18, 0.06);
  padding-top: 3.5rem;
}

.contact-details-row {
  display: flex;
  justify-content: space-between;
}

.details-col-left {
  flex: 1;
}

.details-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 2rem;
}

.contact-address-block {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(12, 13, 18, 0.75);
}

.contact-tel-line {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-tel-line a {
  transition: color 0.2s;
}

.contact-tel-line a:hover {
  color: rgba(12, 13, 18, 0.6);
}

.contact-socials-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-socials-list a {
  font-size: 1.1rem;
  color: #0c0d12;
  transition: opacity 0.2s;
}

.contact-socials-list a:hover {
  opacity: 0.6;
}

.contact-copyright-block {
  margin-top: auto;
}

.contact-copyright-block a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-copyright-block a:hover {
  opacity: 0.6;
}

.copyright-subtext {
  font-size: 0.85rem;
  color: rgba(12, 13, 18, 0.4);
  margin-top: 0.3rem;
}

/* Right Column Form Inputs (Textarea + Submit) */
.contact-column-right {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.message-field-wrapper {
  width: 100%;
}

.light-textarea-field {
  width: 100%;
  border: 1.5px solid rgba(12, 13, 18, 0.12);
  background: rgba(12, 13, 18, 0.02);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: inherit;
  font-size: 1.15rem;
  color: #0c0d12;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
  resize: vertical;
}

.light-textarea-field::placeholder {
  color: rgba(12, 13, 18, 0.4);
}

.light-textarea-field:focus {
  border-color: #0c0d12;
  background: transparent;
}

.submit-action-wrapper {
  text-align: right;
}

.light-btn-submit {
  display: inline-block;
  padding: 1.1rem 3.8rem;
  border: 2px solid #0c0d12;
  background-color: transparent;
  color: #0c0d12;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.light-btn-submit:hover {
  background-color: #0c0d12;
  color: #fbf4ea;
}

.light-btn-submit:focus-visible {
  outline: 2px solid #0c0d12;
  outline-offset: 4px;
}

/* Mobile-only Details Block */
.mobile-details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 1.5px solid rgba(12, 13, 18, 0.06);
  padding-top: 3rem;
  margin-top: 2rem;
}

.contact-phone-socials {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-phone-socials .contact-socials-list {
  flex-direction: row;
  gap: 1.5rem;
}

/* Light Pages Footer styling */
.light-footer {
  background-color: #fbf4ea;
  border-top: 1.5px solid rgba(12, 13, 18, 0.06);
  padding-block: 4rem;
  margin-top: 6rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-left-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  color: #0c0d12;
}

.footer-location {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(12, 13, 18, 0.6);
}

.footer-right-legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-right-legal {
    align-items: flex-end;
    text-align: right;
  }
}

.footer-right-legal p {
  font-size: 0.9rem;
  color: rgba(12, 13, 18, 0.5);
}

.footer-socials-links {
  display: flex;
  gap: 1.5rem;
}

.footer-socials-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0c0d12;
  transition: opacity 0.2s;
}

.footer-socials-links a:hover {
  opacity: 0.6;
}

/* Helper Utilities for visibility responsive toggling */
.d-block { display: block !important; }
.d-none { display: none !important; }

@media (min-width: 992px) {
  .d-lg-block { display: block !important; }
  .d-lg-none { display: none !important; }
}

/* Contact Success State Styles */
.contact-success-card {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  max-width: 620px;
  margin-inline: auto;
  animation: scaleInSuccess 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleInSuccess {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #0c0d12;
  color: #0c0d12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-weight: bold;
  animation: popCheckmark 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes popCheckmark {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 400;
  color: #0c0d12;
  margin-bottom: 1rem;
}

.success-msg {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(12, 13, 18, 0.65);
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}

.btn-send-another {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  border: 2px solid #0c0d12;
  background-color: transparent;
  color: #0c0d12;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.btn-send-another:hover {
  background-color: #0c0d12;
  color: #fbf4ea;
}

/* ==========================================================================
   6. Mobile Responsiveness Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  /* Prevent navigation headers and elements from breaking layout boundaries */
  .light-header {
    height: 5.5rem; /* Scaled up to fit 68px logo */
  }

  .brand-logo-img {
    height: 68px; /* 1.5x bigger (45px * 1.5) */
  }

  .light-nav {
    gap: 1.2rem; /* Compact navigation links */
  }

  .light-container {
    padding-inline: 1.2rem; /* Compact layout gutters */
  }

  /* Spacing reductions on Mobile */
  .light-title {
    margin-bottom: 2.2rem;
  }

  .about-hero-section {
    padding-top: 2rem;
  }

  .about-hero-italic-headline {
    margin-bottom: 1.8rem;
  }

  .contact-page-section {
    padding-top: 2rem;
  }

  .contact-hero-header {
    margin-bottom: 2.5rem;
  }

  .contact-layout-grid {
    gap: 2.5rem;
  }
}