/* =============================================================
   COLOR TOKENS — pulled from the three reference sites
   servicedrones.pt : navy #0A1628, green accent #3D9B47, white text
   tegras.net        : dark charcoal #1C1C2E, yellow-green #A8C63D, steel #2B3A4A
   tecai.net         : orange accent #E8730A, near-black body #111418
   Light theme overall: white/near-white base, dark ink text
============================================================= */
:root {
  /* ── LIGHT BASE (servicedrones/tegras light sections) */
  --white:        #FFFFFF;
  --off-white:    #F4F6F8;          /* servicedrones.pt section bg */
  --light-gray:   #E8ECF0;

  /* ── DARK INK (tegras charcoal text) */
  --ink:          #1C1C2E;          /* tegras.net dark heading */
  --ink-2:        #2B3A4A;          /* tegras secondary text area */
  --muted:        #5e6773;

  /* ── PRIMARY ACCENT — servicedrones.pt green */
  --green:        #3D9B47;          /* servicedrones primary CTA green */
  --green-hover:  #2E7A38;
  --green-light:  #EBF5EC;

  /* ── SECONDARY ACCENT — tegras.net yellow-green */
  --lime:         #009DE0;          /* tegras logo/accent yellow-green */
  --lime-light:   #F3F7E2;

  /* ── TERTIARY — tecai.net orange */
  --orange:       #E8730A;          /* tecai.net CTA orange */
  --orange-light: #FEF0E6;

  /* ── NAVY (servicedrones dark section bg) */
  --navy:         #0A1628;          /* servicedrones.pt dark hero */
  --navy-2:       #112240;
  --dark:         #111111;

  /* ── BORDERS & LINES */
  --border:       #D8DFE8;
  --border-dark:  rgba(255,255,255,0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* fallback for older browsers */
  overflow-x: clip;     /* clips without becoming a scroll container, so position:sticky keeps working */
  width: 100%;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden !important;
  overflow-x: clip !important;
  width: 100%;
  position: relative;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);          /* servicedrones green */
  display: block;
}

a { color: inherit; text-decoration: none; }

/* =============================================================
   NAV — light sticky bar (tegras.net style)
============================================================= */
.navbar {
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(10px);
  border-bottom: 5px solid var(--orange);
}
.navbar-brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink) !important;
}
.nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dark) !important;
  transition: color .2s;
  font-weight: 500;
}
.nav-link:hover { color: var(--green) !important; }

/* =============================================================
   BUTTONS
============================================================= */
.btn-green {
  background: var(--green);
  border: none;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 3px;
  transition: background .2s, transform .15s;
}
.btn-green:hover { background: var(--green-hover); color: #fff; transform: translateY(-2px); }

.btn-outline-ink {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 3px;
  transition: background .2s, color .2s;
}
.btn-outline-ink:hover { background: var(--ink); color: #fff; }


/* =============================================================
   SERVICES — white bg
============================================================= */
.services { background: var(--white); 
  padding:80px;
  align-content: center;}
.services h2 { font-size: clamp(2rem, 4vw, 3rem); }

.plate {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;              /* restored — needed so all cards in a row match */
  display: flex; 
  flex-direction: column;
  color: var(--ink);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.plate:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(28,28,46,0.12);
  border-color: var(--accent);
  color: var(--ink);
}
.plate .plate-img {
  height: 200px; overflow: hidden; position: relative;
}
.plate .plate-img img {
  width: 50%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.plate:hover .plate-img img { transform: scale(1.07); }
.card-logo-img{
    object-fit: contain !important;
    padding-right: 16px;
    padding-left: 12px;
    background: #f3f3f3;
  }
.plate-body {
  padding: 24px;
  display: flex; 
  flex-direction: column; 
  flex-grow: 1;              /* restored — lets the body fill the equal-height card */
}
.plate h3 { 
  font-size: 1.5rem; 
  margin-top: 8px; 
}
.plate p { 
  color: var(--muted); 
  font-size: 0.9rem; 
  margin-top: 10px; 
  /* flex-grow removed from here — no more stretching between paragraphs */
}
.plate .visit {
  margin-top: auto;          /* this is what pushes extra space to sit right above .visit */
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; 
  align-items: center; 
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; 
  letter-spacing: 0.06em; 
  text-transform: uppercase;
  color: var(--muted);
}
.plate .visit .arrow { color: var(--accent); transition: transform .2s; }
.plate:hover .visit .arrow { transform: translateX(5px); }
.plate:hover .visit { color: var(--ink); }

.plate.wash     { --accent: #2B7BAD; }
.plate.drones   { --accent: var(--green); }
.plate.cleaning { --accent: var(--orange); }

/* Accent bottom line on hover */
.plate::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--accent, var(--green));
  transform: scaleX(0);
  transition: transform .28s ease;
  transform-origin: left;
}
.plate:hover::after { transform: scaleX(1); }
/* =============================================================
   FOOTER — navy (servicedrones.pt footer)
============================================================= */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 0 24px 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom {
  padding-top: 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem; color: rgba(255,255,255,0.85);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* =============================================================
   SCROLL REVEAL
============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s 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; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

@media (max-width: 767px) {
  .services {
    padding: 50px 0;
  }
  footer{
    padding: 0 4px 20px 4px;
  }
  .footer-bottom{
    justify-content: center;
  }
  .footer-bottom{
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.services{
  height:auto !important;
}
.hero-title-gradient{
  font-size:28px !important;
}
}
.hero-title-gradient {
      background: linear-gradient(125deg, #22c55e 0%, #ff8c1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* fallback for browsers without background-clip support */
    font-size: 44px;
}

/* Highlight the current page in the nav without touching .nav-link's base rules */
.nav-link[aria-current="page"] { color: var(--green) !important; }

/* =============================================================
   CONTACT US PAGE
============================================================= */
.contact-hero {
  padding: 110px 0 60px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.contact-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--ink); }
.contact-hero h1 span { color: var(--green); }
.contact-hero p { color: var(--muted); max-width: 620px; }

.contact-section { padding: 70px 0 110px; background: var(--white); }

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.contact-info-card + .contact-info-card { margin-top: 20px; }
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--green-light);
  border: 1px solid rgba(61,155,71,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 20px;
}
.contact-info-card .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 4px;
}
.contact-info-card .value { color: var(--ink); font-weight: 500; }
.contact-info-card .value a { transition: color .2s; }
.contact-info-card .value a:hover { color: var(--green); }

.contact-locations { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.contact-location {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.contact-location .cc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); display: block; margin-bottom: 6px;
}
.contact-location .cities { color: var(--ink); font-size: 0.92rem; }

.contact-back {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.contact-back p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.contact-form-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}
.contact-form-card h2 { font-size: 1.6rem; color: var(--ink); }
.contact-form-card > p { color: var(--muted); font-size: 0.92rem; }
.contact-form-card label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px; display: block;
}
.contact-form-card .form-control,
.contact-form-card .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  background: var(--white);
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,155,71,0.12);
}
.contact-form-card .form-consent { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }
.contact-form-card .btn-green { width: 100%; padding: 14px; font-size: 0.9rem; }

.contact-alert {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.contact-alert.success { background: var(--green-light); color: var(--green-hover); border: 1px solid rgba(61,155,71,0.3); }
.contact-alert.error   { background: var(--orange-light); color: #a35008; border: 1px solid rgba(232,115,10,0.3); }

/* Honeypot field — hidden from real visitors, visible to bots */
.contact-form-card .hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* Phone country-code switcher (intl-tel-input) */
.contact-form-card .iti { width: 100%; }
.contact-form-card .iti__country-container {
  border-right: 1px solid var(--border);
}
.contact-form-card .iti__selected-country { border-radius: 8px 0 0 8px; }
.contact-form-card input#cf-phone {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  background: var(--white);
}
.contact-form-card input#cf-phone:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,155,71,0.12);
  outline: none;
}
.contact-form-card input#cf-phone.is-invalid {
  border-color: #d9534f;
}
.contact-form-card .phone-error {
  display: none;
  color: #d9534f;
  font-size: 0.78rem;
  margin-top: 6px;
}

@media (max-width: 767px) {
  .contact-hero { padding: 70px 0 40px; }
  .contact-section { padding: 40px 0 60px; }
  .contact-form-card { padding: 26px; }
  .contact-locations { grid-template-columns: 1fr; }
}

.text-transform-none { text-transform: none !important; }
.border-radius-6{
  border-radius: 12px !important;
}
.contact-form-card select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%232B3A4A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}
.iti__country-list {
    max-width: 246px;
    overflow-x: hidden;
}
@media (max-width: 767px) {
  .about-desc {
    text-align: justify;
    text-align-last: left;
  }
}