/* ===================================================
   GLOBAL.CSS — CoolTech Electronics Repair
   Base variables, resets, typography, utilities
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Space+Mono:wght@400;700&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #0c457d;
  --cyan:       #05bbc1;
  --white:      #ffffff;
  --gold:       #ffc000;
  --blue:       #096ecc;

  --navy-dark:  #082f57;
  --navy-light: #1a5fa0;
  --cyan-dark:  #049ba0;
  --cyan-light: #2dd4d9;
  --gold-dark:  #d9a200;
  --blue-dark:  #075bb0;

  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1e293b;
  --gray-900:   #0f172a;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --shadow-sm:  0 1px 3px rgba(12,69,125,.08), 0 1px 2px rgba(12,69,125,.06);
  --shadow-md:  0 4px 16px rgba(12,69,125,.12), 0 2px 6px rgba(12,69,125,.08);
  --shadow-lg:  0 10px 40px rgba(12,69,125,.18), 0 4px 12px rgba(12,69,125,.1);
  --shadow-xl:  0 20px 60px rgba(12,69,125,.22), 0 8px 20px rgba(12,69,125,.12);
  --shadow-glow:0 0 30px rgba(5,187,193,.35);
  --shadow-gold:0 0 25px rgba(255,192,0,.4);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full:9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --container:  1280px;
  --header-h:   80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.3rem; }
p  { font-size: 1rem; line-height: 1.75; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ── Section Spacing ── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
}

/* ── Section Label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--cyan);
  display: block;
}

/* ── Section Title ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
}
.section-title span { color: var(--cyan); }
.section-title .gold { color: var(--gold); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%) skewX(-20deg);
  transition: transform 0.45s ease;
}
.btn:hover::before { transform: translateX(120%) skewX(-20deg); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(5,187,193,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5,187,193,.55);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #ff9900);
  color: var(--navy-dark);
  box-shadow: 0 4px 20px rgba(255,192,0,.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-lg { padding: 18px 42px; font-size: 1.1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-cyan { background: rgba(5,187,193,.12); color: var(--cyan-dark); }
.badge-gold { background: rgba(255,192,0,.15); color: #a07200; }
.badge-navy { background: var(--navy); color: var(--white); }

/* ── Card Base ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* ── Divider ── */
.divider {
  width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: var(--radius-full);
  margin: 20px 0;
}
.divider-gold {
  background: linear-gradient(90deg, var(--gold), #ff9900);
}

/* ── Grid Utilities ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Flex Utilities ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }

/* ── Page Hero Band ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2305bbc1' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-content { position: relative; z-index: 2; text-align: center; }
.page-hero-content h1 { color: var(--white); margin-bottom: 16px; }
.page-hero-content p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 540px; margin: 0 auto; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
  justify-content: center;
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ── Icon Circle ── */
.icon-circle {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.icon-circle-cyan { background: rgba(5,187,193,.12); color: var(--cyan); }
.icon-circle-navy { background: var(--navy); color: var(--white); }
.icon-circle-gold { background: rgba(255,192,0,.15); color: var(--gold-dark); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Pulse animation ── */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Whatsapp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px; height: 60px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.65);
  animation: none;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: #25d366;
  animation: pulse-ring 2s infinite;
}

/* ── Top strip ── */
.top-strip {
  background: var(--navy-dark);
  padding: 10px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,.8);
}
.top-strip a { color: var(--cyan); }
.top-strip .strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.strip-contact { display: flex; gap: 24px; align-items: center; }
.strip-contact span { display: flex; align-items: center; gap: 6px; }

/* ── Back to top ── */
#backToTop {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 999;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}
#backToTop.show { opacity: 1; transform: translateY(0); pointer-events: all; }
#backToTop:hover { background: var(--cyan); }

/* ── Form Controls ── */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-700);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(5,187,193,.12);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: white;
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 99999;
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }

/* ── Responsive Helpers ── */
.hide-mobile { }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}
