/*
Theme Name: CIBE Child
Description: Lightweight Divi child theme for the CIBE website. Custom presentation belongs here; page layouts remain editable in Divi 5.
Author: Triptiq
Template: Divi
Version: 1.0.0
Text Domain: cibe-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Add CIBE-specific styles below as the approved designs are implemented. */

/* Global shell finishing. Content and layouts remain native Divi modules. */
:root { --cibe-ink:#183c2b; --cibe-forest:#04472a; --cibe-sand:#ede6d8; }
.cibe-skip-link { position:fixed; top:-100px; left:16px; z-index:100000; padding:12px 18px; background:white; color:var(--cibe-forest); }
.cibe-skip-link:focus { top:40px; }
.et-l--header a:focus-visible,.et-l--footer a:focus-visible,.et-l--header button:focus-visible { outline:2px solid currentColor; outline-offset:5px; }
#cibe-main-header { border-bottom:1px solid #e4e7e2; }
#cibe-main-header .et_pb_menu__wrap { justify-content:center; }
#cibe-main-header .et-menu a { color:var(--cibe-ink)!important; transition:color .18s ease; }
#cibe-main-header .et-menu a:hover { color:#008e3c!important; opacity:1; }
#cibe-main-header .et_pb_menu__search-button { margin-left:auto; color:#657268; }
#cibe-connect .et_pb_row { align-items:center; }
#cibe-connect .et_pb_heading { margin:0 0 4px!important; }
#cibe-connect h2 { padding:0; letter-spacing:-.7px; }
#cibe-connect .et_pb_column { row-gap:0; }
#cibe-connect p { font-size:12px; line-height:1.6; }
.cibe-socials { display:flex; justify-content:flex-end; align-items:center; gap:12px; }
#cibe-connect .cibe-socials a { display:inline-flex; width:44px; height:44px; flex:0 0 44px; align-items:center; justify-content:center; border:1px solid #b8bfb0; border-radius:50%; color:var(--cibe-forest); font:600 17px Arial,sans-serif; text-decoration:none; transition:background .18s ease,color .18s ease,border-color .18s ease; }
#cibe-connect .cibe-socials a:last-child { font-size:22px; font-weight:400; }
#cibe-connect .cibe-socials a:hover { color:white; background:var(--cibe-forest); border-color:var(--cibe-forest); }
#cibe-footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; column-gap:60px; align-items:start; }
#cibe-footer-grid > .et_pb_column { width:100%; max-width:100%; flex-basis:auto; row-gap:0; }
#cibe-footer-grid .et_pb_text_inner,#cibe-footer-grid .et_pb_text_inner a { font-size:12px; line-height:1.65; color:#dce5dc; }
#cibe-footer-grid .et_pb_image { margin-bottom:20px!important; }
#cibe-footer-grid .et_pb_text_3_tb_footer { margin-top:14px!important; max-width:285px; }
#cibe-footer-grid .et_pb_text_4_tb_footer,#cibe-footer-grid .et_pb_text_6_tb_footer { margin-bottom:16px!important; }
#cibe-footer-grid .et_pb_text_4_tb_footer .et_pb_text_inner,#cibe-footer-grid .et_pb_text_6_tb_footer .et_pb_text_inner { font-size:10px; line-height:1.5; color:#d0cba8; letter-spacing:1.1px; }
#cibe-footer-grid .et_pb_text_5_tb_footer a { display:inline-block; padding-bottom:5px; }
#cibe-footer-grid a:hover { color:#fff; text-decoration:underline; text-underline-offset:3px; }
#cibe-footer-bottom { border-top:1px solid rgba(255,255,255,.13); padding-top:20px; padding-bottom:20px; }
#cibe-footer-bottom .et_pb_text_inner,#cibe-footer-bottom .et_pb_text_inner a { color:#c4d3c8; font-size:10px; line-height:1.6; }
#cibe-footer-bottom .et_pb_column:last-child .et_pb_text_inner { text-align:right; }
@media(min-width:981px) {
 .et-l--header .et_pb_row,#cibe-connect .et_pb_row,#cibe-footer-grid,#cibe-footer-bottom { width:calc(100% - 108px); max-width:1212px; }
 #cibe-main-header .et_pb_menu__logo-wrap { flex:0 0 164px; }
}
@media(max-width:980px) {
 .et-l--header .et_pb_section_0_tb_header .et_pb_row { flex-wrap:nowrap; gap:16px; }
 .et-l--header .et_pb_section_0_tb_header .et_pb_column { flex-basis:auto; }
 .et-l--header .et_pb_section_0_tb_header .et_pb_column:first-child { flex:1; }
 .et-l--header .et_pb_section_0_tb_header .et_pb_column:last-child { flex:0 0 auto; }
 .et-l--header .et_pb_section_0_tb_header .et_pb_text_inner { font-size:9px; line-height:1.5; letter-spacing:.6px; }
 #cibe-main-header .et_pb_row { padding-top:16px; padding-bottom:16px; }
 #cibe-main-header .et_pb_menu__wrap { justify-content:flex-end; }
 #cibe-main-header .et_pb_menu__search-button { margin-left:18px; }
 #cibe-connect .et_pb_row { row-gap:24px; }
 .cibe-socials { justify-content:flex-start; }
 #cibe-footer-grid { grid-template-columns:1.2fr 1fr; gap:36px; }
 #cibe-footer-grid > .et_pb_column:first-child { grid-column:1/-1; }
 #cibe-footer-bottom .et_pb_row { row-gap:12px; }
 #cibe-footer-bottom .et_pb_column:last-child .et_pb_text_inner { text-align:left; }
}
@media(max-width:540px) {
 .et-l--header .et_pb_section_0_tb_header .et_pb_column:first-child { display:none; }
 .et-l--header .et_pb_section_0_tb_header .et_pb_row { justify-content:flex-end; padding-top:10px; padding-bottom:10px; }
 #cibe-main-header .et_pb_menu__logo img { max-width:145px; }
 #cibe-footer-grid { grid-template-columns:1fr; gap:30px; }
 #cibe-footer-grid > .et_pb_column:first-child { grid-column:auto; }
 #contact { padding-top:40px; padding-bottom:36px; }
 #cibe-connect { padding-top:30px; padding-bottom:30px; }
}
@media(prefers-reduced-motion:reduce) { .cibe-socials a,#cibe-main-header .et-menu a { transition:none!important; } }

/* Divi menu flex children need explicit growth to preserve the reference balance. */
#cibe-main-header .et_pb_menu__wrap { flex:1 1 auto!important; }
#cibe-main-header .et_pb_menu__menu { margin-left:auto; margin-right:auto; }
#cibe-main-header .et_pb_menu__logo { width:164px; max-width:none!important; }
#cibe-main-header .et_pb_menu__logo img { width:164px; }
#cibe-main-header .et_pb_menu__search-button { margin-left:24px!important; margin-right:0!important; }
@media(max-width:980px) {
 #cibe-main-header .et_pb_row { min-height:76px; padding-top:16px!important; padding-bottom:16px!important; }
 #cibe-main-header .et_pb_menu__wrap { flex:1 1 auto!important; }
 #cibe-main-header .mobile_menu_bar { display:block; min-width:44px; min-height:44px; padding-top:6px; cursor:pointer; }
 #cibe-main-header .et_pb_menu__search-button { min-width:44px; min-height:44px; justify-content:center; margin-left:0!important; margin-right:8px!important; }
 #cibe-main-header .mobile_menu_bar:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
}
@media(max-width:540px) { #cibe-main-header .et_pb_menu__logo { width:145px; } }

#cibe-main-header .et_pb_menu__logo { flex:0 0 164px; margin-right:0!important; }
.et-l--header .et_pb_section_0_tb_header .et_pb_column:last-child .et_pb_text_inner { text-align:right; }
@media(max-width:540px) { #cibe-main-header .et_pb_menu__logo { flex-basis:145px; } }

@media(max-width:980px) {
 .et-l--header .et_pb_section_0_tb_header .et_pb_column { width:auto!important; min-width:0; }
 .et-l--header .et_pb_section_0_tb_header .et_pb_column:last-child { flex:0 0 auto!important; }
}

/* Footer labels: override the white paragraph color from the Divi preset. */
#cibe-footer-grid .et_pb_text_4_tb_footer p,
#cibe-footer-grid .et_pb_text_6_tb_footer p {
 color:#d8c8a8!important; font-size:10px!important; letter-spacing:1.1px; line-height:1.5;
}
#cibe-footer-bottom .cibe-triptiq-link { display:inline-flex; align-items:center; gap:5px; vertical-align:middle; font-weight:600; }
#cibe-footer-bottom .cibe-triptiq-link svg { display:inline-block; width:20px; height:20px; flex-shrink:0; vertical-align:middle; }
