/* === CCT Melody - Main Stylesheet === */

:root {
  --deep-navy: #0f2643;
  --medium-blue: #174a6f;
  --teal: #2d8a7a;
  --gold: #f9a03f;
  --gold-dark: #d4871f;
  --cream: #f7f3ed;
  --white: #ffffff;
  --slate: #3a4a5c;
  --charcoal: #1c1c1c;
  --soft-gray: #e8e3dc;
  --light-gray: #f0ede8;
  --error: #c0392b;
  --success: #2d8a7a;
  --shadow-sm: 0 2px 8px rgba(15, 38, 67, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 38, 67, 0.12);
  --shadow-lg: 0 8px 32px rgba(15, 38, 67, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--deep-navy);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--medium-blue); }

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

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--soft-gray);
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--teal), var(--medium-blue));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
}
.nav-brand .brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--deep-navy);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }

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

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { padding: 0.75rem 0; }
  .nav-links a { font-size: 1.05rem; }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--deep-navy) 0%, var(--medium-blue) 50%, var(--teal) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(249, 160, 63, 0.15), transparent),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(45, 138, 122, 0.2), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero-content h1 span {
  color: var(--gold);
}

.hero-content .hero-subtitle {
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 500px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-navy);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 160, 63, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--deep-navy);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--charcoal);
  width: 100%;
  max-width: 440px;
}

.hero-card .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light-gray);
}

.hero-card .card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.hero-card .card-dot:nth-child(1) { background: var(--gold); }
.hero-card .card-dot:nth-child(2) { background: var(--teal); }
.hero-card .card-dot:nth-child(3) { background: var(--medium-blue); }

.hero-card .card-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: auto;
}

.hero-card .stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.hero-card .stat-item .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--deep-navy);
}
.hero-card .stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--slate);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 { font-size: 2.25rem; }
  .hero-content .hero-subtitle { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-card { margin: 0 auto; }
  .hero { padding-bottom: 3rem; }
}

/* === SECTION TITLES === */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === SERVICES === */
.services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--soft-gray);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.service-card .service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.icon-blue { background: #e0ecf4; color: var(--medium-blue); }
.icon-teal { background: #d6f0eb; color: var(--teal); }
.icon-gold { background: #fef0dc; color: var(--gold); }

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* === ABOUT === */
.about {
  background: var(--white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--medium-blue), var(--teal));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-inner {
  text-align: center;
  color: var(--white);
  padding: 2rem;
}
.about-image-inner .big-number {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
}
.about-image-inner .big-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

.about-content h2 { margin-bottom: 1rem; }
.about-content .lead {
  font-size: 1.15rem;
  color: var(--medium-blue);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.about-content p { color: var(--slate); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.about-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
}
.about-stat .stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--teal);
  display: block;
}
.about-stat .stat-txt {
  font-size: 0.8rem;
  color: var(--slate);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .about .container { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

/* === PROCESS === */
.process {
  background: var(--deep-navy);
  color: var(--white);
}
.process h2 { color: var(--white); }
.process .section-title h2::after { background: var(--gold); }
.process .section-title p { color: var(--soft-gray); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}

.process-step .step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.process-step h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.process-step p {
  color: var(--soft-gray);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* === TECH === */
.tech {
  background: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.tech-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--deep-navy);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.tech-item:hover {
  border-color: var(--teal);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === TESTIMONIALS === */
.testimonials {
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal);
}

.testimonial-card .quote {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--deep-navy);
  font-size: 0.9rem;
}
.testimonial-card .role {
  font-size: 0.8rem;
  color: var(--slate);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* === CONTACT === */
.contact {
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--slate); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail .detail-icon {
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: var(--teal);
}

.contact-detail .detail-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--deep-navy);
}
.contact-detail .detail-text p {
  color: var(--slate);
  font-size: 0.9rem;
  margin: 0;
}

.contact-form {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1.15rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--deep-navy);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--soft-gray);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 138, 122, 0.1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group .error-msg {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}
.form-group.error .error-msg { display: block; }
.form-group.error input,
.form-group.error textarea { border-color: var(--error); }

.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  color: var(--success);
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--medium-blue), var(--deep-navy));
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-banner h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-primary {
  background: var(--gold);
  color: var(--deep-navy);
  font-size: 1rem;
}

/* === FOOTER === */
.footer {
  background: var(--charcoal);
  color: var(--soft-gray);
  padding: 3.5rem 0 1.5rem;
}

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

.footer-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--soft-gray);
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a {
  color: var(--soft-gray);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #c9c4bb;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom .legal-links a {
  color: #e8e3dc;
  font-size: 0.82rem;
}
.footer-bottom .legal-links a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  pointer-events: none;
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--medium-blue);
  transform: translateY(-3px);
}

/* === ANIMATIONS === */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === UTILITY === */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
