/*
Theme Name: RegFirst
Theme URI: https://regfirst.org
Author: 好思维会计
Author URI: https://regfirst.org
Description: 专业澳洲公司注册、ABN、TFN及商业名称注册服务主题 — 好思维会计师事务所
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: regfirst
Tags: business, chinese, accounting, registration, single-page, custom-colors
*/

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0D2240;
  --navy-mid:    #1A3A6B;
  --navy-light:  #2756A0;
  --gold:        #C49A28;
  --gold-light:  #E8C55A;
  --gold-pale:   #FDF6E3;
  --cream:       #F9F7F2;
  --white:       #FFFFFF;
  --text-dark:   #0D1B2A;
  --text-mid:    #3A4A5C;
  --text-muted:  #7A8A9A;
  --border:      rgba(13,34,64,0.12);
  --border-gold: rgba(196,154,40,0.3);
  --radius:      4px;
  --radius-lg:   12px;
  --shadow:      0 2px 16px rgba(13,34,64,0.08);
  --shadow-lg:   0 8px 40px rgba(13,34,64,0.14);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,34,64,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,154,40,0.2);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 16px; font-weight: 700;
  color: var(--navy);
  border-radius: 3px;
  flex-shrink: 0;
}
.nav-logo-text strong {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 17px; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-logo-text span {
  display: block;
  font-size: 10px;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: -2px;
}

.main-navigation ul {
  display: flex; gap: 0; list-style: none; align-items: center;
}
.main-navigation ul li a {
  color: rgba(255,255,255,0.78);
  font-size: 13.5px; font-weight: 500;
  padding: 8px 16px; border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.3px;
  display: block;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--gold-light);
  background: rgba(255,255,255,0.06);
}
.main-navigation ul li.menu-cta > a {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600 !important;
}
.main-navigation ul li.menu-cta > a:hover {
  background: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(196,154,40,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(39,86,160,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(196,154,40,0.15); border: 1px solid rgba(196,154,40,0.3);
  color: var(--gold-light); font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 28px;
}
.hero-tag::before { content: '●'; font-size: 8px; color: var(--gold); }
.hero-content h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(34px, 5vw, 54px); font-weight: 700;
  color: var(--white); line-height: 1.25; margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.hero-content h1 em {
  font-style: normal; color: var(--gold-light);
  border-bottom: 2px solid rgba(196,154,40,0.4);
}
.hero-desc {
  font-size: 16px; color: rgba(255,255,255,0.7);
  margin-bottom: 40px; max-width: 500px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  font-size: 14px; font-weight: 600; padding: 14px 28px;
  border-radius: var(--radius); border: 2px solid var(--gold);
  transition: all 0.2s; letter-spacing: 0.3px;
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); color: var(--navy); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.85);
  font-size: 14px; font-weight: 500; padding: 14px 28px;
  border-radius: var(--radius); border: 1.5px solid rgba(255,255,255,0.25);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); color: var(--white); }

.hero-stats {
  display: flex; gap: 36px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  display: block; font-family: 'Noto Serif SC', serif;
  font-size: 28px; font-weight: 700; color: var(--gold-light);
}
.hero-stat-lbl {
  display: block; font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px; margin-top: 2px;
}

.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,154,40,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.hero-card-title {
  font-size: 13px; font-weight: 600; color: var(--gold-light);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px;
}
.hero-service-list { display: flex; flex-direction: column; gap: 10px; }
.hero-service-list li {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 14px 16px;
  color: var(--white); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.hero-service-list li:hover { background: rgba(196,154,40,0.1); border-color: rgba(196,154,40,0.3); }
.svc-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(196,154,40,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.svc-info { flex: 1; }
.svc-name { display: block; font-weight: 600; font-size: 13px; }
.svc-sub { display: block; font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.svc-arr { color: var(--gold); font-size: 14px; }

/* ─────────────────────────────────────────
   SECTIONS (shared)
───────────────────────────────────────── */
.site-section { padding: 90px 5%; }
.section-container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 11px; font-weight: 600; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ''; display: inline-block; width: 24px; height: 1.5px; background: var(--gold);
}
.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(26px, 4vw, 38px); font-weight: 700;
  color: var(--navy); line-height: 1.3; margin-bottom: 16px;
}
.section-desc {
  font-size: 15px; color: var(--text-mid);
  max-width: 580px; line-height: 1.8; margin-bottom: 52px;
}

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
.services-section { background: var(--cream); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 30px;
  position: relative; overflow: hidden; transition: all 0.25s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-gold); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; background: var(--gold-pale);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.service-card h3 {
  font-family: 'Noto Serif SC', serif; font-size: 19px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.service-card p { font-size: 13.5px; color: var(--text-mid); line-height: 1.8; margin-bottom: 20px; }
.service-features { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.service-features li { font-size: 13px; color: var(--text-mid); }
.service-features li::before { content: '✓  '; color: var(--gold); font-weight: 700; }
.service-price {
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); margin-top: auto;
}
.service-price strong { color: var(--navy); font-size: 14px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  color: var(--navy-light); font-size: 13px; font-weight: 600;
  border-bottom: 1.5px solid transparent; transition: border-color 0.2s;
}
.service-link:hover { border-color: var(--navy-light); }

/* ─────────────────────────────────────────
   PROCESS
───────────────────────────────────────── */
.process-section { background: var(--white); }
.process-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: flex; gap: 20px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', serif; font-size: 14px; font-weight: 700;
  color: var(--navy); transition: all 0.2s;
}
.process-step:hover .step-num { background: var(--navy); color: var(--white); }
.step-body h4 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.step-body p { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }
.process-visual {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 40px; color: var(--white); position: sticky; top: 100px;
}
.process-visual h3 {
  font-family: 'Noto Serif SC', serif; font-size: 20px; font-weight: 700;
  color: var(--gold-light); margin-bottom: 8px;
}
.process-visual .visual-subtitle { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 28px; }
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; margin-top: 7px;
}
.timeline-item span { font-size: 12px; color: rgba(255,255,255,0.5); display: block; margin-bottom: 3px; }
.timeline-item strong { font-size: 13.5px; color: var(--white); font-weight: 500; }

/* ─────────────────────────────────────────
   FAQ
───────────────────────────────────────── */
.faq-section { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; background: transparent;
  font-family: 'Noto Sans SC', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--navy); line-height: 1.5; transition: background 0.2s;
}
.faq-question:hover { background: var(--cream); }
.faq-toggle {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  background: var(--gold-pale); border: 1.5px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gold); transition: all 0.25s; font-weight: 700;
}
.faq-item.open .faq-toggle { background: var(--gold); color: var(--navy); transform: rotate(45deg); }
.faq-answer {
  display: none; padding: 16px 24px 20px; font-size: 13.5px;
  color: var(--text-mid); line-height: 1.8;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-section { background: var(--navy); }
.contact-section .section-label { color: var(--gold-light); }
.contact-section .section-label::before { background: var(--gold-light); }
.contact-section .section-title { color: var(--white); }
.contact-section .section-desc { color: rgba(255,255,255,0.6); }

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

.contact-info-list { display: flex; flex-direction: column; gap: 28px; margin-bottom: 36px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(196,154,40,0.15); border: 1px solid rgba(196,154,40,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-info-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--gold-light); margin-bottom: 4px; }
.contact-info-text span, .contact-info-text a { font-size: 14px; color: rgba(255,255,255,0.7); }
.contact-info-text a:hover { color: var(--gold-light); }

.why-us-box {
  padding: 28px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,154,40,0.15); border-radius: var(--radius-lg);
}
.why-us-box h4 {
  font-family: 'Noto Serif SC', serif; font-size: 16px; font-weight: 700;
  color: var(--gold-light); margin-bottom: 16px;
}
.why-list { display: flex; flex-direction: column; gap: 10px; }
.why-list li { font-size: 13px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 10px; }
.why-list li::before { content: '◆'; color: var(--gold); font-size: 8px; flex-shrink: 0; }

/* ─────────────────────────────────────────
   CONTACT FORM
───────────────────────────────────────── */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.form-card h3 {
  font-family: 'Noto Serif SC', serif; font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 6px;
}
.form-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--navy); margin-bottom: 6px; letter-spacing: 0.3px;
}
.form-label .req { color: var(--gold); margin-left: 3px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Noto Sans SC', sans-serif; font-size: 14px;
  color: var(--text-dark); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(39,86,160,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230D2240' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  background-color: var(--white);
}

.services-checkboxes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px;
}
.svc-check-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.svc-check-label input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--navy); cursor: pointer;
}
.svc-check-label span { font-size: 13px; color: var(--text-mid); }

.btn-form-submit {
  width: 100%; padding: 14px;
  background: var(--navy); color: var(--white);
  border: 2px solid var(--navy); border-radius: var(--radius);
  font-family: 'Noto Sans SC', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px; margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-form-submit:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-privacy-note { font-size: 11.5px; color: var(--text-muted); text-align: center; margin-top: 12px; line-height: 1.6; }

/* WP form notices */
.wpcf7-not-valid-tip { font-size: 12px; color: #c0392b; margin-top: 4px; display: block; }
.wpcf7-response-output {
  font-size: 13px; padding: 12px 16px; border-radius: var(--radius);
  margin-top: 16px; border: 1.5px solid;
}
.wpcf7-mail-sent-ok { border-color: #27ae60; color: #1e8449; background: #eafaf1; }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng { border-color: #e74c3c; color: #c0392b; background: #fdedec; }

/* CF7 form success message */
.form-success-msg {
  text-align: center; padding: 40px 20px; display: none;
}
.form-success-msg .success-icon { font-size: 48px; margin-bottom: 16px; }
.form-success-msg h4 {
  font-family: 'Noto Serif SC', serif; font-size: 20px;
  color: var(--navy); margin-bottom: 10px;
}
.form-success-msg p { font-size: 14px; color: var(--text-mid); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: #080F1A; color: rgba(255,255,255,0.55);
  padding: 52px 5% 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-brand strong {
  font-family: 'Noto Serif SC', serif; font-size: 18px; font-weight: 700;
  color: var(--white); display: block; margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 280px; }
.footer-email {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  color: var(--gold-light); font-size: 13px;
}
.footer-col h5 {
  font-size: 11px; font-weight: 600; color: var(--white);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; }
.footer-gold { color: var(--gold-light); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-visual { position: static; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-navigation { display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(13,34,64,0.98); padding: 16px 5%; }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 4px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .faq-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .services-checkboxes { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .site-section { padding: 60px 4%; }
  .hero-section { padding: 100px 4% 60px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
