/* ========================================
   PAGES - Page-specific styles
   Templates, Services, About, etc.
   ======================================== */

/* Active nav link */
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  width: 100%;
}

/* ---- Page Hero ---- */
.page-hero {
  padding: calc(var(--nav-height) + 56px) 0 40px;
  text-align: center;
  position: relative;
}

.page-hero .section-container {
  max-width: 720px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-hero-desc {
  font-size: 17px;
  color: var(--silver);
  line-height: 1.8;
}

/* ---- Template Filter ---- */
.template-filter {
  padding: 20px 0 56px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--ink-mid);
  background: transparent;
  color: var(--silver);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.filter-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  border-color: transparent;
  color: var(--ink);
}

/* ---- Templates Full Grid ---- */
.templates-gallery {
  padding: 20px 0 120px;
  background: var(--ink-light);
}

.templates-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.templates-full-grid .template-card .template-info {
  padding: 16px 4px 8px;
}

.template-desc {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
  padding: 0 4px;
}

/* ---- Custom Template CTA ---- */
.custom-template-cta {
  padding: 100px 0 120px;
  position: relative;
}

.custom-template-cta .cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--ink-light);
  border: 1px solid var(--ink-mid);
  border-radius: 24px;
}

.custom-template-cta .cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.custom-template-cta .cta-subtitle {
  font-size: 16px;
  color: var(--silver);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ================================
   ABOUT PAGE
   ================================ */
.about-story {
  padding: 80px 0 120px;
}

.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-story-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.3;
}

.about-story-text {
  font-size: 16px;
  color: var(--silver);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-story-text:last-child {
  margin-bottom: 0;
}

/* Story Timeline Visual */
.about-story-visual {
  position: relative;
}

.story-timeline {
  position: relative;
  background: var(--ink-light);
  border: 1px solid var(--ink-mid);
  border-radius: 20px;
  padding: 48px 40px;
  min-height: 360px;
}

.timeline-line {
  position: absolute;
  left: 32px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), var(--ink-mid));
  border-radius: 2px;
  opacity: 0.6;
}

.timeline-milestone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-left: 56px;
}

.timeline-milestone:last-child {
  margin-bottom: 0;
}

.milestone-dot {
  position: absolute;
  left: 32px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 16px var(--amber-glow);
}

.milestone-year {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--amber);
  min-width: 56px;
}

.milestone-label {
  font-size: 15px;
  color: var(--mist);
}

/* Stats Row */
.about-stats {
  padding: 60px 0 100px;
  background: var(--ink-light);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-stat-card {
  background: var(--ink);
  border: 1px solid var(--ink-mid);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}

.about-stat-card:hover {
  border-color: rgba(212, 160, 74, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.about-stat-num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-stat-suffix {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--amber);
  margin-left: 2px;
}

.about-stat-label {
  display: block;
  font-size: 14px;
  color: var(--slate);
  margin-top: 12px;
}

/* Values Section */
.about-values {
  padding: 120px 0;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.value-card {
  background: var(--ink-light);
  border: 1px solid var(--ink-mid);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s var(--ease-out-expo);
}

.value-card:hover {
  border-color: var(--amber);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(212, 160, 74, 0.08);
}

.value-icon {
  width: 56px;
  height: 56px;
  color: var(--amber);
  margin-bottom: 24px;
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.value-desc {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.7;
}

/* Why Choose Us */
.about-why {
  padding: 120px 0;
  background: var(--ink-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.why-item {
  background: var(--ink);
  border: 1px solid var(--ink-mid);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.4s var(--ease-out-expo);
}

.why-item:hover {
  border-color: rgba(212, 160, 74, 0.25);
  transform: translateY(-4px);
}

.why-icon {
  width: 48px;
  height: 48px;
  color: var(--amber);
  margin-bottom: 20px;
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.why-desc {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.6;
}

/* About Responsive */
@media (max-width: 1024px) {
  .about-story-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-story-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-values-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .why-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ================================
   BLOG PAGE
   ================================ */
.blog-filter {
  padding: 0 0 48px;
}

.blog-featured {
  padding: 0 0 32px;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ink);
  border: 1px solid var(--ink-mid);
  border-radius: 24px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: all 0.4s var(--ease-out-expo);
}

.blog-featured-card:hover {
  border-color: rgba(212, 160, 74, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.blog-featured-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.blog-featured-card:hover .blog-link,
.blog-featured-card:focus-visible .blog-link {
  color: var(--amber-light);
}

.blog-featured-img {
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.blog-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 40%, var(--ink) 95%);
  z-index: 1;
}

.featured-img-content {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.featured-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: var(--ink);
}

.blog-featured-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-body .blog-category {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.blog-featured-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-featured-body time {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 16px;
}

.blog-featured-excerpt {
  font-size: 16px;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-grid-full {
  padding-bottom: 0;
}

.blog:has(.blog-grid-full) {
  padding-top: 40px;
  padding-bottom: 24px;
}

/* ================================
   CONTACT PAGE
   ================================ */
.contact-content {
  padding: 0 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 160, 74, 0.1);
  border: 1px solid rgba(212, 160, 74, 0.2);
  border-radius: 12px;
  color: var(--amber);
}

.contact-info-item h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.contact-info-item a,
.contact-info-item span {
  font-size: 15px;
  color: var(--silver);
}

.contact-info-item a:hover {
  color: var(--amber);
}

.contact-hours {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-mid);
}

.contact-hours h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-hours p {
  font-size: 15px;
  color: var(--silver);
  margin-bottom: 8px;
  line-height: 1.6;
}

.contact-hours p:last-child {
  margin-bottom: 0;
}

.contact-form-wrap {
  background: var(--ink-light);
  border: 1px solid var(--ink-mid);
  border-radius: 24px;
  padding: 48px;
}

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

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1.5px solid var(--ink-mid);
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--slate);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239e9eaf' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 44px;
}

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

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* FAQ Section */
.faq-section {
  padding: 120px 0;
  background: var(--ink-light);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--ink);
  border: 1px solid var(--ink-mid);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out-expo);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:hover {
  border-color: rgba(212, 160, 74, 0.2);
}

.faq-question {
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  padding: 24px 28px;
  cursor: pointer;
  position: relative;
}

.faq-question:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
  border-radius: 12px;
}

.faq-question::after {
  content: '−';
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--amber);
  font-weight: 400;
}

.faq-item:not(.open) .faq-question::after {
  content: '+';
}

.faq-answer {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--silver);
  line-height: 1.7;
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
}

.faq-item:not(.open) .faq-answer {
  max-height: 0;
  padding: 0 28px;
  opacity: 0;
}

.faq-item.open .faq-answer {
  padding-top: 0;
  padding-bottom: 24px;
}

/* Responsive - 1024px */
@media (max-width: 1024px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
  }

  .blog-featured-img {
    min-height: 240px;
  }

  .blog-featured-img::after {
    background: linear-gradient(to top, var(--ink) 0%, transparent 60%);
  }

  .blog-featured-body {
    padding: 36px 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info {
    position: static;
  }

  .templates-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive - 768px */
@media (max-width: 768px) {
  .page-hero {
    padding: calc(var(--nav-height) + 34px) 0 32px;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    font-size: 13px;
    padding: 8px 18px;
  }

  .templates-full-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 480px;
    margin: 0 auto;
  }

  .custom-template-cta .cta-inner {
    padding: 40px 24px;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .faq-question {
    padding-right: 48px;
  }
}
