/* ===== NAMING CAPITAL - Design System ===== */

/* --- CSS Variables --- */
:root {
  --primary: #1a365d;
  --primary-light: #2a4a7f;
  --primary-dark: #0f1b2d;
  --accent: #c9a84c;
  --accent-light: #dcc06e;
  --accent-dark: #a88a2e;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #0f1b2d;
  --text: #2d3748;
  --text-light: #718096;
  --text-white: #f7fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

a { color: var(--accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5rem; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.section { padding: 5rem 0; }
.section-dark { background: var(--bg-dark); color: var(--text-white); }
.section-dark h2, .section-dark h3 { color: var(--text-white); }
.section-light { background: var(--bg-light); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header p { color: var(--text-light); font-size: 1.1rem; margin-top: 0.75rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--bg-white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(15, 27, 45, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 6px;
}

.logo-text {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.02em;
}

.logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-cta .btn { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
  transition: all var(--transition);
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1e3a5f 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 40%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.hero p {
  color: rgba(247, 250, 252, 0.8);
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stat-bar {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  display: block;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(247, 250, 252, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.card-icon svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.5; }

.card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.card p { color: var(--text-light); font-size: 0.95rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-dark);
}
.card-link:hover { gap: 0.7rem; }

/* --- Stats Section --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* --- Domain Showcase --- */
.domain-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.domain-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid rgba(201, 168, 76, 0.15);
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.domain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.domain-name {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.domain-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(201, 168, 76, 0.15);
  color: var(--accent);
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  position: relative;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 0;
  position: relative;
  top: 0.5rem;
  margin-right: 0.25rem;
}

.testimonial-author { font-weight: 700; color: var(--primary); }
.testimonial-role { font-size: 0.85rem; color: var(--text-light); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.1) 0%, transparent 60%);
}

.cta-banner h2 { color: var(--text-white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(247, 250, 252, 0.8); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-banner .container { position: relative; z-index: 1; }

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 4rem 0 0;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .logo { margin-bottom: 1rem; }
.footer-about p { color: rgba(247, 250, 252, 0.6); font-size: 0.9rem; line-height: 1.8; }

.footer-col h4 {
  color: var(--accent);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(247, 250, 252, 0.6); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(247, 250, 252, 0.4);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero h1 { color: var(--text-white); position: relative; z-index: 1; }
.page-hero p { color: rgba(247, 250, 252, 0.7); position: relative; z-index: 1; max-width: 600px; margin: 1rem auto 0; font-size: 1.15rem; }

/* --- Forms --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg-white);
  color: var(--text);
}

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

.form-group textarea { resize: vertical; min-height: 140px; }
.form-error { color: #e53e3e; font-size: 0.85rem; margin-top: 0.3rem; display: none; }
.form-group.error .form-error { display: block; }
.form-group.error input,
.form-group.error textarea,
.form-group.error select { border-color: #e53e3e; }

/* --- Accordion --- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--bg-white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  font-family: inherit;
  transition: background var(--transition);
}

.accordion-header:hover { background: var(--bg-light); }

.accordion-icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--accent);
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9rem; color: var(--text-light); }

/* --- Portfolio Filters --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg-white);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--primary-dark);
}

.search-bar {
  max-width: 400px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
}

.search-bar input:focus { outline: none; border-color: var(--accent); }

.search-bar svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--text-light);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  }

  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .hero-stat-bar { flex-direction: column; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
}
