/*
 Theme Name:     Divi Child Theme
 Theme URI:      https://hypmarketing.dk
 Description:    Divi Child Theme
 Author:         Jacob Juul
 Author URI:     
 Template:       Divi
 Version:        1.0.0
*/
 
@import url("../Divi/style.css");
 
/* =Theme customization starts here
------------------------------------------------------- */

div#et-boc {
    overflow-x: hidden;
}

.et_button_no_icon .et_pb_button, .et_button_no_icon .et_pb_button:hover {
    min-width: 275px;
    text-align: center;
    padding: 10px 25px !important;
}

.hyp-section-with-image .et_pb_image_wrap, .et_pb_image.hyp-section-with-image, .hyp-section-with-image img {
	height: 100%;
    object-fit: cover;
}

.et_pb_bg_layout_dark .et_pb_slide_description {
    text-shadow: none;
}

.hyp-object-fit-cover img {
	object-fit: cover;
}


/*** HYP megamenu  ***/

.hyp-mega-menu-wrapper {
    margin-top: -50px;
}

.hyp-mega-menu {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 50px;
}


.hyp-mega-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
}


.hyp-mega-menu__list > li {
  flex: 1;
  padding: 0 40px;
  border-left: 1px solid rgba(255,255,255,0.25);
}

.hyp-mega-menu__list > li > a {
	font-size: 12px !important;
	color: #ff8944 !important;
}


.hyp-mega-menu__list > li:first-child {
  border-left: none;
}


.hyp-mega-menu__list > li > a {
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
  text-decoration: none;
}


.hyp-mega-menu__list > li > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a.hyp-prim-services {
    position: relative;
    padding-right: 18px; 
}

a.hyp-prim-services::after {
	content: "";
	position: absolute;
	right: 50px;
	top: 49%;
	width: 4px;
	height: 4px;
	border-right: 2px solid #ffffff;
	border-bottom: 2px solid #ffffff;
	transform: translateY(-50%) rotate(-45deg);
	opacity: 0.8;
}


ul#menu-ydelser-headermenu {
    padding: 0px;
}

.hyp-mega-menu__list > li > ul > li > a {
	display: block;
	padding: 6px 0;
	color: #ffffff;
	font-weight: 400;
	font-size: 15px;
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.15s ease;
}

.hyp-mega-menu__list > li > ul > li > a:hover {
  opacity: 1;
}

/* Mobil: stack kolonner */
@media (max-width: 767px) {
  .hyp-mega-menu__list {
    flex-direction: column;
  }

  .hyp-mega-menu__list > li {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 0px 0;
  }

  .hyp-mega-menu__list > li:first-child {
    border-top: none;
  }
	
}

/* DESKTOP: gem hele mobilmenu-sektionen */
@media (min-width: 981px) {
  #hyp-primary-header-mobile {
    display: none !important;
  }
	
}

/* TABLET + MOBIL: off-canvas fra højre */
@media (max-width: 980px) {
	
	  #hyp-prim-headermenu {
		overflow-y: auto !important;              /* gør scrolling muligt */
		-webkit-overflow-scrolling: touch !important; /* smooth iOS scroll */
	  }
	
	.hyp-mega-menu__list > li {
		padding: 0 0px;
	}
	
  #hyp-primary-header-mobile {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;        
    width: auto;           
    background: #23415b;     
    transform: translateX(100%);   
    transition: transform 0.3s ease;
    z-index: 9999;
    margin: 0 !important;    
    padding: 0 !important;
  }


  #hyp-primary-header-mobile.hyp-menu-open {
    transform: translateX(0);
  }
	
	.hyp-mega-menu__list {
		flex-direction: column;
	}
	
	.hyp-mega-menu__list > li {
		border: none;	
		list-style: none;
		margin-bottom: 20px;
	}
	

  /* Gør ydelsesmenuen off-canvas */
  #hyp-prim-headermenu {
    position: fixed !important;
    top: 0 !important;
    right: -480px !important;
    left: auto !important;
    height: 100vh !important;
    width: 320px !important;
    background: #23415b;
    transition: right 0.35s ease;
    z-index: 9999;
    margin: 0 !important;
    padding: 0 !important;
  }

	#hyp-prim-headermenu.hyp-open {
		right: -160px !important;
	}

  a.hyp-prim-services, a.hyp-prim-priser, a.hyp-prim-kontakt, a.hyp-prim-phone {
    width: 86% !important;
    margin: 5px 6%;
  }
	
	a.hyp-prim-phone {
		border: 1px solid white !important;
	}
	
	/* Luk-ikon øverst til højre */
	#hyp-prim-headermenu .hyp-close {
		position: absolute;
		top: 12px;
		right: 12px;
		width: 28px;
		height: 28px;
		cursor: pointer;
		z-index: 10000;


		display: flex;
		align-items: center;
		justify-content: center;
	}


	#hyp-prim-headermenu .hyp-close::before,
	#hyp-prim-headermenu .hyp-close::after {
		content: "";
		position: absolute;
		width: 20px;
		height: 2px;
		background: white;
		border-radius: 2px;
		transition: 0.2s ease;
	}

	#hyp-prim-headermenu .hyp-close::before {
		transform: rotate(45deg);
	}

	#hyp-prim-headermenu .hyp-close::after {
		transform: rotate(-45deg);
	}

	#hyp-prim-headermenu .hyp-close:hover::before,
	#hyp-prim-headermenu .hyp-close:hover::after {
		background: #ff7a23; 
	}

	.hyp-mega-menu {
		padding: 20px;
		background-color: #334f6d;
		border-radius: 5px;
		margin-top: 20px;
	}
	
	/* Luk-ikon i mobilmenu (øverst højre) */
	#hyp-primary-header-mobile .hyp-close-mobile {
		position: absolute;
		top: 12px;
		right: 12px;
		width: 28px;
		height: 28px;
		cursor: pointer;
		z-index: 10000;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	#hyp-primary-header-mobile .hyp-close-mobile::before,
	#hyp-primary-header-mobile .hyp-close-mobile::after {
		content: "";
		position: absolute;
		width: 20px;
		height: 2px;
		background: white;
		border-radius: 2px;
		transition: 0.2s ease;
	}

	#hyp-primary-header-mobile .hyp-close-mobile::before {
		transform: rotate(45deg);
	}

	#hyp-primary-header-mobile .hyp-close-mobile::after {
		transform: rotate(-45deg);
	}

	#hyp-primary-header-mobile .hyp-close-mobile:hover::before,
	#hyp-primary-header-mobile .hyp-close-mobile:hover::after {
		background: #ff7a23; /* orange brandfarve */
	}


}



/*****************/



/*
 *  CF7 
*/

/* === KONTAKTFORMULAR STYLING (Contact Form 7) === */

.kontakt-wrapper {
  display: flex;
  flex-wrap: wrap;
  padding: 25px;
  padding-bottom: 0px;
  border-radius: 5px;
  gap: 24px;
}

/* Venstre kolonne med inputfelter */
.kontakt-left {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Højre kolonne med besked + knap */
.kontakt-right {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  gap: 10px;
}

/* Fjerner marginer fra CF7's default <p>-tags */
.wpcf7 form p { margin: 0; }
.kontakt-wrapper .wpcf7-form-control-wrap { 
	display: block; 
	margin-bottom: -10px;
}

/* Generel styling for input og textarea */
.kontakt-wrapper input, .kontakt-wrapper textarea, .kontakt-wrapper-job input, .kontakt-wrapper-job textarea {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 5px;
  padding: 12px 14px;
  color: #fff;
  font-size: 15px;
  resize: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.kontakt-wrapper-job input {
	margin-bottom: 20px;
}

.kontakt-wrapper-job p {
    color: white;
}

/* Fokus-styling */
.kontakt-wrapper input:focus, .kontakt-wrapper textarea:focus, .kontakt-wrapper-job input:focus, .kontakt-wrapper-job textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #ff8b43;
}

input.text:focus, input.title:focus, input[type=text]:focus, select:focus, textarea:focus {
    color: #fff;
}

/* Placeholder tekst */
.kontakt-wrapper ::placeholder, .kontakt-wrapper-job ::placeholder {
  color: rgba(255,255,255,0.7);
}

/* Textarea skal fylde højre kolonne */
.kontakt-right textarea,
.kontakt-right .wpcf7-textarea {
  flex: 1 1 auto;
  min-height: 258px;
}

/* Send-knap (brug evt. [submit class:hyp-submit "Send"]) */
.kontakt-wrapper input[type="submit"], .kontakt-wrapper .wpcf7-submit, .kontakt-wrapper .hyp-submit, .kontakt-wrapper-job input[type="submit"] {
  display: block;
  width: 100%;
  height: 42px;
  background: #ff8b43;
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: center;
}

.kontakt-wrapper input[type="submit"]:hover, .kontakt-wrapper-job input[type="submit"]:hover {
	background-color: #f9a46f;
}

.kontakt-wrapper input[type="submit"]:hover,
.kontakt-wrapper .wpcf7-submit:hover,
.kontakt-wrapper .hyp-submit:hover {
  background: #ff9e5c;
}

.wpcf7-response-output {
    color: white;
}


/*** Interaktiv ydelsesboks på forsiden ***/

	/* Ydre kort */
	.hyp-service-card {
	  background: #ffffff;
	  border-radius: 5px 0px 0px 5px;
	  overflow: hidden;
	  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
	}

	/* Header */
	.hyp-service-card__header {
	  background: #23415b; /* mørk blå */
	  color: #ffffff;
	  padding: 20px 28px;
	  font-weight: 600;
	  font-size: 18px;
	}

	/* Liste */
	.hyp-service-list {
	  list-style: none;
	  margin: 0;
	  padding: 0 !important;
	}

	/* Hvert punkt */
	.hyp-service-item {
	  display: flex;
	  align-items: center;
	  gap: 14px;
	  padding: 18px 28px;
	  cursor: pointer;
	  font-weight: 400;
	  font-size: 16px;
	  color: #23415b;
	  position: relative;
	  transition: background 0.2s ease, color 0.2s ease;
	}

	/* Skiftevis baggrund som i designet */
	.hyp-service-item:nth-child(odd) {
	  background: #ffffff;
	}

	.hyp-service-item:nth-child(even) {
	  background: #f4f6f8;
	}

	/* Hover-effekt */
	.hyp-service-item:hover {
	  background: #e9edf1;
	}

	/* Aktivt punkt */
	.hyp-service-item.active {
	  background: #ffffff;
	  color: #ff7a23; /* din orange */
	  font-weight: 600;
	}

	/* Ikon til venstre (orange cirkel) */
	.hyp-service-icon {
	  width: 14px;
	  height: 14px;
	  border-radius: 50%;
	  border: 2px solid #ff7a23;
	  box-sizing: border-box;
	  position: relative;
	}

	/* Lille fyldt prik inden i cirklen */
	.hyp-service-icon::after {
	  content: "";
	  position: absolute;
	  inset: 3px;
	  border-radius: 50%;
	  background: transparent;
	}

	/* Aktiv: fyld prikken */
	.hyp-service-item.active .hyp-service-icon::after {
	  background: #ff7a23;
	}

	/* Tekst */
	.hyp-service-text {
	  flex: 1;
	}

	/* Pil til højre (kun aktiv) */
	.hyp-service-arrow {
	  width: 0;
	  height: 0;
	  border-top: 5px solid transparent;
	  border-bottom: 5px solid transparent;
	  border-left: 8px solid #23415b;
	  opacity: 0;
	  transform: translateX(0);
	  transition: opacity 0.2s ease, transform 0.2s ease;
	}

	/* Vis pil på aktiv linje */
	.hyp-service-item.active .hyp-service-arrow {
	  opacity: 1;
	  transform: translateX(4px);
	}

	/* Billeder – samme logik som før */
	.hyp-service-images {
	  position: relative;
	  width: 100%;
	  height: 100%;
	}

	.hyp-service-image {
	  display: none;
	  width: 100%;
	  height: 100%;
	  object-fit: cover;
	}

	.hyp-service-image.active {
	  display: block;
	  max-height: 422px;
	}

	/* Mobil tilpasning */
	@media (max-width: 767px) {

	  .hyp-service-card__header {
		padding: 16px 20px;
		font-size: 16px;
	  }

	  .hyp-service-item {
		padding: 14px 20px;
		font-size: 15px;
	  }

	  .hyp-service-arrow {
		/* Hvis du vil, kan du skjule pilen på mobil */
		/* display: none; */
	  }
	}

/**************************************/


/* Mobil */
@media (max-width: 768px) {
	.kontakt-wrapper {
		flex-direction: column;
		padding-bottom: 0px;
	}
	
	.kontakt-right textarea, .kontakt-right .wpcf7-textarea {
		min-height: 0px;
		height: 100px;
	}
	
	.kontakt-right {
		min-height: 0px;
	}
	
	.hyp_contact_mobile_wrapper .et_pb_button_module_wrapper {
		width: 50%;
		margin: 0px !important;
	}
	
	a.hyp_contact_mobile.et_pb_bg_layout_light, a.hyp_contact_mobile.et_pb_bg_layout_light:hover {
		min-width: auto;
		width: 100%;
		border-radius: 0;
	}
}
