/* ITdesigned4u — static site */
:root {
  --itd-blue: #040943;
  --itd-red: #790102;
  --itd-blue-mid: #0c1466;
  --itd-blue-light: #121a7a;
  --text-on-dark: #e9ebf5;
  --text-muted: #a7b0cc;
  --surface: #ffffff;
  --text-on-light: #1a1d2e;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 50px rgba(4, 9, 67, 0.35);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-on-light);
  background: var(--surface);
}

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

a {
  color: var(--itd-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--itd-blue);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.itd-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.itd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--itd-blue) 0%, var(--itd-blue-mid) 100%);
  border-bottom: 3px solid var(--itd-red);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.itd-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  min-height: 4.25rem;
}

.itd-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-on-dark);
}

.itd-logo img {
  width: min(220px, 42vw);
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.itd-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.itd-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.itd-nav__list a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-on-dark);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.itd-nav__list a:hover,
.itd-nav__list a.is-active {
  border-bottom-color: var(--itd-red);
  color: #fff;
}

.itd-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-on-dark);
}

.itd-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .itd-nav__toggle {
    display: flex;
  }

  .itd-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--itd-blue);
    border-bottom: 3px solid var(--itd-red);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .itd-nav.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  .itd-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .itd-nav__list a {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }
}

/* —— Hero —— */
.itd-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 3.5rem;
  background: var(--itd-blue) url("../assets/img/header-bg.webp") center / cover no-repeat;
  color: var(--text-on-dark);
}

.itd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(4, 9, 67, 0.92) 0%,
    rgba(4, 9, 67, 0.55) 45%,
    rgba(121, 1, 2, 0.35) 100%
  );
}

.itd-hero__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.itd-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

.itd-hero h1 {
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.itd-hero__line {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.itd-hero__line--accent {
  color: #ffb4b6;
}

/* —— Sections —— */
.itd-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.itd-section--alt {
  background: linear-gradient(180deg, #f4f5fb 0%, #fff 100%);
}

.itd-section--dark {
  background: linear-gradient(165deg, var(--itd-blue) 0%, var(--itd-blue-mid) 55%, var(--itd-blue-light) 100%);
  color: var(--text-on-dark);
}

.itd-section--dark h2,
.itd-section--dark h3 {
  color: #fff;
}

.itd-section--dark p {
  color: var(--text-muted);
}

.itd-section--dark a {
  color: #ffb4b6;
}

.itd-section--dark a:hover {
  color: #fff;
}

.itd-section__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.itd-section__head p {
  color: var(--text-on-light);
  opacity: 0.88;
}

.itd-section--dark .itd-section__head p {
  color: var(--text-muted);
}

/* —— Grid / cards —— */
.itd-grid {
  display: grid;
  gap: 1.5rem;
}

.itd-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.itd-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.itd-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.itd-section--alt .itd-card,
.itd-section:not(.itd-section--dark) .itd-card--light {
  background: #fff;
  border-color: rgba(4, 9, 67, 0.1);
  box-shadow: 0 8px 40px rgba(4, 9, 67, 0.08);
}

.itd-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.itd-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--itd-red), #a60218);
  color: #fff;
  border-radius: 10px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.itd-card h3 {
  color: #fff;
}

.itd-section--alt .itd-card h3,
.itd-card--light h3 {
  color: var(--itd-blue);
}

/* —— Buttons —— */
.itd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.itd-btn--primary {
  background: linear-gradient(135deg, var(--itd-red), #9a0214);
  color: #fff;
  box-shadow: 0 6px 22px rgba(121, 1, 2, 0.45);
}

.itd-btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(121, 1, 2, 0.5);
}

.itd-btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.itd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.itd-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* —— Split —— */
.itd-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .itd-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .itd-split--reverse .itd-split__media {
    order: 2;
  }
}

.itd-split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.itd-split__media img {
  width: 100%;
  object-fit: cover;
}

/* —— Feature list —— */
.itd-features .itd-feature {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.itd-section--alt .itd-features .itd-feature {
  border-bottom-color: rgba(4, 9, 67, 0.12);
}

.itd-features .itd-feature:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.itd-feature__title {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.itd-section--alt .itd-feature__title {
  color: var(--itd-blue);
}

.itd-feature__title i {
  color: #ffb4b6;
  margin-top: 0.2rem;
}

.itd-section--alt .itd-feature__title i {
  color: var(--itd-red);
}

/* —— Portfolio grid —— */
.itd-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .itd-portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.itd-portfolio-grid a {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(4, 9, 67, 0.12);
  transition: transform 0.2s;
}

.itd-portfolio-grid a:hover {
  transform: scale(1.02);
}

/* —— Testimonials —— */
.itd-quote {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-on-light);
  margin: 0 0 1rem;
}

.itd-testimonial {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(4, 9, 67, 0.1);
}

.itd-testimonial img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  border: 2px solid rgba(4, 9, 67, 0.1);
}

.itd-testimonial__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--itd-blue);
}

.itd-testimonial-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 8px 40px rgba(4, 9, 67, 0.08);
  height: 100%;
  border: 1px solid rgba(4, 9, 67, 0.06);
}

/* —— Page hero (inner) —— */
.itd-page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: linear-gradient(135deg, var(--itd-blue) 0%, var(--itd-blue-mid) 100%);
  color: var(--text-on-dark);
  border-bottom: 4px solid var(--itd-red);
}

.itd-page-hero h1 {
  margin: 0;
  color: #fff;
}

.itd-page-hero p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  max-width: 40rem;
}

/* —— Services columns —— */
.itd-service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(4, 9, 67, 0.08);
  box-shadow: 0 8px 32px rgba(4, 9, 67, 0.06);
  height: 100%;
}

.itd-service-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--itd-blue);
  margin-bottom: 0.75rem;
}

.itd-service-card h3 i {
  color: var(--itd-red);
}

/* —— FAQ —— */
.itd-faq details {
  background: #fff;
  border: 1px solid rgba(4, 9, 67, 0.1);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
}

.itd-faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  color: var(--itd-blue);
}

.itd-faq details[open] summary {
  margin-bottom: 0.5rem;
  color: var(--itd-red);
}

.itd-faq details p {
  margin: 0;
  font-size: 0.98rem;
  color: #444;
}

/* —— Form —— */
.itd-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--itd-blue);
  margin-bottom: 0.35rem;
}

.itd-form input,
.itd-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(4, 9, 67, 0.2);
  border-radius: 10px;
  font: inherit;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.itd-form input:focus,
.itd-form textarea:focus {
  outline: none;
  border-color: var(--itd-red);
  box-shadow: 0 0 0 3px rgba(121, 1, 2, 0.15);
}

.itd-form textarea {
  min-height: 160px;
  resize: vertical;
}

.itd-form .itd-btn {
  width: 100%;
}

.itd-form-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.75rem;
}

/* —— Map —— */
.itd-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid rgba(4, 9, 67, 0.15);
}

.itd-map iframe {
  width: 100%;
  height: min(360px, 50vh);
  border: 0;
  display: block;
}

/* —— Footer —— */
.itd-footer {
  background: var(--itd-blue);
  color: var(--text-muted);
  padding: 2.5rem 0 2rem;
  border-top: 4px solid var(--itd-red);
}

.itd-footer a {
  color: var(--text-on-dark);
  text-decoration: none;
}

.itd-footer a:hover {
  color: #ffb4b6;
  text-decoration: none;
}

.itd-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.itd-footer__brand img {
  width: 180px;
  margin-bottom: 0.75rem;
  display: block;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.itd-footer__contact p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.itd-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.itd-footer__social a {
  font-weight: 600;
  text-decoration: none;
}

.itd-footer__bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

/* —— Utilities —— */
.itd-center {
  text-align: center;
}

.itd-mt {
  margin-top: 1.5rem;
}

.itd-muted {
  color: var(--text-muted);
}
