:root {
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;
  --color-bg: #f5f6fa;
  --color-bg-dark: #191919;
  --color-bg-light: #fff;
  --color-text: #232323;
  --color-text-dark: #181818;
  --color-muted: #808080;
  --color-accent: #1616e0;
  --color-accent-contrast: #ffc700;
  --color-accent2: #22242a;
  --color-gradient: linear-gradient(108deg, #23232b 0%, #525272 100%);
  --card-bg: rgba(255,255,255,0.93);
  --card-shadow: 0 6px 32px -2px rgba(44,40,57,0.16);
  --card-border: 2.8px solid #111215;
  --brutal-shadow: 1.5px 2px 0 #181818, 3.1px 5px 0 #d0d0d0;
  --border-radius: 13px;
  --btn-bg: #222231;
  --btn-accent: #ffc700;
  --btn-text: #fff;
  --transition-fast: 0.18s cubic-bezier(.55,0,.68,.44);
  --transition: 0.35s cubic-bezier(.69,.34,.39,1);
  --input-bg: #f3f4f8;
  --input-border: #b0b1b7;
  --glass-bg: rgba(251,251,251,0.72);
}

/* ========== RESET ========== */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  line-height: 1.65;
  min-height: 100vh;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* ========== GLOBAL HEADINGS & TEXT ========== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  line-height: 1.07;
  letter-spacing: -1.2px;
  margin-top: 0;
  margin-bottom: 19px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.21);
}
h1 { font-size: calc(2.2rem + 2vw); text-shadow: 1px 1px 14px rgba(0,0,0,0.44);}
h2 { font-size: 2.2rem; }
h3 { font-size: 1.2rem; font-weight: 600;}
h4 { font-size: 1.1rem; }

/* ========== LINKS ========== */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}
a:focus, a:hover {
  color: var(--color-accent-contrast);
  outline: none;
  text-decoration: underline;
}
a.read-more,
a.read-more:visited {
  color: var(--color-accent);
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  text-decoration: underline;
  text-underline-offset: 2.5px;
  position: relative;
}
a.read-more:hover { color: var(--color-accent-contrast); }

/* ========== CONTAINER & LAYOUT ========== */
.container {
  margin-left: auto;
  margin-right: auto;
  padding: 0 22px;
  max-width: 1220px;
}

.flex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.block-section {
  padding: 68px 0 46px;
  margin-top: 0;
}
.columns {
  display: flex;
  gap: 7vw;
  flex-wrap: wrap;
  align-items: flex-start;
}
.is-two-thirds > * {
  flex: 1 1 0;
  min-width: 250px;
  max-width: 65%;
}
.is-two-thirds .about-image, .is-two-thirds .about-image.image-container {
  min-width: 240px;
  max-width: 39vw;
  flex: 0 0 38vw;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-dark);
  border-bottom: 4.8px solid #18181e;
  min-height: 76px;
  transition: background 0.2s;
}
.header .logo {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -1.2px;
  text-shadow: 1.8px 1.6px 2px #111a2a;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header .nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header .nav ul li a {
  color: #ededed;
  font-family: var(--font-heading);
  font-size: 1.09rem;
  padding: 6px 7px;
  text-shadow: 0px 1px 2px #0e1a26;
  border-radius: 2.9px;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.09s;
}
.header .nav ul li a:focus,
.header .nav ul li a:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}
.burger {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: space-evenly;
  height: 38px;
  width: 38px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 4px;
  width: 90%;
  border-radius: 2.5px;
  margin: 3px 0;
  background: var(--color-accent-contrast);
  transition: all .23s cubic-bezier(.75,.31,.4,1.31);
}

/* ========== HERO SECTION ========== */
.hero-section {
  width: 100%;
  height: auto;
  /* no min-height, for natural content height */
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  margin-bottom: 0;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-image-overlay {
  min-height: 370px;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  filter: grayscale(.13) contrast(1.06);
  box-shadow: 0 12px 45px rgba(0,0,0,0.34) inset;
}
.hero-content {
  z-index: 2;
  position: relative;
  padding: 80px 12px 40px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-content h1,
.hero-content p {
  color: #fff !important;
  text-shadow: 2px 3px 17px rgba(0,0,0,0.52);
  margin-bottom: 12px;
}
.hero-btn {
  margin-top: 16px;
  font-size: 1.21rem;
}

/* ========== BUTTONS ========== */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 7.8px;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 11px 30px 11px 26px;
  margin-top: 7px;
  min-width: 124px;
  transition: 
    background var(--transition),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(40,40,40,0.09);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--color-accent-contrast);
  color: var(--btn-bg);
  box-shadow: 0 4px 18px rgba(255, 199, 0, 0.14);
}
.btn:focus, .btn:active, .btn-primary:focus, .btn-primary:active {
  outline: 2.8px solid var(--color-accent-contrast);
  outline-offset: 2px;
}
.btn:hover, button:hover, input[type="submit"]:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 7px 22px rgba(17,15,50,0.18);
}
.btn:active, button:active { transform: scale(0.98);}
.btn:after {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  height: 9px;
  background: linear-gradient(90deg, #f9dd00bc 0, transparent 70%);
  opacity: 0.17;
}

/* ========== CARDS MODULE ========== */
.cards-row,
.cases-grid,
.stories-grid,
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.card,
.item,
.testimonial,
.team-member,
.product-card {
  background: var(--glassy-bg, var(--card-bg));
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 240px;
  max-width: 355px;
  margin: 0 auto 18px auto;
  text-align: center;
  padding: 17px 13px 18px 13px;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  position: relative;
}
.card:focus,
.card:hover,
.product-card:hover {
  box-shadow: 0 10px 32px rgba(70,84,184,0.11),
              0 2px 32px rgba(32,31,69,0.10);
  transform: scale(1.04) translateY(-3px);
}
.card-content {
  padding: 0 7px 3px;
  text-align: center;
}
.card h3 {
  margin-bottom: 8px;
  color: var(--color-text-dark);
}
.card-image,
.image-container {
  width: 100%;
  height: 191px;
  max-width: 95vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #e8e9ee;
  border-radius: 7px 7px 4.7px 4.7px;
  margin-bottom: 13px;
  box-shadow: 1.1px 2px 8px rgba(39,39,39,0.10);
  position: relative;
}
.card-image img,
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  margin: 0 auto;
  display: block;
  box-shadow: 0 3px 16px rgba(12,9,25,0.055);
}

/* ========== GALLERY SLIDER ========== */
.slider-container {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 7px 28px rgba(50,44,65,0.13);
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
  padding: 17px 0 12px 0;
}
.gallery-slider {
  display: flex !important;
  align-items: stretch !important;
  gap: 20px;
  width: 100%;
  will-change: transform;
  transition: transform .5s cubic-bezier(.23,1,.32,1);
}
.slider-controls {
  position: absolute;
  top: 50%;
  right: 21px;
  z-index: 8;
  display: flex;
  flex-direction: row;
  gap: 7px;
  transform: translateY(-50%);
}
.slider-prev, .slider-next {
  font-size: 2rem;
  background: var(--btn-bg);
  color: #fff;
  border: none;
  width: 39px;
  height: 39px;
  border-radius: 9px;
  cursor: pointer;
  margin: 0;
  transition: background .17s, color .13s;
  box-shadow: 0 2px 8px rgba(18,18,18,0.18);
}
.slider-prev:hover, .slider-next:hover { background: var(--color-accent); color: #fff; }

/* ========== FOOTER ========== */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-bg-light);
  border-top: 4px solid #1e1e29;
  box-shadow: 0 -2.7px 9px rgba(23,23,27,0.085);
  font-size: 1rem;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-info {
  min-width: 200px;
  max-width: 350px;
  margin-bottom: 10px;
}
.footer-links ul { padding: 0; margin: 0;}
.footer-links li {
  list-style: none;
  margin-bottom: 5px;
}
.footer-links a {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.01rem;
  font-weight: 500;
  text-shadow: 0 1px 3px #222b;
  transition: color .18s;
}
.footer-links a:hover, .footer-links a:focus { color: var(--color-accent-contrast); }
.footer-social {
  min-width: 170px;
  font-family: var(--font-heading);
  font-size: 1.14rem;
}
.footer-social ul {
  padding: 0; margin: 0;
}
.footer-social li {
  list-style: none;
  margin-bottom: 6px;
}
.footer-social a {
  color: #ffc700;
  text-decoration: underline;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  margin-left: 1px;
  margin-right: 18px;
  transition: color .17s;
}
.footer-social a:hover {
  color: #fff;
  background: var(--color-accent);
  border-radius: 7px;
  padding: 0 9px;
}
/* Social text icon style */
.footer-social li::before {
  content: '';
  display: inline-block;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-social li:nth-child(1)::before { content:"F"; font-weight:700; color:#6195f3;}
.footer-social li:nth-child(2)::before { content:"T"; font-weight:700; color:#1da1f2;}
.footer-social li:nth-child(3)::before { content:"I"; font-weight:700; color:#e83480;}
/* ========== FORM STYLES ========== */
form,
.contact-form,
.brutalism-contact {
  box-shadow: 0 13px 38px rgba(41,42,72,0.09);
  border-radius: 12px;
  background: #22242e;
  color: #fff;
  padding: 32px 18px 26px 18px;
  font-family: var(--font-body);
  font-size: 1.08rem;
}
label {
  font-weight: 500;
  margin-bottom: 4.5px;
  display: block;
}
input:not([type='checkbox']),
textarea,
select {
  width: 100%;
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--color-text-dark);
  border: 1.6px solid var(--input-border);
  font-family: var(--font-body);
  padding: 13px 10px;
  margin-bottom: 19px;
  resize: none;
  box-shadow: 0 2px 11px rgba(110,112,132,0.09);
  font-size: 1.03rem;
  outline: none;
  transition: border-color .15s, box-shadow .10s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 3px 19px -4px var(--color-accent-contrast);
}
.contact-form textarea {
  min-height: 70px;
}

.contact-form button,
.contact-form input[type="submit"] {
  margin-top: 12px;
}

/* ========== RESOURCES EXTERNAL CARD ========== */
.resources-external-list .card {
  background: var(--color-bg-light);
  min-width: 230px;
  max-width: 470px;
  box-shadow: 0 2px 14px rgba(26,22,49,0.07);
  transition: box-shadow .23s, transform .13s;
  cursor: pointer;
}
.resources-external-list .card:focus,
.resources-external-list .card:hover {
  box-shadow: 0 8px 32px rgba(110,120,220,0.19);
  transform: scale(1.015) translateY(-1px);
}
.resources-external-list .card-content {
  text-align: left;
  font-size:1.08rem;
}

/* ========== CALENDAR ========== */
.calendar-container {
  background: var(--card-bg);
  border-radius: 17px;
  box-shadow: 0 3px 19px rgba(41,42,72,0.07);
  padding: 22px 16px 18px 22px;
}
.calendar-switcher {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.calendar-toggle {
  background: var(--color-bg-dark);
  color: #fff;
  border-radius: 7px;
  border: none;
  padding: 6px 14px;
  font-size: 1.02rem;
  cursor: pointer;
  transition: background .18s,color .14s;
  font-weight:600;
}
.calendar-toggle.active, .calendar-toggle:focus {
  background: var(--color-accent-contrast);
  color: var(--color-bg-dark);
  outline:2px solid var(--color-accent-contrast);
}
.calendar-toggle:hover {
  background: var(--color-accent2);
}
.calendar-view {
  min-height: 84px;
}
.calendar-table {
  font-size:1.07rem;
  color: #eeecec;
  font-family: var(--font-body);
  background: linear-gradient( 95deg, rgba(34,34,34,0.94) 40%, rgba(27,27,35,0.9) 100%);
  border-radius: 10px;
  padding: 18px 23px;
  margin-top: 0;
  margin-bottom: 0;
}
.calendar-table strong {
  color: var(--color-accent-contrast);
}

/* ========== MICROANIMATIONS ========== */
@keyframes cardPop {
  0% { transform: scale(0.95) translateY(18px); opacity: .09; }
  80% { transform: scale(1.04) translateY(-5px); opacity: 1; }
  100% { transform: scale(1) translateY(0);}
}
.card,
.item,
.team-member,
.product-card {
  animation: cardPop 0.82s cubic-bezier(.28,2,.22,1) backwards;
}
.btn, button, input[type="submit"] {
  transition: box-shadow .15s, background .17s, color .15s, transform .11s;
}
.slider-prev:active, .slider-next:active,
.btn:active, button:active { transform: scale(.97);}
input[type="submit"]:active { transform: scale(.99);}
input, textarea, select { transition: border .16s, box-shadow .11s; }
.card:hover, .card:focus { box-shadow: 0 17px 49px rgba(23,23,91,0.10); }

/* ========== BRUTALISM PATTERNS ========== */
.brutalism-bg {
  background: repeating-linear-gradient(
    145deg, #f6f5f9 0 18px,#ecebf1 19px 23px
  );
}
.card, .product-card, .testimonial {
  border: 2.8px solid #222;
  background:
    linear-gradient(120deg, rgba(42,42,52,0.015),rgba(252,252,255,0.13)),
    var(--glass-bg, var(--card-bg));
}

/* ========== PRIVACY & TERMS PADDING ========== */
body.privacy, body.terms {
  padding-top: 100px !important;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width:1060px) {
  .container { max-width: 97vw; }
  .columns { gap: 5vw; }
}

@media (max-width:900px) {
  .flex-header { gap: 17px;}
  .footer-flex { flex-direction: column; gap:30px; align-items:flex-start;}
  .is-two-thirds { flex-direction: column; }
  .is-two-thirds > * { max-width: 100%!important; }
}

@media (max-width:720px) {
  .header .nav { position:fixed; top:70px; left:0; width:100vw; background:var(--color-bg-dark); padding:19px 0 16px 0; display:none; z-index:150; }
  .header .nav.open { display:block; }
  .header .nav ul {
    flex-direction:column;
    gap:16px;
    align-items:center;
  }
  .burger { display: flex; }
}

@media (max-width:550px) {
  body, .block-section, .columns, .footer, .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .block-section { padding-top: 37px; padding-bottom: 24px;}
  h1 { font-size: 2.1rem;}
  .hero-content { padding: 55px 0 17px;}
  .footer { font-size: .93rem;}
}

@media (max-width:480px) {
  .gallery-slider .card, .cases-grid .card {
    min-width: 160px;
    padding: 9px 2px;
  }
}

/* ========== READ MORE LINKS ========== */
a.read-more {
  padding-left: 0;
  position: relative;
  color: var(--color-accent);
  letter-spacing: 0.15em;
}
a.read-more:after {
  content: " →";
  color: var(--color-accent-contrast);
  font-weight: bold;
  font-size: 1rem;
  vertical-align: middle;
  transition: margin-left .17s,color .12s;
  margin-left: 2px;
}
a.read-more:hover:after { color: var(--color-accent); margin-left: 7px; }

/* ========== SUCCESS PAGE ========== */
body.success-page {
  min-height: 100vh;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.success-content {
  margin: auto;
  background: var(--card-bg);
  box-shadow: 0 6px 22px rgba(22,22,34,0.17);
  border-radius: 12px;
  max-width: 380px;
  padding: 38px 25px 31px 25px;
  text-align: center;
}
.success-content h1,
.success-content h2 {
  color: var(--color-accent);
}
.success-content p {
  color: var(--color-text);
  margin-bottom: 22px;
}
.success-content .btn {
  margin-top: 26px;
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 40px; }
.hide-mobile { display: block; }
@media(max-width:800px){ .hide-mobile{display:none;} }

/* ========== IMAGES ========== */
img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  vertical-align: middle;
  height: auto;
}

.block-section {
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: 0 7px 34px rgba(75, 62, 93, 0.10);
  margin-bottom: 32px;
}

/* Hero BG overlay with gradient for readable white text */
.hero-image-overlay {
  background: linear-gradient(120deg,rgba(0,0,0,0.52) 60%,rgba(0,0,0,0.45) 95%);
  /* image via html style attr */
  z-index: 0;
}
/* Prevent background images from repeating and enforce cover */
[data-prompt], .hero-image-overlay, .about-image, .image-container, .card-image {
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
.header .nav ul li a {
    color: #ededed;
    font-family: var(--font-heading);
    font-size: 13px;
    padding: 6px 7px;
    text-shadow: 0px 1px 2px #0e1a26;
    border-radius: 2.9px;
    letter-spacing: 0.03em;
    transition: background 0.15s, color 0.09s;
}
nav ul li {
  white-space: nowrap;
}
@media (max-width: 768px) {
  nav{
    display: none;
  }

}