/* ==========================================================================
   Criativatek Custom Styles
   ========================================================================== */

/* Override green theme colors with blue */
:root {
  --tp-common-yellow-green: #088AE8;
  --tp-common-green-light: #3B68BA;
  --tp-common-green-regular: #088AE8;
  --tp-common-green-1: #088AE8;
  --tp-common-green-solid: #0a1e3d;
  --tp-theme-green: #088AE8;
  --tp-grey-4: #F5F5F5;
}

/* --------------------------------------------------------------------------
   Tipografia — duas famílias, não catorze

   O template traz 16 variáveis de fonte (Inter, Poppins, Teko, Space Grotesk,
   Besley, Phudu, Playfair, Satisfy...) e carregava-as em paralelo com as fontes
   locais. Remapeamos todas para o par do site original:

     Kanit           — base, títulos e UI (é o que criativatek.com usa em produção)
     Instrument Serif — só o destaque dentro dos títulos

   O original queria esse contraste (declarava uma serif "newYork" nos <span> de
   destaque) mas o ficheiro dá 404 e nunca carregou. Aqui carrega.

   Mexer aqui e não no main.css: o template é código de terceiros, e trocar os
   valores das variáveis apanha as centenas de regras que já as referenciam.
   -------------------------------------------------------------------------- */
:root {
  --tp-ff-body: 'Kanit', sans-serif;
  --tp-ff-heading: 'Kanit', sans-serif;
  --tp-ff-p: 'Kanit', sans-serif;
  --tp-ff-inter: 'Kanit', sans-serif;
  --tp-ff-poppins: 'Kanit', sans-serif;
  --tp-ff-grotesk: 'Kanit', sans-serif;
  --tp-ff-onest: 'Kanit', sans-serif;
  --tp-ff-teko: 'Kanit', sans-serif;
  --tp-ff-phudu: 'Kanit', sans-serif;
  --tp-ff-platform: 'Kanit', sans-serif;
  --tp-ff-mango: 'Kanit', sans-serif;

  /* Clash* eram as fontes locais de display — mesmo papel, agora com Kanit */
  --tp-ff-clash: 'Kanit', sans-serif;
  --tp-ff-clash-light: 'Kanit', sans-serif;
  --tp-ff-clash-regular: 'Kanit', sans-serif;
  --tp-ff-clash-medium: 'Kanit', sans-serif;
  --tp-ff-clash-semibold: 'Kanit', sans-serif;
  --tp-ff-clash-bold: 'Kanit', sans-serif;

  /* Serif de destaque */
  --tp-ff-besley: 'Instrument Serif', Georgia, serif;
  --tp-ff-playfair: 'Instrument Serif', Georgia, serif;
  --tp-ff-satisfy: 'Instrument Serif', Georgia, serif;
  --tp-ff-dirtyline: 'Instrument Serif', Georgia, serif;
}

/* A palavra realçada dentro de um título — o gesto tipográfico do site original */
.tp-section-title-grotesk .p-relative,
.tp-section-title-grotesk span.p-relative {
  font-family: var(--tp-ff-besley);
  font-style: italic;
  font-weight: 400;
}

/* Hero — taller with rounded corners */
.dgm-hero-ptb {
  min-height: 92vh;
}

/* Navbar — blend with hero background */
#header-sticky:not(.header-sticky) {
  background: transparent !important;
}

/* Fix sticky header — no slide animation (prevents double-navbar flash on scroll up) */
#header-sticky.header-sticky {
  animation: none !important;
  -webkit-animation: none !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar logo swap — black by default (light hero), black on sticky too */
.tp-header-logo .logo-black { display: inline-block; }
.tp-header-logo .logo-white { display: none; }

/* Service hover — solid blue instead of image */
.dgm-service-item:hover .dgm-service-bg img {
  opacity: 0 !important;
  visibility: hidden !important;
}
.dgm-service-item:hover .dgm-service-bg {
  background: linear-gradient(135deg, #088AE8 0%, #3B68BA 100%);
  border-radius: 10px;
}
.dgm-service-item:hover .dgm-service-link {
  color: #fff !important;
  background-color: rgba(255,255,255,0.15) !important;
}

/* Hero text box — white text on dark image */
.dgm-hero-text-box p {
  color: #fff !important;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #2a4a7a 0%, #3568a8 20%, #4080c0 40%, #3575b5 60%, #2d5d96 80%, #2a4a7a 100%);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Ruído gerado por SVG em vez de um PNG de 378 KB.
   Textura aleatória não comprime — o PNG era o maior ficheiro do site depois do CSS,
   e em WebP ficava 5x pior. feTurbulence produz o mesmo grão em ~300 bytes. */
.hero-noise {
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E") !important;
  background-repeat: repeat;
  background-size: 300px 300px;
  mix-blend-mode: overlay;
}
.hero-grid {
  opacity: 0.04;
  background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-glow-1 {
  top: -20%; right: -5%; width: 50%; height: 60%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 70%);
}
.hero-glow-2 {
  bottom: -15%; left: 10%; width: 40%; height: 50%;
  background: radial-gradient(ellipse, rgba(8,138,232,0.2) 0%, transparent 70%);
}
.hero-container {
  position: relative; z-index: 2; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 140px; padding-bottom: 60px;
}
.hero-subtitle-top {
  font-family: var(--tp-ff-clash-medium);
  font-size: 16px; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 3px;
}
.hero-title-main {
  font-family: var(--tp-ff-clash-bold);
  font-size: 130px; line-height: 0.9; color: #fff;
  text-transform: uppercase; letter-spacing: -0.04em; margin-bottom: 15px;
}
.hero-title-rotate {
  font-family: var(--tp-ff-clash-bold);
  font-size: 130px; line-height: 0.9;
  text-transform: uppercase; letter-spacing: -0.04em;
  margin-bottom: 0; color: rgba(255,255,255,0.2);
}
.hero-cursor {
  display: inline-block; color: rgba(255,255,255,0.2);
  font-weight: 900; animation: cursorBlink 0.7s step-end infinite; margin-left: 2px;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-description {
  font-size: 18px; color: rgba(255,255,255,0.75);
  margin-bottom: 0; line-height: 1.7;
}
.hero-section .tp-btn-border-2.st {
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
  background-color: transparent !important;
  width: fit-content;
}
.hero-section .tp-btn-border-2.st:hover {
  color: #fff !important;
  border-color: var(--tp-common-blue) !important;
  background-color: var(--tp-common-blue) !important;
}

/* Banner Separator */
.banner-separator { overflow: hidden; max-height: 600px; }
.banner-separator img { object-fit: cover; min-height: 600px; }

/* Choose / Stats Description */
.choose-description { font-size: 18px; line-height: 1.7; color: #666; }
.team-description { font-size: 18px; line-height: 1.7; color: #666; }

/* Footer Social Fix */
@media (max-width: 1199px) {
  .creative-footer-style .tp-footer-widget-social {
    position: static !important; background-color: transparent !important;
    border-radius: 0 !important; padding: 30px 0 0 !important;
    display: flex !important; gap: 8px; justify-content: center;
  }
  .creative-footer-style .tp-footer-widget-social::after,
  .creative-footer-style .tp-footer-widget-social::before { display: none !important; }
  .creative-footer-style .creative-footer-area { padding-top: 40px !important; }
}

/* Responsive */
@media (max-width: 991px) {
  .hero-title-main { font-size: 70px !important; }
  .hero-title-rotate { font-size: 70px !important; }
  .hero-container { padding-top: 120px !important; padding-bottom: 40px !important; }
  .hero-description { font-size: 16px !important; }
  .hero-btn-wrap { text-align: left !important; margin-top: 25px; }
}
@media (max-width: 767px) {
  .hero-title-main { font-size: 48px !important; letter-spacing: -0.03em !important; }
  .hero-title-rotate { font-size: 40px !important; letter-spacing: -0.03em !important; }
  .hero-container { padding-top: 100px !important; padding-bottom: 30px !important; }
  .hero-subtitle-top { font-size: 12px !important; letter-spacing: 2px !important; }
  .hero-description { font-size: 15px !important; }
  .hero-btn-wrap { text-align: left !important; margin-top: 20px; }
  .studio-about-title-box .tp-section-title-clash { font-size: 50px !important; }
  .tp-section-title.fs-140 { font-size: 50px !important; }
  .design-choose-item span { font-size: 50px !important; }
  .design-service-big-text h4 { font-size: 60px !important; }
  .studio-project-title-box .tp-section-title-clash { font-size: 40px !important; }
  .studio-team-title-box .tp-section-title-clash { font-size: 50px !important; }
  .design-choose-area { padding-top: 80px !important; padding-bottom: 60px !important; }
  .design-choose-area .row.align-items-end.mb-80 { margin-bottom: 40px !important; }
  .design-choose-item { padding: 15px 12px !important; min-height: auto !important; }
  .design-choose-item span { font-size: 36px !important; margin-bottom: 8px !important; }
  .design-choose-item p { font-size: 12px !important; margin-top: 0 !important; }
  .design-choose-item p br { display: none; }
}
@media (max-width: 480px) {
  .hero-title-main { font-size: 38px !important; }
  .hero-title-rotate { font-size: 32px !important; }
  .studio-about-title-box .tp-section-title-clash { font-size: 36px !important; }
  .design-choose-item span { font-size: 28px !important; }
  .design-choose-item p { font-size: 11px !important; }
}

/* Hero — "Agência web": o contraste sans/serif do site original, à escala do título */
.hero-title-serif {
  font-family: var(--tp-ff-besley);
  font-style: italic;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Serviços — títulos ao tamanho de um título, não de um cartaz

   O template punha 80px em cada linha do acordeão (uppercase, semibold), o que
   fazia "CRIAÇÃO DE WEBSITES" ocupar a largura toda e empurrar o texto para
   fora do ecrã. 48px mantém a presença sem competir com o "services" do topo.
   -------------------------------------------------------------------------- */
.design-service-accordion .accordion-buttons i {
  font-size: 48px;
  letter-spacing: -0.015em;
}
@media (max-width: 1199px) {
  .design-service-accordion .accordion-buttons i { font-size: 38px; }
}
@media (max-width: 767px) {
  .design-service-accordion .accordion-buttons i { font-size: 28px; }
}

/* O "services" gigante em marca-de-água também descia com o título original */
.design-service-big-text {
  margin-bottom: 60px !important;
}


/* As imagens novas são 2x (retina) e esta é a única que o template deixava crescer
   até à largura natural do ficheiro — as outras já têm limite no main.css. */
.studio-about-thumb.text-end img { max-width: 220px; }
