/* ============================================================
   ramoncardo.com — estil senzill inspirat en el tema fashionlife
   ============================================================ */
@font-face {
    font-family: 'BebasNeue';
    src: url('fonts/bebasneue-webfont.woff') format('woff');
    font-weight: normal; font-style: normal;
}

* { box-sizing: border-box; }
html { margin:0; padding:0; background:#000; }
body {
    margin: 0; padding: 0;
    background: #000 url('images/slatebkg1.jpg') no-repeat center top;
    color: #888;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px; line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: #7aa8d8; text-decoration: none; transition:color .15s; }
a:hover { color: #b9d4ee; }

.wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    box-shadow: 0 0 30px rgba(0,0,0,.8);
    min-height: 100vh;
}

/* ---------- capçalera ---------- */
.site-head {
    position: relative;
    padding: 44px 40px 26px;
    border-bottom: 1px solid #222;
}
.logo { display:inline-block; }
.logo img { display:block; max-width:100%; height:auto; }
.tagline { margin: 6px 0 0; color:#666; font-size:12px; letter-spacing:3px; text-transform:lowercase; }

.flags { position:absolute; top:18px; right:40px; display:flex; gap:6px; }
.flag { width:20px; height:14px; display:inline-block; border:1px solid #333; border-radius:2px; opacity:.85; cursor:pointer; }
.flag:hover { opacity:1; }
.flag-ca { background: repeating-linear-gradient(90deg,#fcdd09 0 11%,#da121a 11% 22%); }
.flag-es { background: linear-gradient(#c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75% 100%); }
.flag-en {
    background:
        linear-gradient(90deg, transparent 42%, #C8102E 42% 58%, transparent 58%),
        linear-gradient(0deg,  transparent 40%, #C8102E 40% 60%, transparent 60%),
        linear-gradient(90deg, transparent 38%, #fff 38% 62%, transparent 62%),
        linear-gradient(0deg,  transparent 34%, #fff 34% 66%, transparent 66%),
        #012169;
}

/* ---------- menú ---------- */
.mainmenu {
    border-bottom: 3px solid #3b7ec2;
    background:#000;
}
.mainmenu > ul {
    list-style:none; margin:0; padding:0 30px;
    display:flex; flex-wrap:wrap;
}
.mainmenu li { position:relative; }
.mainmenu li > a {
    display:block;
    padding:14px 20px 10px;
    font-family:'BebasNeue', Arial, sans-serif;
    font-size:22px; letter-spacing:2px;
    color:#999; text-transform:uppercase;
}
.mainmenu li > a:hover { color:#2955d3; }
.mainmenu li.active > a { color:#fff; }
.mainmenu li.active > a::after {
    content:''; position:absolute; left:20px; right:20px; bottom:-3px;
    border-bottom:3px solid #3b7ec2;
}
.caret { font-size:12px; color:#3b7ec2; }

.mainmenu .sub {
    display:none; position:absolute; top:100%; left:0; z-index:50;
    min-width:100%; margin:0; padding:6px 0;
    list-style:none; text-align:left;
    background:#111; border:1px solid #333; border-top:3px solid #3b7ec2;
}
.mainmenu li:hover .sub, .mainmenu li:focus-within .sub { display:block; }
.mainmenu .sub a {
    padding:8px 20px; font-size:16px; letter-spacing:1px; white-space:nowrap;
    color:#999;
}
.mainmenu .sub a:hover { color:#fff; }
.menu-toggle {
    display:none; background:none; border:0; color:#ccc;
    font-size:26px; padding:8px 16px; cursor:pointer;
}

/* ---------- contingut ---------- */
.content { padding: 34px 40px 50px; }
.pagetitle {
    font-family:'BebasNeue', Arial, sans-serif;
    font-size:34px; letter-spacing:3px; font-weight:normal;
    color:#fff; text-transform:uppercase;
    margin:0 0 26px; padding-bottom:12px;
    border-bottom:1px solid #555;
}
.pagetitle::first-letter { color:#3b7ec2; }

.content p { text-align:justify; margin:0 0 14px; }
.content ul, .content ol { margin:0 0 14px 20px; padding:0; }
.content li { margin-bottom:4px; }
.content img { max-width:100%; height:auto; }
.content img[align="right"], .content img[style*="float: right"], .content img[style*="float:right"] { margin:0 0 14px 18px !important; }
.content img[align="left"], .content img[style*="float: left"], .content img[style*="float:left"] { margin:0 18px 14px 0 !important; }
.content hr { border:0; border-top:1px solid #333; margin:20px 0; }
.content table { max-width:100%; border-collapse:collapse; width:100% !important; height:auto !important; }
.content td { padding:6px; vertical-align:middle; }
/* fila d'enllaços del CV: 3 botons a dalt + 2 a sota, centrats */
.content table:not(:has(th)):has(> tbody > tr > td > a:only-child):not(:has(.video-wrap)) {
    display:block; border-collapse:separate; border-spacing:0;
}
.content table:not(:has(th)):has(> tbody > tr > td > a:only-child):not(:has(.video-wrap)) tbody {
    display:flex; flex-wrap:wrap; justify-content:center; gap:12px;
}
.content table:not(:has(th)):has(> tbody > tr > td > a:only-child):not(:has(.video-wrap)) tr,
.content table:not(:has(th)):has(> tbody > tr > td > a:only-child):not(:has(.video-wrap)) td {
    display:contents;
}
.content table:not(:has(th)):has(> tbody > tr > td > a:only-child):not(:has(.video-wrap)) td > a {
    flex:0 0 calc(33.33% - 9px);
}
.content table a {
    display:flex; align-items:center; justify-content:center;
    min-height:44px; height:100%; padding:8px 10px;
    border:1px solid #333; text-align:center;
    font-family:'BebasNeue',sans-serif; font-size:17px; letter-spacing:1px;
    text-transform:uppercase; color:#bbb;
}
.content table a:hover { border-color:#3b7ec2; color:#fff; }

/* ---------- taula de tracks (discografia) ---------- */
.content table.disco th {
    font-family:'BebasNeue',sans-serif; font-size:18px; font-weight:normal;
    letter-spacing:2px; text-transform:uppercase; color:#fff;
    text-align:left; padding:6px 10px 10px;
    border-bottom:2px solid #3b7ec2;
}
.content table.disco td {
    padding:9px 10px; color:#aaa;
    border-bottom:1px dotted #2a2a2a;
}
.content table.disco td:first-child { color:#ccc; }
.content table.disco td:last-child { width:120px; padding:6px 10px; }
.content table.disco td:last-child a { height:auto; }

.muted { color:#666; font-style:italic; }

/* ---------- llistes de categories ---------- */
.cat-list { list-style:none; margin:18px 0 0; padding:0; }
.cat-list > li {
    border-bottom:1px dotted #333;
}
.cat-list a {
    display:block; padding:9px 4px 9px 18px; color:#bbb; position:relative;
}
.cat-list a::before {
    content:'▸'; position:absolute; left:0; color:#3b7ec2;
}
.cat-list a:hover { color:#fff; }
.cat-list ul { list-style:none; margin:0 0 0 20px; padding:0; }
.cat-list li li { border:0; }
.cat-list li li a { padding:4px 4px 4px 16px; font-size:13px; }

/* ---------- vídeos ---------- */
.video-wrap {
    position:relative; padding-bottom:56.25%; height:0; overflow:hidden;
    max-width:480px; margin:0 auto 18px; background:#111;
}
.video-wrap iframe {
    position:absolute; top:0; left:0; width:100%; height:100%; border:0;
}
/* taula de vídeos (2 columnes) */
.content table .video-wrap { margin:0; }

/* ---------- àudios ---------- */
.audio-wrap { margin:4px 0 14px; }
.audio-wrap audio { width:100%; max-width:420px; height:36px; }

/* ---------- galeria ---------- */
.gal-grid {
    display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:14px;
}
.gal-item {
    margin:0; background:#0d0d0d; border:1px solid #222;
    transition:border-color .15s, transform .15s;
}
.gal-item:hover { border-color:#3b7ec2; transform:translateY(-2px); }
.gal-item img {
    display:block; width:100%; aspect-ratio:1/1; object-fit:cover;
    background:#161616;
}
.gal-item figcaption { padding:8px 10px; font-size:12px; }
.gal-item strong { display:block; color:#ccc; font-weight:normal; }
.gal-item span { color:#666; }

/* ---------- tip / portada ---------- */
.tip { position:relative; }
.tip-label { color:#7aa8d8; cursor:help; border-bottom:1px dotted #7aa8d8; }
.tip-body {
    display:none; position:absolute; left:0; top:1.4em; z-index:60;
    background:#111; border:1px solid #333; padding:6px;
}
.tip-body img { display:block; max-width:220px; }
.tip:hover .tip-body, .tip:focus .tip-body { display:block; }

/* ---------- lightbox galeria ---------- */
.gal-item img { cursor:pointer; }
.lightbox {
    display:none; position:fixed; inset:0; z-index:200;
    background:rgba(0,0,0,.93);
    align-items:center; justify-content:center; flex-direction:column;
    padding:40px 70px; cursor:zoom-out;
}
.lightbox.open { display:flex; }
.lightbox img {
    max-width:100%; max-height:80vh; object-fit:contain;
    box-shadow:0 0 40px rgba(0,0,0,.9); border:1px solid #333;
    cursor:default;
}
.lb-cap { color:#bbb; margin-top:14px; font-size:13px; text-align:center; }
.lb-x {
    position:absolute; top:12px; right:24px; z-index:2;
    color:#999; font-size:34px; line-height:1; cursor:pointer;
}
.lb-x:hover { color:#fff; }
.lb-nav {
    position:absolute; top:50%; transform:translateY(-50%); z-index:2;
    color:#999; font-size:44px; padding:0 16px; cursor:pointer;
    user-select:none;
}
.lb-nav:hover { color:#fff; }
.lb-prev { left:14px; }
.lb-next { right:14px; }
@media (max-width:760px) {
    .lightbox { padding:50px 12px 20px; }
    .lb-nav { font-size:34px; padding:0 8px; }
}

/* Google Translate: amagar la barra superior que desplaça el body */
body { top:0 !important; }
.goog-te-banner-frame, .skiptranslate > iframe.skiptranslate { display:none !important; }
.goog-te-gadget { font-size:0; }

/* ---------- peu ---------- */
.site-foot { border-top:1px solid #222; background:#000; }
.foot-cols {
    display:flex; flex-wrap:wrap; gap:24px;
    padding:30px 40px 20px;
}
.foot-col {
    flex:1 1 200px;
    background:#0d0d0d; border:1px solid #1e1e1e; border-top:2px solid #3b7ec2;
    padding:18px 20px 14px;
}
.foot-col h4 {
    font-family:'BebasNeue',sans-serif; font-weight:normal;
    font-size:24px; letter-spacing:2px; text-transform:uppercase;
    color:#fff; margin:0 0 12px; padding-bottom:8px;
    border-bottom:1px solid #222;
}
.foot-col h4 span { color:#3b7ec2; }
.foot-col ul { list-style:none; margin:0; padding:0; }
.foot-col li { border-bottom:1px dotted #2a2a2a; }
.foot-col li:last-child { border-bottom:0; }
.foot-col a { display:block; padding:7px 2px; color:#999; font-size:13px; }
.foot-col a:hover { color:#fff; }

.foot-bar {
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    padding:16px 40px; border-top:1px solid #1a1a1a;
    font-size:12px; color:#555;
}
.foot-links a { color:#777; }
.foot-links a:hover { color:#fff; }

/* ---------- responsive ---------- */
@media (max-width:760px) {
    .site-head { padding:30px 20px 18px; }
    .logo { font-size:34px; }
    /* banderes: a la dreta de la fila del botó de menú */
    .flags { top:auto; bottom:-30px; right:16px; z-index:70; }
    .menu-toggle { display:block; }
    .mainmenu { position:relative; }
    .mainmenu > ul { display:none; padding:0 10px 10px; }
    body.nav-open .mainmenu > ul { display:block; }
    .mainmenu li > a { padding:10px 14px; }
    .mainmenu .sub {
        position:static; display:block; border:0; border-left:3px solid #3b7ec2;
        margin-left:14px; background:transparent;
    }
    .content { padding:24px 20px 40px; }
    /* taules (fila de botons, vídeos) s'apilen a mòbil */
    .content table, .content tbody, .content tr { display:block; width:100% !important; }
    .content td { display:block; padding:0 0 10px; }
    .content table a { min-height:40px; }
    /* fila de botons: apilats a tot l'ample */
    .content table:not(:has(th)):has(> tbody > tr > td > a:only-child):not(:has(.video-wrap)) tbody { display:flex; flex-direction:column; }
    .content table:not(:has(th)):has(> tbody > tr > td > a:only-child):not(:has(.video-wrap)) tr,
    .content table:not(:has(th)):has(> tbody > tr > td > a:only-child):not(:has(.video-wrap)) td { display:contents; }
    .content table:not(:has(th)):has(> tbody > tr > td > a:only-child):not(:has(.video-wrap)) td > a { flex-basis:auto; }
    /* la taula de tracks manté el format de taula a mòbil */
    .content table.disco { display:table; }
    .content table.disco thead { display:table-header-group; }
    .content table.disco tbody { display:table-row-group; }
    .content table.disco tr { display:table-row; }
    .content table.disco th, .content table.disco td { display:table-cell; padding:8px 6px; }
    .content table.disco th { font-size:15px; }
    .content table.disco td:last-child { width:96px; }
    .content table.disco td:last-child a { min-height:36px; font-size:14px; }
    .gal-grid { grid-template-columns:repeat(auto-fill,minmax(105px,1fr)); gap:10px; }
    .content img[align="right"], .content img[align="left"],
    .content img[style*="float"] {
        float:none !important; display:block; margin:0 auto 16px !important;
        max-width:75%;
    }
    .foot-cols { padding:26px 20px 10px; flex-direction:column; gap:24px; }
    .foot-bar { padding:14px 20px; }
}
