/*
Theme Name: Liamis Theme
Theme URI: https://liamis.io
Author: Liamis Team
Author URI: https://liamis.io
Description: Custom WordPress theme for Liamis website with job listings, content management, and contact forms.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: liamis
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   Liamis Theme Styles
   ========================================================================== */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
	/* overflow-x: hidden; */
}

html {
	/* overflow-x: hidden; */
}

a {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.3s ease;
}

/* Legacy styles moved to assets/css/legacy-root-styles.css */

/* NOTE: legacy site CSS was intentionally extracted to `assets/css/legacy-root-styles.css` to keep this
   file lean. If you need to iterate on legacy rules during migration/test, edit that file instead. */

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 1rem;
}

.modal-close {
	font-size: 2rem;
	font-weight: bold;
	color: #aaa;
	cursor: pointer;
	border: none;
	background: none;
	line-height: 1;
}

.modal-close:hover {
	color: #000;
}

.modal-body {
	margin-bottom: 1rem;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	border-top: 1px solid #dee2e6;
	padding-top: 1rem;
	margin-top: 1rem;
}

/* LEGACY ROOT styles.css appended on Wed Nov 12 10:18:20 EET 2025 */
:root {
  --navy: #1c4c84;
  --navy-dark: #123965;
  --navy-light: #2c6aa6;
  --slate: #0c2142;
  --sky: #f2f7fb;
  --white: #ffffff;
  --gray-100: #f5f6f8;
  --gray-200: #e6e9ef;
  --gray-500: #7b8898;
  --gray-700: #405065;
  --shadow-lg: 0 24px 48px rgba(13, 44, 84, 0.15);
  --shadow-md: 0 18px 30px rgba(15, 50, 92, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  color: var(--slate);
  background: var(--sky);
  line-height: 1.6;
	/* overflow-x: hidden; */
}

html {
  scroll-behavior: smooth;
}

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

ul {
  margin: 0;
  padding-left: 1.2rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.site-header {
  background: rgba(64, 112, 153, 0.97);
  color: var(--white);
  position: -webkit-sticky; /* Safari needs the prefixed value to respect stickiness */
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 8px 18px rgba(12, 37, 66, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--white);
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.brand-text {
  display: none;
}

.brand-name {
  font-size: 1.2rem;
}

.brand-tagline {
  font-weight: 300;
  font-size: 0.8rem;
  opacity: 0.8;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 6px 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  border-bottom-color: var(--white);
  font-weight: bold;
}

.nav a:focus {
  outline: none;
}

.nav a.active {
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 10px;
  margin-left: auto;
  cursor: pointer;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: transform 0.2s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: rotate(90deg);
  top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  opacity: 0;
}

.hero {
  background: #f2f7fb url('/wp-content/themes/liamis-theme/assets/images/header_bg.png') center/cover no-repeat;
  padding: 110px 0 90px;
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 40px;
  line-height: 120%;
  margin: 0 0 16px;
}

.hero-content p {
  font-size: 1.1rem;
  color: #737373;
  margin-bottom: 28px;
  line-height: 150%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}

.button.primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(28, 76, 132, 0.25);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(28, 76, 132, 0.32);
}

.button.ghost {
  background: rgba(28, 76, 132, 0.1);
  color: var(--navy);
  box-shadow: none;
}

.hero-visual {
  justify-self: end;
}

.hero-visual img {
  width: min(100%, 520px);
  display: block;
}

.intro-cards {
  margin-top: -40px;
  padding-bottom: 100px;
  scroll-margin-top: 120px;
}

.intro-cards .container {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.card.company {
  position: relative;
  overflow: hidden;
}

.card.company::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -15%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(28, 76, 132, 0.12), transparent 70%);
}

.card-icon {
  width: 58px;
  height: 58px;
  background: rgba(28, 76, 132, 0.12);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.icon-square {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--navy);
}

.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.card p {
	margin: 0;
	color: var(--gray-700);
}

.card-body {
	position: relative;
	z-index: 1;
}

.card.company p {
	color: #737373;
}

.card.company p:nth-of-type(2) {
	padding: 32px 0;
}.feature-stack .stack {
  display: grid;
  gap: 22px;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-card h2 {
  margin: 0 0 12px 0;
  color: #ffffff;
}

.feature-card ul {
  color: #ffffff;
  font-weight: 400;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.feature-card.expertise {
  background: linear-gradient(135deg, #223f69, #182d4a);
}


.feature-card.technology {
  background: linear-gradient(135deg, #131f38, #050b1a);
  color: #ffffff;
}

.feature-card.technology h2,
.feature-card.technology p,
.feature-card.technology ul {
  color: #ffffff;
}

.offices {
  padding: 90px 0 110px;
  background: linear-gradient(180deg, rgba(15, 68, 132, 0.06), rgba(15, 68, 132, 0));
  position: relative;
  overflow: hidden;
}

.offices::before {
  content: '';
  position: absolute;
  inset: 20% -10% -10% -10%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="600" viewBox="0 0 800 600"><g fill="none" stroke="rgba(28,76,132,0.08)" stroke-width="1"><path d="M0 80c60 16 92-60 160-44s80 120 160 96 116-152 200-128 112 168 200 148 120-176 200-156"/><path d="M0 220c80 26 132-64 200-44s120 160 200 140 124-196 200-176 88 196 200 176 120-188 200-168"/><path d="M0 360c60 24 120-84 200-60s120 200 200 176 124-216 200-188 88 216 200 192 120-204 200-188"/></g></svg>') center/cover no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

.offices .container {
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 32px;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.office-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-rows: 180px auto;
}

.office-image {
  background: linear-gradient(135deg, rgba(24, 83, 146, 0.6), rgba(117, 178, 217, 0.5));
}

.office-card:first-child .office-image {
  background: url('/wp-content/themes/liamis-theme/assets/images/brasov_office.png') center/cover no-repeat;
}

.office-card:nth-child(2) .office-image {
  background: url('/wp-content/themes/liamis-theme/assets/images/bucharest_office.png') center/cover no-repeat;
}

.office-body {
  padding: 24px;
}

.office-body h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.office-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.careers {
  padding: 110px 0;
  background: var(--gray-100);
}

.careers .container {
  display: grid;
  gap: 48px;
  grid-template-columns: 0.3fr 0.7fr;
}

.careers-intro h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 2rem;
}

.careers-intro p {
  color: var(--gray-700);
  margin-bottom: 16px;
}

.careers-intro p:last-child {
  margin-bottom: 0;
}

.career-cards {
  display: grid;
  gap: 22px;
}

.career-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.accordion-head {
  width: 100%;
  text-align: left;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  color: var(--navy);
}

.accordion-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--navy);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.accordion-icon::before {
  width: 16px;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.accordion-icon::after {
  width: 2px;
  height: 16px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.career-card.active .accordion-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.accordion-body {
  padding: 0 32px 32px;
  display: none;
}

.career-card.active .accordion-body {
  display: block;
}

.accordion-body h3 {
  margin-top: 20px;
  margin-bottom: 12px;
}

.accordion-body ul {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--gray-700);
}

.accordion-body .job-content {
  color: var(--gray-700);
}

.accordion-body .job-content h2,
.accordion-body .job-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--navy);
}

.accordion-body .job-content h2:first-child,
.accordion-body .job-content h3:first-child {
  margin-top: 0;
}

.accordion-body .job-content ul {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--gray-700);
}

.accordion-body .job-content p {
  margin-bottom: 12px;
  color: var(--gray-700);
}

.accordion-body .job-content p:last-child {
  margin-bottom: 0;
}

.career-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.contact {
  padding: 90px 0;
  background: #407099;
  color: var(--white);
}

.contact .container {
  display: grid;
  grid-template-columns: 0.3fr 0.7fr;
  gap: 50px;
}

.contact-text h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 2rem;
}

.contact p {
  color: #ffffff;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.contact-links a {
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: underline;
}

.contact-separator {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 30px;
  display: grid;
  gap: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.contact-form textarea,
.contact-form input {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--slate);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(12, 33, 66, 0.2);
}

.contact-form textarea::placeholder,
.contact-form input::placeholder {
  color: var(--gray-500);
}

.input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form .button {
  justify-self: start;
}

.site-footer {
  background: #26435C;
  color: rgba(255, 255, 255, 0.72);
  padding: 0;
  text-align: center;
  font-size: 0;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Privacy Policy Modal */
.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.privacy-modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  z-index: 2001;
}

.privacy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 2px solid var(--gray-200);
}

.privacy-modal-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.5rem;
}

.privacy-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--gray-500);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.privacy-modal-close:hover {
  color: var(--navy);
}

.privacy-modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
  color: var(--gray-700);
  line-height: 1.6;
}

.privacy-modal-body h3 {
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 12px;
}

.privacy-modal-body h3:first-child {
  margin-top: 0;
}

.privacy-modal-body p {
  margin-bottom: 16px;
}

.privacy-modal-body ul {
  margin-bottom: 16px;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(13, 44, 84, 0.15);
  z-index: 1500;
  padding: 24px 0;
  border-top: 3px solid var(--navy);
  display: block;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner.hidden {
  display: none;
}

.cookie-consent-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}

.cookie-consent-text {
  flex: 1;
}

.cookie-consent-text h3 {
  margin: 0 0 12px 0;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
}

.cookie-consent-text p {
  margin: 0 0 12px 0;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-consent-text p:last-child {
  margin-bottom: 0;
}

.cookie-policy-link {
  color: var(--navy-light);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.cookie-policy-link:hover {
  color: var(--navy);
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-consent-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  min-width: 100px;
}

.cookie-accept {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.cookie-accept:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
}

.cookie-decline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.cookie-decline:hover {
  background: var(--gray-100);
  border-color: var(--navy-dark);
}

/* ==========================================================================
   MEDIA QUERIES - Responsive Design
   ========================================================================== */

/* Tablet and below - 1024px */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    justify-self: center;
  }

  .intro-cards .container,
  .careers .container,
  .contact .container {
    grid-template-columns: 1fr;
  }

  .contact-form {
    justify-self: stretch;
  }
}

/* Mobile landscape - 768px */
@media (max-width: 768px) {
  .hero .container,
  .intro-cards .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero .container {
    text-align: center;
  }

  .hero-visual {
    justify-self: center;
  }

  .feature-stack .stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookie-consent-content {
    flex-direction: column;
    gap: 20px;
  }

  .cookie-consent-buttons {
    width: 100%;
    justify-content: flex-end;
  }

  .cookie-consent-btn {
    flex: 1;
    max-width: 150px;
  }
}

/* Mobile portrait - 720px */
@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    gap: 16px;
  }

  .nav ul {
    gap: 20px;
  }

  .hero {
    padding: 90px 0 70px;
  }

  .intro-cards {
    padding-bottom: 70px;
  }

  .card,
  .feature-card {
    padding: 26px;
  }

  .office-card {
    grid-template-rows: 120px auto;
  }

  .input-row {
    grid-template-columns: 1fr;
  }
}

/* Small mobile - 640px */
@media (max-width: 640px) {
  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
  }

  .site-header .container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: static;
    width: 100%;
    background: rgba(64, 112, 153, 0.95);
    box-shadow: 0 12px 24px rgba(12, 37, 66, 0.1);
    display: none;
    border-radius: 12px;
    padding: 8px 20px 16px;
    margin-top: 8px;
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .nav li + li {
    margin-top: 6px;
  }

  .nav a {
    padding: 10px 0;
  }

  .privacy-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .privacy-modal-header {
    padding: 20px;
  }

  .privacy-modal-header h2 {
    font-size: 1.25rem;
  }

  .privacy-modal-body {
    padding: 20px;
  }

  .cookie-consent-banner {
    padding: 20px 0;
  }

  .cookie-consent-content {
    padding: 0 16px;
  }

  .cookie-consent-text h3 {
    font-size: 1.1rem;
  }

  .cookie-consent-text p {
    font-size: 0.9rem;
  }

  .cookie-consent-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-consent-btn {
    max-width: 100%;
    width: 100%;
  }
}

/* Extra small mobile - 520px */
@media (max-width: 520px) {
  .container {
    width: min(92vw, 520px);
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
