/*
Theme Name: Tölvubraut
Theme URI: https://www.tbraut.is/
Author: Tölvubraut ehf.
Description: Sérhannað einfalt og nútímalegt þema fyrir Tölvubraut ehf. með verkefnum og fróðleik.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tolvubraut
*/

:root{--ink:#111315;--dark:#151719;--orange:#F7931E;--white:#fff;--paper:#f5f6f5;--line:#e2e4e3;--muted:#626b70;--width:1180px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}button{font:inherit}a:focus-visible,button:focus-visible{outline:3px solid var(--orange);outline-offset:4px} .wrap{width:min(var(--width),calc(100% - 48px));margin:auto}.eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:.18em;font-weight:800;color:#bc6710}.topline{background:var(--dark);color:#d9dcdd;font-size:12px}.topline .wrap{display:flex;justify-content:flex-end;gap:28px;padding:8px 0}.topline a:hover{color:var(--orange)}header{position:sticky;top:0;background:#fff;z-index:20;border-bottom:1px solid var(--line)}.nav{min-height:78px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:13px}.brand img{width:76px;height:65px;object-fit:contain}.brand span{font-weight:850;letter-spacing:.17em;font-size:14px}.navlinks{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:700}.navlinks a:hover{color:#ad5e0e}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 21px;border-radius:5px;font-weight:800;font-size:14px;transition:transform .2s,background .2s}.btn:hover{transform:translateY(-2px)}.btn-orange{color:#101214;background:var(--orange)}.btn-outline{border:1px solid #626a70;color:#fff}.btn-outline:hover{background:#303437}.navbtn{background:var(--ink);color:#fff}.menu{display:none;border:1px solid var(--line);background:#fff;padding:10px 13px;border-radius:5px;font-weight:800}.hero{background:var(--dark);color:white;position:relative;overflow:hidden;min-height:620px}.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(21,23,25,.15) 0%,rgba(21,23,25,0) 65%);pointer-events:none}.hero-grid{display:grid;grid-template-columns:1fr .93fr;min-height:620px;align-items:center;position:relative;z-index:1;gap:38px}.hero-content{padding:80px 0 100px;position:relative;z-index:2}.hero .eyebrow{color:var(--orange)}.hero h1{font-weight:800;font-size:clamp(40px,5.3vw,76px);line-height:1.08;letter-spacing:-.055em;margin:18px 0 25px;max-width:690px}.hero h1 em{color:var(--orange);font-style:normal}.hero p{max-width:550px;color:#d1d5d6;font-size:17px;line-height:1.8}.actions{display:flex;gap:13px;flex-wrap:wrap;margin:30px 0 42px}.stats{border-top:1px solid #41474a;padding-top:25px;display:flex;gap:27px;flex-wrap:wrap;color:#d4d7d8;font-size:12px;letter-spacing:.04em}.stats b{color:var(--orange);margin-right:8px}.technical{min-height:500px;position:relative;display:flex;align-items:center;justify-content:center}.technical svg{width:100%;height:auto;max-width:580px;filter:drop-shadow(0 12px 50px rgba(247,147,30,.08))}.hero-tag{position:absolute;right:0;bottom:52px;font:11px ui-monospace,Consolas,monospace;color:#a9b0b2;letter-spacing:.1em}.orange-rule{height:5px;background:linear-gradient(90deg,var(--orange),#f5b55f 65%,#fff 100%)}.section{padding:102px 0}.sectionhead{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:34px}.section h2{font-size:clamp(30px,3.5vw,48px);letter-spacing:-.045em;line-height:1.13;margin:12px 0 0}.sectionlead{color:var(--muted);max-width:390px}.services{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.service{padding:34px;border:1px solid var(--line);background:#fff;min-height:240px;position:relative;transition:border-color .2s,transform .2s}.service:hover{border-color:var(--orange);transform:translateY(-3px)}.service .num{position:absolute;top:29px;right:32px;color:#a1a7aa;font:12px ui-monospace,Consolas,monospace}.service .symbol{width:52px;height:52px;border:1px solid #f1c897;display:flex;align-items:center;justify-content:center;font-size:25px;color:#cc6d0c;border-radius:4px;background:#fff8ee}.service h3{font-size:22px;letter-spacing:-.025em;margin:19px 0 8px}.service p{color:var(--muted);margin:0;max-width:465px;font-size:15px}.about{background:var(--paper)}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}.about p{color:#555e63;font-size:16px}.about-visual{min-height:350px;background:#fff;display:grid;place-items:center;position:relative;overflow:hidden;border:1px solid var(--line)}.about-visual:before,.about-visual:after{content:"";width:420px;height:420px;border:1px solid #e6ebea;border-radius:50%;position:absolute}.about-visual:after{width:280px;height:280px;border-color:#f5d4ae}.about-visual img{height:210px;width:270px;object-fit:contain;z-index:1}.about-visual .label{position:absolute;left:22px;bottom:18px;font:11px ui-monospace,monospace;color:#888;letter-spacing:.12em}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:30px}.feature{padding:23px 20px;background:#fff;border-top:3px solid var(--orange)}.feature strong{display:block;font-size:16px}.feature span{display:block;color:var(--muted);font-size:13px;margin-top:7px}.process{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.step{border-top:1px solid #cdd0d1;padding-top:21px}.step .idx{color:#c87819;font:13px ui-monospace,monospace}.step h3{margin:16px 0 8px;font-size:21px}.step p{color:var(--muted);font-size:15px;margin:0}.contact{background:var(--dark);color:#fff;padding:85px 0}.contact-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:70px;align-items:center}.contact h2{font-size:clamp(32px,4vw,54px);letter-spacing:-.05em;line-height:1.12;margin:13px 0 18px}.contact p{color:#c3c8ca;max-width:490px}.contact-panel{border:1px solid #454c50;padding:32px;background:#1d2022}.contact-panel a{font-size:23px;font-weight:750;display:block;margin:8px 0 24px;overflow-wrap:anywhere}.contact-panel a:hover{color:var(--orange)}.contact-panel small{display:block;color:#aeb5b8;font-size:12px;letter-spacing:.12em;text-transform:uppercase}.contact-panel .address{font-size:14px;color:#d5d7d7;margin-bottom:0}footer{background:#101112;color:#c6c9c9;padding:30px 0}.foot{display:flex;justify-content:space-between;align-items:center;gap:25px;font-size:13px}.foot img{height:64px;width:82px;object-fit:contain}.foot a:hover{color:var(--orange)}@media(max-width:920px){.navlinks{gap:15px}.hero-grid{grid-template-columns:1fr}.hero-content{padding-bottom:0}.technical{min-height:290px;max-width:460px;margin:auto}.hero-tag{bottom:12px}.about-grid{gap:35px}}@media(max-width:650px){.wrap{width:min(var(--width),calc(100% - 32px))}.topline .wrap{justify-content:center;gap:15px}.brand img{height:56px;width:58px}.brand span{font-size:12px}.menu{display:block}.navlinks{display:none;position:absolute;top:100%;left:0;right:0;background:white;padding:20px 24px;box-shadow:0 20px 30px #1112;flex-direction:column;align-items:stretch}.navlinks.open{display:flex}.navlinks .navbtn{text-align:center}.hero{min-height:0}.hero-grid{min-height:0;gap:0}.hero-content{padding:67px 0 10px}.hero h1{font-size:43px}.hero p{font-size:15px}.technical{min-height:240px}.stats{gap:12px}.section{padding:72px 0}.sectionhead{display:block}.services,.about-grid,.process,.contact-grid,.features{grid-template-columns:1fr}.service{min-height:0;padding:26px}.about-visual{min-height:270px}.about-visual img{height:160px}.contact{padding:65px 0}.contact-panel{padding:24px}.contact-panel a{font-size:19px}.foot{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.service{transition:none}}

/* Uppfært: björt og tæknileg forsíða */
.hero{background:#fff;color:var(--ink);min-height:610px}
.hero::after{background:linear-gradient(100deg,rgba(255,255,255,0) 40%,rgba(247,147,30,.045) 100%)}
.hero-grid{min-height:610px}
.hero .eyebrow{color:#a85800}
.hero h1 em{color:#d4780f}
.hero p{color:#515b60}
.hero .btn-outline{color:#151719;border:1px solid #adb5b9;background:#fff}
.hero .btn-outline:hover{background:#f7f7f6}
.hero .stats{border-top:1px solid #e3e5e4;color:#4b5459}
.hero .stats b{color:#ae5d04}
.hero-tag{color:#747e83}
.technical svg{filter:drop-shadow(0 12px 36px rgba(247,147,30,.05))}
@media(max-width:650px){.hero{min-height:0}.hero-grid{min-height:0}}

/* Verkefni og fróðleikur */
.editorial{background:#fff;border-top:1px solid var(--line)}
.editorial-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.story{overflow:hidden;border:1px solid var(--line);background:#fff}
.story-art{height:240px;position:relative;display:grid;place-items:center;overflow:hidden;background:#f3f5f5}
.story-art:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#d8dcdf55 1px,transparent 1px),linear-gradient(90deg,#d8dcdf55 1px,transparent 1px);background-size:28px 28px}
.story-art svg{position:relative;z-index:1;width:90%;height:90%}
.story-art--project .plot{position:relative;z-index:1;width:85%}.story-art--project.story-art--photo{background:#e9ecec}.story-art--photo:before{display:none}.story-art--project.story-art--photo img{width:100%;height:100%;object-fit:cover;display:block}.story-art--project.story-art--photo .img-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0.02),rgba(0,0,0,0.28))}
.story-art--project svg{width:100%;height:auto}
.story-art>span{position:absolute;z-index:2;bottom:15px;left:20px;font:11px ui-monospace,Consolas,monospace;letter-spacing:.08em;color:#555f65}
.story-art--guide{background:#faf8f4}
.story-body{padding:28px 30px 31px}
.story-type{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:#a65508}
.story-body h3{font-size:23px;line-height:1.2;letter-spacing:-.025em;margin:13px 0}
.story-body p{color:var(--muted);font-size:15px;margin:0 0 17px}
.story-note{display:block;color:#757f84;font-size:12px;border-top:1px solid var(--line);padding-top:15px}
.editorial-foot{color:var(--muted);font-size:13px;margin:24px 0 0}
.contact-panel a.social-contact{font-size:19px;margin-bottom:0}
@media(max-width:700px){.editorial-grid{grid-template-columns:1fr}.story-art{height:200px}.story-body{padding:24px}}
.story-link{color:#ac600c;font-weight:800;text-decoration:none}.story-link:hover{text-decoration:underline}.story-art.story-photo{background:#e9ecec}.story-art.story-photo:before{display:none}.story-art.story-photo img{width:100%;height:100%;object-fit:cover;display:block}.story-art.story-photo span{color:#fff;text-shadow:0 1px 5px #000;background:#0008;padding:4px 8px;border-radius:3px}
/* WordPress dynamic content */
.story-photo a{display:block;width:100%;height:100%}.story-photo a img{height:100%;width:100%;object-fit:cover}.wp-article{max-width:870px;margin:0 auto;padding:42px 0 95px}.wp-article h1{font-size:clamp(36px,5vw,62px);line-height:1.12;letter-spacing:-.035em;margin:16px 0 24px}.wp-article .post-body{font-size:17px;line-height:1.85;color:#455057}.wp-article .post-body h2{font-size:30px;color:#111315;line-height:1.2;letter-spacing:-.02em;margin-top:48px}.wp-article .post-body p{margin:16px 0}.wp-article figure{margin:30px 0}.wp-article figure img{max-width:100%;height:auto;display:block}.wp-article figcaption{font-size:13px;color:#626b70;margin-top:8px}.wp-article .post-body .facts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.wp-article .post-body .facts div{border-top:3px solid #f7931e;background:#f6f7f6;padding:17px}.wp-article .post-body .facts span{display:block;font-size:12px}.wp-article .post-body .facts strong{font-size:17px}.flowchart{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#f5f6f5;padding:24px 15px}.flowchart span{background:white;border:1px solid #ddd;padding:12px;min-width:118px;flex:1;text-align:center}.flowchart b{color:#f7931e}.wp-article .post-body .flowchart small{font-size:12px}.wp-article .backlink{color:#a65d09;font-weight:700}.no-posts{color:#626b70}@media(max-width:720px){.wp-article .post-body .facts{grid-template-columns:repeat(2,1fr)}}

/* Rafmagnshönnun og ráðgjöf */
.tb-design{--td-orange:#F7931E;--td-line:#e4e6e4;color:#111315}.tb-design .td-hero{padding:85px 0 75px;background:#fff}.tb-design .td-hero-inner{display:grid;grid-template-columns:1.18fr .82fr;gap:55px;align-items:center}.tb-design .td-label{font-weight:800;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#aa600b}.tb-design .td-hero h1{font-size:clamp(38px,5.5vw,72px);letter-spacing:-.06em;line-height:1.08;margin:22px 0}.tb-design .td-hero h1 em{color:#d4780f;font-style:normal}.tb-design .td-lead{font-size:19px;line-height:1.8;color:#566067;max-width:610px}.tb-design .td-graphic{border:1px solid #e7e9e7;background-image:linear-gradient(#edf0f0 1px,transparent 1px),linear-gradient(90deg,#edf0f0 1px,transparent 1px);background-size:50px 50px;min-height:360px;display:grid;place-items:center}.tb-design .td-graphic svg{width:85%;max-width:350px}.tb-design .td-section{padding:75px 0}.tb-design .td-alt{background:#f6f7f6}.tb-design .td-section h2{font-size:clamp(30px,3.5vw,47px);line-height:1.1;letter-spacing:-.045em;margin:13px 0 35px}.tb-design .td-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tb-design .td-panel{border:1px solid var(--td-line);padding:30px;background:white;border-top:3px solid var(--td-orange)}.tb-design .td-panel h3{font-size:22px;margin:0 0 10px;letter-spacing:-.025em}.tb-design .td-panel p{color:#5d666c;line-height:1.75;margin:0}.tb-design .td-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.tb-design .td-step{border-top:2px solid #bfc3c2;padding-top:15px}.tb-design .td-number{color:#c27514;font-size:14px;font-weight:800}.tb-design .td-step h3{font-size:21px;margin:13px 0}.tb-design .td-step p,.tb-design .td-body-text{color:#59636a;line-height:1.8}.tb-design .td-two{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.tb-design .td-dark{background:#151719;color:#fff}.tb-design .td-dark p{color:#ccd0d2}.tb-design .td-dark a:not(.btn){color:#F7931E}@media(max-width:750px){.tb-design .td-hero-inner,.tb-design .td-grid,.tb-design .td-steps,.tb-design .td-two{grid-template-columns:1fr}.tb-design .td-hero{padding:55px 0}.tb-design .td-graphic{min-height:230px}.tb-design .td-section{padding:58px 0}}
