/* ===========================
   assets/css/styles.css
   (FULL FILE - corrected logo sizing)
   =========================== */

:root {
  --blue: #1F78D1;
  --blue-dark: #155AA0;
  --gold: #F5B300;
  --charcoal: #1E242B;
  --gray: #6B7785;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --shadow: 0 12px 30px rgba(12, 18, 28, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--charcoal);
  background: radial-gradient(1200px 700px at 15% 10%, rgba(31,120,209,0.10), transparent 55%),
              radial-gradient(900px 600px at 85% 0%, rgba(245,179,0,0.12), transparent 55%),
              var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(247, 249, 252, 0.72);
  border-bottom: 1px solid rgba(30, 36, 43, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 7px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;

  /* was min-width: 220px; - too small for a 330px logo */
  min-width: 330px;
  line-height: 0;
}

/* ===========================
   LOGO FIX (THIS IS THE MAIN CHANGE)
   HTML width/height were being overridden by CSS.
   We explicitly set the visual width here.
   =========================== */
.brand img {
  width: 350px;     /* 1.5x of 220px */
  height: auto;
  display: block;
}

.brand .small {
  display: none;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.navlinks a {
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(30,36,43,0.86);
}
.navlinks a:hover {
  background: rgba(31,120,209,0.10);
}
.navlinks a.active {
  background: rgba(31,120,209,0.14);
  color: var(--blue-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid rgba(30, 36, 43, 0.10);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, rgba(31,120,209,0.95), rgba(21,90,160,0.95));
  color: white;
  border-color: rgba(31,120,209,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(31,120,209,1), rgba(21,90,160,1));
}
.btn-secondary {
  background: rgba(245,179,0,0.18);
  border-color: rgba(245,179,0,0.42);
}
.btn-secondary:hover {
  background: rgba(245,179,0,0.26);
}
.btn-ghost {
  background: rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.85);
}

.hero {
  padding: 54px 0 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(21,90,160,0.92);
  background: rgba(31,120,209,0.10);
  border: 1px solid rgba(31,120,209,0.18);
  padding: 9px 12px;
  border-radius: 999px;
}
.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}
h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lede {
  font-size: 16.5px;
  color: rgba(30,36,43,0.82);
  margin: 0 0 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(30, 36, 43, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card.pad {
  padding: 18px;
}
.hero-card {
  padding: 18px;
}
.hero-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.hero-card p {
  margin: 0 0 12px;
  color: rgba(30,36,43,0.78);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(30,36,43,0.10);
  background: rgba(247,249,252,0.9);
}
.badge strong { color: var(--blue-dark); }

.section {
  padding: 26px 0 44px;
}
.section h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.section p {
  margin: 0 0 14px;
  color: rgba(30,36,43,0.80);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.iconline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.check {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: rgba(245,179,0,0.22);
  border: 1px solid rgba(245,179,0,0.42);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.check svg { width: 16px; height: 16px; }
.smallmuted {
  color: rgba(30,36,43,0.66);
  font-size: 13.5px;
}

.media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(30,36,43,0.10);
  background: rgba(30,36,43,0.04);
}
.media img, .media video {
  width: 100%;
  height: 100%;
  transform: scale(0.95);
  object-fit: cover;
  display: block;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}
.callout .left {
  display: grid;
  gap: 6px;
}
.callout .title {
  font-weight: 900;
  font-size: 18px;
}
.callout .desc {
  color: rgba(30,36,43,0.74);
  font-size: 14px;
}

.footer {
  padding: 26px 0 40px;
  border-top: 1px solid rgba(30,36,43,0.10);
  background: rgba(255,255,255,0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.footer .tiny {
  color: rgba(30,36,43,0.62);
  font-size: 12.5px;
}
.footer a:hover { text-decoration: underline; }

.mobile-toggle {
  display: none;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .split { grid-template-columns: 1fr; }

  /* Responsive logo: larger than before but still fits */
  .brand { min-width: 260px; }
  .brand img { width: 260px; }
}

@media (max-width: 720px) {
  .navlinks {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }
  .navlinks a { padding: 12px 12px; }
  .mobile-toggle {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid rgba(30,36,43,0.10);
    background: rgba(255,255,255,0.65);
    cursor: pointer;
  }
  .navbar {
    flex-wrap: wrap;
  }
  .navlinks.open {
    display: flex;
  }

  /* Keep logo reasonable on smaller nav */
  .brand { min-width: 240px; }
  .brand img { width: 240px; }
}

/* --- Mobile UX Enhancements --- */
img, video { max-width: 100%; height: auto; }

@media (max-width: 520px) {
  .hero { padding: 34px 0 22px; }
  .hero-actions a.btn,
  .hero-actions button.btn {
    width: 100%;
  }

  /* Mobile logo */
  .brand { min-width: 220px; }
  .brand img { width: 220px; }

  h1 { letter-spacing: -0.03em; }
  .lede { font-size: 16px; }
  .badge { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Make tap targets a bit friendlier on touch devices */
@media (hover: none) {
  .navlinks a { padding: 14px 14px; }
  .btn { padding: 14px 16px; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn { transition: none !important; }
}

/* AutomateIT footer credit */
.automateit-credit {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
}
.automateit-credit a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.automateit-credit a:hover {
  text-decoration: underline;
  color: var(--blue-dark);
}

/* Forms */
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(30,36,43,.16);
  background: rgba(255,255,255,.92);
  color: var(--charcoal);
  box-shadow: 0 1px 0 rgba(30,36,43,.03);
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}
.input::placeholder{color: rgba(30,36,43,.55);}
.input:focus{
  outline:none;
  border-color: rgba(31,120,209,.55);
  box-shadow: 0 0 0 4px rgba(31,120,209,.16);
}
textarea.input{resize:vertical; min-height:120px;}
label.smallmuted{display:inline-block; margin:2px 0 6px;}

/* Contact card polish */
#contact .card.pad{border-radius: 20px;}
#contact .btn{min-height:44px;}

@media (max-width: 720px){
  .form-grid{grid-template-columns:1fr;}
}


.reveal-dialog::backdrop { background: rgba(0,0,0,0.55); }
.reveal-dialog { border: 0; padding: 0; max-width: 520px; width: calc(100% - 32px); border-radius: 16px; }
.reveal-card { padding: 18px; background: #fff; border-radius: 16px; }
