/*
 Theme Name: Mango Onepage
 Theme URI: https://mangoitsolutions.com.au
 Author: Mango IT Solutions
 Author URI: https://mangoitsolutions.com.au
 Description: A simple one-page theme for Mango IT Solutions.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: mango-onepage
*/

:root {
  --accent: #f7a41c;
  --accent-soft: #fff6e5;
  --text-main: #111111;
  --text-muted: #666666;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --border-soft: #e0e0e5;
  --max-width: 1120px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: #fff;
  border-color: var(--border-soft);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-soft);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1abf4b;
}

h1,
h2,
h3 {
  margin: 0;
}

h2.section-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

p.section-subtitle {
  margin-top: 0;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(224, 224, 229, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* 上传 logo 的样式 */
.site-logo img,
.custom-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 20%, #ffe28a, #f7a41c);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.nav-phone {
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-phone strong {
  color: var(--text-main);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(145deg, #ffffff, #faf7f1);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.1rem, 3.1vw, 2.7rem);
  line-height: 1.12;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  font-size: 0.85rem;
}

.hero-card h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.hero-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hero-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed var(--border-soft);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sections */
section {
  padding: 48px 0;
}

section.alt {
  background: var(--bg-alt);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 18px 18px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.service-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Why Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.why-item {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 12px 12px 10px;
  background: #fff;
  font-size: 0.86rem;
}

.why-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

/* How We Work */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  border-radius: 14px;
  border: 1px dashed var(--border-soft);
  padding: 14px 12px 12px;
  background: #fff;
  font-size: 0.86rem;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.step-card h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: flex-start;
}

.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 18px 18px 16px;
  background: #fff;
  font-size: 0.9rem;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.contact-item {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-item strong {
  color: var(--text-main);
}

.contact-form-group {
  margin-bottom: 10px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(247, 164, 28, 0.22);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 16px 0 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #ffffff;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  section {
    padding: 38px 0;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 8px;
  }
}
