/*
Theme Name: Response Group
Theme URI: https://www.responsegroup.no/
Author: Response Group AS
Description: Eige blokktema for Response Group AS. Marineblå og gul fargeprofil, Inter og Space Grotesk, lokale skrifter.
Version: 1.0.3
Requires at least: 6.5
Tested up to: 6.7
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: responsegroup
*/

/* Små justeringar som theme.json ikkje dekkjer */
.rg-card { overflow: hidden; }
.rg-card .wp-block-image { margin: 0; }
.rg-card .wp-block-image img { width: 100%; height: 240px; object-fit: cover; display: block; }
.rg-ref-img img { width: 100%; height: 170px; object-fit: cover; display: block; }
.rg-header .wp-block-site-logo img,
.rg-header .rg-logo img { height: 56px; width: auto; }
.rg-header .wp-block-navigation a:hover { color: #3A5A78; }
.rg-footer a { color: #C9D5E0; text-decoration: none; }
.rg-footer a:hover { color: #ffffff; text-decoration: underline; }
.rg-fact svg { flex-shrink: 0; }
.rg-arrow-link a { text-decoration: none; font-weight: 600; }
.rg-arrow-link a::after { content: " →"; }
/* Gamle sider med media-text-blokker: litt luft */
.wp-block-media-text { margin-bottom: 2.5rem; }

.rg-contact a { text-decoration: none; }
.rg-contact a:hover { text-decoration: underline; }

/* Mobil: logo og meny på éi linje */
@media (max-width: 640px) {
	.rg-header .alignwide { flex-wrap: nowrap; }
	.rg-header .rg-logo img { height: 40px; }
	.rg-header .wp-block-button__link { padding: 0.55rem 0.9rem; font-size: 0.9rem; }
}

/* ===== Framside v2 ===== */
.rg-front > * { margin-block-start: 0 !important; }
.rg-front section, .rg-front .rg-hero, .rg-front .rg-band { padding-left: 32px; padding-right: 32px; }
.rg-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: #3A5A78; }
.rg-section-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-bottom: 28px; }
.rg-section-head h2, .rg-section-head-row h2 { margin: 0; font-size: 34px; }
.rg-section-intro { margin: 0; color: #45525D; }
.rg-card-tag { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #3A5A78; }
.rg-card-text { margin: 0; font-size: 15px; line-height: 1.6; color: #45525D; }

/* Hero */
.rg-hero { padding-top: 96px; padding-bottom: 96px; }
.rg-hero .wp-block-cover__background { opacity: 1; }
.rg-hero.has-background-image .wp-block-cover__background,
.rg-hero:has(.wp-block-cover__image-background) .wp-block-cover__background { background: linear-gradient(90deg, rgba(14,34,51,.94) 0%, rgba(14,34,51,.80) 45%, rgba(14,34,51,.35) 100%) !important; }
.rg-hero-text { max-width: 760px; margin-left: 0 !important; display: flex; flex-direction: column; gap: 22px; }
.rg-hero .rg-eyebrow { color: #F2B705; }
.rg-hero h1 { margin: 0; color: #ffffff; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
.rg-h1-sub { color: #C9D5E0; }
.rg-lead { margin: 0; font-size: 19px; line-height: 1.6; color: #C9D5E0; max-width: 620px; }
.rg-btn-accent .wp-block-button__link { background: #F2B705 !important; color: #0E2233 !important; }
.rg-hero .is-style-outline .wp-block-button__link { color: #ffffff; border: 1px solid rgba(255,255,255,.5); background: transparent; }

/* Tal */
.rg-numbers-wrap { background: #ffffff; border-bottom: 1px solid #E1E6EB; padding-top: 40px; padding-bottom: 40px; }
.rg-numbers { gap: 28px; }
.rg-num-item { gap: 4px; display: flex; flex-direction: column; border-left: 3px solid #F2B705; padding-left: 16px; }
.rg-num { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700; color: #0E2233; line-height: 1.1; }
.rg-num-label { margin: 0; font-size: 15px; color: #45525D; line-height: 1.45; }
.rg-num-sub { font-size: 13px; color: #55636F; }

/* Kundar */
.rg-trusted-wrap { background: #F3F5F7; border-bottom: 1px solid #E1E6EB; padding-top: 22px; padding-bottom: 22px; }
.rg-trusted { gap: 28px; }
.rg-trusted-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: #55636F; }
.rg-trusted-names { margin: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: #3A5A78; }

/* Felt */
.rg-fields { background: #0E2233; padding-top: 88px; padding-bottom: 88px; }
.rg-fields h2 { color: #ffffff; }
.rg-fields .rg-eyebrow { color: #F2B705; }
.rg-fields-grid { gap: 24px; }
.rg-field-card { background: #16304A; border-radius: 12px; overflow: hidden; gap: 0; display: flex; flex-direction: column; }
.rg-field-card .wp-block-image { margin: 0; }
.rg-field-card .wp-block-image img { width: 100%; height: 260px; object-fit: cover; display: block; }
.rg-field-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; }
.rg-field-body h3 { margin: 0; font-size: 22px; }
.rg-field-body h3 a { color: #ffffff; text-decoration: none; }
.rg-field-body h3 a::after { content: " →"; color: #F2B705; }
.rg-field-body .rg-card-tag { color: #F2B705; }
.rg-field-body .rg-card-text { color: #C9D5E0; }

/* Bileteband */
.rg-band { padding-top: 64px; padding-bottom: 64px; align-items: flex-end !important; }
.rg-band .wp-block-cover__background { opacity: 1; }
.rg-band:has(.wp-block-cover__image-background) .wp-block-cover__background { background: linear-gradient(0deg, rgba(14,34,51,.55), rgba(14,34,51,.10)) !important; }
.rg-band-text { margin: 0; color: #ffffff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(24px, 3vw, 34px); max-width: 640px; }

/* Prosjekt */
.rg-projects { background: #F3F5F7; padding-top: 88px; padding-bottom: 88px; }
.rg-section-head-row { margin-bottom: 28px; }
.rg-proj-grid { gap: 24px; }
.rg-proj-card { background: #ffffff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 0; }
.rg-proj-card .wp-block-image { margin: 0; flex: 1 1 0; min-width: 0; }
.rg-proj-card .wp-block-image img { width: 100%; height: 190px; object-fit: cover; display: block; }
.rg-two-img { gap: 2px !important; }
.rg-proj-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.rg-proj-body h3 { margin: 0; font-size: 19px; }

/* Forhandlarar */
.rg-dealers { background: #ffffff; border-bottom: 1px solid #E1E6EB; padding-top: 72px; padding-bottom: 72px; }
.rg-dealer-grid { gap: 20px; }
.rg-dealer { border: 1px solid #E1E6EB; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.rg-dealer p { margin: 0; }
.rg-dealer-name { font-weight: 600; font-size: 17px; color: #0E2233; }
.rg-dealer-place, .rg-dealer-link { font-size: 14px; color: #55636F; }
.rg-dealer-link a { color: #3A5A78; }

/* FAQ */
.rg-faq { padding-top: 80px; padding-bottom: 80px; }
.rg-faq h2 { font-size: 34px; margin-bottom: 20px; }
.rg-faq-item { border-bottom: 1px solid #E1E6EB; padding: 18px 0; margin: 0 !important; }
.rg-faq-item summary { font-weight: 600; font-size: 18px; color: #0E2233; cursor: pointer; }
.rg-faq-item p { margin: 10px 0 0; color: #45525D; line-height: 1.6; }

/* Kontakt */
.rg-contact-band { background: #0E2233; padding-top: 56px; padding-bottom: 56px; }
.rg-contact-inner { gap: 24px; }
.rg-contact-inner h2 { margin: 0; color: #ffffff; font-size: 28px; }
.rg-contact-links { gap: 12px 32px; }
.rg-contact-big { margin: 0; font-size: 20px; font-weight: 600; }
.rg-contact-big a { color: #F2B705; text-decoration: none; }
.rg-contact-big a:hover { text-decoration: underline; }

@media (max-width: 640px) {
	.rg-front section, .rg-front .rg-hero, .rg-front .rg-band { padding-left: 20px; padding-right: 20px; }
	.rg-hero { padding-top: 64px; padding-bottom: 64px; }
}

.rg-front-main { margin-top: 0 !important; }
.rg-front.wp-block-post-content > * { max-width: none; }

/* Språkval */
.rg-lang ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; gap: 6px; align-items: center; }
.rg-lang li { margin: 0; }
.rg-lang a { display: inline-flex; padding: 3px; border: 2px solid transparent; border-radius: 4px; opacity: .55; }
.rg-lang a:hover { opacity: 1; }
.rg-lang .current-lang a { border-color: #0E2233; opacity: 1; }
.rg-lang .pll-switcher-flag { --pll-flag-width: 24px !important; width: 24px !important; }
.rg-lang a { font-size: 0; line-height: 0; gap: 0; text-decoration: none; }
.rg-lang { width: auto !important; flex: 0 0 auto; margin: 0 !important; }
