/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-desktop: #18191b;       /* Dark backdrop behind the phone viewport */
  --bg-page: #3e4244;          /* Slate grey background of the Taplink */
  --bg-card: #252728;          /* Charcoal dark card background */
  
  --color-border: #ffffff;      /* White contrast border */
  --color-text-light: #ffffff;  /* Primary white text */
  --color-text-muted: #c1c5c7;  /* Light grey body text */
  --color-text-dark: #18191b;   /* Dark text for buttons */
  
  /* Fonts */
  --font-title: 'Unbounded', system-ui, -apple-system, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-desktop);
  font-family: var(--font-body);
  color: var(--color-text-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.5;
}

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

button, input, select {
  font-family: inherit;
  outline: none;
}

/* ==========================================================================
   RESPONSIVE LAYOUT CONTAINER
   ========================================================================== */

.site-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* Taplink Phone Mockup Container */
.taplink-container {
  background-color: var(--bg-page);
  width: 100%;
  max-width: 900px; /* Two columns desktop layout */
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Desktop Only Header (Matches Pin cover style) */
.desktop-header {
  text-align: center;
  margin-bottom: 40px;
}

.desktop-header h1 {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #7b8183;
  line-height: 1.1;
}

.desktop-header h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #7b8183;
  margin-top: 5px;
}

/* Two columns grid layout */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ==========================================================================
   CARD BASE & BRUTALIST STYLING
   ========================================================================== */

.card {
  background-color: var(--bg-card);
  padding: 32px 24px;
  position: relative;
  border-radius: 0; /* Square brutalist edges */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 28px;
}

/* ==========================================================================
   HERO CARD STYLING
   ========================================================================== */

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.tag-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-text-light);
  margin-bottom: 28px;
  opacity: 0.9;
}

.hero-image-wrapper {
  width: 75%;
  position: relative;
  margin-bottom: 32px;
  aspect-ratio: 3/4;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

/* Offset white border behind hero photo */
.offset-border {
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  border: 2px solid var(--color-border);
  z-index: 1;
  pointer-events: none;
}

.hero-name {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 28px;
}

/* Primary Button Styling */
.btn {
  background-color: var(--color-border);
  color: var(--color-text-dark);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--color-border);
  padding: 16px 20px;
  width: 100%;
  cursor: pointer;
  border-radius: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
}

.btn-primary .arrow {
  transition: transform var(--transition-fast);
}

.btn-primary:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-primary:hover .arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   ABOUT CARD STYLING
   ========================================================================== */

.about-card {
  padding-bottom: 40px;
}

/* Polaroid Overlay Setup */
.polaroid-group {
  position: relative;
  height: 220px;
  margin-bottom: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Polaroid Layout */
.polaroid {
  background-color: #ffffff;
  padding: 8px 8px 24px 8px;
  width: 125px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  position: absolute;
  transition: transform var(--transition-medium), z-index 0s;
}

.polaroid-img-frame {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: #eee;
}

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

.polaroid-1 {
  left: 20%;
  top: 10px;
  transform: rotate(-10deg);
  z-index: 2;
}

.polaroid-2 {
  right: 20%;
  top: 25px;
  transform: rotate(8deg);
  z-index: 1;
}

/* Hover effects for polaroids */
.polaroid:hover {
  transform: rotate(0deg) scale(1.1);
  z-index: 10;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.about-text-container {
  padding: 16px 8px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.about-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ==========================================================================
   SERVICES CARD STYLING
   ========================================================================== */

.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Service item box containing photos left, details right */
.service-item {
  border: 1.5px solid var(--color-border);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: var(--bg-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.service-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Right aligns Name, Price, Button */
  gap: 8px;
}

.service-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 2px;
  text-align: right;
}

.service-price {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: right;
}

/* Small secondary button */
.btn-secondary {
  background-color: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  width: auto;
  display: inline-block;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background-color: var(--color-border);
  color: var(--color-text-dark);
}

/* Service Polaroid Image Overlay - Overlapping horizontally side-by-side */
.service-polaroid {
  width: 140px;
  height: 80px;
  margin-right: 16px;
  position: relative;
  flex-shrink: 0;
}

.polaroid-small {
  background-color: #ffffff;
  padding: 4px 4px 12px 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: absolute;
  width: 65px;
  transition: transform var(--transition-medium), z-index 0.1s;
}

.polaroid-small img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.polaroid-small-1 {
  left: 10px;
  top: 5px;
  transform: rotate(-10deg);
  z-index: 1;
}

.polaroid-small-2 {
  right: 10px;
  top: 10px;
  transform: rotate(8deg);
  z-index: 2;
}

/* Hover effects for organic alignment shift */
.service-item:hover .polaroid-small-1 {
  transform: rotate(-4deg) translate(-2px, -2px) scale(1.05);
}

.service-item:hover .polaroid-small-2 {
  transform: rotate(3deg) translate(2px, 2px) scale(1.05);
  z-index: 3;
}

/* Individual small polaroid zoom on direct hover */
.polaroid-small:hover {
  transform: rotate(0deg) scale(1.2) !important;
  z-index: 10 !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   CONTACTS CARD STYLING
   ========================================================================== */

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 10px 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  transition: border-color var(--transition-fast);
}

.contact-link-row .contact-arrow {
  transition: transform var(--transition-fast);
}

.contact-link-row:hover {
  border-color: #ffffff;
}

.contact-link-row:hover .contact-arrow {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */

.taplink-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.footer-tag {
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
}

.footer-note {
  text-align: right;
}

/* ==========================================================================
   MODAL POPUP STYLING
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(24, 25, 27, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

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

.modal-content {
  background-color: var(--bg-card);
  border: 2px solid var(--color-border);
  padding: 40px;
  width: 90%;
  max-width: 440px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-medium);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.modal-close:hover {
  opacity: 1;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.modal-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Booking Form Elements */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.form-group input, .form-group select {
  background-color: #1e2022;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-light);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  border-radius: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:hover, .form-group select:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input:focus, .form-group select:focus {
  border-color: #ffffff;
  outline: none;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.form-group select option {
  background-color: #252728;
  color: var(--color-text-light);
  padding: 10px;
}

.btn-submit {
  background-color: var(--color-border);
  color: var(--color-text-dark);
  margin-top: 10px;
  border: 1.5px solid var(--color-border);
}

.btn-submit:hover {
  background-color: transparent;
  color: var(--color-text-light);
}

/* Ensure arrows inside buttons render correctly on all operating systems and animate on hover */
.btn .arrow, .btn .btn-arrow {
  font-family: var(--font-body), Arial, sans-serif;
  font-weight: 500;
  transition: transform var(--transition-fast);
}

.btn:hover .arrow, .btn:hover .btn-arrow {
  transform: translateX(6px);
}

/* Success Checkmark CSS Animation */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px auto;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  display: block;
}

.success-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #ffffff;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke: #ffffff;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.animate-fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   MEDIA QUERIES (MOBILE OPTIMIZATION)
   ========================================================================== */

@media (max-width: 900px) {
  .site-wrapper {
    padding: 0;
  }
  
  .taplink-container {
    max-width: 480px; /* Collapses to single mobile device view */
    padding: 24px 16px;
    box-shadow: none;
    border: none;
  }
  
  .desktop-header {
    display: none; /* Hide cover-style header on small screens */
  }
  
  .grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .column {
    gap: 20px;
  }
  
  .card {
    padding: 24px 16px;
  }
  
  .hero-image-wrapper {
    width: 85%;
  }
  
  .about-content {
    gap: 16px;
  }
  
  .polaroid-group {
    height: 180px;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  .polaroid {
    width: 105px;
    padding: 6px 6px 16px 6px;
  }
  
  .polaroid-1 {
    left: 15%;
    top: 5px;
  }
  
  .polaroid-2 {
    right: 15%;
    top: 20px;
  }
  
  .about-text {
    font-size: 12px;
    line-height: 1.6;
  }
  
  .service-item {
    padding: 16px;
  }
  
  .service-polaroid {
    width: 110px;
    height: 70px;
    margin-right: 12px;
  }
  
  .polaroid-small {
    width: 50px;
    padding: 3px 3px 8px 3px;
  }
  
  .polaroid-small-1 {
    left: 5px;
    top: 2px;
  }
  
  .polaroid-small-2 {
    right: 5px;
    top: 8px;
  }
}
