/* GT PORTAL THEME ENGINE v5.0 — CEBU SUNRISE */
/* Warm, Premium, Philippine-friendly | Light-first */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap");

:root {
  /* Base — Light Background */
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface2: #f1f3f5;
  --surface3: #e9ecef;
  --border: rgba(0, 0, 0, 0.08); /* fallback border */
  --border-hover: rgba(0, 0, 0, 0.18);

  /* Typography */
  --text: #1a1a1a; /* Noir profond */
  --text-inv: #ffffff;
  --text-secondary: #4a4a4a;
  --muted: #8a8a8a;

  /* Brand */
  --gold: #cfa858; /* Or GT (primaire) */
  --gold-hover: #b08d45; /* Or GT Foncé (hover) */
  --gold-light: #f5e6b8;
  --gold-bg: rgba(207, 168, 88, 0.06);
  --orange: #e8720c;
  --orange-light: #fff0e0;
  --footer-bg: #1a1a1a; /* Dark footer default for light theme */
  --footer-border: #333333;

  /* Accent */
  --green: #0d9b4e;
  --green-light: #e8f8ef;
  --blue: #1570ef;
  --blue-light: #ebf2fe;
  --red: #d92d20;
  --red-light: #fee4e2;

  /* Utility */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 4px 20px rgba(198, 147, 10, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Gradients */
  --grad-hero: linear-gradient(160deg, #f9fafb 0%, #f1f3f5 50%, #e9ecef 100%);
  --grad-gold: linear-gradient(135deg, #cfa858, #b08d45);
  --grad-cta: linear-gradient(135deg, #cfa858 0%, #b08d45 100%);
}

/* Dark Override */
[data-theme="dark"] {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface2: #222222;
  --surface3: #2a2a2a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text: #f5f5f5;
  --text-inv: #0f0f0f;
  --text-secondary: #aaaaaa;
  --muted: #666666;
  --gold: #d4af37;
  --gold-light: rgba(212, 175, 55, 0.15);
  --gold-bg: rgba(212, 175, 55, 0.08);
  --footer-bg: #1a1a1a;
  --footer-border: #333333;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --grad-hero: linear-gradient(160deg, #0f0f0f 0%, #1a1510 50%, #0f0f0f 100%);
}

/* ── GLOBAL RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  color: var(--orange);
}
img {
  max-width: 100%;
  height: auto;
}

/* ── TYPOGRAPHY UTILS ── */
.text-gold {
  color: var(--gold);
}
.text-muted {
  color: var(--muted);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-green {
  color: var(--green);
}
.text-blue {
  color: var(--blue);
}

/* ── SECTION SYSTEM ── */
section {
  padding: 80px 6%;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  section {
    padding: 50px 5%;
  }
}

.s-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: inline-block;
  background: var(--gold-bg);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.s-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.s-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── CARDS ── */
.card,
.prod-card,
.hud-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.card:hover,
.prod-card:hover,
.hud-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.97);
}

.btn-gold {
  background: var(--grad-gold);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  box-shadow: 0 6px 24px rgba(198, 147, 10, 0.25);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-orange {
  background: var(--grad-cta);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

.btn-white {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  box-shadow: var(--shadow-md);
}

/* ── FORMS ── */
input,
select,
textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  width: 100%;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-bg);
  background: var(--surface);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

/* ── PRODUCTS SECTION ── */
#products {
  background: var(--surface2);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.prod-card {
  padding: 28px;
  cursor: default;
}

.prod-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
  background: var(--gold-bg);
  color: var(--gold);
}

.prod-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.prod-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.prod-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.prod-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ── SIMULATOR ── */
#simulator {
  background: var(--bg);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.sim-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sim-panel-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.85rem;
}

.sim-body {
  padding: 24px;
}

.sim-app-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.app-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.app-btn.active,
.app-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

.sim-result {
  background: var(--gold-bg);
  border: 1px solid rgba(198, 147, 10, 0.15);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.sim-total-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
}

/* ── WHY US ── */
#why {
  background: var(--surface2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: var(--gold-bg);
  color: var(--gold);
}

.why-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.why-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── CONTACT ── */
#contact {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-wa-big {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #25d366;
  color: white;
  padding: 20px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  margin-bottom: 36px;
  transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.contact-wa-big:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  color: white;
}

.wa-icon {
  font-size: 2.2rem;
}
.wa-title {
  font-weight: 700;
  font-size: 1rem;
}
.wa-sub {
  font-size: 0.8rem;
  opacity: 0.9;
}

.contact-block {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: center;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.contact-detail-val {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-row {
  margin-bottom: 16px;
  text-align: left;
}
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
}

/* ── CHAT PANEL & INPUT ── */

.chat-input-area {
  padding: 16px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
}

.chat-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.chat-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-form input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-bg);
}

.chat-form button {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--grad-gold);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.chat-form button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.form-submit {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: var(--grad-gold);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-gold);
  transition: box-shadow 0.2s, transform 0.2s;
}
.form-submit:hover {
  box-shadow: 0 6px 24px rgba(198, 147, 10, 0.25);
  transform: translateY(-1px);
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--text);
  padding: 12px 0;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 28px;
}

.marquee-track .sep {
  color: var(--gold);
  padding: 0;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.85); /* Improved contrast */
  padding: 80px 6% 40px;
  border-top: 1px solid var(--footer-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-brand span {
  color: var(--gold);
}

.footer-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7); /* Improved contrast */
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  transition: background-color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--gold);
  transform: translateY(-2px);
  color: #ffffff;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7); /* Improved contrast */
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-payments {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pay-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}


@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sim-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .form-2col {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}
