/* ==========================================================================
   DERMAC PAKISTAN — ULTRA-MINIMAL COMING SOON
   Brand: Dermac Pakistan (dermac.pk)
   Aesthetic: Pure, Minimalist Luxury Skincare
   ========================================================================== */

:root {
  --c-primary: #15332e;
  --c-primary-dark: #0e221f;
  --c-primary-light: #224a43;
  --c-champagne: #c5a880;
  --c-bg: #faf8f5;
  --c-text-main: #18201d;
  --c-text-muted: #5e6b66;
  --c-text-light: #8e9a95;
  --c-border: rgba(21, 51, 46, 0.12);
  --c-white: #ffffff;
  
  --f-serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --f-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--f-sans);
  background-color: var(--c-bg);
  color: var(--c-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Subtle Serum Light Canvas */
#serum-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Page Layout */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.minimal-main {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.25rem;
  margin: auto;
}

/* Logo */
.logo-wrapper {
  animation: fadeInDown 1s var(--ease-editorial) both;
}

.brand-logo {
  height: auto;
  max-height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* Text Content */
.text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  animation: fadeInUp 1.1s var(--ease-editorial) 0.15s both;
}

.sub-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--c-champagne);
  font-weight: 600;
}

.headline {
  font-family: var(--f-serif);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 400;
  color: var(--c-primary-dark);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.description {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--c-text-muted);
  max-width: 440px;
  line-height: 1.65;
  font-weight: 400;
}

/* Notify Form */
.notify-form {
  width: 100%;
  max-width: 460px;
  animation: fadeInUp 1.1s var(--ease-editorial) 0.3s both;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

@media (min-width: 480px) {
  .input-group {
    flex-direction: row;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    box-shadow: 0 10px 30px -10px rgba(21, 51, 46, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .input-group:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 12px 36px -8px rgba(21, 51, 46, 0.14);
  }
}

.email-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--f-sans);
  font-size: 0.92rem;
  color: var(--c-text-main);
  outline: none;
  padding: 0.75rem 0;
}

@media (max-width: 479px) {
  .email-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 0.9rem 1.15rem;
  }
  .email-input:focus {
    border-color: var(--c-primary);
  }
}

.email-input::placeholder {
  color: var(--c-text-light);
}

.submit-btn {
  padding: 0.75rem 1.35rem;
  background: var(--c-primary);
  color: var(--c-white);
  border: none;
  border-radius: calc(var(--radius) - 3px);
  font-family: var(--f-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.25s var(--ease-editorial);
  white-space: nowrap;
}

@media (max-width: 479px) {
  .submit-btn {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
  }
}

.submit-btn:hover {
  background: var(--c-primary-light);
  transform: translateY(-1px);
}

.submit-btn svg {
  transition: transform 0.25s ease;
}

.submit-btn:hover svg {
  transform: translateX(2px);
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.form-feedback {
  font-size: 0.82rem;
  margin-top: 0.65rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-feedback.success {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(44, 182, 125, 0.12);
  color: #176543;
}

.form-feedback.error {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(224, 76, 76, 0.1);
  color: #b52929;
}

/* Contact Links */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  animation: fadeInUp 1.1s var(--ease-editorial) 0.45s both;
}

.contact-link {
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--c-champagne);
}

.wa-link {
  color: #176543;
}

.wa-link:hover {
  color: #25d366;
}

.dot-divider {
  color: var(--c-text-light);
  font-size: 0.75rem;
}

@media (max-width: 480px) {
  .dot-divider {
    display: none;
  }
  .contact-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Minimal Footer */
.minimal-footer {
  font-size: 0.76rem;
  color: var(--c-text-light);
  letter-spacing: 0.04em;
  animation: fadeIn 1.2s var(--ease-editorial) 0.55s both;
}

.minimal-footer strong {
  color: var(--c-text-muted);
  font-weight: 500;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 150%);
  background: var(--c-primary-dark);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.35s var(--ease-editorial);
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #serum-canvas {
    display: none;
  }
}
