/*
Theme Name: DAS Partners
Theme URI: https://daspartners.ro
Author: DAS&PARTNERS
Description: Custom WordPress theme for DAS Partners.
Version: 1.0.2
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: daspartners
*/

:root {
  --navy: #0b1f3a;
  --navy-2: #102a4b;
  --navy-3: #07172b;
  --gold: #b99854;
  --gold-light: #d1b978;
  --paper: #f5f3ee;
  --white: #fff;
  --ink: #182231;
  --muted: #657083;
  --line: #dedbd2;
  --shadow: 0 24px 70px rgba(7, 23, 43, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  margin: 12px;
  padding: 10px 16px;
  z-index: 9999;
  background: var(--white);
}
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(780px, 100%); }
.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
}
h1 { font-size: clamp(46px, 7vw, 88px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: 29px; }
p { margin-top: 0; }
.lead { color: #354256; font-size: clamp(18px, 2vw, 21px); line-height: 1.75; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(222, 219, 210, 0.8);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 22px rgba(7, 23, 43, 0.05);
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled,
.site-header.header-solid {
  border-color: rgba(222, 219, 210, 0.8);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(7, 23, 43, 0.07);
  backdrop-filter: blur(12px);
}
.site-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 62px;
  height: 62px;
  object-fit: contain;
  padding: 3px;
}
.brand-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.065em;
}
.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.primary-menu a {
  position: relative;
  display: block;
  padding: 29px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.primary-menu a::after {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after { transform: scaleX(1); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 0;
  color: currentColor;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 23, 43, 0.97) 0%, rgba(11, 31, 58, 0.82) 52%, rgba(11, 31, 58, 0.44) 100%),
    url("assets/images/hero.jpg") center / cover no-repeat;
}
.hero::after,
.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  pointer-events: none;
  background: repeating-linear-gradient(111deg, transparent 0 115px, rgba(185, 152, 84, 0.35) 116px 117px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 160px;
  padding-bottom: clamp(72px, 10vw, 118px);
}
.hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--white);
}
.hero-title-small {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero p {
  max-width: 760px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(18px, 2vw, 21px);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--gold);
  color: var(--navy);
  background: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--gold-light); }
.button-outline { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, 0.54); }
.button-outline:hover { color: var(--navy); background: var(--white); }
.button-dark { color: var(--white); background: var(--navy); border-color: var(--navy); }

.section { padding: clamp(76px, 9vw, 118px) 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--paper); }
.section-dark { color: var(--white); background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.lead-on-dark { color: rgba(255,255,255,.72); }
.section-header {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: clamp(40px, 7vw, 96px);
  margin-bottom: 58px;
}
.section-header h2 { margin-bottom: 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.service-card {
  position: relative;
  min-height: 400px;
  padding: 44px 36px;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { z-index: 1; transform: translateY(-5px); box-shadow: var(--shadow); }
.service-number {
  display: block;
  margin-bottom: 50px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.service-card p { color: #4b586b; }
.service-card ul { padding-left: 18px; margin: 24px 0 0; color: #354256; }
.service-card li { margin: 7px 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-image {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: var(--paper);
}
.project-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(7, 23, 43, 0.16));
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-image img { transform: scale(1.025); }
.project-body { padding: 28px; }
.project-body h3 { margin-bottom: 12px; font-size: 27px; }
.project-body p { margin-bottom: 0; color: #526075; }
.meta {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-action { margin-top: 38px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(50px, 8vw, 105px);
}
.statement {
  padding-left: 30px;
  border-left: 3px solid var(--gold);
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px; background: rgba(255,255,255,.16); }
.value { min-height: 170px; padding: 30px; background: var(--navy); }
.value strong { display: block; margin-bottom: 10px; color: var(--gold-light); font-family: var(--serif); font-size: 25px; }
.value span { color: rgba(255,255,255,.72); }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 90px);
  padding: clamp(40px, 7vw, 74px);
  color: var(--white);
  background: var(--navy);
}
.contact-panel h2 { color: var(--white); }
.contact-panel p { color: rgba(255,255,255,.72); }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.15); }
.contact-list a:hover { color: var(--gold-light); }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 176px 0 88px;
  color: var(--white);
  background: var(--navy);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 980px; margin-bottom: 20px; color: var(--white); }
.page-hero .lead { max-width: 780px; color: rgba(255,255,255,.74); }
.portfolio-list { display: grid; gap: 44px; }
.project-row {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.project-row:nth-child(even) .project-row-image { order: 2; }
.project-row-image { height: 410px; overflow: hidden; background: var(--paper); }
.project-row-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-row:hover img { transform: scale(1.02); }
.project-row h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 49px); }
.entry-content > * { max-width: 780px; margin-inline: auto; }
.entry-content img, .entry-content .alignwide { max-width: 1100px; }
.entry-content a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.single-project-image { max-width: 1100px; margin: 0 auto 55px; }
.single-project-back { max-width: 780px; margin: 42px auto 0; }

.contact-page-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 110px); }
.contact-data { margin: 34px 0 0; padding: 0; list-style: none; }
.contact-data li { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-form { padding: clamp(30px, 5vw, 52px); background: var(--paper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-full { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbc7bd;
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(185,152,84,.45); border-color: var(--gold); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-notice { margin-bottom: 22px; padding: 13px 16px; border-left: 3px solid var(--gold); background: var(--white); }
.form-notice.error { border-color: #a33; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; }
.form-consent input { width: auto; margin-top: 5px; }
.form-consent label { font-weight: 500; letter-spacing: 0; text-transform: none; }
.hp-field { position: absolute; left: -9999px; }

.site-footer { padding: 58px 0 28px; color: var(--white); background: var(--navy-3); }
.footer-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 48px; }
.footer-brand { max-width: 380px; }
.footer-brand strong { font-family: var(--serif); font-size: 25px; letter-spacing: .06em; }
.footer-brand p, .site-footer a, .site-footer address { color: rgba(255,255,255,.64); font-style: normal; }
.site-footer h3 { margin-bottom: 18px; color: var(--white); font-family: var(--sans); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin: 7px 0; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.45);
  font-size: 12px;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-menu {
    position: fixed;
    inset: 82px 0 0;
    display: none;
    padding: 35px 24px;
    color: var(--white);
    background: var(--navy);
  }
  .primary-menu.is-open { display: block; }
  .primary-menu ul { display: block; }
  .primary-menu a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
  .primary-menu a::after { display: none; }
  .section-header, .about-grid, .contact-panel, .contact-page-grid, .project-row { grid-template-columns: 1fr; }
  .service-grid, .project-grid { grid-template-columns: 1fr; }
  .project-row:nth-child(even) .project-row-image { order: initial; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, 1180px); }
  .site-nav { min-height: 72px; }
  .brand-mark { width: 48px; height: 48px; }
  .primary-menu { inset: 72px 0 0; }
  .hero-inner { padding-top: 130px; }
  .hero h1 { font-size: clamp(43px, 14vw, 66px); }
  .section { padding: 72px 0; }
  .section-header { gap: 18px; margin-bottom: 38px; }
  .service-card { min-height: 0; padding: 34px 26px; }
  .service-number { margin-bottom: 30px; }
  .project-image, .project-row-image { height: 270px; }
  .contact-panel { padding: 32px 24px; }
  .page-hero { padding: 142px 0 66px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
