/* =========================================
   Tinio Integrated Systems
   Starter Website Styles
   ========================================= */

:root {
  --bg: #ffffff;
  --bg-muted: #f4f6f8;
  --text: #17202a;
  --text-muted: #5d6975;
  --line: #dfe5ea;
  --primary: #163a5f;
  --primary-dark: #0e2944;
  --accent: #2f78b7;
  --card: #ffffff;

  --container: 1180px;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(18, 38, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.my-logo {
    width: 46px;
    height: 32px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.96rem;
}

.brand-text small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.35rem;
  cursor: pointer;
}

/* Hero */

.hero {
  padding: 105px 0 95px;
  background:
    radial-gradient(circle at 85% 10%, rgba(47, 120, 183, 0.18), transparent 30%),
    linear-gradient(135deg, #f7fafc, #ffffff);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.035em;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.hero-text {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--primary);
  color: white;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  background: white;
}

.hero-card {
  padding: 32px;
  border: 1px solid rgba(22, 58, 95, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.card-kicker {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card h2 {
  font-size: 2rem;
}

.feature-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

/* General Sections */

.section {
  padding: 95px 0;
}

.section-muted {
  background: var(--bg-muted);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.two-column p {
  color: var(--text-muted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  color: var(--text-muted);
}

/* Services */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.4s ease;
}

.service-card .button,
.service-card .button-secondary,
.service-card .service-link {
  margin-top: auto;
  align-self: flex-start;
}

.service-card h3,
.service-card p,
.service-card span {
  text-decoration: none;
}

.service-card:hover {
  box-shadow: var(--shadow);
  background-color: #f1f3f5;
}

.service-number {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Projects */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.project-image {
  min-height: 220px;
}

.placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #e9eef3, #dce5ed);
  color: #667789;
  font-weight: 700;
}

.project-body {
  padding: 24px;
}

.project-type {
  margin-top: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-body p:last-child {
  color: var(--text-muted);
}

/* Contact */

.contact-section-main {
  background: var(--primary);
  color: white;
}

.contact-section-main .eyebrow {
  color: #8ec7f4;
}

.contact-section-main p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: start;
}

.contact-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.contact-card > div {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-card > div:last-child {
  border-bottom: 0;
}

.contact-card span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-card a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.contact-card p {
  margin: 0;
}

/* Footer */

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-wrap p {
  margin: 0;
  color: var(--text-muted);
}

.footer-wrap a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .card-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    padding: 75px 0 65px;
  }

  .section {
    padding: 70px 0;
  }

  .brand-text small {
    display: none;
  }

  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
  }
}

.icon-buttons img {
  width: 50px;
  height: auto;
  cursor: pointer;
}

.icon-buttons img:hover {
  opacity: 0.8;
}

.hover-image {
  position: relative;
  display: inline-block;
}

.hover-image img {
  width: 50px;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.hover-image .img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.hover-image:hover .img-normal {
  opacity: 0.5;
}

.hover-image:hover .img-hover {
  opacity: 1;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 9999;
}

/* Services button */
.dropdown-btn {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 260px;
  background: #ffffff;

  border: 1px solid #e5e5e5;
  border-radius: 8px;

  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;

  z-index: 1000;
}

/* Dropdown links */
.dropdown-menu a {
  display: block;
  padding: 12px 18px;

  color: #222;
  text-decoration: none;
  white-space: nowrap;

  transition: background-color 0.2s ease;
}

/* Hover effect */
.dropdown-menu a:hover {
  background-color: #f2f2f2;
}

/* Show dropdown */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.social-floating {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  gap: 10px;

  z-index: 100;
}

.social-floating a {
  width: 32px;
  height: 32px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-floating img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.social-floating a:hover {
  transform: scale(1.8);
  opacity: 0.85;
}

.contact-section {
  padding: 120px 20px;
  background: #f5f5f5;
}

.contact-section .container {
  max-width: 850px;
  margin: 0 auto;
}

.contact-heading {
  margin-bottom: 50px;
}

.contact-heading h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
}

.contact-heading p {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form .form-group label {
  font-weight: 600;
}

.contact-form .form-group input,
.contact-form .contact-form .form-group textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 15px 16px;

  font-family: inherit;
  font-size: 16px;

  border: 1px solid #ccc;
  border-radius: 4px;

  background: white;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  outline: none;
  border-color: #222;
}

.contact-form .form-group textarea {
  resize: vertical;
  min-height: 180px;
}

.contact-form .form-group small {
  color: #666;
}

.contact-form .contact-submit {
  align-self: flex-start;

  padding: 15px 34px;

  border: none;
  border-radius: 4px;

  background: #111;
  color: #fff;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
}

.contact-form .contact-submit:hover {
  background: #444;
}

.contact-form .contact-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-form .form-status {
  min-height: 24px;
  font-weight: 500;
}

.contact-form .form-status.success {
  color: #167444;
}

.contact-form .form-status.error {
  color: #b00020;
}

@media (max-width: 768px) {

  .contact-section {
    padding: 80px 20px;
  }

  .contact-form .contact-submit {
    width: 100%;
  }

}