/* Mittal Pharmacy Landing Page - Navy Blue Theme */

:root {
  --primary: #003470;
  --primary-dark: #002A5C;
  --primary-light: #E6EDF5;
  --background: #FFFFFF;
  --background-secondary: #F4F5F5;
  --text: #1F1F1F;
  --text-secondary: #666666;
  --text-muted: #9B9B9B;
  --white: #FFFFFF;
  --border: #EEEEEE;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background);
  color: var(--text);
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

/* Landing Page Layout */
.landing-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--background);
}

/* Subtle background gradient */
.landing-page::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(0, 52, 112, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  background: transparent;
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.logo span {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--primary);
}

.download-header-btn {
  padding: 12px 24px;
  border: 2px solid var(--text);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s ease;
}

.download-header-btn:hover {
  background: var(--text);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 64px;
  gap: 80px;
  position: relative;
  z-index: 1;
}

/* Left Side - Text */
.content-left {
  flex: 1;
  max-width: 520px;
  padding-left: 20px;
}

.headline {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--text);
  letter-spacing: -2px;
}

.headline .highlight {
  display: block;
  color: var(--primary);
  font-style: italic;
}

.description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 420px;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 52, 112, 0.2);
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 52, 112, 0.3);
  color: var(--white);
  background: var(--primary-dark);
}

.store-btn.disabled {
  background: #D1D5DB;
  color: #9CA3AF;
  cursor: not-allowed;
  box-shadow: none;
}

.store-btn.disabled:hover {
  transform: none;
  box-shadow: none;
  background: #D1D5DB;
}

.store-btn svg {
  width: 26px;
  height: 26px;
}

.app-note {
  font-size: 14px;
  color: var(--text-muted);
}

/* Right Side - Phone Mockup */
.content-right {
  flex: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-container {
  position: relative;
}

/* Glow effect behind phone */
.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 52, 112, 0.08) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.phone-mockup {
  position: relative;
  width: 320px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-frame {
  position: relative;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 48px;
  padding: 14px;
  box-shadow:
    0 60px 120px -20px rgba(0, 0, 0, 0.3),
    0 30px 60px -20px rgba(0, 52, 112, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.phone-screen img {
  width: 100%;
  display: block;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  background: transparent;
  position: relative;
  z-index: 10;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ POLICY PAGES ============ */
html.policy-html,
html.policy-html body {
  height: auto;
  overflow: auto;
}

.policy-page {
  min-height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.policy-page .header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.page-title {
  padding: 40px 64px 0;
  max-width: 720px;
  margin: 0 auto;
}

.page-title h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.page-title .subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.page-content {
  flex: 1;
  background: var(--white);
  padding: 32px 64px 60px;
}

.page-content .container {
  max-width: 720px;
  margin: 0 auto;
}

.policy-page .footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.intro-text {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.7;
}

.section {
  margin-top: 36px;
}

.section h2 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 15px;
}

.section ul {
  list-style: none;
  margin: 12px 0;
  padding-left: 0;
}

.section ul li {
  color: var(--text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.6;
  font-size: 15px;
}

.section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.contact-box {
  background: var(--primary-light);
  padding: 20px;
  border-radius: 12px;
  margin-top: 12px;
}

.contact-box p {
  color: var(--text);
  margin-bottom: 4px;
}

/* Support Form */
.support-container {
  max-width: 560px;
  margin: -48px auto 48px;
  position: relative;
}

.support-form {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
}

.form-group label span {
  color: var(--text-secondary);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 52, 112, 0.3);
  background: var(--primary-dark);
}

.submit-btn svg {
  width: 18px;
  height: 18px;
}

.whatsapp-note {
  text-align: center;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .header {
    padding: 20px 40px;
  }

  .main-content {
    padding: 0 40px;
    gap: 40px;
  }

  .headline {
    font-size: 56px;
  }

  .phone-mockup {
    width: 280px;
  }

  .footer {
    padding: 20px 40px;
  }
}

@media (max-width: 900px) {
  html, body {
    height: auto;
    overflow: auto;
  }

  .landing-page {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .header {
    padding: 16px 24px;
  }

  .nav-links a:not(.download-header-btn) {
    display: none;
  }

  .nav-links {
    gap: 0;
  }

  .main-content {
    flex-direction: column;
    padding: 24px;
    text-align: center;
    gap: 32px;
    flex: none;
  }

  .content-left {
    order: 2;
    max-width: 100%;
    padding-left: 0;
  }

  .headline {
    font-size: 36px;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }

  .description {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    font-size: 16px;
  }

  .download-buttons {
    justify-content: center;
    margin-bottom: 16px;
  }

  .store-btn {
    width: 52px;
    height: 52px;
  }

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

  .content-right {
    order: 1;
  }

  .phone-mockup {
    width: 220px;
    transform: none;
  }

  .phone-mockup:hover {
    transform: none;
  }

  .phone-frame {
    padding: 8px;
    border-radius: 32px;
  }

  .phone-screen {
    border-radius: 26px;
  }

  .phone-notch {
    top: 12px;
    width: 70px;
    height: 18px;
  }

  .phone-glow {
    display: none;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
    text-align: center;
  }

  .page-title {
    padding: 24px 24px 0;
  }

  .page-title h1 {
    font-size: 28px;
  }

  .page-content {
    padding: 24px;
  }

  .page-content {
    padding: 32px 24px;
  }

  .support-container {
    margin: -32px 16px 32px;
  }

  .support-form {
    padding: 24px;
  }
}

@media (max-height: 750px) and (min-width: 900px) {
  .header {
    padding: 16px 64px;
  }

  .headline {
    font-size: 56px;
    margin-bottom: 20px;
  }

  .description {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .phone-mockup {
    width: 260px;
  }

  .download-buttons {
    margin-bottom: 16px;
  }

  .store-btn {
    width: 48px;
    height: 48px;
  }

  .footer {
    padding: 16px 64px;
  }
}
