/* ===========================================================
   Oslo Pussfix theme — main stylesheet
   Palette: cream #faf7f1 / cream2 #f2ebdd / dark #2b2521 / brand #a8542f
   Type: Fraunces (headings) + Inter (body)
=========================================================== */

:root{
	--op-brand:#a8542f;
	--op-brand-dark:#7e3d20;
	--op-cream:#faf7f1;
	--op-cream2:#f2ebdd;
	--op-dark:#2b2521;
	--op-text-muted:#5b5148;
	--op-text-faint:#8a7e6f;
	--op-border:#ece5d8;
	--op-font-serif:'Fraunces', Georgia, serif;
	--op-font-sans:'Inter', system-ui, sans-serif;
}

*{box-sizing:border-box}
body{margin:0;background:var(--op-cream);font-family:var(--op-font-sans);color:var(--op-dark);font-size:15px;line-height:1.5}
img{max-width:100%;display:block}
h1,h2,h3{font-family:var(--op-font-serif);font-weight:500;margin:0}
a{color:var(--op-brand);text-decoration:none}
a:hover{color:var(--op-brand-dark)}
p{margin:0}
.screen-reader-text{position:absolute;left:-9999px}

/* Header */
.op-header{border-bottom:1px solid var(--op-border);background:var(--op-cream);position:relative;z-index:20}
.op-header-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:20px 40px;gap:24px;flex-wrap:wrap}
.op-logo{font-family:var(--op-font-serif);font-size:22px;font-weight:600;color:var(--op-dark);margin-right:auto}
.op-logo img{max-height:40px}
.op-logo-custom{display:flex;align-items:center}
.custom-logo-link{display:flex;align-items:center;flex-shrink:0}
.custom-logo-link .custom-logo{height:44px;width:auto;max-width:220px;object-fit:contain;display:block}
.op-nav-links{display:flex;gap:30px;list-style:none;margin:0;padding:0}
.op-nav-links li{margin:0;position:relative}
.op-nav-links a,.op-navlink{color:var(--op-text-muted);font-size:14px}
.op-nav-links a:hover,.op-navlink:hover{color:var(--op-brand)}
.op-nav-links li.menu-item-has-children > a{display:flex;align-items:center;gap:5px}
.op-nav-links li.menu-item-has-children > a::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-3px;transition:transform .15s ease}
.op-nav-links li.menu-item-has-children.op-submenu-open > a::after{transform:rotate(-135deg);margin-top:3px}
.op-nav-links .sub-menu{list-style:none;margin:0;padding:10px 0;position:absolute;top:100%;left:0;background:var(--op-cream);border:1px solid var(--op-border);border-radius:4px;min-width:200px;box-shadow:0 8px 24px rgba(0,0,0,.08);display:none;z-index:30}
.op-nav-links li.menu-item-has-children:hover > .sub-menu,
.op-nav-links li.menu-item-has-children.op-submenu-open > .sub-menu{display:block}
.op-nav-links .sub-menu li{padding:0}
.op-nav-links .sub-menu a{display:block;padding:10px 20px;white-space:nowrap}
.op-nav-links .sub-menu a::after{display:none}
.op-header-cta{white-space:nowrap}
.op-nav-toggle{display:none;background:none;border:none;font-size:22px;cursor:pointer;color:var(--op-dark)}
.op-nav-mobile-cta{display:none !important;text-align:center}

/* Buttons */
.op-btn{display:inline-block;font-size:13px;font-weight:600;padding:13px 24px;border-radius:2px;letter-spacing:.2px;cursor:pointer;border:1px solid transparent}
.op-btn-primary{background:var(--op-brand);color:#fff}
.op-btn-primary:hover{background:var(--op-brand-dark);color:#fff}
.op-btn-outline{border-color:var(--op-brand);color:var(--op-brand);background:transparent}
.op-btn-outline:hover{background:var(--op-brand);color:#fff}
.op-btn-outline-light{border-color:rgba(255,255,255,.6);color:#fff;background:transparent}
.op-btn-outline-light:hover{background:rgba(255,255,255,.15)}

/* Hero (homepage) */
.op-hero{position:relative;height:600px;overflow:hidden}
.op-hero-img{width:100%;height:100%;object-fit:cover}
.op-hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(30,20,12,.1),rgba(20,14,8,.6));pointer-events:none}
.op-hero-content{position:absolute;left:60px;bottom:60px;max-width:600px;color:#fff}
.op-hero-content h1{font-size:48px;line-height:1.1;margin:12px 0 18px;color:#fff}
.op-hero-content p{color:#f1e6d8;font-size:16px;line-height:1.6;margin-bottom:26px}
.op-hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.op-eyebrow{font-size:13px;letter-spacing:1px;text-transform:uppercase;color:var(--op-brand);font-weight:600;margin-bottom:10px}
.op-eyebrow-light{color:#e7c9a8}

/* Stats */
.op-stats{display:flex;justify-content:space-around;padding:40px 40px;background:var(--op-cream2);flex-wrap:wrap;gap:20px}
.op-stat{text-align:center}
.op-stat-num{font-family:var(--op-font-serif);font-size:32px;color:var(--op-brand)}
.op-stat-label{font-size:12.5px;color:var(--op-text-muted);letter-spacing:.5px;text-transform:uppercase;margin-top:6px}

/* Split sections */
.op-split{display:grid;grid-template-columns:1fr 1fr;gap:60px;padding:80px 60px;align-items:center;max-width:1280px;margin:0 auto}
.op-split-wide{padding-top:60px}
.op-split-img,.op-card-img,.op-hero-img,.op-service-hero-img,.op-project-hero-img{width:100%;height:420px;object-fit:cover;border-radius:4px}
.op-split-copy h2{font-size:30px;line-height:1.2;margin-bottom:20px}
.op-body-copy{font-size:15px;line-height:1.75;color:var(--op-text-muted);margin-bottom:24px;white-space:pre-line}
.op-link-arrow{font-size:14px;font-weight:600}

/* Generic section */
.op-section{padding:60px;max-width:1280px;margin:0 auto}
.op-section-cream{background:var(--op-cream2);max-width:none}
.op-section-title{font-size:30px;margin-bottom:32px}
.op-center-text{text-align:center}
.op-center{text-align:center;margin-top:36px}

.op-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media (max-width:900px){.op-grid-3{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.op-grid-3{grid-template-columns:1fr}}

/* Service cards on homepage */
.op-service-card{display:block;color:inherit}
.op-service-card .op-card-img,.op-service-card .op-placeholder{height:160px}
.op-service-title{margin-top:14px;font-family:var(--op-font-serif);font-size:19px;color:var(--op-dark)}

/* Project cards */
.op-project-card{display:block;color:inherit}
.op-project-card .op-card-img,.op-project-card .op-placeholder{height:200px}
.op-project-meta{margin-top:12px;font-size:12.5px;color:var(--op-text-faint);text-transform:uppercase;letter-spacing:.5px}
.op-project-title{font-size:16px;font-weight:600;margin-top:4px;color:var(--op-dark)}
.op-project-location{font-size:13.5px;color:var(--op-text-faint);margin-top:2px}

/* Why-us */
.op-why h3{font-size:20px;margin-bottom:10px}
.op-rule{display:block;height:2px;width:28px;background:var(--op-brand);margin-bottom:14px}
.op-why p{font-size:14px;line-height:1.7;color:var(--op-text-muted)}

/* Testimonial */
.op-testimonial{padding:60px;background:var(--op-dark);color:#f1e6d8;text-align:center}
.op-testimonial blockquote{font-family:var(--op-font-serif);font-style:italic;font-size:22px;line-height:1.5;max-width:680px;margin:0 auto 18px}
.op-testimonial-name{font-size:14px;color:#c9a586}

/* Contact CTA (homepage) */
.op-contact-cta{display:grid;grid-template-columns:1fr 1fr}
.op-contact-cta-copy{padding:70px 60px;background:var(--op-cream2)}
.op-contact-cta-copy h2{font-size:28px;margin-bottom:16px}
.op-contact-cta-copy p{font-size:14.5px;color:var(--op-text-muted);line-height:1.7;margin-bottom:24px;display:block}
.op-contact-cta-img{width:100%;height:100%;min-height:360px;object-fit:cover}

/* Footer */
.op-footer{background:var(--op-dark);color:#cbb9a8;padding:60px 60px 30px}
.op-footer-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:40px;padding-bottom:40px;border-bottom:1px solid #453c33}
@media (max-width:900px){.op-footer-grid{grid-template-columns:1fr 1fr}}
.op-footer-col{min-width:0}
.op-footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.op-footer-col li{margin:0}
.op-footer-col .menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.op-footer-col .widget_nav_menu ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.op-footer-logo{font-family:var(--op-font-serif);font-size:22px;color:#fff;margin-bottom:14px}
.op-footer-col p{margin-top:0;font-size:13.5px;line-height:1.7;max-width:280px}
.op-footer-heading{color:#fff;font-size:13px;font-weight:600;margin-bottom:14px}
.op-footer-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.op-footer-links a{color:#cbb9a8;font-size:13.5px}
.op-footer-links a:hover{color:#fff}
.op-footer-col a{color:#cbb9a8;font-size:13.5px;text-decoration:none}
.op-footer-col a:hover{color:#fff}
.op-footer-col p{color:#cbb9a8}
.op-footer-col select{width:100%}
.op-footer-bottom{max-width:1280px;margin:0 auto;display:flex;justify-content:space-between;padding-top:24px;font-size:12.5px;color:#8a7c6d;flex-wrap:wrap;gap:10px}
.op-footer-bottom a{color:#8a7c6d}

/* Placeholder image box (no attachment set yet) */
.op-placeholder{background:repeating-linear-gradient(45deg,#efe6d6,#efe6d6 10px,#e7dcc7 10px,#e7dcc7 20px);display:flex;align-items:center;justify-content:center;color:#8a7e6f;font-size:13px;text-align:center;padding:12px;border-radius:4px;min-height:120px}

/* Breadcrumb */
.op-breadcrumb{padding:24px 60px 0;font-size:13px;color:var(--op-text-faint);max-width:1280px;margin:0 auto}

/* Service / about hero */
.op-service-hero{position:relative;height:440px;margin:20px 60px;border-radius:4px;overflow:hidden;max-width:1160px;margin-left:auto;margin-right:auto}
.op-service-hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(30,20,12,.05),rgba(20,14,8,.55))}
.op-service-hero-content{position:absolute;left:44px;bottom:40px;max-width:600px;color:#fff}
.op-service-hero-content h1{font-size:38px;line-height:1.1;color:#fff;margin-bottom:14px}
.op-service-hero-content p{color:#f1e6d8;font-size:15px;line-height:1.6}

/* Feature boxes */
.op-feature-list{display:flex;flex-direction:column;gap:16px}
.op-feature-box{background:var(--op-cream2);padding:22px;border-radius:4px}
.op-feature-title{font-family:var(--op-font-serif);font-size:17px;margin-bottom:6px}
.op-feature-text{font-size:13.5px;color:var(--op-text-muted)}

/* CTA banner */
.op-cta-banner{padding:60px;background:var(--op-dark);color:#f1e6d8;text-align:center}
.op-cta-banner h2{font-size:26px;margin-bottom:16px;color:#f1e6d8}

/* Team */
.op-team-member{text-align:center}
.op-team-photo,.op-team-member .op-placeholder{width:140px;height:140px;border-radius:50%;margin:0 auto;object-fit:cover}
.op-team-name{font-family:var(--op-font-serif);font-size:18px;margin-top:16px}
.op-team-role{font-size:13px;color:var(--op-text-faint)}
.op-note{text-align:center;font-size:12.5px;color:var(--op-text-faint);margin-top:24px}

/* Page intro (contact, tips, prosjekter list) */
.op-page-intro{padding:70px 60px 10px;text-align:center;max-width:760px;margin:0 auto}
.op-page-intro h1{font-size:36px;margin-bottom:16px}
.op-page-intro p{font-size:15px;color:var(--op-text-muted);line-height:1.7}

/* Filter tabs (prosjekt archive) */
.op-filter-tabs{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;padding:30px 60px}
.op-filter-tab{padding:10px 20px;border-radius:20px;font-size:13px;font-weight:600;background:var(--op-cream2);color:var(--op-text-muted)}
.op-filter-tab.is-active,.op-filter-tab:hover{background:var(--op-brand);color:#fff}

/* Pagination */
.op-pagination{display:flex;justify-content:center;margin-top:40px}
.op-pagination .page-numbers{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;font-size:13.5px;color:var(--op-text-faint);margin:0 4px}
.op-pagination .page-numbers.current{background:var(--op-brand);color:#fff}

/* Contact form */
.op-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;padding:20px 60px 80px;align-items:start;max-width:1280px;margin:0 auto}
.op-contact-form{display:flex;flex-direction:column;gap:14px;background:var(--op-cream2);padding:36px;border-radius:4px}
.op-contact-form input,.op-contact-form select,.op-contact-form textarea{padding:15px;border:1px solid #ddd0bd;border-radius:2px;font-size:14px;font-family:var(--op-font-sans);width:100%}
.op-contact-form textarea{min-height:120px}
.op-form-submit{border:none;margin-top:6px;width:fit-content}
.op-form-success{background:#e4efe0;color:#2f5233;padding:14px 18px;border-radius:4px;margin-bottom:16px;font-size:14px}
.op-form-error{background:#f6e2df;color:#8c2f22;padding:14px 18px;border-radius:4px;margin-bottom:16px;font-size:14px}
.op-contact-side{display:flex;flex-direction:column;gap:28px}
.op-contact-side-img{height:260px;object-fit:cover;border-radius:4px}
.op-contact-side h3{font-size:20px;margin-bottom:14px}
.op-contact-details{font-size:14.5px;line-height:2;color:var(--op-text-muted)}
.op-social-links{display:flex;gap:16px;font-size:13.5px;color:var(--op-brand)}

/* Project detail */
.op-project-header{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;padding:16px 60px 20px;max-width:1280px;margin:0 auto;flex-wrap:wrap}
.op-project-header h1{font-size:38px;line-height:1.15;margin-bottom:16px}
.op-project-header-copy p{font-size:15px;line-height:1.7;color:var(--op-text-muted);max-width:640px;display:block}
.op-project-header-actions{display:flex;gap:10px;flex-shrink:0}
.op-project-meta-row{display:flex;gap:40px;padding:0 60px 30px;font-size:14px;max-width:1280px;margin:0 auto;flex-wrap:wrap}
.op-project-meta-tag{background:var(--op-cream2);padding:4px 12px;border-radius:20px;font-size:12.5px;color:var(--op-brand);font-weight:600}
.op-project-hero{margin:0 60px 60px;border-radius:4px;overflow:hidden;max-width:1160px;margin-left:auto;margin-right:auto}
.op-project-hero .op-project-hero-img{height:520px}

.op-project-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;padding:0 60px 40px;max-width:1280px;margin:0 auto}
.op-gallery-img{height:340px;object-fit:cover;border-radius:4px}
.op-gallery-caption{margin-top:10px;font-size:13px;color:var(--op-text-faint)}

.op-project-body{max-width:760px;margin:0 auto;padding:0 60px 40px;font-size:15px;line-height:1.8;color:var(--op-text-muted)}
.op-project-body p{margin-bottom:20px}

.op-beforeafter-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;max-width:1160px;margin:0 auto}
.op-beforeafter-images{display:grid;grid-template-columns:1fr 1fr;gap:2px}
.op-ba-img{height:220px;object-fit:cover;border-radius:0}
.op-beforeafter-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--op-text-faint);padding:6px 4px}

.op-video-embed{max-width:900px;margin:0 auto}
.op-video-embed iframe{width:100%;aspect-ratio:16/9;border-radius:4px}

.op-lead-contact{display:flex;gap:32px;align-items:center;padding:60px;max-width:820px;margin:0 auto}
.op-lead-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;flex-shrink:0}
.op-lead-contact h3{font-size:19px;margin-bottom:4px}
.op-lead-role{font-size:13px;color:var(--op-text-faint);margin-bottom:12px}
.op-lead-contact p{font-size:14px;line-height:1.6;color:var(--op-text-muted);margin-bottom:14px;display:block}

/* Tips/articles */
.op-article-card{display:block;color:inherit}
.op-article-card .op-card-img,.op-article-card .op-placeholder{height:190px}
.op-article-eyebrow{margin-top:14px;font-size:12px;color:var(--op-text-faint);text-transform:uppercase;letter-spacing:.5px}
.op-article-title{font-size:17px;font-weight:600;margin-top:6px;color:var(--op-dark)}
.op-article-excerpt{font-size:13.5px;color:var(--op-text-muted);margin-top:6px;line-height:1.6}

/* Generic fallback page */
.op-basic-content{max-width:760px;margin:0 auto;padding:0 60px 80px;font-size:15px;line-height:1.8;color:var(--op-text-muted)}

/* Responsive nav */
@media (max-width:900px){
	.op-header-cta{display:none}
	.op-nav-toggle{display:block}
	.op-nav{position:absolute;top:100%;left:0;right:0;background:var(--op-cream);border-bottom:1px solid var(--op-border);display:none}
	.op-nav.is-open{display:block}
	.op-nav-links{flex-direction:column;padding:20px 40px;gap:16px}
	.op-nav-mobile-cta{display:block !important;margin:8px 40px 20px}
	.op-nav-links .sub-menu{position:static;display:none;border:none;box-shadow:none;padding:6px 0 0 16px;background:transparent}
	.op-nav-links li.menu-item-has-children.op-submenu-open > .sub-menu{display:block}
	.op-nav-links li.menu-item-has-children:hover > .sub-menu{display:none}
	.op-nav-links li.menu-item-has-children.op-submenu-open:hover > .sub-menu{display:block}
	.op-split,.op-contact-cta,.op-contact-grid,.op-beforeafter-grid,.op-project-gallery{grid-template-columns:1fr}
	.custom-logo-link .custom-logo{height:32px;max-width:160px}
	.op-beforeafter-images{grid-template-columns:1fr}
}

@media (max-width:640px){
	.op-article header,
	.op-article-body,
	.op-article > div,
	.op-breadcrumb,
	.op-page-intro{padding-left:20px !important;padding-right:20px !important}
	.op-article-body{font-size:15.5px}
	.op-project-header,
	.op-project-meta-row,
	.op-project-hero,
	.op-project-gallery,
	.op-project-body,
	.op-lead-contact,
	.op-filter-tabs{padding-left:20px !important;padding-right:20px !important;margin-left:0 !important;margin-right:0 !important}
}
