/* Pantly Styles */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f0ebe0;
  --color-text: #2c2c2c;
  --color-accent: #b5674d;
  --color-accent-hover: #9c553d;
  --color-overlay: rgba(30, 25, 20, 0.55);
  
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --base-size: clamp(15px, 1.5vw, 17px);
  --section-spacing: clamp(80px, 8vw, 120px);
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--base-size);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Button */
.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--color-accent-hover);
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header--light {
  color: #fff;
}

.header--dark {
  color: var(--color-text);
  position: relative;
  background: var(--color-bg);
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.8;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-text);
  margin: 16px 0;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 80px; /* Offset for header */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 40px;
  font-weight: 400;
  opacity: 0.9;
}

.hero-trust {
  margin-top: 32px;
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sections */
.section {
  padding: var(--section-spacing) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 48px;
  text-align: center;
}

.section-title.left {
  text-align: left;
}

/* Features Grid (Audience) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(181, 103, 77, 0.1);
  color: var(--color-accent);
  font-size: 24px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card p {
  color: #555;
}

/* Split Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-image img {
  border-radius: 4px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.split-content ul {
  list-style: none;
  margin-top: 32px;
}

.split-content li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.split-content li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Timeline Process */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(0,0,0,0.1);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
}

.step-number {
  width: 48px;
  height: 48px;
  background-color: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--color-accent);
}

.timeline-step h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.timeline-step p {
  font-size: 0.95rem;
  color: #555;
}

/* Process section with background */
.process-section {
  position: relative;
  color: #fff;
}

.process-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.process-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 44, 44, 0.85);
  z-index: -1;
}

.process-section .timeline::before {
  background-color: rgba(255,255,255,0.2);
}

.process-section .step-number {
  background-color: #2c2c2c;
  border-color: rgba(255,255,255,0.2);
}

.process-section .timeline-step p {
  color: #ccc;
}

/* Contact Form */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 48px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  margin-top: 16px;
}

.form-note a {
  text-decoration: underline;
  color: var(--color-text);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 24px;
  color: #555;
}

.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* arbitrary max height */
}

/* Footer */
.footer {
  background-color: #2c2c2c;
  color: #fff;
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav a {
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-info {
  text-align: right;
  color: #999;
  font-size: 0.85rem;
}

.footer-bottom {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  padding: 20px;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cookie-text {
  font-size: 0.9rem;
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(181, 103, 77, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 32px;
}

/* Legal Pages */
.legal-page {
  padding: 160px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 40px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 16px;
  color: #444;
}

.legal-content ul {
  padding-left: 24px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .timeline::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .split-section {
    grid-template-columns: 1fr;
  }
  .split-image {
    order: -1;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }
  .footer-info {
    text-align: left;
  }
  .form-container {
    padding: 32px 20px;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
