/* =========================
   ROOT VARIABLES
========================= */
:root {
  --ph-header: #2f2f2f;
  --ph-header-hover: #3a3a3a;

  --ph-button: #5a5a5a;
  --ph-button-hover: #6a6a6a;

  --ph-light: #f2f2f2;
  --ph-border: #e0e0e0;

  --ph-text-primary: #1a1a1a;
  --ph-text-secondary: #555555;
  --ph-text-muted: #7a7a7a;

  --ph-white: #ffffff;
}

/* =========================
   BASE
========================= */
body {
  margin: 0;
  background-color: var(--ph-light);
  color: var(--ph-text-primary);
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.ph-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 16px;
  padding-top: 120px;
}

/* =========================
   HEADER
========================= */
.ph-header {
  background-color: var(--ph-header);
  border-bottom: 1px solid var(--ph-border);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

.ph-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ph-logo img {
  display: block;
  height: 48px;
  width: auto;
}

.ph-logo span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ph-white);
  white-space: nowrap;
}

/* =========================
   LANGUAGE SWITCH (FIX COR)
========================= */
.ph-lang-link {
  color: var(--ph-white);
  text-decoration: none;
  font-weight: 400;
}

.ph-lang-link:visited {
  color: var(--ph-white);
}

.ph-lang-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.ph-lang-link:active {
  color: var(--ph-white);
}

.ph-lang {
  color: var(--ph-white);
}

.ph-lang-sep {
  color: rgba(255, 255, 255, 0.6);
}

/* =========================
   FOOTER
========================= */
.ph-footer {
  background-color: var(--ph-header);
  border-top: 1px solid var(--ph-border);
  margin-top: 32px;
}

.ph-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
}

.ph-footer-text {
  color: #e6e6e6;
  font-size: 14px;
}

.ph-footer-legal {
  color: var(--ph-text-muted);
  font-size: 12px;
}

/* =========================
   HERO (FIX IMPORTANTE)
========================= */
.ph-hero {
  margin-bottom: 72px; /* 🔥 GARANTE ESPAÇAMENTO CONSISTENTE */
}

.ph-hero h1 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 16px;
}

.ph-hero p {
  max-width: 640px;
  color: var(--ph-text-secondary);
  font-size: 17px;
}

/* =========================
   HOME IMAGE
========================= */
.ph-home-image {
  max-width: 960px;
  margin: 40px auto 64px;
}

.ph-home-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* =========================
   BUTTONS
========================= */
.ph-cta {
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.ph-cta-primary {
  background-color: var(--ph-button);
  color: var(--ph-white);
  border: none;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.12),
    0 8px 20px rgba(0,0,0,0.12);
}

.ph-cta-primary:hover {
  transform: translateY(-2px);
  background-color: var(--ph-button-hover);
}

/* =========================
   BUTTON SPINNER
========================= */
.btn-spinner {
  margin-left: 8px;
}

/* =========================
   SECTIONS
========================= */
.ph-section {
  margin-bottom: 64px;
}

.ph-section h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
}

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

/* =========================
   CARDS
========================= */
.ph-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
  max-width: 900px;
}

@media (max-width: 720px) {
  .ph-card-grid {
    grid-template-columns: 1fr;
  }
}

.ph-card {
  perspective: 1000px;
  transition: transform 0.18s ease;
}

.ph-card:hover {
  transform: translateY(-4px);
}

.ph-card-inner {
  position: relative;
  width: 100%;
  height: 160px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.ph-card:hover .ph-card-inner {
  transform: rotateY(180deg);
}

.ph-card-front,
.ph-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 18px 20px;
  border-radius: 12px;
  backface-visibility: hidden;
  background-color: var(--ph-white);
  border: 1px solid var(--ph-border);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ph-card-back {
  transform: rotateY(180deg);
}

/* =========================
   PROCESS
========================= */
.ph-process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  align-items: start;
}

.ph-process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.ph-process-step:last-child {
  margin-bottom: 0;
}

.ph-process-number {
  font-size: 32px;
  font-weight: 500;
  color: var(--ph-text-muted);
  min-width: 40px;
}

.ph-process-content h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 500;
}

.ph-process-content p {
  margin: 0;
  color: var(--ph-text-secondary);
}

.ph-process-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ph-process-image img {
  height: 330px;
  width: auto;
  max-width: 100%;
  border-radius: 16px;
  display: block;
}

/* =========================
   FORM LAYOUT
========================= */
.ph-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.ph-custom-form {
  width: 100%;
  max-width: 620px;
}

.ph-form-field {
  margin-bottom: 22px;
}

.ph-form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.ph-form-field input,
.ph-form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid var(--ph-border);
  box-sizing: border-box;
}

.ph-form-field textarea {
  min-height: 160px;
}

.ph-form-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ph-form-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  .ph-form-grid,
  .ph-process-layout {
    grid-template-columns: 1fr;
  }

  .ph-form-image,
  .ph-process-image {
    display: none;
  }

  .ph-logo img {
    height: 28px;
  }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

#ph-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  background: #ffffff;
  border-top: 1px solid #ddd;

  padding: 20px;
  box-sizing: border-box;

  box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
}

.ph-cookie-content {
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.ph-cookie-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.ph-cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.ph-cookie-buttons button {
  padding: 10px 22px;

  border-radius: 4px;
  border: 1px solid #222;

  background: transparent;
  cursor: pointer;

  font-size: 14px;
}

#ph-cookie-accept {
  background: #222;
  color: #fff;
}

#ph-cookie-decline:hover,
#ph-cookie-accept:hover {
  opacity: 0.85;
}


/* Mobile */

@media (max-width: 700px) {

  .ph-cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .ph-cookie-buttons {
    justify-content: flex-end;
  }

}