/*
Theme Name:   Imagehaven
Description:  Divi child theme for imagehaven: brand colours, fonts and custom styles.
Template:     Divi
Version:      0.3.3
Text Domain:  imagehaven
*/

/* Colours mirror Divi's Global Colours (set in setup/01-settings.php). */
:root {
  --ih-brand: #002A84;       /* sampled from the dolphin logo */
  --ih-brand-deep: #001A55;
  --ih-brand-ink: #000F33;
  --ih-accent: #2EC4D6;
  --ih-text: #1B2333;
  --ih-muted: #5A6478;
  --ih-line: #E3E8F2;
  --ih-tint: #F4F7FC;
  --ih-radius: 14px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { color: var(--ih-brand-ink); line-height: 1.15; padding-bottom: .5em; }
.et_pb_section h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.et_pb_section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.015em; }
.et_pb_section h3 { font-size: 1.2rem; font-weight: 700; }
.ih-eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ih-brand); margin-bottom: 14px; line-height: 1; }
.ih-lead { font-size: 1.15rem; color: var(--ih-muted); max-width: 640px; }

/* ---------- Sections ---------- */
.et_pb_section.ih-intro,
.et_pb_section.ih-services,
.et_pb_section.ih-approach,
.et_pb_section.ih-why,
.et_pb_section.ih-contact { padding: 80px 0; }
.ih-section-head { max-width: 720px; margin-bottom: 20px !important; }
.ih-align-center { align-items: center; }
@media (min-width: 981px) { .ih-align-center { display: flex; } }

/* ---------- Header ---------- */
#main-header { box-shadow: none; border-bottom: 1px solid var(--ih-line); }
/* Desktop only: below 981px Divi swaps in its own hamburger menu. */
@media (min-width: 981px) {
  .et_header_style_left #et-top-navigation #top-menu li.ih-menu-cta > a { display: inline-block; line-height: 1.2; background: var(--ih-brand); color: #fff !important; padding: 10px 20px !important; border-radius: 999px; opacity: 1 !important; }
  #top-menu li.ih-menu-cta > a:hover { background: var(--ih-brand-deep); }
  .et_header_style_left #et-top-navigation, .et_header_style_left .et-fixed-header #et-top-navigation { padding: 0 !important; display: flex; align-items: center; height: 100%; float: none; }
  .et_header_style_left #et-top-navigation nav > ul > li > a { padding-bottom: 0 !important; }
  #main-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
  #main-header .logo_container { position: static; height: auto; }
  #main-header .logo_container img#logo { max-height: 40px; }
  #top-menu { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
  #top-menu li { padding-right: 0; }
}
/* Phone menu: keep the CTA recognisable in the dropdown. */
#mobile_menu li.ih-menu-cta a { color: var(--ih-brand); font-weight: 700; }
.mobile_menu_bar::before { color: var(--ih-brand) !important; }

/* ---------- Hero ---------- */
.et_pb_section.ih-hero {
  padding: 110px 0 100px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(46,196,214,.28), transparent 60%),
    linear-gradient(160deg, var(--ih-brand) 0%, var(--ih-brand-deep) 55%, var(--ih-brand-ink) 100%);
}
/* Neural-network canvas (js/hero-network.js) sits behind the hero content. */
.ih-hero { position: relative; }
.ih-hero canvas.ih-network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.ih-hero > .et_pb_row { position: relative; z-index: 1; }
.ih-hero h1 { color: #fff; max-width: 820px; }
.ih-hero h1 em { font-style: normal; color: var(--ih-accent); }
.ih-hero .ih-lead { color: rgba(255,255,255,.82); }
.ih-hero .ih-eyebrow { color: var(--ih-accent); }
.ih-hero .et_pb_button_module_wrapper { display: inline-block; margin: 20px 14px 0 0 !important; }
.ih-hero-points { margin-top: 48px !important; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.ih-hero-points p { display: flex; flex-wrap: wrap; gap: 10px 28px; color: rgba(255,255,255,.85); font-size: .95rem; }
.ih-hero-points span::before { content: "✓"; color: var(--ih-accent); font-weight: 700; margin-right: 8px; }

/* ---------- Buttons ---------- */
body .ih-btn.et_pb_button, body .ih-btn .et_pb_button {
  font-size: 16px; font-weight: 600; padding: 14px 26px !important; border-radius: 999px; border: 1.5px solid transparent; line-height: 1.2;
  transition: transform .15s, background .15s;
}
body .ih-btn.et_pb_button:hover, body .ih-btn .et_pb_button:hover { transform: translateY(-1px); padding: 14px 26px !important; }
body .ih-btn.et_pb_button::after, body .ih-btn .et_pb_button::after { display: none !important; }
/* !important: Divi's per-module button styles are more specific than a class. */
body .ih-btn-primary.et_pb_button { background: var(--ih-accent) !important; color: var(--ih-brand-ink) !important; border-color: transparent !important; }
body .ih-btn-primary.et_pb_button:hover { background: #4fd4e3 !important; }
body .ih-btn-ghost.et_pb_button { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.5) !important; }
body .ih-btn-ghost.et_pb_button:hover { background: rgba(255,255,255,.1) !important; }

/* ---------- Intro questions ---------- */
.ih-questions { background: var(--ih-tint); border: 1px solid var(--ih-line); border-radius: var(--ih-radius); padding: 22px 36px; }
.ih-questions ul { list-style: none !important; padding: 0 !important; margin: 0; }
.ih-questions li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--ih-line); position: relative; }
.ih-questions li:last-child { border: 0; }
.ih-questions li::before { content: "?"; position: absolute; left: 0; color: var(--ih-brand); font-family: Manrope, sans-serif; font-weight: 800; }

/* ---------- Service cards ---------- */
.ih-cards { padding-top: 0 !important; }
.ih-cards .et_pb_column { display: flex; }
.ih-card.et_pb_blurb { background: #fff; border: 1px solid var(--ih-line); border-radius: var(--ih-radius); padding: 30px; width: 100%; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ih-card.et_pb_blurb:hover { border-color: rgba(0,42,132,.35); box-shadow: 0 18px 40px -24px rgba(0,26,85,.35); transform: translateY(-3px); }
/* Icon tile: brand-gradient rounded square, white icon centred. !important beats Divi's per-module icon styles. */
.ih-card .et_pb_main_blurb_image { width: auto !important; max-width: none !important; margin: 0 0 20px !important; text-align: left; line-height: 0; }
.ih-card .et_pb_main_blurb_image .et_pb_image_wrap {
  display: flex !important; align-items: center; justify-content: center;
  width: 56px !important; height: 56px; margin: 0 !important; border-radius: 14px;
  background: linear-gradient(145deg, var(--ih-brand) 0%, var(--ih-brand-deep) 100%);
  box-shadow: 0 10px 20px -12px rgba(0,26,85,.6);
  transition: background .2s, transform .2s;
}
.ih-card .et_pb_main_blurb_image .et-pb-icon { font-size: 24px !important; line-height: 1 !important; color: #fff !important; margin: 0 !important; }
.ih-card.et_pb_blurb:hover .et_pb_image_wrap { background: linear-gradient(145deg, #0638A8 0%, var(--ih-brand) 100%); transform: scale(1.04); }
.ih-card .et_pb_blurb_container { padding-left: 0; text-align: left; }
.ih-card .et_pb_module_header { font-size: 1.2rem; padding-bottom: 8px; }
.ih-card .et_pb_blurb_description { color: var(--ih-muted); font-size: .97rem; }

/* ---------- Approach steps ---------- */
.ih-steps { counter-reset: ih-step; padding-top: 0 !important; }
.ih-step { position: relative; padding-top: 58px; counter-increment: ih-step; }
.ih-step::before { content: "0" counter(ih-step); position: absolute; top: 0; left: 0; font: 800 2.4rem/1 Manrope, sans-serif; color: transparent; -webkit-text-stroke: 1.5px var(--ih-brand); }
.ih-step p { color: var(--ih-muted); font-size: .97rem; }

/* ---------- Why Imagehaven (dark) ---------- */
.ih-why, .ih-why p { color: rgba(255,255,255,.85); }
.ih-why h2, .ih-why h3 { color: #fff; }
.ih-why .ih-eyebrow { color: var(--ih-accent); }
.ih-pillar { padding: 22px 24px; border-radius: var(--ih-radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); margin-bottom: 18px !important; }
.ih-pillar h3 { padding-bottom: 6px; }
.ih-pillar p { font-size: .97rem; }

/* ---------- Contact form ---------- */
.ih-form.et_pb_contact_form_container { background: var(--ih-tint); border: 1px solid var(--ih-line); border-radius: var(--ih-radius); padding: 34px; }
.ih-form .et_pb_contact_field { margin-bottom: 4% !important; }
.ih-form .input, .ih-form select, .ih-form textarea {
  background: #fff !important; border: 1px solid #CFD7E6 !important; border-radius: 10px; padding: 12px 14px !important; color: var(--ih-text) !important; font-size: .97rem;
}
.ih-form .input:focus, .ih-form select:focus, .ih-form textarea:focus { border-color: var(--ih-brand) !important; outline: 2px solid rgba(0,42,132,.25); }
.ih-form .et_contact_bottom_container { float: none; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ih-form .et_pb_contact_submit {
  background: var(--ih-brand); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px !important; font-size: 16px; font-weight: 600; margin-left: 0 !important;
}
.ih-form .et_pb_contact_submit:hover { background: var(--ih-brand-deep); padding: 14px 26px !important; }
.ih-form .et_pb_contact_submit::after { display: none !important; }

/* ---------- Footer ---------- */
#footer-bottom { padding: 24px 0; }
#footer-info { float: none; text-align: center; }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .et_pb_section.ih-hero { padding: 80px 0 70px; }
  .ih-cards .et_pb_column { margin-bottom: 22px !important; }
}
@media (max-width: 767px) {
  .ih-form .et_pb_contact_field { flex-basis: 100% !important; width: 100% !important; max-width: 100% !important; }
}
@media (max-width: 520px) {
  .ih-form.et_pb_contact_form_container { padding: 22px; }
  .ih-questions { padding: 14px 22px; }
}
