/*
Theme Name: Deik
Theme URI: https://deik.cl
Description: Custom WordPress theme built with ACF Gutenberg Blocks for Deik Pastas.
Author: Antigravity
Author URI: https://google.com
Version: 1.0.0
Text Domain: deik
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@300;400;500;700;900&display=swap');

/* ---------------------------------------------------------
   Design System & Custom Properties
   --------------------------------------------------------- */
:root {
  --color-bg-beige: #f2f2f2;
  --color-blue: #1c2d8a;
  --color-blue-dark: #02111f;
  --color-yellow:  #fe7900;
  --color-yellow-light: #f5b041;
  --color-text-dark: #2d312e;
  --color-text-light: #ffffff;
  --color-white: #ffffff;
  --font-heading: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------------
   Reset & Base Styles
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg-beige);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p {
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Icon badge style used in block headers */
.block-header {
  text-align: center;
  margin-bottom: 40px;
}

.block-header h2 {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-blue);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-wrap: anywhere;
  text-align: center;
}

.wsp-header {
	display: flex;
	gap: 10px;
	align-items: center;
}

.wsp-header h3 {
	line-height: normal;
    display: flex;
    align-items: center;
}

.wsp-header p {
    font-weight: 600;
    color: var(--color-blue);
    letter-spacing: normal;
    font-size: 18px;
    line-height: normal;
    margin: 0;
}

@media (max-width: 480px) {
  .block-header {
    margin-bottom: 30px;
  }

  .block-header h2 {
    font-size: 1.9rem;
    line-height: 0.98;
  }
}

/* Button style */
.btn-primary {
  display: inline-block;
  background-color: var(--color-blue);
  color: var(--color-white);
  padding: 12px 35px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-blue-dark);
  transform: translateY(-2px);
  color: var(--color-white);
}

/* ---------------------------------------------------------
   WordPress Gutenberg Core Alignments
   --------------------------------------------------------- */
.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ---------------------------------------------------------
   Helper Utilities
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* ---------------------------------------------------------
   Single News Styles
   --------------------------------------------------------- */
.single-news-page {
  background-color: var(--color-white);
}

.single-news-hero {
  padding: 76px 0 36px;
  text-align: center;
  background-color: var(--color-white);
}

.single-news-back-link {
  display: inline-flex;
  margin-bottom: 26px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-yellow);
  text-transform: uppercase;
}

.single-news-back-link::before {
  content: '<';
  margin-right: 8px;
}

.single-news-back-link:hover {
  color: var(--color-blue);
}

.single-news-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 15px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: #6d7177;
  text-transform: uppercase;
}

.single-news-meta a {
  color: var(--color-blue);
}

.single-news-meta a:hover {
  color: var(--color-yellow);
}

.single-news-meta time {
  display: inline-flex;
  align-items: center;
}

.single-news-meta time::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-right: 14px;
  border-radius: 50%;
  background-color: var(--color-yellow);
}

.single-news-title {
  max-width: 920px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: 4.05rem;
  font-weight: 400;
  line-height: 0.95;
  color: var(--color-blue);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.single-news-featured {
  padding: 0 0 55px;
  background-color: var(--color-white);
}

.single-news-featured .container {
  max-width: 1010px;
}

.single-news-featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.single-news-content-section {
  padding: 0 0 78px;
  background-color: var(--color-white);
}

.single-news-content {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.78;
  color: #4f5358;
}

.single-news-content > * {
  margin-bottom: 1.35em;
}

.single-news-content > *:last-child {
  margin-bottom: 0;
}

.single-news-content h2,
.single-news-content h3,
.single-news-content h4 {
  margin-top: 1.45em;
  margin-bottom: 0.55em;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 0.98;
  color: var(--color-blue);
  text-transform: uppercase;
}

.single-news-content h2 {
  font-size: 2.35rem;
}

.single-news-content h3 {
  font-size: 1.85rem;
}

.single-news-content h4 {
  font-size: 1.45rem;
}

.single-news-content p {
  margin-bottom: 1.35em;
}

.single-news-content a {
  color: var(--color-blue);
  font-weight: 700;
}

.single-news-content a:hover {
  color: var(--color-yellow);
}

.single-news-content ul,
.single-news-content ol {
  padding-left: 1.2em;
}

.single-news-content li + li {
  margin-top: 0.45em;
}

.single-news-content blockquote {
  margin: 2em 0;
  padding: 22px 0 22px 28px;
  border-left: 4px solid var(--color-yellow);
  color: var(--color-blue);
  font-size: 1.28rem;
  line-height: 1.55;
}

.single-news-content img {
  width: 100%;
  height: auto;
}

.single-news-page-links {
  margin-top: 34px;
  color: var(--color-blue);
  font-weight: 700;
}

.single-news-post-nav {
  max-width: 920px;
  margin: 62px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(28, 45, 138, 0.18);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.single-news-post-nav-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  padding: 18px 20px;
  background-color: #f7f7f7;
  color: #4f5358;
  overflow-wrap: anywhere;
}

.single-news-post-nav-item span {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-yellow);
  text-transform: uppercase;
}

.single-news-post-nav-item a:hover {
  color: var(--color-blue);
  transform: translateY(-2px);
}

.single-news-post-nav-next {
  text-align: right;
}

.single-news-related {
  padding: 74px 0 86px;
  background-color: #f7f7f7;
}

.single-news-related .container {
  max-width: 960px;
}

.single-news-related-header {
  text-align: center;
  margin-bottom: 38px;
}

.single-news-related-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 0.95;
  color: var(--color-blue);
  text-transform: uppercase;
  margin: 0;
}

.single-news-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.single-news-related-card {
  text-align: center;
  min-width: 0;
}

.single-news-related-image-link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--color-white);
}

.single-news-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.single-news-related-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-yellow) 100%);
}

.single-news-related-card:hover .single-news-related-img {
  transform: scale(1.04);
}

.single-news-related-card h3 {
  max-width: 310px;
  margin: 0 auto 16px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  color: #6d7177;
}

.single-news-related-card h3 a:hover {
  color: var(--color-blue);
}

.single-news-related-link {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-blue);
  text-transform: uppercase;
}

.single-news-related-link:hover {
  color: var(--color-yellow);
}

@media (max-width: 768px) {
  .single-news-hero {
    padding: 54px 0 30px;
  }

  .single-news-title {
    font-size: 2.75rem;
  }

  .single-news-featured {
    padding-bottom: 38px;
  }

  .single-news-content-section {
    padding-bottom: 58px;
  }

  .single-news-content {
    font-size: 1rem;
    line-height: 1.68;
  }

  .single-news-content h2 {
    font-size: 2rem;
  }

  .single-news-content h3 {
    font-size: 1.65rem;
  }

  .single-news-post-nav,
  .single-news-related-grid {
    grid-template-columns: 1fr;
  }

  .single-news-post-nav-next {
    text-align: left;
  }

  .single-news-related {
    padding: 58px 0 66px;
  }
}

/* ---------------------------------------------------------
   News Archive Styles
   --------------------------------------------------------- */
.news-archive-page {
  background-color: var(--color-white);
}

.news-archive-hero {
  padding: 78px 0 50px;
  text-align: center;
  background-color: var(--color-white);
}

.news-archive-hero h1 {
  max-width: 920px;
  margin: 0 auto 10px;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.95;
  color: var(--color-blue);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.news-archive-hero p,
.news-archive-description {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.45;
  color: #6d7177;
}

.news-archive-description p {
  margin: 0;
}

.news-archive-listing {
  padding: 0 0 86px;
  background-color: var(--color-white);
}

.news-archive-listing .container {
  max-width: 1120px;
}

.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 28px;
}

.news-archive-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 0;
}

.news-archive-card-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 22px;
  background-color: #f7f7f7;
}

.news-archive-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-archive-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-yellow) 100%);
}

.news-archive-card:hover .news-archive-card-img {
  transform: scale(1.04);
}

.news-archive-card-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  color: #8a8e94;
  text-transform: uppercase;
}

.news-archive-card-meta a {
  color: var(--color-blue);
}

.news-archive-card-meta a:hover {
  color: var(--color-yellow);
}

.news-archive-card-meta time {
  display: inline-flex;
  align-items: center;
}

.news-archive-card-meta time::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-right: 12px;
  border-radius: 50%;
  background-color: var(--color-yellow);
}

.news-archive-card-title {
  max-width: 330px;
  margin: 0 auto 12px;
  font-family: var(--font-body);
  font-size: 1.16rem;
  font-weight: 400;
  line-height: 1.35;
  color: #6d7177;
  overflow-wrap: anywhere;
}

.news-archive-card-title a:hover {
  color: var(--color-blue);
}

.news-archive-card-excerpt {
  max-width: 330px;
  margin: 0 auto 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6d7177;
}

.news-archive-card-link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-blue);
  text-transform: uppercase;
}

.news-archive-card-link:hover {
  color: var(--color-yellow);
}

.news-archive-pagination {
  margin-top: 58px;
  text-align: center;
}

.news-archive-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.news-archive-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(28, 45, 138, 0.18);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-blue);
  text-transform: uppercase;
}

.news-archive-pagination .page-numbers.current,
.news-archive-pagination .page-numbers:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.news-archive-empty {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: #6d7177;
}

@media (max-width: 991px) {
  .news-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .news-archive-hero {
    padding: 56px 0 38px;
  }

  .news-archive-hero h1 {
    font-size: 2.75rem;
  }

  .news-archive-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .news-archive-listing {
    padding-bottom: 66px;
  }
}

/* ---------------------------------------------------------
   Header Styles
   --------------------------------------------------------- */
.site-header {
  background-color: var(--color-bg-beige);
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-socials a {
  color: var(--color-blue);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.header-socials a:hover {
  color: var(--color-blue-dark);
  transform: scale(1.1);
}

.header-logo img {
  max-height: 65px;
  width: 320px;
  max-width: 100%;
}

.header-cta .btn-primary {
  padding: 10px 22px;
}

@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .header-socials {
    order: 2;
  }

  .header-logo {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .header-logo a {
    display: inline-flex;
    max-width: 100%;
  }

  .header-logo img {
    width: min(320px, 100%);
    height: auto;
  }

  .header-cta {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .header-cta .btn-primary {
    width: 100%;
  }
}

/* ---------------------------------------------------------
   Footer Styles
   --------------------------------------------------------- */
.site-footer {
  background-color: #1c1c1c;
  color: var(--color-text-light);
  padding: 75px 0 78px;
  position: relative;
}

.site-footer .container {
  max-width: 1370px;
}

.site-footer p {
  color: #e9e9e9;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(520px, 2.35fr) auto minmax(280px, 1fr);
  grid-template-areas: "intro contacts socials assets";
  align-items: center;
  gap: 25px;
}

.footer-intro {
  grid-area: intro;
}

.footer-contact-list {
  grid-area: contacts;
}

.footer-socials {
  grid-area: socials;
}

.footer-brand-assets {
  grid-area: assets;
}

.footer-intro h2,
.footer-contact-item h3 {
  font-family: var(--font-heading);
  font-size: 1.48rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-yellow);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.footer-intro h2 {
  color: var(--color-text-light);
}

.footer-intro h2 span,
.footer-intro h2 strong {
  color: var(--color-yellow);
}

.footer-intro p,
.footer-contact-item p,
.footer-contact-item a {
  font-family: var(--font-body);
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.42;
  margin: 0;
}

.footer-contact-item p {
  padding-left: 25px;
}

.footer-contact-item a:hover {
  color: var(--color-yellow);
}

.footer-contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 25px;
}

.footer-contact-item h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-yellow);
}

.footer-contact-icon {
  display: inline-flex;
  color: var(--color-yellow);
}

.footer-contact-icon svg {
  display: block;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-socials a {
  color: var(--color-text-light);
  display: inline-flex;
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--color-yellow);
  transform: translateY(-3px);
}

.footer-brand-assets {
  border-left: 2px solid var(--color-yellow);
  min-height: 148px;
  padding-left: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 27px;
}

.footer-logo {
      max-width: 100px;
    max-height: 63px;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--color-yellow);
  text-transform: uppercase;
}

.footer-experience-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-badge-icon {
  width: 225px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-badge-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #052c55;
}

.footer-experience-badge span:last-child {
  min-height: 63px;
  min-width: 160px;
  max-width: 190px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #052c55;
  border: 1px solid rgba(254, 121, 0, 0.35);
  font-family: var(--font-heading);
  font-size: 1.53rem;
  font-weight: 400;
  line-height: 0.95;
  color: var(--color-text-light);
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .footer-layout {
    grid-template-columns: 1fr 1.6fr;
    grid-template-areas:
      "intro contacts"
      "socials assets";
    gap: 42px;
  }

  .footer-contact-list {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 22px;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-brand-assets {
    padding-left: 25px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 56px 0;
  }

  .footer-layout,
  .footer-contact-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-layout {
    grid-template-areas:
      "intro"
      "contacts"
      "socials"
      "assets";
  }

  .footer-brand-assets {
    border-left: 0;
    border-top: 2px solid var(--color-yellow);
    min-height: 0;
    padding: 32px 0 0;
  }

  .footer-intro,
  .footer-contact-item {
    max-width: 320px;
  }

  .footer-experience-badge {
    max-width: 100%;
  }

  .footer-experience-badge span:last-child {
    min-width: 0;
  }

  .footer-logo{
    max-width: 140px;
    margin: 0;
  }
  .footer-badge-icon {
    width: 200px;
    height: auto;
}
}
