/*
Theme Name: Cidev Card
Author: Cidev Concept
Description: Cărți de vizită digitale cu profiluri NFC, coduri QR, descărcare de contact și statistici pentru proprietar.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cidev-card
*/
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(assets/wp-fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(assets/wp-fonts/dm-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(assets/wp-fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(assets/wp-fonts/space-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --bg: #f5f6f1;
  --ink: #17241d;
  --muted: #506054;
  --line: #dde4db;
  --green: #164b35;
  --paper: #fff;
  font-family: "DM Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading: "Space Grotesk Variable", "DM Sans Variable", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #347a55; outline-offset: 4px; }
.masthead, .site-footer { max-width: 1200px; margin-inline: auto; padding: 26px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.masthead { flex-wrap: wrap; gap: 6px 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: -.055em; }
.brand-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: var(--green); color: #dcf4bb; }
.brand-light { font-weight: 490; }
.brand-dot { color: #447a59; }
.header-label, .site-footer { color: var(--muted); font-size: .9rem; }
.header-label { display: flex; gap: 7px; align-items: center; }
.card-caption { margin-inline-start: auto; }
.profile-layout { width: min(940px, calc(100% - 48px)); margin: clamp(24px, 8vh, 85px) auto 0; display: grid; grid-template-columns: 1.06fr 1fr; gap: 24px; align-items: stretch; }
.identity, .contact { border: 1px solid var(--line); border-radius: 22px; background: var(--paper); overflow: hidden; box-shadow: 0 12px 30px #21372a08; min-width: 0; }
.card-cover { --cover-base: #113f30; --cover-highlight: #276a4b; --cover-ring: #d5efad; --cover-mark: #e4f4ce; position: relative; height: 176px; isolation: isolate; background: radial-gradient(ellipse at 87% 10%, var(--cover-highlight), transparent 65%), var(--cover-base); }
.card-cover[data-cover-style="black"] { --cover-base: #16171a; --cover-highlight: #41444a; --cover-ring: #e4e6eb; --cover-mark: #fff; }
.card-cover[data-cover-style="blue"] { --cover-base: #16386f; --cover-highlight: #3468ad; --cover-ring: #b7d9ff; --cover-mark: #fff; }
.card-cover[data-cover-style="red"] { --cover-base: #801d30; --cover-highlight: #b53f50; --cover-ring: #ffd1d5; --cover-mark: #fff; }
.card-cover[data-cover-style="white"] { --cover-base: #fff; --cover-highlight: #f0f3ef; --cover-ring: #9baaa0; --cover-mark: #26342b; border-bottom: 1px solid var(--line); }
.cover-orbit { position: absolute; z-index: -1; inset: 0; overflow: hidden; border-radius: inherit; }
.cover-orbit::before, .cover-orbit::after { content: ""; position: absolute; display: block; width: 470px; height: 330px; border-radius: 44% 56% 63% 37%; transform: rotate(-23deg); top: -145px; right: -85px; border: 1px solid color-mix(in srgb, var(--cover-ring) 27%, transparent); box-shadow: 0 0 0 14px color-mix(in srgb, var(--cover-ring) 13%, transparent), 0 0 0 28px color-mix(in srgb, var(--cover-ring) 9%, transparent), 0 0 0 43px color-mix(in srgb, var(--cover-ring) 8%, transparent), 0 0 0 58px color-mix(in srgb, var(--cover-ring) 7%, transparent), 0 0 0 73px color-mix(in srgb, var(--cover-ring) 5%, transparent), 0 0 0 87px color-mix(in srgb, var(--cover-ring) 4%, transparent); }
.cover-orbit::after { right: -155px; top: -160px; opacity: .6; }
.nfc-mark { position: absolute; right: 24px; top: 21px; display: inline-flex; align-items: center; gap: 8px; color: var(--cover-mark); font-size: .9rem; letter-spacing: .1em; }
.monogram { position: absolute; left: 32px; bottom: -39px; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 23px; border: 5px solid white; background: #d9efb8; color: #194733; font-size: 32px; font-weight: 780; letter-spacing: -.09em; box-shadow: 0 5px 13px #122e231a; overflow: hidden; }
.monogram img { display: block; width: 100%; height: 100%; object-fit: cover; }
.identity-body { padding: 59px 32px 32px; }
.company { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: .88rem; font-weight: 700; margin: 0 0 9px; }
h1, h2, p { overflow-wrap: anywhere; }
h1, h2, .wordmark, .monogram, .stat-card strong { font-family: var(--heading); }
h1 { margin: 0; font-size: clamp(2.15rem, 5vw, 3.9rem); font-weight: 700; letter-spacing: -.06em; line-height: 1.01; }
.role { margin: 11px 0 0; font-size: 1.13rem; color: var(--muted); }
.bio { margin: 21px 0 0; line-height: 1.56; white-space: pre-line; }
.location { display: flex; gap: 7px; align-items: center; margin: 21px 0 0; color: var(--muted); font-size: .9rem; }
.contact { padding: 30px; }
h2 { margin: 0 0 16px; font-size: 1.42rem; letter-spacing: -.04em; }
.contact-list { display: grid; gap: 8px; margin-bottom: 20px; }
.profile-social { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.contact-row { border: 1px solid var(--line); border-radius: 12px; min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 9px 11px; }
.contact-row:hover, .sub-button:hover, .share-actions button:hover { background: #f0f6ed; }
.contact-row > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.contact-icon { width: 40px; height: 40px; border-radius: 9px; background: #edf4e9; color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
small { display: block; margin-bottom: 2px; color: var(--muted); font-size: .875rem; }
.contact-row strong { font-size: .98rem; }
.save-contact { background: var(--green); color: white; border: 1px solid transparent; border-radius: 12px; min-height: 49px; display: flex; justify-content: center; align-items: center; gap: 9px; padding: 11px 17px; font-weight: 700; text-align: center; }
.save-contact:hover { background: #226246; }
.share-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; margin-top: 9px; }
.share-actions button, .sub-button { background: white; color: var(--green); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; font-size: .875rem; font-weight: 680; }
.share-actions button svg { flex: 0 0 auto; }
.share-link-input { width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.feedback { color: var(--green); font-size: .9rem; margin-bottom: 0; }
.error { color: #a32520; }
.qr-box { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); display: grid; justify-items: center; gap: 8px; }
.qr-box a { text-decoration: underline; font-size: .9rem; }
.site-footer { width: min(940px, calc(100% - 48px)); padding: 23px 0 32px; }
.site-footer a:hover, a.header-label:hover { text-decoration: underline; }
.missing { width: min(550px, calc(100% - 48px)); margin: 72px auto; }
.missing .save-contact { width: fit-content; }
@media (max-width: 690px) {
  .masthead { padding: 17px 18px; }
  .profile-layout { width: calc(100% - 32px); margin-top: 15px; grid-template-columns: 1fr; gap: 12px; }
  .identity, .contact { border-radius: 18px; }
  .card-cover { height: 105px; }
  .monogram { left: 20px; width: 84px; height: 84px; font-size: 29px; bottom: -32px; border-radius: 19px; }
  .identity-body { padding: 44px 20px 20px; }
  .bio, .location { margin-top: 13px; }
  .contact, .editor { padding: 18px; }
  .site-footer { width: calc(100% - 36px); }
}
@media (max-width: 28rem) {
  .card-caption { order: 1; flex-basis: 100%; }
}
@media (max-width: 380px) {
  .masthead { gap: 8px; }
  .header-label { font-size: .84rem; }
  .field-grid { grid-template-columns: 1fr; }
  .share-actions button { padding-inline: 5px; }
}

.cover-image { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cover-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-image::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 98% 0%, #14282095, transparent 40%); }
.company-logo { grid-column: 1 / -1; display: grid; place-items: center; padding: 17px 22px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.company-logo img { display: block; width: auto; height: auto; max-width: min(220px, 100%); max-height: 72px; object-fit: contain; }

[hidden] { display: none !important; }
.skip-link { position: absolute; transform: translateY(-150%); padding: 8px 14px; background: white; z-index: 4; }
.skip-link:focus { transform: none; }
.page-content { width: min(940px, calc(100% - 48px)); margin: 60px auto; }
.page-content .sub-button { width: fit-content; }
.page-content img { max-width: 100%; height: auto; }
.brand-icon { display: inline-flex; gap: 2px; justify-content: center; align-items: center; }
.brand-icon i { width: 3px; height: 11px; background: currentColor; border-radius: 2px; }
.brand-icon i:nth-child(2){height:19px}.brand-icon i:nth-child(3){height:15px}
.dashicons { width: 1em; height: 1em; line-height: 1; font-size: 1.1em; flex-shrink: 0; }
details .sub-button { cursor: pointer; list-style: none; } summary::-webkit-details-marker { display:none; }
.feedback:empty { display: none; }
.share-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
.qr-box img { display: block; max-width: 100%; height: auto; }
