/*
Theme Name:   Anax Designs Child
Template:     anax-designs
Text Domain: anax-designs-child
Version:      1.1.1
*/

html {
  scroll-behavior: smooth;
}

/* Row */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Columns common */
[class*="col-"] {
    padding: 0 15px;
    width: 100%;
}

/* 12 column system */
.col-1  { width: 8.33%; }
.col-2  { width: 16.66%; }
.col-3  { width: 25%; }
.col-4  { width: 33.33%; } /* 3 per row */
.col-5  { width: 41.66%; }
.col-6  { width: 50%; }   /* 2 per row */
.col-7  { width: 58.33%; }
.col-8  { width: 66.66%; }
.col-9  { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }




:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover) {text-decoration: none;}
#desktop-header .wp-block-navigation-item__content{ position: relative; } 
#desktop-header .wp-block-navigation-item__content::after{ content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: #ab0516; transition: width 0.4s ease; } 
#desktop-header .wp-block-navigation-item__content:hover::after{ width: 100%; }
#desktop-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::after, #desktop-header .wp-block-navigation-item.current-menu-ancestor .wp-block-navigation-item__content::after, #desktop-header .wp-block-navigation-item.current_page_item .wp-block-navigation-item__content::after { width: 100%; }
#desktop-header .wp-block-navigation-item__content:hover::after { width: 100%; }

.hmcontact-form .form-group input, .hmcontact-form .form-group textarea { border: solid 1px #c2c2c2; height: 50px; width: 100%; margin: 0 0 20px; background: #fdf4f5; padding: 15px 20px; font-family: sans-serif; } 
.hmcontact-form .form-group input::placeholder, .hmcontact-form .form-group textarea::placeholder { font-size: 16px; } .hmcontact-form .form-group textarea { height: 150px; } 
.hmcontact-form .btn-primary { background: #ab0516; color: #fff; height: 50px; padding: 0 80px; font-size: 16px;cursor: pointer; }

.wp-block-button__link:hover, .hmcontact-form .btn-primary:hover, .wp-block-button:hover { background: #53bcf0 !important; } 
.wpcf7 form.sent .wpcf7-response-output { border-color: #53bcf0; } 
.hmcontact-form .wpcf7-spinner { position: absolute; left: 35%; bottom: 13%; }
.aboutme-content .wp-block-button__link:hover, .banner-content .wp-block-button__link:hover, .wp-block-button:hover {border-color:#53bcf0 !important;}
.home-main, .about-main {overflow:hidden;}


.footer-nav .wp-block-navigation-item__content{ position: relative; } 
.footer-nav .wp-block-navigation-item__content::after{ content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: #fff; transition: width 0.4s ease; } 
.footer-nav .wp-block-navigation-item__content:hover::after{ width: 100%; }


/* =========================================================
   RESPONSIVE STYLES (Laptop / Tablet / Mobile)
   Note: Hero spacing on mobile and footer menu overlay are set
   from the block editor (Responsive styles), CSS only where needed.
   ========================================================= */

/* ---------- Tablet (max-width: 991px) ---------- */
@media (max-width: 991px) {
/* Footer: 4 columns -> 2 columns grid */
#footer .wp-block-columns { flex-wrap: wrap !important; row-gap: 30px; }
#footer .wp-block-columns > .wp-block-column { flex-basis: calc(50% - 20px) !important; flex-grow: 0 !important; }
}

/* ---------- Mobile (max-width: 767px) ---------- */
@media (max-width: 767px) {
/* Header: logo + title take available space, menu icon stays on right */
#desktop-header .wp-block-columns { gap: 10px; }
#desktop-header .wp-block-columns > .wp-block-column:first-child { flex: 1 1 0% !important; min-width: 0; }
#desktop-header .wp-block-columns > .wp-block-column:last-child { flex: 0 0 auto !important; width: auto; }
#desktop-header .wp-block-site-logo img { width: 55px !important; height: auto; }
#desktop-header h1.wp-block-heading { font-size: 17px !important; line-height: 1.3; }
#desktop-header .wp-block-group.is-nowrap p { font-size: 13px; }

/* Contact form: fields stacked full width */
.hmcontact-form .col-6, .hmcontact-form .col-4 { width: 100%; }
.hmcontact-form .btn-primary { width: 100%; padding: 0 20px; }

/* Footer: single column + smaller logo */
#footer .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
#footer .wp-block-site-logo img { width: 90px !important; height: auto; }
}


.wpcf7 form.sent .wpcf7-response-output { background: #fff; color: #000; }
