/* ===================================
   IEE ALONE - Modern Architecture CSS
   Palette: Dark Navy #0d1117, Teal #00bcd4, White #ffffff, Light Grey #f5f7fa
   =================================== */

:root {
  --dark: #0d1117;
  --dark-2: #161b22;
  --dark-3: #21262d;
  --teal: #00bcd4;
  --teal-dark: #0097a7;
  --teal-light: #4dd0e1;
  --white: #ffffff;
  --grey-light: #f5f7fa;
  --grey-mid: #8b949e;
  --grey-text: #c9d1d9;
  --text-dark: #1c1c1e;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 8px 40px rgba(0,0,0,0.3);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--grey-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { color: var(--grey-text); margin-bottom: 1rem; }
a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal-light); }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.75rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 17, 23, 0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-logo img {
  height: 78px;
  width: auto;
  background: transparent;
}

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

.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--grey-text);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--border);
}

.nav-cta a {
  background: var(--teal);
  color: var(--dark) !important;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
}

.nav-cta a:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,188,212,0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  /* Reset all browser button defaults */
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.nav-toggle:focus,
.nav-toggle:focus-visible,
.nav-toggle:active {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== PHONE BAR ===== */
.phone-bar {
  background: var(--teal);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 100px;
  letter-spacing: 0.02em;
}

.phone-bar a {
  color: var(--dark);
  font-weight: 800;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/Gemini_Generated_Image_igfi6rigfi6rigfi.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,17,23,0.97) 0%, rgba(13,17,23,0.7) 50%, rgba(0,188,212,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .highlight {
  color: var(--teal);
  -webkit-text-fill-color: var(--teal);
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--grey-text);
}

.hero-price {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.3);
  border-radius: 50px;
  padding: 0.6rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 600;
}

.hero-price .price-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--teal);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--teal-light);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,188,212,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ===== CALCULATOR CARD ===== */
.hero-calculator {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.calc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--teal);
  border-radius: 2px;
  display: inline-block;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,188,212,0.15);
}

.form-group select option {
  background: var(--dark-3);
  color: var(--white);
}

.calc-result {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1rem;
  display: none;
}

.calc-result.visible { display: block; }

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.result-row:last-child { border-bottom: none; }

.result-row.total {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--teal);
  padding-top: 0.75rem;
}

.result-label { color: var(--grey-mid); }
.result-value { color: var(--white); font-weight: 600; }

.calc-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.calc-buttons .btn {
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  padding: 0.65rem 1rem;
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 2rem;
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
}

/* ===== FEATURES GRID ===== */
.features-section {
  background: var(--dark-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,188,212,0.3);
  box-shadow: 0 16px 40px rgba(0,188,212,0.1);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,188,212,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* ===== PROCESS SECTION ===== */
.process-section { background: var(--dark); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
}

.step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(0,188,212,0.35);
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.875rem;
  margin: 0;
}

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--dark-2) 100%);
  padding: 4rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== GALLERY SECTION ===== */
.gallery-section { background: var(--dark-2); }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* ===== FAQ SECTION ===== */
.faq-section { background: var(--dark); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(0,188,212,0.25);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  background: var(--dark-2);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  gap: 1rem;
}

.faq-question:hover { background: var(--dark-3); }

.faq-toggle {
  width: 24px;
  height: 24px;
  background: rgba(0,188,212,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--teal);
  transition: var(--transition);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--teal);
  color: var(--dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--dark-3);
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 1.25rem 1.5rem;
}

.faq-answer p, .faq-answer li {
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 0.5rem;
}

.faq-answer ul, .faq-answer ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--dark-2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--teal);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--grey-text);
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--dark);
  font-size: 0.9rem;
}

.author-info strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--grey-mid);
}

.stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ===== PROVINCES ===== */
.provinces-section { background: var(--dark); }

.provinces-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.province-link {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: none;
  color: var(--grey-text);
  font-size: 0.875rem;
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.province-link::after {
  content: '·';
  position: absolute;
  right: -2px;
  color: var(--border);
  font-size: 1rem;
}

.province-link:last-child::after {
  display: none;
}

.province-link:hover {
  color: var(--teal);
  background: transparent;
  transform: none;
}

/* ===== CONTACT SECTION ===== */
.contact-section { background: var(--dark-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.contact-item span {
  font-size: 0.875rem;
  color: var(--grey-mid);
}

.contact-form {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ===== BLOG ===== */
.blog-section { background: var(--dark); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,188,212,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body p {
  flex: 1;
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0,188,212,0.1);
  color: var(--teal);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-size: 0.825rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 1.5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-mid);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  color: #E1306C;
  border-color: #E1306C;
  background: rgba(225, 48, 108, 0.08);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-col h4 {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--grey-mid);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--teal);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--grey-mid);
}

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
  padding: 8.5rem 2rem 3rem;
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--grey-mid);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--teal); }
.breadcrumb span { opacity: 0.5; }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-content h2 { margin-bottom: 1.25rem; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.2);
  color: var(--teal);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== HIRE PAGE ===== */
.hire-form-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 760px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:first-child {
    grid-row: 1;
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--dark-2);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item:first-child {
    grid-column: 1;
  }
  
  .hero-buttons { flex-direction: column; }
  
  .calc-buttons { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 3rem 1rem; }
  .hero-content { padding: 5rem 1rem 3rem; }
}

/* Blog grid 3x2 responsive */
@media (max-width: 900px) {
  .blog-grid-3col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 560px) {
  .blog-grid-3col {
    grid-template-columns: 1fr !important;
  }
  /* Process steps 3x2 on mobile */
  .process-steps,
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Teal divider */
.teal-divider {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 1rem auto 0;
  display: block;
}

/* Alert/banner */
.info-banner {
  background: rgba(0,188,212,0.08);
  border: 1px solid rgba(0,188,212,0.2);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--grey-text);
}

/* Table */
.provinces-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.provinces-table td {
  padding: 0.6rem 0.75rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--grey-mid); }

/* ===== WHATSAPP FLOATING BUTTON ===== */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: all 0.3s ease;
  text-decoration: none;
}
.wa-float:hover {
  background: #1da851;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.65);
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.wa-float-tooltip {
  position: absolute;
  right: 68px;
  background: var(--dark-2, #161b22);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid rgba(255,255,255,.1);
}
.wa-float:hover .wa-float-tooltip {
  opacity: 1;
}
@media (max-width: 480px) {
  .wa-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ===== INSTAGRAM FLOATING BUTTON ===== */
.ig-float {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(214,36,159,.45);
  transition: all 0.3s ease;
  text-decoration: none;
}
.ig-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(214,36,159,.65);
}
.ig-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
@media (max-width: 480px) {
  .ig-float { bottom: 5.5rem; right: 1.25rem; width: 52px; height: 52px; }
  .ig-float svg { width: 24px; height: 24px; }
}

/* ===== X (TWITTER) FLOATING BUTTON ===== */
.x-float {
  position: fixed;
  bottom: 11rem;
  right: 2rem;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
}
.x-float:hover {
  background: #111;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,0,0,.7);
}
@media (max-width: 480px) {
  .x-float { bottom: 10rem; right: 1.25rem; width: 52px; height: 52px; }
  .x-float svg { width: 22px !important; height: 22px !important; }
}


.footer-social .social-link { transition: color 0.2s ease, opacity 0.2s ease; }
.footer-social .social-link:hover { opacity: 1; }
.footer-social .social-link[aria-label="Instagram"]:hover { color: #E1306C !important; }
.footer-social .social-link[aria-label="WhatsApp"]:hover  { color: #25D366 !important; }
.footer-social .social-link[aria-label="X (Twitter)"]:hover { color: #fff !important; }

/* ===== FLOATING BUTTONS — TOOLTIPS + BORDER HOVER FIX ===== */

/* Tooltip shown on ALL float buttons */
.ig-float .wa-float-tooltip,
.x-float  .wa-float-tooltip {
  position: absolute;
  right: 68px;
  background: var(--dark-2, #161b22);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid rgba(255,255,255,.1);
}
.ig-float:hover .wa-float-tooltip { opacity: 1; }
.x-float:hover  .wa-float-tooltip { opacity: 1; }

/* Border/outline on hover with correct brand color */
.wa-float { outline: 2px solid transparent; outline-offset: 3px; }
.ig-float { outline: 2px solid transparent; outline-offset: 3px; }
.x-float  { outline: 2px solid transparent; outline-offset: 3px; }

.wa-float:hover { outline-color: #25D366; }
.ig-float:hover { outline-color: #d6249f; }
.x-float:hover  { outline-color: rgba(255,255,255,.6); }

/* Footer social hover: border/underline in brand color */
.footer-social .social-link {
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 0.2rem 0.6rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-social .social-link[aria-label="Instagram"]:hover { border-color: #E1306C; }
.footer-social .social-link[aria-label="WhatsApp"]:hover  { border-color: #25D366; }
.footer-social .social-link[aria-label="X (Twitter)"]:hover { border-color: rgba(255,255,255,.6); }

/* Mobile: contratar 2-col grids → 1 col */
@media (max-width: 700px) {
  .contratar-descuentos-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ================================================================ */

/* ── Footer: override inline grid style on mobile ── */
@media (max-width: 768px) {
  /* Footer grid — override inline style="grid-template-columns:..." */
  footer .footer-grid,
  .footer-grid[style] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Footer social row → wrap nicely */
  .footer-social {
    flex-wrap: wrap;
    gap: .5rem;
  }

  /* All 2-col inline grids → 1 col */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Nosotros / about image+text grid */
  [style*="grid-template-columns:1fr 1fr"][style*="align-items"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats grid → 2 col on tablet */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Features grid → 1 col */
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Process steps → 1 col */
  .process-steps,
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Testimonials → 1 col */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  /* Hero calculator: position & width */
  .hero-calculator {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Hero content padding */
  .hero-content {
    grid-template-columns: 1fr !important;
    padding: 5rem 1rem 2rem !important;
  }

  /* Page hero padding */
  .page-hero {
    padding: 5rem 1.25rem 2.5rem !important;
  }

  /* ITE/IEE info + calc two-col sections */
  [style*="display:grid"][style*="1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Contratar discount grid */
  .contratar-descuentos-grid {
    grid-template-columns: 1fr !important;
  }

  /* Payment 2-col */
  [style*="grid-template-columns:1fr 1fr"][style*="max-width:760px"],
  [style*="grid-template-columns: 1fr 1fr"][style*="max-width"] {
    grid-template-columns: 1fr !important;
  }

  /* Blog grid */
  .blog-grid-3col {
    grid-template-columns: 1fr !important;
  }

  /* Gallery grid override inline */
  [style*="grid-template-columns:repeat(3,1fr)"][class*="gallery"],
  .gallery-grid[style] {
    grid-template-columns: 1fr !important;
  }

  /* Municipality/province process 3-col → 1 col */
  [style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Contratar badges bar */
  [style*="grid-template-columns:repeat(auto-fit"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Float buttons: stack tighter on small screens */
  .wa-float  { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
  .ig-float  { bottom: 5.25rem; right: 1.25rem; width: 50px; height: 50px; }
  .x-float   { bottom: 9.25rem; right: 1.25rem; width: 50px; height: 50px; }
  .wa-float svg { width: 26px; height: 26px; }
  .ig-float svg { width: 22px; height: 22px; }
  .x-float svg  { width: 20px !important; height: 20px !important; }

  /* Tooltip hidden on mobile (no hover on touch) */
  .wa-float-tooltip { display: none; }

  /* Phone bar wrap */
  .phone-bar { font-size: .8rem; padding: .4rem 1rem; text-align: center; }
}

@media (max-width: 480px) {
  section { padding: 3rem 1rem !important; }

  /* Stats 2 col on very small */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* h1 sizing */
  h1 { font-size: clamp(1.6rem, 7vw, 2.5rem) !important; }
  h2 { font-size: clamp(1.25rem, 5vw, 2rem) !important; }

  /* Hero price badge */
  .hero-price { font-size: 1rem; }

  /* Footer bottom text wrap */
  .footer-bottom p {
    font-size: .7rem;
    line-height: 1.6;
  }

  /* Section labels */
  .section-label { font-size: .7rem; letter-spacing: .08em; }
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(13,17,23,0.97);
  border-top: 1px solid rgba(0,188,212,0.3);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
}
#cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--grey-text);
  flex: 1;
  min-width: 200px;
  line-height: 1.6;
}
#cookie-banner a {
  color: var(--teal);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
#cookie-accept {
  background: var(--teal);
  color: var(--dark);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
#cookie-accept:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}
#cookie-reject {
  background: transparent;
  color: var(--grey-mid);
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
#cookie-reject:hover {
  border-color: var(--grey-mid);
  color: var(--white);
}
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }
  .cookie-buttons { width: 100%; }
  #cookie-accept, #cookie-reject { flex: 1; text-align: center; }
}
